/* =========================================================
   common.css  — 全ページ共通スタイル
   ========================================================= */

/* ------------------------------
   基本設定
------------------------------ */
:root {
  --color-text: #222;
  --color-accent: #ab6b00;
  --color-white: #fff;
  --ease-standard: cubic-bezier(.25, .8, .25, 1);
  --lux-ease: cubic-bezier(.16, 1, .3, 1);
  --lux-duration: 0.9s;
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
  height: auto;
  overflow: visible;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.6rem;
  color: var(--color-text);
  line-height: 1.7;
  background-image: url("/assets/images/bg_texture.png");
  background-repeat: repeat;
  background-size: auto;
  height: auto;
  overflow: visible;
}

body.is-intro-active {
  overflow: hidden;
}

.has-seen-intro .intro {
  display: none;
}

/* ------------------------------
   Intro Loader
------------------------------ */
.intro {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.logo {
  width: 30rem;
}

.line {
  fill: none;
  stroke: #e59a2e;
  stroke-miterlimit: 10;
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  animation: drawLine 3s ease forwards;
}

.line-back {
  stroke-width: 0.29;
  animation-delay: 0s;
}

.line-middle {
  stroke-width: 0.58;
  animation-delay: 0.5s;
}

.frame-fill {
  fill: #fff;
  stroke: #e59a2e;
  stroke-width: 1.16;
}

.fill-group polygon {
  fill: #e59a2e;
}

.mask-rect {
  transform-origin: right;
  transform: scaleX(0);
  animation: wipe 1.6s ease forwards;
  animation-delay: 1.4s;
}

.logo-text {
  margin-top: 2.8rem;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: #333;
  opacity: 0;
  animation: textFade 1s ease forwards;
  animation-delay: 2.2s;
}

.intro_progress {
  width: min(42rem, 58vw);
  height: 0.2rem;
  margin-top: 3.2rem;
  background: rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.intro_progress_bar {
  display: block;
  width: 100%;
  height: 100%;
  background: #e59a2e;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.24s linear;
}

.intro.is-hidden {
  animation: introOut 1.2s ease forwards;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes wipe {
  to {
    transform: scaleX(1);
  }
}

@keyframes textFade {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}


/* ------------------------------
   テキスト共通
------------------------------ */
.section_tit_area {
  display: flex;
  align-items: center;
  width: 100%;
}

.section_tit {
  font-size: clamp(2.5rem, 2.78vw, 4rem);
  font-weight: 700;
  line-height: 1;
  opacity: .8;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.section_tit_line {
  margin-left: 3rem;
  height: .2rem;
  background-color: var(--color-accent);
  opacity: 0.8;
  flex-grow: 1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(.25, .46, .45, .94);
}

/* アニメーション発火 */
.section_tit_area.is_active .section_tit_line {
  transform: scaleX(1);
}

.section_sub_tit {
  font-size: clamp(1.2rem, 1.25vw, 1.8rem);
  font-weight: 900;
  color: var(--color-accent);
  margin-bottom: 1.67%;
}

.main_tit {
  font-size: clamp(2rem, 2.36vw, 3.4rem);
  font-weight: 700;
}

.main_txt {
  font-size: clamp(1rem, 1.11vw, 1.6rem);
  margin-top: 3.89%;
  line-height: 1.9;
  letter-spacing: .08em;
}

/* ------------------------------
   Header
------------------------------ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 10.5rem;
  display: flex;
  z-index: 1000;
}

.header_inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9rem;
}

.header_logo a {
  display: block;
  width: 16.5rem;
}

.header_nav ul {
  display: flex;
  gap: 4rem;
}

.header_nav a {
  font-size: 1.5rem;
  color: var(--color-white);
  filter: drop-shadow(.3rem .3rem .3rem rgba(0, 0, 0, 0.3));
}

@media (max-width: 71.875rem) {
  .nav_sp {
    display: none;
  }
}

/* ハンバーガーボタン */
.header_toggle {
  position: relative;
  width: 4.7rem;
  height: 3rem;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* 線3本の共通スタイル */
.header_toggle span {
  position: absolute;
  display: block;
  width: 100%;
  height: .2rem;
  background-color: var(--color-white);
  transition:
    transform 0.25s ease,
    opacity 0.2s ease,
    background-color 0.2s ease;
}

/* 上・真ん中・下の位置 */
.header_toggle span:nth-child(1) {
  transform: translateY(-1rem);
}

.header_toggle span:nth-child(2) {
  transform: translateY(0);
}

.header_toggle span:nth-child(3) {
  transform: translateY(1rem);
}

/* 開いたときの X 形状 */
.header_toggle.is_open span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.header_toggle.is_open span:nth-child(2) {
  opacity: 0;
}

.header_toggle.is_open span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

/* =======================
   ハンバーガー　ナビ
   ======================= */
.global_nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 30%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  padding: 8rem 5rem;
  transition: right 0.3s ease;
  z-index: 999;
}

.global_nav.is_open {
  right: 0;
}

.global_nav ul {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.global_nav a {
  color: var(--color-white);
  font-size: 1.6rem;
}

/* ------------------------------
   Footer
------------------------------ */
.footer {
  position: relative;
  height: 60vh;
  overflow: hidden;
}

.footer_logo {
  max-width: 17.36vw;
}

/* 上部 */
.footer-inner {
  display: flex;
  justify-content: space-between;
  padding: 4.17vw 4.17vw 0 4.17vw;
  position: relative;
  z-index: 2;
}

.footer-info {
  font-size: 1.11vw;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1.74vw;
}

.footer-nav {
  display: flex;
  gap: 5rem;
  font-weight: 700;
}

/* marquee */
.footer-marquee {
  position: absolute;
  bottom: -1.2rem;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 50s linear infinite;
}

.marquee-track span {
  font-size: 13.89vw;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
  margin-right: 4rem;
  color: rgba(0, 0, 0, 0.2);
  line-height: 1;
}

/* 左からスタートして左へ流れる */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-33.333%);
  }
}

/* 共通スタイル */
.bg_white {
  padding: 8rem 0 0 0;
  background: rgba(235, 235, 235, 0.35);
  filter: drop-shadow(0 -.6rem .6rem rgba(0, 0, 0, 0.20));
  width: 100%;
}

.inner_wrap {
  max-width: 144rem;
  margin: 14rem auto;
  padding: 0 min(8rem, 5.56%);
}

.section_area {
  max-width: 108rem;
  margin: 0 auto;
}

.section_area+.section_area {
  margin-top: 14rem;
}

/* ボタン */
.section_btn {
  position: relative;
  display: flex;
  font-weight: 700;
  font-size: clamp(1.4rem, 1.39vw, 2rem);
  gap: 0.5rem;
  align-items: center;
  align-self: flex-end;
  color: #000;
  margin-top: 3.89%;
}

.section_btn::after {
  position: absolute;
  content: "";
  width: 0;
  left: 0;
  bottom: -.7rem;
  background: var(--color-accent);
  height: .2rem;
  transition: 0.3s ease-out;
}

.section_btn p {
  position: relative;
}

.section_btn p::before {
  position: absolute;
  content: attr(data-label);
  width: 0%;
  inset: 0;
  color: var(--color-accent);
  overflow: hidden;
  transition: 0.3s ease-out;
}

.section_btn:hover::after {
  width: 100%;
}

.section_btn:hover p::before {
  width: 100%;
}

.section_btn:hover svg {
  transform: translateX(.4rem);
  color: var(--color-accent);
}

.section_btn svg {
  color: currentColor;
  transition: 0.2s;
  position: relative;
  width: 2.5rem;
  transition-delay: 0.2s;
}

/* テキストアニメーション */
/* テキスト全体 */
.mask-text {
  overflow: hidden;
}

/* 1文字のマスク枠 */
.mask-text .char {
  display: inline-block;
  overflow: hidden;
  line-height: 1.2;
}

/* 実際の文字 */
.mask-text .char span {
  display: inline-block;
  transform: translateY(100%);
}

/* 発火後 */
.mask-text.is-active .char span {
  animation: maskUp 0.45s cubic-bezier(.25, .8, .25, 1) forwards;
}

/* マスクアニメ */
@keyframes maskUp {
  to {
    transform: translateY(0);
  }
}

.clip-image {
  overflow: hidden;
}

.clip-image img {
  display: block;
  width: 100%;
  height: auto;

  /* 最初は右側だけ見えない */
  clip-path: inset(0 100% 0 0);
}

/* 発火後：右→左に表示 */
.clip-image.is-active img {
  animation: clipWipe 0.9s cubic-bezier(.25, .8, .25, 1) forwards;
}

/* アニメーション */
@keyframes clipWipe {
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* ------------------------------
   Luxury Motion
------------------------------ */
.js-lux-reveal {
  opacity: 0;
  transform: translate3d(var(--lux-x, 0), var(--lux-y, 2.8rem), 0);
  transition:
    opacity var(--lux-duration) var(--lux-ease),
    transform var(--lux-duration) var(--lux-ease);
  transition-delay: var(--lux-delay, 0s);
  will-change: transform, opacity;
}

.js-lux-reveal[data-lux-direction="up"] {
  --lux-y: 3.2rem;
}

.js-lux-reveal[data-lux-direction="left"] {
  --lux-x: -2.4rem;
  --lux-y: 1.2rem;
}

.js-lux-reveal[data-lux-direction="right"] {
  --lux-x: 2.4rem;
  --lux-y: 1.2rem;
}

.js-lux-reveal.is-lux-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.js-lux-card,
.js-lux-shine {
  position: relative;
}

.js-lux-media img,
.js-lux-media video {
  transition:
    transform 1.1s var(--lux-ease),
    opacity 1.1s var(--lux-ease);
  transform: translateY(1.4rem) scale(1.02);
  opacity: 0.92;
}

.js-lux-media.is-lux-visible img,
.js-lux-media.is-lux-visible video {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  /* アニメーション */
  transition: transform 0.4s var(--ease-standard);
}

/* 下スクロール時：隠す */
.site-header.is-hidden {
  transform: translateY(-100%);
}

/* 下層ページmv */
.internal_mv {
  max-width: 144rem;
  width: 100%;
}

.internal_mv_tit_area {
  padding: 12.85% 0 7.41% 0;
  width: 75%;
  margin: 0 auto;
}

.internal_mv_tit {
  font-size: clamp(4rem, 4.86vw, 7rem);
  font-weight: 700;
  line-height: 1;
  opacity: .8;
}

.internal_mv_sub_tit {
  font-size: clamp(1rem, 1.39vw, 2rem);
  color: var(--color-accent);
  font-weight: 700;
  margin-top: 1.85%;
}

.internal_mv_txt {
  font-size: clamp(1rem, 1.48vw, 1.6rem);
  font-weight: 500;
  margin-top: 4.17%;
}

.sp {
  display: none;
}

@media (max-width: 48rem) {

  html,
  body {
    overflow-x: hidden;
  }

  body.is-nav-open {
    overflow: hidden;
  }

  body {
    font-size: 1.4rem;
    line-height: 1.8;
  }

  .logo {
    width: min(58vw, 22rem);
  }

  .logo-text {
    margin-top: 2rem;
    font-size: 1.4rem;
    letter-spacing: 0.28em;
  }

  .intro_progress {
    width: calc(100% - 8rem);
    max-width: 26rem;
    margin-top: 2.4rem;
  }

  .section_tit_area {
    align-items: center;
  }

  .section_tit {
    font-size: clamp(2.4rem, 7.4vw, 3.2rem);
    line-height: 1.25;
    white-space: normal;
  }

  .section_tit_line {
    margin-left: 1.6rem;
    align-self: center;
  }

  .js-lux-reveal[data-lux-direction="up"] {
    --lux-y: 2.4rem;
  }

  .js-lux-reveal[data-lux-direction="left"],
  .js-lux-reveal[data-lux-direction="right"] {
    --lux-x: 0;
    --lux-y: 1.8rem;
  }

  .section_sub_tit {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 0.12em;
  }

  .main_tit {
    font-size: clamp(2.2rem, 7vw, 3rem);
    line-height: 1.45;
  }

  .main_txt {
    font-size: 1.4rem;
    line-height: 1.9;
    margin-top: 1.6rem;
  }

  header {
    height: 7.2rem;
  }

  .header_inner {
    padding: 0 2rem;
  }

  .header_logo a {
    width: 13.2rem;
  }

  .header_toggle {
    width: 3.8rem;
    height: 2.8rem;
  }

  .header_toggle span:nth-child(1) {
    transform: translateY(-.8rem);
  }

  .header_toggle span:nth-child(3) {
    transform: translateY(.8rem);
  }

  .global_nav {
    right: -100%;
    width: 100%;
    min-height: 100svh;
    height: 100dvh;
    padding: 11rem 2.4rem 4rem;
    background: rgba(0, 0, 0, 0.9);
  }

  .global_nav ul {
    gap: 2rem;
  }

  .global_nav a {
    display: block;
    padding: 1.2rem 0;
    font-size: 1.8rem;
    letter-spacing: 0.08em;
  }

  .footer {
    height: auto;
    min-height: 34rem;
    padding: 4rem 2rem 11rem;
  }

  .footer_logo {
    max-width: 16rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 3.2rem;
    padding: 0;
  }

  .footer-info {
    font-size: 1.3rem;
    gap: 1.6rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 1.2rem;
  }

  .footer-nav a {
    display: inline-block;
    padding: 0.4rem 0;
  }

  .footer-marquee {
    bottom: 2rem;
    left: calc(50% - 50vw);
    width: 100vw;
  }

  .marquee-track span {
    font-size: clamp(5.6rem, 18vw, 8rem);
    margin-right: 2rem;
  }

  .bg_white {
    padding-top: 5.6rem;
    filter: drop-shadow(0 -.3rem .5rem rgba(0, 0, 0, 0.12));
  }

  .inner_wrap {
    width: 100%;
    margin: 6.4rem auto;
    padding: 0 2rem;
  }

  .section_area {
    max-width: none;
  }

  .section_area+.section_area {
    margin-top: 7.2rem;
  }

  .section_btn {
    align-self: flex-start;
    font-size: 1.4rem;
    margin-top: 2.4rem;
  }

  .section_btn svg {
    width: 2rem;
  }

  .internal_mv {
    max-width: none;
  }

  .internal_mv_tit_area {
    width: auto;
    margin: 0;
    padding: 12rem 2rem 5.6rem;
  }

  .internal_mv_tit {
    font-size: clamp(3.6rem, 13vw, 5.4rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .internal_mv_sub_tit {
    font-size: 1.3rem;
    margin-top: 1.2rem;
    letter-spacing: 0.12em;
  }

  .internal_mv_txt {
    font-size: 1.4rem;
    line-height: 1.9;
    margin-top: 2.4rem;
  }

}
