/*
 * YOUSEI HOME トップページ デザイン整理 本番版 v5
 * 対象: /
 * 目的: 既存機能と導線を維持したまま、余白・見出し・本文・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;
}

/* トップページの資料請求バナーとNEWSを非表示 */
body#index #main > #contact_top,
body#index #main > #news {
  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 {
  margin-top: -75vh !important;
  margin-top: -75svh !important;
  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: 38s;
  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;
  }
}
