/*
 * YOUSEI HOME トップページ デザイン整理 v14（手動反映確認用・テスト専用）
 * 対象: /index_scroll_test.html
 * 目的: 既存機能と導線を維持したまま、余白・見出し・本文・CTAを統一する
 */

body#index #main {
  --yh-top-text: #292824;
  --yh-top-muted: #6f6a62;
  --yh-top-accent: #8b7d68;
  --yh-top-line: rgba(41, 40, 36, 0.24);
  --yh-top-paper: #f6f4ef;
  --yh-top-soft: #f1efea;
  --yh-top-content: min(1120px, calc(100% - 48px));
  color: var(--yh-top-text);
}

body#index #main *,
body#index #main *::before,
body#index #main *::after {
  box-sizing: border-box;
}

body#index #main img,
body#index #main video,
body#index #main iframe {
  max-width: 100%;
}

/* 「ユーセイホームの家づくり」の後から代表メッセージ直前までは非表示 */
body#index #main > #concept,
body#index #main > #plan,
body#index #main > #pickup {
  display: none !important;
}

/* 動画が実際に再生されるまではキャッチコピーだけを先行表示しない */
body#index #main > #show.yh-video-hero-test:not([data-video-actual-playing="true"]) > h3,
body#index #main > #show.yh-video-hero-test:not([data-video-actual-playing="true"]) > p,
body#index #main > #show.yh-video-hero-test:not([data-video-actual-playing="true"]) .yh-video-hero-test__scroll-guide {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* セクションごとの背景と縦リズム */
body#index #main > #event {
  padding: 64px 0 76px !important;
  background: #f2efec;
}

body#index #main > #hiraya_top {
  padding: 76px 0 84px !important;
  background: #fff;
}

body#index #main > .yh-room-tour {
  padding: 76px 0 84px !important;
  background: #f5f2ee;
}

body#index #main > #works {
  padding: 72px 0 0 !important;
  background: #fff;
}

body#index #main > #works .yh-works-flow {
  padding-top: 0 !important;
  padding-bottom: 82px !important;
}

body#index #main > .haikei {
  padding: 0 !important;
  background: #f3f3f1;
}

body#index #main > .haikei #calendar_top {
  padding: 72px 0 80px !important;
}

body#index #main > #diary {
  width: min(960px, 100%);
  max-width: 100%;
  padding: 72px 20px 78px !important;
  background: #fff;
}

body#index #main > #concept {
  margin: 0 !important;
  padding: 150px 0 !important;
  background-position: center center !important;
  background-size: cover !important;
}

body#index #main > #plan {
  width: min(1180px, 100%);
  max-width: 100%;
  margin: 0 auto !important;
  padding: 72px 24px 82px !important;
  background: #fff;
}

body#index #main > #pickup {
  margin: 0 !important;
  padding: 68px 0 78px !important;
  background: var(--yh-top-paper);
}

body#index #main > #message {
  padding: 72px 0 82px !important;
  background: #fff;
}

body#index #main > #contact {
  padding: 24px 0 28px !important;
  background: #f2f2f0;
}

body#index #main > #event,
body#index #main > #hiraya_top,
body#index #main > .yh-room-tour,
body#index #main > #works,
body#index #main > .haikei,
body#index #main > #diary,
body#index #main > .yh-top-feature-links,
body#index #main > #concept,
body#index #main > #plan,
body#index #main > #pickup,
body#index #main > #message,
body#index #main > #contact {
  max-width: 100%;
  scroll-margin-top: 110px;
}

/* 既存の英語大見出しを小さな補助ラベルへ整理 */
body#index #main > #event > .ttl_en,
body#index #main > #hiraya_top .hiraya_head > .ttl_en,
body#index #main > .yh-room-tour .yh-room-tour__inner > .ttl_en,
body#index #main > #works > .ttl_en,
body#index #main > .haikei #calendar_top > .ttl_en,
body#index #main > #diary > .ttl_en,
body#index #main > #plan > .ttl_en,
body#index #main > #message .ttl_en {
  position: relative !important;
  display: block !important;
  width: var(--yh-top-content);
  max-width: 100%;
  height: auto !important;
  max-height: none !important;
  margin: 0 auto 28px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: var(--yh-top-text) !important;
  font-family: "Noto Serif JP", "Yu Mincho", serif !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  letter-spacing: 0.08em !important;
  text-align: left !important;
  text-indent: 0 !important;
  white-space: normal !important;
}

body#index #main > #hiraya_top .hiraya_head > .ttl_en,
body#index #main > .yh-room-tour .yh-room-tour__inner > .ttl_en,
body#index #main > .haikei #calendar_top > .ttl_en,
body#index #main > #diary > .ttl_en,
body#index #main > #plan > .ttl_en,
body#index #main > #message .ttl_en {
  width: 100%;
}

