@charset 'UTF-8';

/**
 * Top Page Styles - TOPページ専用スタイル
 */

/* ========================================
 * トップページ専用: body padding-topを無効化
 * ヘッダーは固定位置のため、KVセクションが画面最上部から始まるようにする
 * ======================================== */
body.page-template-page-top {
  padding-top: 0 !important;
}

/* ========================================
 * ローディング画面 (TonTon風)
 * ======================================== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;  /* 最上層 */
  background: #fff;  /* ロゴ表示中は白背景で下のコンテンツを隠す */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
  pointer-events: none;  /* クリックイベントを通過させる */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.loader .inner {
  text-align: center;
  pointer-events: auto;  /* ローダー内のコンテンツは有効 */
}

.loader .img {
  width: 20rem;
  margin: 0 auto;
  pointer-events: auto;
}

.loader .img img {
  width: 100%;
  height: auto;
}

@media screen and (max-width: 900px) {
  .loader .img {
    width: 15rem;
  }
}

/* ========================================
 * セクション1: キービジュアル
 * ======================================== */
.section.kv {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  margin-top: 0;
}

.kv .section_bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.kv .section_bg .bg_img {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.15) translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.kv .section_bg .cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
}

.kv .section_bg .cover.c1 {
  background: #fff;
}

.kv .section_bg .cover.c2 {
  background: #b70606;
}

.kv .section_wrap {
  position: relative;
  z-index: 60;  /* 背景より上 */
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: flex-end;  /* 下揃え */
}

.kv .section_inner {
  text-align: left;  /* 左揃え */
  color: var(--color-text-inverse);
  padding-bottom: 8rem;  /* 下からの余白 */
}

/* GSAP/JSフォールバック: 4秒経ってもis-animeが付かない場合にコンテンツを表示 */
@keyframes gsap-fallback-hide {
  to { opacity: 0; visibility: hidden; }
}
@keyframes gsap-fallback-show {
  to { opacity: 1; }
}
@keyframes gsap-fallback-scale {
  to { transform: scale(1); }
}

body:not(.is-anime) .kv .section_bg .cover {
  animation: gsap-fallback-hide 0.5s 4s forwards;
}
body:not(.is-anime) .kv .catch,
body:not(.is-anime) .kv .company_name {
  animation: gsap-fallback-show 0.5s 4s forwards;
}
body:not(.is-anime) .kv .section_bg .bg_img {
  animation: gsap-fallback-scale 0.5s 4s forwards;
}
body:not(.is-anime) .loader {
  animation: gsap-fallback-hide 0.3s 3.5s forwards;
}

/* YOLOフォールバック */
body:not(.is-anime) .yolo .catch .main .char,
body:not(.is-anime) .yolo .statement.yolo-anim,
body:not(.is-anime) .yolo .desc.yolo-anim,
body:not(.is-anime) .yolo .more.yolo-anim,
body:not(.is-anime) .yolo .service_icons.yolo-anim .service_icon,
body:not(.is-anime) .yolo .company_logo.yolo-anim,
body:not(.is-anime) .yolo .target_icons.yolo-anim .target_icon {
  animation: gsap-fallback-show 0.5s 4.5s forwards;
}
body:not(.is-anime) .yolo .section_bg .bg_img.yolo-anim {
  animation: gsap-fallback-show 0.5s 4.5s forwards;
}
body:not(.is-anime) .yolo .section_bg .cover {
  animation: gsap-fallback-hide 0.5s 4s forwards;
}


.kv .catch {
  font-size: 8rem;
  font-weight: var(--font-weight-extra-bold);
  line-height: var(--line-height-tight);
  letter-spacing: 0.15em;
  margin-bottom: var(--spacing-sm);
  position: relative;
  color: #b70606;
  opacity: 0;  /* 初期状態で非表示 */
  text-shadow:
    -2px -2px 0 #fff, 2px -2px 0 #fff,
    -2px 2px 0 #fff, 2px 2px 0 #fff,
    0 -2px 0 #fff, 0 2px 0 #fff,
    -2px 0 0 #fff, 2px 0 0 #fff,
    0 4px 8px rgba(0, 0, 0, 0.3);
}

.kv .company_name {
  font-size: 3.5rem;
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-normal);
  letter-spacing: 0.05em;
  color: #b70606;
  opacity: 0;  /* 初期状態で非表示 */
  text-shadow:
    -1px -1px 0 #fff, 1px -1px 0 #fff,
    -1px 1px 0 #fff, 1px 1px 0 #fff,
    0 -1px 0 #fff, 0 1px 0 #fff,
    -1px 0 0 #fff, 1px 0 0 #fff,
    0 3px 6px rgba(0, 0, 0, 0.25);
}

/* ========================================
 * セクション2: YOLO (TonTon風レイアウト)
 * ======================================== */
