:root{
  --red:#ec2222;
  --black:#000;
  --white:#fff;
  --gray: #9c9c9c;
}
/* style.css */
.overflow-hidden {
    overflow: hidden !important; /* 他のスタイルに負けないよう !important を推奨 */
    height: 100%;
}

body{
  font-family:"tt-commons-pro", sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

h1, h2 {
  margin: 0;
  line-height: 1.1; /* 見出しは詰め気味が映える */
}

/* Loading - Custom Split Animation */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}
.loader-panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--black);
  transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}
.panel-top { top: 0; }
.panel-bottom { bottom: 0; }
.logo-container {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 110;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}
/* Center Line Animation */
.loader-line {
  position: fixed;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--white);
  z-index: 120;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.logo-container img{
  width: 250px;
  max-width: 70vw;
  height: auto;
}

/* ===== HERO ===== */
.hero{
  min-height: 100vh;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto; /* header / logo / arrow */

  opacity: 0;
  transition: opacity 1.8s ease;
  transition-delay: 0.3s; /* パネルが割れ始めてから少し遅れて開始 */
}
/* このクラスがJSで付与されたら表示される */
.hero.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.header{
  top: 0;
  z-index: 10;
  background: var(--white);
  backdrop-filter: blur(6px);
  height: 56px;
  position: relative; /* ← これ重要 */
}
.nav{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links{
  display: flex;
  gap: 50px;
  list-style: none;
}
.nav-links a{
  position: relative;
  color: var(--red);
  text-decoration: none;
  font-size: 15px;
  font-weight: bolder;
  letter-spacing: .12em;
  text-align: center;
  transition: color .3s ease;
}
.nav-links a::after{
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--black);
  transition: width .3s ease;
}
.social-links{
  position: absolute;
  right: 16px;
  display: flex;
  gap: 30px;
  list-style: none;
}
.social-links a{
  color: var(--red);
  text-decoration: none;
  font-size: 15px;
  display: inline-block;
  transition: color .3s ease, transform .3s ease;
}
.hero img{
  width: 400px;
  max-width: 70vw;
  height: auto;
}
.hero-image{
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo-horizontal{
  width: 70px;
  opacity: 0.9;
  color: var(--black);
}

/* ================ 

CONTENT 

=================== */
.horizontal-section {
  height: 100vh;
  width: 100%;
  position: relative;
}
.panel {
  display: flex;
  width: 100vw;
  height: 100vh;
  color: var(--black);
}
.panel h1 { font-weight: 600; font-size: 40px; margin-bottom: 20px;}
.panel h2 { font-weight: 600; font-size: 65px; margin-top:25px;}
.panel p { font-size: 0.85rem; padding: 0 0 20px 0; line-height: 2.0; font-weight: 100;}

.panel-intro{
  width: 50vw; /* 左半分 */
  height: 100vh;
  padding: 40px;
  box-sizing: border-box;
  background-color: var(--red);

  /* --- 上下左右中央揃えの設定 --- */
  display: flex;
  flex-direction: column;   /* 子要素を縦に並べる */
  justify-content: center;  /* 垂直方向（上下）の中央揃え */
  align-items: center;      /* 水平方向（左右）の中央揃え */
  text-align: center;
}
.intro-social-links {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.intro-social-links ul{
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 30px;
  padding: 0;
  margin-top: 20px;
}
.intro-social-links a{
  color: var(--white);
  text-decoration: none;
  display: inline-block;
  transition: color .3s ease, transform .3s ease;
}

/* --- KV Panel --- */
.panel-kv {
  width: 50vw; /* 右半分 */
  height: 100vh;
  overflow: hidden;
  position: relative;
  background-color: var(--white);
}
.panel-kv img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像を隙間なく表示 */
}

/* アニメーション用クラス */
.reveal-item {
  opacity: 0;
  transform: translateY(40px);
}

/* Hover: Only apply to devices that support real hover */
@media (hover: hover) {
  .nav-links a:hover { color: var(--black); }
  .nav-links a:hover::after { width: 100%; }
  .social-links a:hover { transform: scale(1.15); color: var(--black); }
  .intro-social-links a:hover { color: var(--black); transform: scale(1.2); }
}

/* ========================
RESPONRIVE DESIGN 
========================= */
@media (max-width: 1240px) {
  .nav-links{
    gap: 20px;
  }
  .nav-links a{
    font-size: 13px;
  }
  .social-links{
    gap: 20px;
  }
  .social-links a{
    font-size: 13px;
  }
  .hero img{
    width: 300px;
  }
  .logo-horizontal{
    width: 60px;
  }

  .panel h1 {
    font-size: 20px;
  }
  .panel h2 {
    font-size: 45px;
    margin-top: 25px;
  }
  .panel p {
    font-size: 0.70rem;
    line-height: 1.7;
  }
  .panel-intro{
    width: 40%;
    height: auto;
    padding: 30px;
  }
  .panel-kv {
    width: 60%;
    height: auto;

  }
}

@media (max-width: 1024px) {
  .menu-trigger {
        position: absolute;
        left: 20px; /* 左側に配置 */
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 24px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 100;
        display: block; /* スマホ・タブレットで表示 */
    }
    .menu-trigger span {
        display: block;
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: var(--red);
        transition: all 0.4s;
    }
    .menu-trigger span:nth-child(1) { top: 0; }
    .menu-trigger span:nth-child(2) { top: 11px; }
    .menu-trigger span:nth-child(3) { bottom: 0; }

    /* ボタンが active になった時の三本線の動き（×印） */
    .menu-trigger.active span:nth-child(1) { transform: translateY(11px) rotate(-45deg); }
    .menu-trigger.active span:nth-child(2) { opacity: 0; }
    .menu-trigger.active span:nth-child(3) { transform: translateY(-11px) rotate(45deg); }

    /* --- ナビゲーションを全画面メニューにする --- */
    .nav {
        position: fixed;
        top: 0;
        left: -100%; /* 最初は画面の外に隠す */
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        transition: all 0.5s;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 90;
        transform: none; /* pc用の中央揃えを解除 */
    }

    .nav.active {
        left: 0; /* クラスがついたら画面内へ */
    }

    .nav-links {
        flex-direction: column; /* 縦並び */
        gap: 40px;
        text-align: center;
    }

    .nav-links a {
        font-size: 24px; /* スマホでは少し大きく */
    }

    /* ソーシャルリンクはそのまま右上に（微調整が必要ならここで） */
    .social-links {
        right: 20px;
    }

  /* 全体コンテナを縦並びに */
    .panel {
        flex-direction: column;
        width: 100%;
        height: auto; /* コンテンツ量に応じて高さを可変に */
    }

    /* テキストエリア（上半分） */
    .panel-intro {
        width: 100%;
        min-height: 55vh; /* iPadの画面内で適度な高さを確保 */
        padding: 40px 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* キービジュアルエリア（下半分） */

    .panel-kv {
        width: 100%;
        height: auto;
        box-sizing: border-box;
        background-color: var(--white); /* 余白の色を背景に合わせる */
    }



    .panel-kv img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain; /* 写真の端が切れるのを完全に防ぐ */
    }

    /* iPadで見やすいように文字サイズを微調整 */
    .panel h2 {
        font-size: clamp(40px, 8vw, 56px); /* COMING SOON */
        margin-top: 0;
    }
    .panel h1 {
        font-size: clamp(24px, 4vw, 32px); /* SPRING 2026 */
        margin-bottom: 20px;
    }
    .comingsoon-text p {
        font-size: 15px;
        line-height: 1.8;
        /* iPadでは改行を生かした方が読みやすい場合があるため、brはそのまま */
    }
}

/* 1025px以上（PC）ではボタンを隠す */
@media (min-width: 1025px) {
    .menu-trigger {
        display: none;
    }
}

/* ===== スマホ用 ===== */
@media (max-width: 480px) {
  .hero img{
    width: 200px;
  }
  .logo-container img{
    width: 200px;
  }
  .panel-intro p{
    font-size: 10px;
    padding: 0 20px 0 20px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

}