body#index #main > #event > .ttl_en::before,
body#index #main > #hiraya_top .hiraya_head > .ttl_en::before,
body#index #main > .yh-room-tour .yh-room-tour__inner > .ttl_en::before,
body#index #main > #works > .ttl_en::before,
body#index #main > .haikei #calendar_top > .ttl_en::before,
body#index #main > #diary > .ttl_en::before,
body#index #main > #plan > .ttl_en::before,
body#index #main > #message .ttl_en::before {
  content: attr(title) !important;
  position: static !important;
  display: block !important;
  width: auto !important;
  margin: 0 0 7px !important;
  color: var(--yh-top-accent) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.22em !important;
  opacity: 1 !important;
  text-transform: uppercase;
}

body#index #main > #event > .ttl_en::after,
body#index #main > #hiraya_top .hiraya_head > .ttl_en::after,
body#index #main > .yh-room-tour .yh-room-tour__inner > .ttl_en::after,
body#index #main > #works > .ttl_en::after,
body#index #main > .haikei #calendar_top > .ttl_en::after,
body#index #main > #diary > .ttl_en::after,
body#index #main > #plan > .ttl_en::after,
body#index #main > #message .ttl_en::after {
  content: none !important;
}

/* 本文の強弱 */
body#index #main > #event dt {
  color: var(--yh-top-text);
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
}

body#index #main > #event dd,
body#index #main > #event .day,
body#index #main > #event .taglist {
  color: var(--yh-top-muted);
  font-size: 13px;
  line-height: 1.75;
}

body#index #main > #hiraya_top .hiraya_subtitle {
  color: var(--yh-top-text);
  font-size: clamp(24px, 2.4vw, 31px);
  font-weight: 500;
  line-height: 1.5;
}

body#index #main > #hiraya_top .hiraya_lead,
body#index #main > .yh-room-tour .yh-room-tour__lead,
body#index #main > #works .yh-works-flow__text,
body#index #main > #message p,
body#index #main > #message dd {
  color: var(--yh-top-muted);
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.035em;
}

body#index #main > .yh-room-tour .yh-room-tour__lead {
  margin: 16px 0 28px;
}

body#index #main > .yh-room-tour .yh-room-tour__name {
  color: var(--yh-top-text);
  font-size: 15px;
  line-height: 1.65;
}

body#index #main > #works .yh-works-flow__catch {
  margin-bottom: 16px;
  color: var(--yh-top-text);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.55;
}

body#index #main > #diary dt {
  color: var(--yh-top-text);
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.55;
}

body#index #main > #diary dd {
  color: var(--yh-top-muted);
  font-size: 14px;
  line-height: 1.85;
}

body#index #main > #concept .point {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.65;
}

body#index #main > #concept .content {
  font-size: 14px;
  line-height: 1.9;
}

body#index #main > #plan .title {
  font-size: 20px;
  line-height: 1.6;
}

body#index #main > #pickup .list-type-check,
body#index #main > #pickup .reservation {
  color: var(--yh-top-text);
  font-size: 13px;
  line-height: 1.7;
}

/* 同種CTAを静かな共通ルールへ */
body#index #main > #hiraya_top .hiraya_more,
body#index #main > .yh-room-tour .yh-room-tour__button,
body#index #main > #works .yh-works-flow__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 24px;
  border: 1px solid var(--yh-top-text);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: var(--yh-top-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-decoration: none;
}

/* ROOM TOURの閉じる操作を固定ヘッダーの下に確保する */
body#index #main > .yh-room-tour .yh-room-tour__close {
  top: 128px !important;
}

@media (hover: hover) {
  body#index #main > #hiraya_top .hiraya_more:hover,
  body#index #main > .yh-room-tour .yh-room-tour__button:hover,
  body#index #main > #works .yh-works-flow__button:hover {
    background: var(--yh-top-text);
    color: #fff;
  }
}

/* 追加2導線: 同じ構成・同じ余白・同じ写真比率 */
body#index #main > .yh-top-feature-links {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 82px 24px 92px;
  overflow: hidden;
  background: var(--yh-top-soft);
}

body#index #main > .yh-top-feature-links .yh-top-feature-links__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

body#index #main > .yh-top-feature-links .yh-top-feature-links__grid {
  display: block !important;
}

body#index #main > .yh-top-feature-links .yh-top-feature-card {
  min-width: 0;
  background: transparent;
}

body#index #main > .yh-top-feature-links .yh-top-feature-card + .yh-top-feature-card {
  margin-top: 84px;
}

body#index #main > .yh-top-feature-links .yh-top-feature-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--yh-top-text);
  text-decoration: none;
}

body#index #main > .yh-top-feature-links .yh-top-feature-card__heading {
  order: 1;
  margin: 0 0 22px;
}

body#index #main > .yh-top-feature-links .yh-top-feature-card__section-title {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0 !important;
  background: none;
  color: var(--yh-top-text);
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.045em;
  text-align: left;
}

body#index #main > .yh-top-feature-links .yh-top-feature-card__section-title::before,
body#index #main > .yh-top-feature-links .yh-top-feature-card__section-title::after {
  content: none !important;
}

body#index #main > .yh-top-feature-links .yh-top-feature-card__canvas-name {
  white-space: nowrap;
}

body#index #main > .yh-top-feature-links .yh-top-feature-card__media {
  position: relative;
  order: 2;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.8;
  overflow: hidden;
  background: #ddd9d1;
}