.section.yolo {
  position: relative;
  min-height: 80vh;
  padding: var(--spacing-2xl) 0;
  background: #b70606;
  margin-top: 0;
  overflow: hidden;
}

.yolo .section_bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.yolo .section_bg .bg_img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.yolo .section_wrap {
  position: relative;
  z-index: 1;
  height: 100%;
}

.yolo .section_content {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 70vh;
}

/* 左側: テキストコンテンツ */
.yolo .section_left {
  flex: 0 0 50%;
  min-width: 0;
}

.yolo .catch .main {
  font-family: var(--font-en);
  font-size: clamp(5rem, 10vw, 12rem);  /* 画面幅に応じて自動縮小 */
  font-weight: var(--font-weight-bold);
  line-height: 1;
  letter-spacing: 0.1em;
  display: block;
  color: #fff;
  white-space: nowrap;
}

.yolo .statement {
  font-size: clamp(1.5rem, 2.5vw, 3rem);  /* 画面幅に応じて自動縮小 */
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-relaxed);
  margin-top: var(--spacing-lg);
  color: #fff;
}

.yolo .desc {
  font-size: var(--font-size-base);
  line-height: 2;
  margin-top: var(--spacing-xl);
  color: #fff;
}

/* MORE ボタン (平行四辺形) */
.yolo .more {
  margin-top: var(--spacing-xl);
}

.yolo .more a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 200px;
  padding: 1rem 2.5rem;
  color: #fff;
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  text-decoration: none;
  transform: skewX(-15deg);
  background: #000;
  overflow: hidden;
}

.yolo .more a > *:not(.hover-bg) {
  transform: skewX(15deg);
  position: relative;
  z-index: 1;
}

.yolo .more a::after {
  content: '>';
  margin-left: 2rem;
  font-size: 1.2rem;
  transform: skewX(15deg);
}

/* ホバー用の白背景レイヤー */
.yolo .more a span.hover-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.yolo .more a:hover {
  color: #000;
  opacity: 1;
}

.yolo .more a:hover span.hover-bg {
  transform: scaleX(1);
  transform-origin: left;
}

/* ホバー解除時: 右から縮小 */
.yolo .more a:not(:hover) span.hover-bg {
  transform: scaleX(0);
  transform-origin: right;
}

/* 右側: サービス・ロゴ・ターゲット */
.yolo .section_right {
  flex: 0 0 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
}

/* 上段: サービスアイコン（建物） */
.yolo .service_icons {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.yolo .service_icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.yolo .service_icon .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(56px, 6vw, 80px);
  color: #fff;
}

.yolo .service_icon .label {
  margin-top: var(--spacing-md);
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  font-weight: var(--font-weight-medium);
  color: #fff;
  line-height: 1.4;
}

/* 中央: 企業ロゴ */
.yolo .company_logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg) 0;
  width: 100%;
}

.yolo .company_logo img {
  width: clamp(220px, 30vw, 380px);
  height: auto;
  object-fit: contain;
}

/* 下段: ターゲット顧客アイコン */
.yolo .target_icons {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.yolo .target_icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.yolo .target_icon .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(44px, 5vw, 64px);
  color: #fff;
}

.yolo .target_icon .label {
  margin-top: var(--spacing-sm);
  font-size: clamp(0.8rem, 1vw, 1rem);
  color: #fff;
}

/* ========================================
 * YOLO セクション アニメーション初期状態
 * ======================================== */

/* 背景カバー（赤→白→赤の遷移用） */
.yolo .section_bg .cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.yolo .section_bg .cover.yolo-c1 {
  background: #b70606;
  z-index: 12;
}

.yolo .section_bg .cover.yolo-c2 {
  background: #fff;
  z-index: 11;
}

/* YOLO テキスト - フェードインのみ（移動なし） */
.yolo .catch .main .char {
  display: inline-block;
  opacity: 0;
}

/* statement - 中央から左へ挿入 */
.yolo .statement.yolo-anim {
  opacity: 0;
  transform: translateX(50%);
}

/* desc - 中央から左へ挿入 */
.yolo .desc.yolo-anim {
  opacity: 0;
  transform: translateX(50%);
}

/* MORE ボタン - 中央から左へ挿入 */
.yolo .more.yolo-anim {
  opacity: 0;
  transform: translateX(50%);
}

/* 背景画像 - 右からフェードイン */
.yolo .section_bg .bg_img.yolo-anim {
  opacity: 0;
  transform: translateX(100%);
}

/* 右側セクション全体 */
.yolo .section_right.yolo-anim {
  opacity: 1;
}

/* 上段アイコン - 上からフェードイン（3つ同時） */
.yolo .service_icons.yolo-anim .service_icon {
  opacity: 0;
  transform: translateY(-30px);
}

/* 企業ロゴ - 中央から拡大表示 */
.yolo .company_logo.yolo-anim {
  opacity: 0;
  transform: scale(0.7);
}

