@charset "UTF-8";
:root {
  --white:#ffffff;
  --off-white:#FBF9ED;
  --light-gray:#a8a8a8;
  --medium-gray:#67635F;
  --grey:#4C4B4B;
  --dark-grey:#2e2e2e;
  --pink:#0000002d;
}
html {
  scroll-behavior: smooth;
}
body { 
  font-family: 'Satoshi', sans-serif;                         
}
main img {
    display: block;
    transition: transform 0.7s ease; /* アニメーション時間と動き */
}
.logo {
    width: 40px; 
    margin-right: 10px;
}
h1 {
    font-weight: 300;
    flex-wrap: nowrap;
}
h2 {
  margin: 0;
  color: var(--white); 
  font-size: min(20vw, 200px);
  font-weight: 300;
  opacity: 0;
  transform: translateY(105%) rotate(5deg); /* 下＋左下に少し傾けておく */
  transition: opacity 0.6s ease, transform 0.6s ease;
}
h3 {
  margin-top: 300px;
  color: var(--white); 
  font-size: 25px;
}
h4 {
  margin-top: 40px;
  color: var(--white); 
  font-size: 20px;
}

/* ローディングアニメーション */
#logo_loader {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    background-color: var(--dark-grey);
}
#logo_loader .f_logo {
    position: absolute;
    top: 150px;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 60%;
    height: 30%;
}
#logo_loader .f_logo img {
    display: block;
    width: 50%;
    height: auto;
    margin: auto;
}
#logo_loader .f_logo:before {
    content: "";
    display: block;
    width: 100%;
    height: 110%;
    background-color: var(--dark-grey);
    position: absolute;
    top: 0;
    left: 100%;
    animation: loadLogo 1s;
}
@keyframes loadLogo {
  0% {
    left: 0;
  }
  50% {
    left: 0;
  }
  100% {
    left: 100%;
  }
}
#logo_loader .f_logo:before {
    animation: loadLogo 1s;
}
#logo_loader.open {
    animation-name: slideOut;
    animation-fill-mode: forwards;
    animation-duration: 1.5s;
    animation-delay: 1.5s;
    animation-timing-function: ease-in-out;
}
@keyframes slideOut {
  0% {
    transform: translateY(0); /* 初期位置 */
    opacity: 1; /* 完全に表示 */
  }
  100% {
    transform: translateY(-100%); /* 完全に上に移動 */
    opacity: 0; /* 完全に透明 */
  }
}

/* 固定背景画像 */
.image-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: url("../image/background.jpg") no-repeat center center;
  background-size: cover;
  filter: brightness(50%);
  z-index: -10;
}

/* Header */
header {
    position: relative;
    margin: 0 20px;
    font-size: min(2vw, 30px);
    font-family: 'Satoshi', sans-serif; 
    color: var(--white);
}
.menu_box.white-text,
.menu_box.white-text a {
  color: var(--dark-grey);
}
header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90; 
}
.menu_box {
  width: 100%;
  font-size: clamp(14px, 2vw, 30px); 
  transition: color 0.3s ease;
  box-sizing: border-box; /* パディング込みで幅計算 */
}
.menu_box,
.menu_box a {
  color: var(--white);  
}
.menu {
  display: flex;
  /* justify-content: flex-end; */
  gap: clamp(10px, 2.5vw, 30px);
  font-size: inherit; /* 親に合わせる */
  white-space: nowrap; /* 改行防止 */
  font-weight: 300;
}
.menu_li {
  padding-top: 20px;
}
.contact {
  display:inline-block;
  margin-top: 8px;
  padding:6px min(6.6vw, 80px) 9px min(2vw, 25px); 
  line-height:1.6; border-radius:40px; 
  background-color:var(--pink); 
  font-family:Josefin+Sans,'MS PGothic';
  text-align: left;
  backdrop-filter: blur(8px); /* 背景をぼかす */
-webkit-backdrop-filter: blur(8px);
}
.menu a:hover {
  color: var(--light-gray);
}
.contact:hover {
  color: var(--light-gray);
  background: var(--off-white);
}
 /* ハンバーガーメニュー //////////////////////////*/