body#index #main > .yh-top-feature-links .yh-top-feature-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.08), transparent 34%);
}

body#index #main > .yh-top-feature-links .yh-top-feature-card__media picture,
body#index #main > .yh-top-feature-links .yh-top-feature-card__media img {
  display: block;
  width: 100%;
  height: 100%;
}

body#index #main > .yh-top-feature-links .yh-top-feature-card__media img {
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.65, 0.3, 1);
}

body#index #main > .yh-top-feature-links .yh-top-feature-card--canvas .yh-top-feature-card__media img {
  object-position: center center;
}

body#index #main > .yh-top-feature-links .yh-top-feature-card--iedukuri .yh-top-feature-card__media img {
  object-position: center 46%;
}

body#index #main > .yh-top-feature-links .yh-top-feature-card__body {
  order: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  min-height: 0;
  margin: 24px 0 0;
  padding: 0;
  background: transparent;
}

body#index #main > .yh-top-feature-links .yh-top-feature-card__lead {
  display: block;
  max-width: 700px;
  margin: 0;
  color: var(--yh-top-muted);
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.035em;
}

body#index #main > .yh-top-feature-links .yh-top-feature-card__more {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--yh-top-text);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.12em;
}

body#index #main > .yh-top-feature-links .yh-top-feature-card__more::after {
  content: "";
  width: 38px;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

body#index #main > .yh-top-feature-links .yh-top-feature-card__link:focus-visible {
  outline: 2px solid var(--yh-top-text);
  outline-offset: 5px;
}

@media (hover: hover) {
  body#index #main > .yh-top-feature-links .yh-top-feature-card__link:hover .yh-top-feature-card__media img {
    transform: scale(1.018);
  }

  body#index #main > .yh-top-feature-links .yh-top-feature-card__link:hover .yh-top-feature-card__more::after {
    width: 52px;
  }
}

/* PC・タブレットは本文と見出しを一段大きくする（スマホ値は変更しない） */
@media (min-width: 768px) {
  body#index #main > #event > .ttl_en,
  body#index #main > #hiraya_top .hiraya_head > .ttl_en,
  body#index #main > .yh-room-tour .yh-room-tour__inner > .ttl_en,
  body#index #main > #works > .ttl_en,
  body#index #main > .haikei #calendar_top > .ttl_en,
  body#index #main > #diary > .ttl_en,
  body#index #main > #message .ttl_en {
    font-size: 22px !important;
  }

  body#index #main > #event > .ttl_en::before,
  body#index #main > #hiraya_top .hiraya_head > .ttl_en::before,
  body#index #main > .yh-room-tour .yh-room-tour__inner > .ttl_en::before,
  body#index #main > #works > .ttl_en::before,
  body#index #main > .haikei #calendar_top > .ttl_en::before,
  body#index #main > #diary > .ttl_en::before,
  body#index #main > #message .ttl_en::before {
    font-size: 11px !important;
  }

  body#index #main > #event dt {
    font-size: 20px;
  }

  body#index #main > #event dd,
  body#index #main > #event .day,
  body#index #main > #event .taglist {
    font-size: 15px;
  }

  body#index #main > #hiraya_top .hiraya_lead,
  body#index #main > .yh-room-tour .yh-room-tour__lead,
  body#index #main > #works .yh-works-flow__text,
  body#index #main > #message p,
  body#index #main > #message dd {
    font-size: 16px;
  }

  body#index #main > #hiraya_top .hiraya_subtitle,
  body#index #main > #works .yh-works-flow__catch,
  body#index #main > #event > .ttl_en,
  body#index #main > .yh-room-tour .yh-room-tour__inner > .ttl_en,
  body#index #main > .haikei #calendar_top > .ttl_en,
  body#index #main > #diary > .ttl_en,
  body#index #main > .yh-top-feature-links .yh-top-feature-card__section-title {
    font-size: clamp(28px, 2.5vw, 34px) !important;
  }

  body#index #main > .yh-room-tour .yh-room-tour__name {
    font-size: 17px;
  }

  body#index #main > #diary dt {
    font-size: 22px;
  }

  body#index #main > #diary dd {
    font-size: 16px;
  }

  body#index #main > #hiraya_top .hiraya_more,
  body#index #main > .yh-room-tour .yh-room-tour__button,
  body#index #main > #works .yh-works-flow__button {
    min-height: 48px;
    font-size: 13px;
  }

  body#index #main > .yh-top-feature-links .yh-top-feature-card__section-title {
    font-size: clamp(28px, 2.7vw, 36px);
  }

  body#index #main > .yh-top-feature-links .yh-top-feature-card__lead {
    font-size: 16px;
  }

  body#index #main > .yh-top-feature-links .yh-top-feature-card__more {
    font-size: 13px;
  }

  body#index #main > #contact .title {
    font-size: 20px;
  }

  body#index #main > #contact li a {
    font-size: 14px;
  }
}

/* カレンダー画像は親幅を越えない */
body#index #main > .haikei #calendar_top .content,
body#index #main > .haikei #calendar_top .typebox2-calendar-wrap {
  max-width: 100%;
}

body#index #main > .haikei #calendar_top img {
  height: auto;
}