/* 下段アイコン - 下からフェードイン（3つ同時） */
.yolo .target_icons.yolo-anim .target_icon {
  opacity: 0;
  transform: translateY(30px);
}

/* レスポンシブ - スマートフォン */
@media screen and (max-width: 900px) {
  .yolo .section_content {
    flex-direction: column;
    text-align: center;
    min-height: auto;
    position: relative;
    padding-bottom: 5rem;
  }

  .yolo .section_left {
    flex: none;
    width: 100%;
    text-align: center;
    margin-bottom: var(--spacing-xl);
  }

  .yolo .section_right {
    flex: none;
    width: 100%;
    margin-bottom: var(--spacing-xl);
  }

  .yolo .desc {
    line-height: 1.6;
  }

  /* MOREボタンをセクション最下部に配置 */
  .yolo .more {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin-top: 0;
    display: flex;
    justify-content: center;
  }

  /* MOREボタンの見切れ防止: skewを緩和 */
  .yolo .more a {
    transform: skewX(-10deg);
    min-width: 180px;
    padding: 0.8rem 2rem;
  }

  .yolo .more a > *:not(.hover-bg) {
    transform: skewX(10deg);
  }

  .yolo .more a::after {
    transform: skewX(10deg);
    margin-left: 1.5rem;
  }
}

/* ========================================
 * セクション3: 事業内容
 * ======================================== */
.business {
  position: relative;
  margin-top: 0;
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
  background: var(--color-bg-sub);
}

.business .section_bg .bg_img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.05;
}

.business .section_bg .img_cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.9);
}

.business .section_bg .cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.business .section_wrap {
  position: relative;
  z-index: 1;
}

.business .section_inner {
  text-align: center;
}

.business .statement {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-relaxed);
  margin-top: var(--spacing-lg);
}

.business .figure {
  margin-top: var(--spacing-xl);
}

.business .figure .list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-md);
  max-width: var(--content-width);
  margin: 0 auto;
}

.business .figure .list li {
  text-align: left;
  width: calc((100% - var(--spacing-md) * 2) / 3);
}

/* 事業カード */
.business .figure .list li a {
  display: block;
  padding: 2rem;
  border-radius: var(--border-radius-md);
  background: var(--color-bg-main);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-base);
  height: 100%;
}

.business .figure .list li a:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  opacity: 1;
}

/* アイコン: 角丸スクエア背景 + 白アイコン */
.business .figure .list li .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.6rem;
  color: var(--color-text-inverse);
  background: var(--color-accent);
  border-radius: 0.75rem;
}

.business .figure .list li .ttl {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-normal);
  color: var(--color-text-main);
  margin-top: var(--spacing-sm);
}

.business .figure .list li .desc {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  color: var(--color-disabled);
  margin-top: 0.5rem;
}

/* ========================================
 * セクション4: 造作買取CTA
 * ======================================== */
.furniture_cta {
  margin-top: 0;
  background: var(--color-bg-main);
  padding: var(--spacing-2xl) 0;
}

.furniture_cta .section_inner {
  text-align: center;
}

.furniture_cta .statement {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-normal);
  margin-top: var(--spacing-lg);
  color: var(--color-accent);
}

.furniture_cta .desc {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  margin-top: var(--spacing-lg);
  max-width: 45rem;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
 * Responsive - その他セクション (900px)
 * ======================================== */
@media screen and (max-width: 900px) {
  .kv .section_inner {
    padding-bottom: 4rem;
  }

  .kv .catch {
    font-size: 4rem;
    letter-spacing: 0.1em;
  }

  .kv .catch:before {
    width: 3px;
  }

  .kv .company_name {
    font-size: var(--font-size-lg);
  }

  .business .figure .list {
    gap: var(--spacing-sm);
  }

  .business .figure .list li {
    width: calc((100% - var(--spacing-sm)) / 2);
  }

  .business .figure .list li a {
    padding: 1.5rem;
  }

  .business .figure .list li .icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.3rem;
    border-radius: 0.6rem;
  }

  .business .figure .list li .ttl {
    font-size: var(--font-size-sm);
  }

  .business .figure .list li .desc {
    font-size: var(--font-size-xs);
  }

  .furniture_cta .statement {
    font-size: var(--font-size-lg);
  }

  .furniture_cta .desc {
    font-size: var(--font-size-sm);
  }
}

/* ========================================
 * Responsive - 小型スマートフォン (420px)
 * ======================================== */
@media screen and (max-width: 420px) {
  .loader .img {
    width: 12rem;
  }

  .kv .section_inner {
    padding-bottom: 3rem;
  }

  .kv .catch {
    font-size: 2.5rem;
  }

  .kv .company_name {
    font-size: var(--font-size-md);
  }

  .business .figure .list li {
    width: 100%;
  }
}