/* =========================
   PC版（768px以上）
========================= */
@media screen and (min-width:768px) {

  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 98%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
  }

  header .site-title {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 600;
    color: #000;
  }

  header .site-title img {
    width: 40px;
    margin-right: 10px;
  }

  /* PCではハンバーガー非表示 */
  .menu-icon,
  .menu-btn,
  .instagram-icon {
    display: none;
  }

  /* メニュー横並び */
  .menu_box {
    display: block;
    background: none;
    position: static;
    height: auto;
    max-width: none;
  }

  .menu {
    display: flex;
    gap: min(2.5vw, 30px);
  }

  .menu a {
    color: var(--white);
    text-decoration: none;
    position: relative;
  }
}

/* =========================
   スマホ版（1000px以下）
========================= */
@media screen and (max-width: 1000px) {

  header {
    position: absolute;
    top: 0;
    left: 0;
    margin: initial;
    font-size: 20px;
  }
  h1 {
    margin: 20px;
  }
  .logo {
    width: 30px;
  }
  .gMenu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99;
    width: auto;
  }

  .menu-btn {
    display: none;
  }

  /* ハンバーガーアイコン */
  .menu-icon {
    position: fixed;
    right: 15px;
    top: 15px;
    width: 50px;
    height: 50px;
    background: #0000004d;
    border-radius: 10px;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
  }

  .menu-icon:hover {
    background: var(--dark-grey);
  }

  /* インスタアイコンボタン */
  .instagram-icon {
    position: fixed;
    right: 15px;
    top: 75px; /* ハンバーガーの下（15px + 50px + 10px間隔） */
    width: 50px;
    height: 50px;
    background-color: #0000004d;
    border-radius: 10px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    text-decoration: none;
  }

  .instagram-icon:hover {
    background: var(--dark-grey);
  }

  .instagram-icon img {
    width: 30px; /* アイコンサイズ調整 */
    height: 30px;
    object-fit: contain;
  }

  .nav_icon {
    display: block;
    width: 25px;
    height: 1px;
    background: var(--white);
    position: relative;
    transition: all 0.3s ease;
  }

  .nav_icon::before,
  .nav_icon::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--white);
    transition: all 0.3s ease;
    left: 0;
  }

  .nav_icon::before {
    top: -8px;
  }

  .nav_icon::after {
    top: 8px;
  }

  /* メニュー初期は非表示 */
  .menu_box {
    position: fixed;
    top: 0;
    right: -65%;
    background: #222222;
    width: 65%;
    height: 100vh;
    overflow-y: auto;
    transition: right 0.6s ease;
    display: block !important;
    z-index: 98;
    padding: 80px 20px 20px;
    box-sizing: border-box;
  }

  .menu {
    display: block;
    padding: 0;
    margin: 50px 0 0 0;
  }

  .menu_li {
    padding: 10px 0;
  }

  .menu a {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-size: 25px;
    font-weight: 400;
    padding: 10px;
    transition: background 0.3s;
  }

  .menu a:hover {
    color: var(--light-gray);
  }

  /* チェックONで展開 */
  .menu-btn:checked ~ .menu_box {
    right: 0;
  }

  /* チェックONでXに変化 */
  .menu-btn:checked ~ .menu-icon {
    background: var(--dark-grey);
  }

  .menu-btn:checked ~ .menu-icon .nav_icon {
    background: transparent;
  }

  .menu-btn:checked ~ .menu-icon .nav_icon::before {
    transform: rotate(-45deg);
    top: 0;
  }

  .menu-btn:checked ~ .menu-icon .nav_icon::after {
    transform: rotate(45deg);
    top: 0;
  }

  .contact {
    background-color: initial;
  }
}

/* TOP動画 */
.video_wrapper {
  width: 100%;
  height: min(83.3vw, 1300px);
  overflow: hidden;
  position: relative;
}
.video_wrapper video {
  width: 100%;
  height: min(83.3vw, 1300px);      /* 自然に縦横比保持 */
  display: block;
  filter: grayscale(100%) brightness(75%) contrast(110%);
  object-fit: cover; /* 親の幅に合わせて切り取り */
  z-index: 1;        /* header/h1より下 */
  position: relative; /* フローに沿って配置 */
}
@media (max-width: 767px) {
#logo_loader .f_logo {
    width: 100%;
    height: 30%;
}
#logo_loader .f_logo img {

    width: 80%;
}
.video_wrapper {
  height: 100vh;
}
.video_wrapper video {
  height: 100vh;
}
}