/* PCとスマホの中間幅 */
@media (max-width: 1024px) {
  body#index #main {
    --yh-top-content: min(100% - 40px, 900px);
  }

  body#index #main > .yh-top-feature-links {
    padding-right: 20px;
    padding-left: 20px;
  }

  body#index #main > .yh-top-feature-links .yh-top-feature-card__media {
    aspect-ratio: 16 / 9;
  }
}

/* スマートフォン */
@media (max-width: 767px) {
  body#index #main {
    --yh-top-content: calc(100% - 32px);
  }

  /* スクロール後も既存位置でロゴを表示し、メニューボタンの領域は空ける */
  body#index #header > p:last-of-type {
    position: fixed !important;
    top: 0 !important;
    right: 60px !important;
    left: 0 !important;
    z-index: 11 !important;
    width: auto !important;
    height: 60px !important;
    margin: 0 !important;
    background: transparent;
    pointer-events: none;
    transition: background-color 0.25s ease, opacity 0.2s ease;
  }

  body#index #header > p:last-of-type > a {
    display: flex !important;
    align-items: center;
    width: 226px;
    max-width: calc(100vw - 60px);
    height: 60px;
    padding: 0 8px;
    background-image: url("/logo_w.png") !important;
    background-position: 8px center !important;
    background-repeat: no-repeat !important;
    background-size: 210px auto !important;
    pointer-events: auto;
  }

  body#index #header > p:last-of-type img {
    display: block !important;
    position: static !important;
    flex: 0 0 auto;
    width: 210px !important;
    max-width: 100% !important;
    height: auto !important;
    opacity: 0 !important;
    filter: none !important;
  }

  body#index.bs #header > p:last-of-type {
    background: rgba(255, 255, 255, 0.96);
  }

  body#index.bs #header > p:last-of-type > a {
    background-image: url("/header_logo.png") !important;
  }

  body#index.on #header > p:last-of-type {
    opacity: 0;
    pointer-events: none;
  }

  body#index #main > #event {
    padding: 44px 0 52px !important;
  }

  body#index #main > #hiraya_top {
    padding: 48px 0 56px !important;
  }

  body#index #main > .yh-room-tour {
    padding: 48px 0 58px !important;
  }

  body#index #main > #works {
    padding: 46px 0 0 !important;
  }

  body#index #main > #works .yh-works-flow {
    padding-top: 0 !important;
    padding-bottom: 56px !important;
  }

  body#index #main > .haikei #calendar_top {
    padding: 46px 14px 54px !important;
  }

  body#index #main > #diary {
    width: 100%;
    padding: 46px 16px 54px !important;
  }

  body#index #main > #concept {
    margin: 0 !important;
    padding: 76px 16px !important;
  }

  body#index #main > #plan {
    padding: 48px 16px 56px !important;
  }

  body#index #main > #pickup {
    padding: 46px 0 56px !important;
  }

  body#index #main > #message {
    padding: 46px 16px 56px !important;
  }

  body#index #main > #contact {
    padding: 14px 0 18px !important;
  }

  body#index #main > #event,
  body#index #main > #hiraya_top,
  body#index #main > .yh-room-tour,
  body#index #main > #works,
  body#index #main > .haikei,
  body#index #main > #diary,
  body#index #main > .yh-top-feature-links,
  body#index #main > #concept,
  body#index #main > #plan,
  body#index #main > #pickup,
  body#index #main > #message,
  body#index #main > #contact {
    scroll-margin-top: 72px;
  }

  body#index #main > #event > .ttl_en,
  body#index #main > #hiraya_top .hiraya_head > .ttl_en,
  body#index #main > .yh-room-tour .yh-room-tour__inner > .ttl_en,
  body#index #main > #works > .ttl_en,
  body#index #main > .haikei #calendar_top > .ttl_en,
  body#index #main > #diary > .ttl_en,
  body#index #main > #plan > .ttl_en,
  body#index #main > #message .ttl_en {
    width: var(--yh-top-content);
    margin-bottom: 20px !important;
    font-size: 17px !important;
    line-height: 1.45 !important;
    letter-spacing: 0.065em !important;
  }

  body#index #main > #hiraya_top .hiraya_head > .ttl_en,
  body#index #main > .yh-room-tour .yh-room-tour__inner > .ttl_en,
  body#index #main > .haikei #calendar_top > .ttl_en,
  body#index #main > #diary > .ttl_en,
  body#index #main > #plan > .ttl_en,
  body#index #main > #message .ttl_en {
    width: 100%;
  }

  body#index #main > #event > .ttl_en::before,
  body#index #main > #hiraya_top .hiraya_head > .ttl_en::before,
  body#index #main > .yh-room-tour .yh-room-tour__inner > .ttl_en::before,
  body#index #main > #works > .ttl_en::before,
  body#index #main > .haikei #calendar_top > .ttl_en::before,
  body#index #main > #diary > .ttl_en::before,
  body#index #main > #plan > .ttl_en::before,
  body#index #main > #message .ttl_en::before {
    margin-bottom: 5px !important;
    font-size: 9px !important;
    letter-spacing: 0.2em !important;
  }

  body#index #main > #event dt {
    font-size: 15px;
    line-height: 1.55;
  }

  body#index #main > #event dd,
  body#index #main > #event .day,
  body#index #main > #event .taglist {
    font-size: 12px;
    line-height: 1.7;
  }

  body#index #main > #hiraya_top .hiraya_head {
    width: var(--yh-top-content);
    margin-right: auto;
    margin-left: auto;
  }

  body#index #main > #hiraya_top .hiraya_subtitle {
    margin-bottom: 14px;
    font-size: 19px;
    line-height: 1.55;
  }

  body#index #main > #hiraya_top .hiraya_lead,
  body#index #main > .yh-room-tour .yh-room-tour__lead,
  body#index #main > #works .yh-works-flow__text,
  body#index #main > #message p,
  body#index #main > #message dd {
    font-size: 13px;
    line-height: 1.8;
    letter-spacing: 0.02em;
  }

  body#index #main > .yh-room-tour .yh-room-tour__inner {
    width: calc(100% - 28px);
  }

  body#index #main > .yh-room-tour .yh-room-tour__lead {
    margin: 14px 0 22px;
  }

  body#index #main > .yh-room-tour .yh-room-tour__name {
    margin-top: 11px;
    font-size: 13px;
    line-height: 1.6;
  }

  body#index #main > .yh-room-tour .yh-room-tour__close {
    top: 76px !important;
  }

  body#index #main > #works .yh-works-flow__inner {
    width: calc(100% - 32px);
  }

  body#index #main > #works .yh-works-flow__lead {
    margin-bottom: 22px;
  }

  body#index #main > #works .yh-works-flow__catch {
    margin-bottom: 13px;
    font-size: 18px;
    line-height: 1.55;
  }

  body#index #main > #works .yh-works-flow__text {
    margin-bottom: 7px;
  }

  body#index #main > #diary dt {
    font-size: 17px;
  }

  body#index #main > #diary dd {
    font-size: 13px;
    line-height: 1.8;
  }

  body#index #main > #concept .point {
    font-size: 20px;
    line-height: 1.65;
  }

  body#index #main > #concept .content {
    font-size: 13px;
    line-height: 1.85;
  }

  body#index #main > #plan .title {
    font-size: 16px;
    line-height: 1.55;
  }

  body#index #main > #pickup .content {
    padding-right: 16px;
    padding-left: 16px;
  }

  body#index #main > #pickup .list-type-check,
  body#index #main > #pickup .reservation {
    font-size: 12px;
    line-height: 1.65;
  }

  body#index #main > #hiraya_top .hiraya_more,
  body#index #main > .yh-room-tour .yh-room-tour__button,
  body#index #main > #works .yh-works-flow__button {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 11px;
  }

  body#index #main > .yh-top-feature-links {
    padding: 52px 16px 60px;
  }

  body#index #main > .yh-top-feature-links .yh-top-feature-links__inner {
    width: 100%;
  }

  body#index #main > .yh-top-feature-links .yh-top-feature-card + .yh-top-feature-card {
    margin-top: 56px;
  }

  body#index #main > .yh-top-feature-links .yh-top-feature-card__heading {
    margin-bottom: 17px;
  }

  body#index #main > .yh-top-feature-links .yh-top-feature-card__section-title {
    font-size: 20px;
    line-height: 1.55;
    letter-spacing: 0.035em;
  }

  body#index #main > .yh-top-feature-links .yh-top-feature-card__canvas-name {
    display: block;
    margin-top: 1px;
    font-size: 0.92em;
  }

  body#index #main > .yh-top-feature-links .yh-top-feature-card__media {
    aspect-ratio: 4 / 3;
  }

  body#index #main > .yh-top-feature-links .yh-top-feature-card--iedukuri .yh-top-feature-card__media img {
    object-position: center center;
  }

  body#index #main > .yh-top-feature-links .yh-top-feature-card__body {
    display: block;
    margin-top: 18px;
  }

  body#index #main > .yh-top-feature-links .yh-top-feature-card__lead {
    max-width: none;
    font-size: 13px;
    line-height: 1.8;
    letter-spacing: 0.02em;
  }

  body#index #main > .yh-top-feature-links .yh-top-feature-card__more {
    margin-top: 13px;
    font-size: 11px;
  }

  body#index #main > .yh-top-feature-links .yh-top-feature-card__more::after {
    width: 32px;
  }

  body#index #main > .haikei #calendar_top .content,
  body#index #main > .haikei #calendar_top .typebox2-calendar-wrap {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  body#index #main > #contact .title {
    font-size: 16px;
    line-height: 1.5;
  }

  body#index #main > #contact li a {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body#index #main > .yh-top-feature-links .yh-top-feature-card__media img,
  body#index #main > .yh-top-feature-links .yh-top-feature-card__more::after {
    transition: none;
  }
}