/* 共通設定：画像セクション */
.stacking-container .section {
  max-height: 1200px;
  position: sticky;
  top: 0;
}
.about_title, .process_title, .introduction_title, .blog_title {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.5s ease;
}
.visible {
  opacity: 1;
  transform: translateY(0);
}
/* .stacking-container {
  margin-bottom: 800px;
} */
.section-1 {
  z-index: 1;
}

.fade-in {
  opacity: 0;                /* 初期は透明 */
  transform: translateY(20px); /* 下から少し浮かせる */
  transition: opacity 1s ease, transform 1s ease;
}
.fade-in.visible {
  opacity: 1;                /* 表示時は不透明 */
  transform: translateY(0);  /* 元の位置に戻す */
}

.section-2 {
  z-index: 2; 
}
.section-3 {
  z-index: 3;
}
.section-4 {
  z-index: 4; 
}
.section-5 {
  z-index: 5; 
}
.img-box {
  position: relative;
  width: 100%;
  height: min(100vw, 1300px);
  overflow: hidden;
}

/* 画像共通 */
.img-box img {
  object-fit: cover;    /* 枠に合わせて切り取り */
  display: block;
  filter: brightness(0.6);
}

/* タイトル共通 */
.process_title,
.about_title {
  position: absolute;
  top: 20px;
  left: -10px;          /* blog/process は右上に変える場合別クラスで調整 */
  opacity: 0;
  transform: translateY(105%) rotate(5deg);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  color: var(--white);
  font-weight: 300;
  
}
.introduction_title,
.blog_title {
  position: absolute;
  top: 20px;
  right: -10px; 
  opacity: 0;
  transform: translateY(105%) rotate(5deg);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.img-box h2.visible {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

/* Aboutセクションのボタン */
.click-btn {
  position: absolute;
  top: 0;
  left: 0;
  padding: 32px 20px;
  border: 1px solid var(--white);
  color: var(--white);
  font-size: 25px;
  border-radius: 50px;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.3s ease; /* 初期状態ではフェード用だけ */
  pointer-events: auto;
}
.about_img:hover .click-btn {
  opacity: 1;
}

/* Blogセクションのhoverテキスト */
.hover-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: min(6.6vw, 80px);
  font-weight: 300;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}
.hover-box:hover .hover-text {
  opacity: 1;
}
@media (max-width: 1300px) {
  .img-box {
    position: relative;
    overflow: hidden;
    height: 80vw;
  }
  .learn_more {
    position: absolute;
    width: 220px;
    height: 80px;
    bottom: 80px;
    left: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
    border: 1px solid var(--white);
    border-radius: 50px;
    overflow: hidden;
    z-index: 10; /* z-indexを上げる */
    transition: color 0.2s;
    cursor: pointer;
  }
  /* .learn_more::before {
    position: absolute;
    content: "Learn More";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--grey);
    background-color: var(--off-white);
    border-radius: 30px;
    opacity: 0;
    transform: scale(0.8);
    transition-property: opacity, transform;
    transition-duration: 0.2s;
    transition-timing-function: cubic-bezier(.39, .575, .565, 1);
    z-index: -1; 
  } */
  .img-box:hover .learn_more {
  color: var(--light-gray);
  border: 1px solid var(--light-gray);
  transform: scale(1.05);
  transition: all 0.2s ease;
  }
  .learn_more,
  .learn_more::after { pointer-events: none;
  }
  .click-btn {
    display: none !important;
  }
}
@media (max-width: 767px) {
  h2 {
    padding: initial;
  }
  .img-box {
    position: relative;
    overflow: hidden;
    height: 100vw;
  }

  .learn_more {
    position: absolute;
    width: 150px;
    height: 60px;
    bottom: 30px;
    left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--white);
    border: 1px solid var(--white);
    border-radius: 30px;
    overflow: hidden;
    z-index: 10; /* z-indexを上げる */
    transition: color 0.2s;
    cursor: pointer;
  }
  /* .learn_more::before {
    position: absolute;
    content: "Learn More";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--grey);
    background-color: var(--off-white);
    border-radius: 30px;
    opacity: 0;
    transform: scale(0.8);
    transition-property: opacity, transform;
    transition-duration: 0.2s;
    transition-timing-function: cubic-bezier(.39, .575, .565, 1);
    z-index: -1; 
  } */
  .img-box:hover .learn_more {
  color: var(--light-gray);
  border: 1px solid var(--light-gray);
  transform: scale(1.05);
  transition: all 0.2s ease;
  }

  .click-btn {
    display: none !important;
  }
}