/* FLAT HOUSEの補助ラベルを残し、日本語の「平屋」だけを非表示 */
body#index #main > #hiraya_top .hiraya_head > .ttl_en {
  font-size: 0 !important;
  line-height: 0 !important;
}


/* 追加2導線: 説明文をタイトル直下へ移動 */
body#index #main > .yh-top-feature-links .yh-top-feature-card__heading .yh-top-feature-card__lead {
  margin-top: 12px;
  text-align: left;
}

body#index #main > .yh-top-feature-links .yh-top-feature-card__body {
  justify-content: flex-end;
  gap: 0;
}

@media (max-width: 767px) {
  body#index #main > .yh-top-feature-links .yh-top-feature-card__heading .yh-top-feature-card__lead {
    margin-top: 10px;
  }

  body#index #main > .yh-top-feature-links .yh-top-feature-card__more {
    margin-top: 0;
  }
}

/* =========================================================
   FLAT HOUSE：2段の連続マーキー
   上段は左から右、下段は右から左へ流す。
   横方向と段間の余白は同じ値に統一する。
   ========================================================= */
body#index #main > #hiraya_top {
  --yh-hiraya-marquee-gap: 2px;
}

body#index #main > #hiraya_top .hiraya_row {
  margin-bottom: var(--yh-hiraya-marquee-gap) !important;
}

body#index #main > #hiraya_top .hiraya_row:last-child {
  margin-bottom: 0 !important;
}

body#index #main > #hiraya_top .yh-hiraya-marquee {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  direction: ltr;
}

body#index #main > #hiraya_top .yh-hiraya-marquee__rail {
  display: flex;
  width: max-content;
  max-width: none;
  animation-duration: 56s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

body#index #main > #hiraya_top .yh-hiraya-marquee[data-yh-direction="right"] .yh-hiraya-marquee__rail {
  animation-name: yh-hiraya-marquee-right;
}

body#index #main > #hiraya_top .yh-hiraya-marquee[data-yh-direction="left"] .yh-hiraya-marquee__rail {
  animation-name: yh-hiraya-marquee-left;
}

body#index #main > #hiraya_top .yh-hiraya-marquee__group {
  display: flex;
  flex: 0 0 auto;
  gap: var(--yh-hiraya-marquee-gap);
  padding-right: var(--yh-hiraya-marquee-gap);
}

body#index #main > #hiraya_top .yh-hiraya-marquee__item {
  flex: 0 0 clamp(440px, 44vw, 502px);
  width: clamp(440px, 44vw, 502px);
  min-width: 0;
  margin: 0;
  padding: 0;
}

body#index #main > #hiraya_top .yh-hiraya-marquee__item .hiraya_slide_inner {
  display: block;
  width: 100%;
  max-width: 100%;
}

body#index #main > #hiraya_top .yh-hiraya-marquee__item img {
  max-width: 100%;
}

body#index #main > #hiraya_top .yh-hiraya-marquee:hover .yh-hiraya-marquee__rail,
body#index #main > #hiraya_top .yh-hiraya-marquee:focus-within .yh-hiraya-marquee__rail {
  animation-play-state: paused;
}

@keyframes yh-hiraya-marquee-left {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes yh-hiraya-marquee-right {
  from {
    transform: translate3d(-50%, 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 1000px) {
  body#index #main > #hiraya_top .yh-hiraya-marquee__item {
    flex-basis: 60vw;
    width: 60vw;
  }
}

@media (max-width: 767px) {
  body#index #main > #hiraya_top .yh-hiraya-marquee__item {
    flex-basis: 74vw;
    width: 74vw;
  }
}

@media (max-width: 480px) {
  body#index #main > #hiraya_top .yh-hiraya-marquee__item {
    flex-basis: 76vw;
    width: 76vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  body#index #main > #hiraya_top .yh-hiraya-marquee {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body#index #main > #hiraya_top .yh-hiraya-marquee__rail {
    animation: none;
    transform: none;
    will-change: auto;
  }
}

/* 2026-08-21: slow hero title and delay EVENT (test page only) */
body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test {
  height: 200vh !important;
  min-height: 200vh !important;
  height: 200svh !important;
  min-height: 200svh !important;
}

body#index.yh-video-hero-test-page #main > #event {
  margin-top: -15vh !important;
  margin-top: -15svh !important;
}

/* 2026-08-21: production-matched video/EVENT crossfade (test page only) */
body#index.yh-video-hero-test-page.yh-video-event-transition-ready #main > #event {
  margin-top: -15vh !important;
  margin-top: -15svh !important;
  background: rgba(242, 239, 236, var(--yh-event-background-opacity, 0)) !important;
  position: relative !important;
  z-index: 5 !important;
}

body#index.yh-video-hero-test-page.yh-video-event-transition-ready #main > #show.yh-video-hero-test .yh-video-hero-test__media {
  will-change: opacity;
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100svh !important;
  transform: none !important;
  opacity: var(--yh-video-stage-opacity, 1) !important;
  visibility: visible !important;
  pointer-events: none !important;
  z-index: 0 !important;
  transition: opacity 0.12s linear !important;
}

body#index.yh-video-hero-test-page.yh-video-event-transition-ready #main > #show.yh-video-hero-test .yh-video-hero-test__video {
  opacity: 1 !important;
}

body#index.yh-video-hero-test-page.yh-video-event-transition-ready #main > #show.yh-video-hero-test.yh-video-stage-ended .yh-video-hero-test__media {
  opacity: 0 !important;
  visibility: hidden !important;
}