/* Section case */

#case {
  position: relative; 
  display: flex;
  margin: 80px 0 200px;
  padding: 100px 3vw;
  background: var(--off-white);
}
#case h2 {   
  margin: 0 auto;
  padding: initial;
  color: var(--medium-gray);
  font-size: clamp(40px, 8vw, 100px); 
  font-weight: 300;

}

/* カルーセル本体 */
.case_title_conteiner {
  text-align: center;
}
.view_all {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 60px;
  margin-top: min(1vw, 30px);
  color: var(--medium-gray);
  border: 1px solid var(--medium-gray);
  border-radius: 30px;
  overflow: hidden;
  text-decoration: none;
  transition: color .3s cubic-bezier(.39, .575, .565, 1),
  border-color .3s cubic-bezier(.39, .575, .565, 1);
  z-index: 0;
}

/* 背景用アニメーションレイヤー */
.view_all::before {
  content: "View All";
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--off-white);
  top: 0;
  left: 0;
  width: 100%;
  height: 101%;
  border-radius: 28px;
  background-color: var(--medium-gray); /* 反転時の背景色 */
  opacity: 0;
  transform: scale(.9); /* 最初は少し小さい */
  transition-duration: .3s;
  transition-property: opacity, transform;
  transition-timing-function: cubic-bezier(.39, .575, .565, 1);
  z-index: -1; /* 背景の下に */
}

/* ホバー時：背景がふわっと拡大して出る */
.view_all:hover::before {
  opacity: 1;
  transform: scale(1);
}
.view_all:hover {
  color: var(--off-white);
}
.case_list_container {
  overflow: hidden;
  width: 100%;
    scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.case_carousel {
  position: relative;
  width: 85%;
  margin: auto;
  padding-left: 4vw;
  display: flex;
  align-items: center;
}
.case_list {
  display: flex;
  cursor: grab;
  transition: transform 0.3s ease;
}
.case_list li {
  min-width: calc(100% / 3); /* デフォルトは3枚表示 */
  box-sizing: border-box;
  padding: clamp(20px, 5vw, 30px) 15px;
  border-right: 1px solid #cccccc;
}
.case_list li:last-child {
  border-right: none; /* ← 最後のボーダー削除で見切れ防止 */
}
.case_list img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}
.case_list p {
  margin: 15px;
  font-size: min(1.5vw, 25px);
  font-weight: 100;
  color: var(--dark-grey);
}

/* --- ナビボタン --- */
.case_prev,
.case_next {
  width: 45px;
  height: 70px;
  cursor: pointer;
  object-fit: contain;
  z-index: 2;
}
.case_prev img:hover,
.case_next img:hover {
  filter: brightness(60%);
}
.case_prev img,
.case_next img {
  width: 100%; 
  height: auto;
}