body#index.yh-video-hero-test-page.yh-video-event-transition-ready #main > #show.yh-video-hero-test > h3 {
  opacity: var(--yh-test-title-opacity, 0) !important;
  transform: translate3d(0, -50%, 0)
    scale(calc(0.985 + (var(--yh-test-title-opacity, 0) * 0.015))) !important;
  transition: opacity 0.18s linear, transform 0.18s linear !important;
}


/* 2026-08-22: FLAT HOUSE equal-speed interactive marquee (test page only) */
body#index #main > #hiraya_top .yh-hiraya-marquee--interactive {
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  overscroll-behavior-x: contain;
  user-select: none;
  -webkit-user-select: none;
}

body#index #main > #hiraya_top .yh-hiraya-marquee--interactive.is-dragging {
  cursor: grabbing;
}

body#index #main > #hiraya_top .yh-hiraya-marquee--interactive .yh-hiraya-marquee__rail {
  animation: none !important;
  transition: none !important;
  will-change: transform;
}

body#index #main > #hiraya_top .yh-hiraya-marquee--interactive img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}


/* 2026-08-23: EVENT初期描画のちらつき防止 */
html.yh-event-preparing body#index #main > #event {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* YH mobile vertical-scroll performance */
@media (max-width: 767px) {
  body#index.yh-video-event-transition-ready #main > #show.yh-video-hero-test .yh-video-hero-test__media,
  body#index.yh-video-hero-test-page.yh-video-event-transition-ready #main > #show.yh-video-hero-test .yh-video-hero-test__media {
    transition: none !important;
  }
}

/* YH deep mobile scroll performance */
body#index #main > #hiraya_top .yh-hiraya-marquee--interactive .yh-hiraya-marquee__rail {
  will-change: auto;
}
body#index #main > #hiraya_top .yh-hiraya-marquee--interactive.is-in-view .yh-hiraya-marquee__rail {
  will-change: transform;
}
body#index #main .yh-works-flow:not(.is-in-view) .yh-works-flow__track {
  will-change: auto !important;
}
body#index.yh-video-event-transition-ready #main > #show.yh-video-hero-test.yh-video-stage-ended .yh-video-hero-test__media,
body#index.yh-video-hero-test-page.yh-video-event-transition-ready #main > #show.yh-video-hero-test.yh-video-stage-ended .yh-video-hero-test__media {
  display: none !important;
  will-change: auto !important;
}

/* YH initial loading scroll lock */
html.yh-video-scroll-locked,
body.yh-video-scroll-locked {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
}
body.yh-video-scroll-locked {
  position: fixed !important;
  inset: 0 !important;
  touch-action: none !important;
}
body.yh-video-scroll-locked #show.yh-video-hero-test .yh-video-hero-test__loading {
  pointer-events: auto !important;
}

/* ==================================================================
   2026-08-27 テストページ限定：スマートフォン用4導線
   4導線の再設計は767px以下だけに限定し、PC表示は変更しません。
   SCROLLのPC表示は現状を維持します。
   ================================================================== */
body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-video-hero-test__scroll-guide {
  position: fixed !important;
  right: 0 !important;
  bottom: clamp(52px, 8vh, 78px) !important;
  left: 0 !important;
  z-index: 3;
  gap: 8px;
}

body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-video-hero-test__scroll-guide > i {
  display: none !important;
}

body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-video-hero-test__scroll-guide::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-top: 0;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  border-top: 6px solid currentColor;
}

@media (min-width: 768px) {
  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav {
    display: none !important;
  }
}

@media (max-width: 767px) {
  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test {
    height: 100vh !important;
    min-height: 100vh !important;
    height: 100svh !important;
    min-height: 100svh !important;
  }

  body#index.yh-video-hero-test-page #main > #event,
  body#index.yh-video-hero-test-page.yh-video-event-transition-ready #main > #event {
    margin-top: 0 !important;
    background: #f2efec !important;
  }

  body#index.yh-video-hero-test-page.yh-video-event-transition-ready #main > #show.yh-video-hero-test .yh-video-hero-test__media {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 1 !important;
    transition: none !important;
  }

  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test::after {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.18) 38%,
      rgba(0, 0, 0, 0.28) 58%,
      rgba(0, 0, 0, 0.44) 100%
    );
  }

  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test > h3 {
    position: absolute !important;
    top: 24% !important;
    left: 20px !important;
    right: 20px !important;
    width: auto !important;
    padding: 0 !important;
    font-size: clamp(19px, 5.35vw, 22px) !important;
    line-height: 1.70 !important;
    letter-spacing: 0.12em !important;
    text-align: center !important;
  }

  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-video-hero-test__scroll-guide {
    position: absolute !important;
    bottom: 22px !important;
    gap: 5px;
    color: rgba(208, 178, 130, 0.66);
    font-size: 9px;
    letter-spacing: 0.26em;
  }

  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav {
    --yh-mobile-priority-opacity: 0;
    position: absolute;
    z-index: 3;
    top: auto;
    right: 0;
    bottom: 82px;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 340px;
    max-width: calc(100% - 32px);
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    opacity: var(--yh-mobile-priority-opacity);
    pointer-events: none;
    transform: none;
    transition: opacity 420ms ease;
  }

  body#index.on.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav__link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 50px;
    min-height: 50px;
    padding: 8px 3px 6px;
    box-sizing: border-box;
    color: #fff;
    background: rgba(8, 10, 11, 0.52) !important;
    border: 1px solid rgba(216, 188, 131, 0.30) !important;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    font-size: clamp(10.2px, 2.75vw, 11.5px);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.035em;
    text-decoration: none;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.58);
    -webkit-tap-highlight-color: transparent;
    transition: color 320ms ease, background-color 320ms ease, border-color 320ms ease, transform 320ms ease, opacity 320ms ease;
  }

  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav__link::before {
    content: none;
    display: none;
  }

  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav__link::after {
    content: "↗";
    position: static;
    display: block;
    flex: 0 0 auto;
    margin-left: 6px;
    color: rgba(239, 217, 168, 0.78);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 9px;
    font-weight: 400;
    line-height: 1;
    opacity: 0.86;
    transform: translateY(-1px);
    transition: color 260ms ease, opacity 260ms ease, transform 260ms ease;
  }

  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav__number {
    position: static;
    display: none;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    margin-right: 6px;
    color: #d8bc83;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    opacity: 0.76;
    transform: translateY(-2px);
  }

  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav__link:first-child .yh-mobile-priority-nav__number {
    color: #efd9a8;
    opacity: 1;
  }

  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav__link:first-child .yh-mobile-priority-nav__text::after {
    background: linear-gradient(
      90deg,
      rgba(226, 196, 137, 0.78) 0%,
      rgba(239, 217, 168, 0.88) 58%,
      rgba(239, 217, 168, 0.34) 100%
    );
  }

  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav__link:nth-child(4) {
    font-size: clamp(9.8px, 2.55vw, 10.3px);
    letter-spacing: 0.01em;
  }

  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav__link--wide {
    grid-column: 1 / -1;
    width: 100%;
    padding-right: 14px;
    padding-left: 14px;
    background: rgba(8, 10, 11, 0.60) !important;
    border-color: rgba(216, 188, 131, 0.42) !important;
    font-size: clamp(10.5px, 2.9vw, 11.8px);
    letter-spacing: 0.055em;
  }

  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav__text {
    position: relative;
    display: inline-block;
    width: auto;
    max-width: 100%;
    min-width: 0;
    padding-bottom: 5px;
    text-align: center;
  }

  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav__text::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(
      90deg,
      rgba(202, 169, 105, 0.55) 0%,
      rgba(216, 188, 131, 0.78) 68%,
      rgba(216, 188, 131, 0.36) 100%
    );
    opacity: 0.92;
    transform: scaleX(1);
    transform-origin: center;
    transition: opacity 320ms ease, transform 320ms ease;
  }

  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav__link:active {
    color: #f0dfbd;
    background: rgba(8, 10, 11, 0.76) !important;
    border-color: rgba(239, 217, 168, 0.74) !important;
    transform: translateY(-1px);
  }

  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav__link:focus-visible {
    color: #f0dfbd;
    background: rgba(8, 10, 11, 0.72) !important;
    border-color: rgba(239, 217, 168, 0.74) !important;
    outline: 1px solid rgba(216, 188, 131, 0.84);
    outline-offset: 3px;
  }

  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav__link:active .yh-mobile-priority-nav__text::after,
  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav__link:focus-visible .yh-mobile-priority-nav__text::after {
    opacity: 1;
    transform: scaleX(1.05);
  }

  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav__link:active::after,
  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav__link:focus-visible::after {
    color: #f0dfbd;
    opacity: 1;
    transform: translate(1px, -2px);
  }
}

@media (max-width: 767px) and (hover: hover) and (pointer: fine) {
  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav__link:hover {
    color: #f0dfbd;
    background: rgba(8, 10, 11, 0.70) !important;
    border-color: rgba(239, 217, 168, 0.66) !important;
  }

  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav__link:hover .yh-mobile-priority-nav__text::after {
    opacity: 1;
    transform: scaleX(1.05);
  }

  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav__link:hover::after {
    color: #f0dfbd;
    opacity: 1;
    transform: translate(1px, -2px);
  }
}

@media (max-width: 359px) {
  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test > h3 {
    top: 23% !important;
    left: 16px !important;
    right: 16px !important;
    font-size: 18px !important;
  }

  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav {
    top: auto;
    right: 0;
    bottom: 76px;
    left: 0;
    width: 304px;
    max-width: calc(100% - 24px);
    gap: 8px;
    transform: none;
  }

  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav__link {
    height: 48px;
    min-height: 48px;
    padding-right: 3px;
    padding-left: 3px;
    font-size: 10px;
  }
}

@media (max-width: 767px) and (max-height: 700px) {
  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav {
    top: auto;
    bottom: 74px;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav,
  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav__link,
  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav__link::before,
  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav__link::after,
  body#index.yh-video-hero-test-page #main > #show.yh-video-hero-test .yh-mobile-priority-nav__text::after {
    transition: none;
  }
}