/* --- ホバー時の効果 --- */
.case_list img:hover {
  filter: brightness(0.6);
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- アニメーションタイトル --- */
.case_title {
  opacity: 0;
  transform: translateY(105%) rotate(5deg);
  transition: opacity 0.8s ease, transform 0.6s ease;
  transform-origin: left bottom;
}

.case_title.from-bottom {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

.case_list {
  opacity: 1;
  transition: opacity 1s ease;
}

.case_list.visible {
  opacity: 1;
}

/* -----------------------------
   📱スマホ用（〜767px）
----------------------------- */
@media screen and (max-width: 767px) {
#case {
  display: block;
  margin: initial;
  padding: 20px 0;
  text-align: center;
}
.case_title_conteiner  {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#case h2 {
  margin: 0 40px;
  padding: 5px 0;
  font-size: min(16vw, 200px);
}
.view_all {
  width: 120px;
  height: 50px;
  margin: 15px auto 0;
}
  .case_carousel {
    padding: 0 0 4vw;
  }
  .case_list li {
    min-width: 90%; /* スマホでは1枚ずつ */
  }
  .case_list p {
    margin: 10px 0;
    text-align: left;
    font-size: 18px;
  }
  .case_prev,
  .case_next {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    width: 40px;
  }
  .case_prev {
  left: -10px;
  }
  .case_next {
  right: -10px;
  }
}

/* -----------------------------
   💻タブレット用（768〜1023px）
----------------------------- */
@media screen and (min-width: 768px) and (max-width: 1100px) {
  .case_list li {
    min-width: calc(100% / 2); /* 2枚表示 */
    padding: min(2vw, 30px);
  }

  .case_list p {
    font-size: 20px;
  }
}


/* Section instagram */

#instagram {
  margin-bottom: 200px;
  font-weight: 300;
}
/* タイトル */
.instagram_title { 
  margin: min(8.3vw, 100px) min(4.1vw, 50px);
  text-align: center;
  opacity: 0;
  transform: translateY(105%) rotate(5deg); /* 下＋左下に少し傾けておく */
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.instagram_title.visible {
  opacity: 1;
  transform: translateY(0);
}
/* ウィジェットラッパー */
.instagram_widget {
  display: flex;
  justify-content: center;
  width: 75%;
  margin: 0 auto;
  gap: 2rem;
  opacity: 0; 
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0.4s; /* タイトルより少し遅れる */
}
.insta-wrap {
  max-width: 500px;
  height: 650px;           /* 好きなサイズに固定 */
  overflow: hidden;        /* はみ出し防止 */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.instagram_widget .instagram-media {
    max-width: 500px !important; /* ★ 500px に統一 */
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
}
.instagram_widget.visible {
  opacity: 1;
  transform: translateY(0);
}
.instagram_widget img:hover {
  filter: brightness(0.6); 
  transform: scale(1.03); 
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
@media screen and (max-width: 1100px) {
  .insta-wrap3 {
    display: none !important;
  }
}
@media screen and (max-width: 768px){
  .insta-wrap2 {
    display: none;
  }
}
/* contactアニメーション */
.scrolling_wrapper01 {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin: 0 0 200px;
}
.scrolling_text01 {
  display: flex;           /* ここをflexに */
  width: max-content;      /* 全内容の幅ぴったりに */
  white-space: nowrap;
  font-weight: 300;
  color: var(--white);
  animation: scrollText 30s linear infinite;
}
.scrolling_text01 span {
  font-size: min(15vw, 180px);
  height: 250px;
  padding-right: 4rem;
}

@keyframes scrollText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); 
  }
}
.scrolling_text01:hover {
  /* animation-play-state: paused;  */
  color: var(--light-gray);
}
@media screen and (max-width: 767px) {
.scrolling_text01 {
  animation: scrollText 20s linear infinite;
}
.scrolling_text01 span {
  font-size: min(25vw, 180px);
}
}

/* Footer */
footer {
  display: flex;
  justify-content: space-between;
  background: var(--dark-grey);
  color: var(--white);
  font-size: min(2.5vw, 30px);
  font-weight: 300;
  padding: min(2.5vw, 30px);
}
footer p {
  display: flex;
}
footer p:hover {
  color: var(--light-gray);
}
.footer_list a:hover {
  color: var(--light-gray);
}
.list_item {
  padding: 15px min(1.7vw, 20px);
}
.instagram_box {
  display: flex;
  justify-content: flex-end;   /* 横方向：右寄せ */
  align-items: flex-end;       /* 縦方向：下寄せ */
  height: auto;               /* 高さを確保 */
}
.instagram:hover {
  filter: brightness(70%);
}
.instagram_inner {
  display: flex;
  flex-direction: column;      /* ← 縦に並べる！ここ重要！ */
  text-align: right;
  align-items: flex-end;       /* 画像・文字も右寄せ */
}
.instagram_inner img:hover {
  color: var(--light-gray);
}
.instagram {
  height: min(3.3vw, 40px);
  display: block;       /* ブロックにして改行可能に */
  margin-left: auto;    /* 念のため右寄せの補強 */
  margin-bottom: 10px;  /* テキストとの間隔（任意） */
}

@media screen and (max-width: 767px) {
footer {
  display: block;
  font-size: 20px;
}
.footer_box {
  margin: 20px 0;
}
.list_item {
  padding: 10px min(1.7vw, 20px);
}
.instagram_inner {
  flex-direction: row-reverse;
  justify-content: space-between;
}
.instagram_box {
  display: block;
  align-items: initial;
  margin: 30px 0;
}
.instagram {
  width: 30px;
  height: 30px;
  margin: initial;
}
}