/* ==================================================
   YOHACO Brand LP - Animated Edition
   ================================================== */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.yohaco-lp-body {
  background: #fff;
  color: #000;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.05em;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* =========================
   Section Base
========================= */

section {
  padding: 120px 4% 0;
  text-align: center;
  position: relative;
}

h1,
h2 {
  font-weight: 200;
}

/* =========================
   HERO
========================= */
.hero {
  background: url(./img/mainimage.png) center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  padding: 12% 4%;
}

/* ヒーロー背景 ゆっくりケンバーンズ効果 */
.hero::before {
  content: '';
  position: absolute;
  inset: -10%;
  background: inherit;
  background-size: cover;
  background-position: center;
  animation: heroPanZoom 25s ease-in-out infinite alternate;
  z-index: 0;
}



@keyframes heroPanZoom {
  0% {
    transform: scale(1) translateX(0);
  }

  50% {
    transform: scale(1.08) translateX(-1%);
  }

  100% {
    transform: scale(1.04) translateY(-1%);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 6vw;
  letter-spacing: 0.35em;
  opacity: 0;
  animation: fadeInScale 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title img {
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.35));
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.92);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

/* パーティクル（フローティングドット） */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles .dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  animation: floatDot linear infinite;
}

@keyframes floatDot {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
    transform: translateY(80vh) scale(1);
  }

  90% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(-20vh) scale(0.3);
    opacity: 0;
  }
}

/* =========================
   CONCEPT
========================= */

.concept h2 {
  font-size: 2rem;
  line-height: 2;
  overflow: hidden;
}

/* h2画像 クリッピング展開 + ブラーフェードイン */
.concept h2 img {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(20px) scale(0.95);
  clip-path: inset(0 100% 0 0);
  transition:
    opacity 1s ease,
    filter 1.2s ease,
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    clip-path 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.concept h2.active img {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
  clip-path: inset(0 0% 0 0);
}

.concept-text {
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease 0.6s, transform 1.2s ease 0.6s;
}

.concept.active .concept-text {
  opacity: 1;
  transform: translateY(0);
}

/* concept-text: タグ画像3つ スタガーポップイン */
figure.concept-text {
  margin: 50px auto 10px;
}

figure.concept-text img {
  margin: 0 5px;
  display: inline-block;
  max-width: 47%;
  opacity: 0;
  transform: translateY(24px) scale(0.7);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.concept.active figure.concept-text img:nth-child(1) {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.5s;
}

.concept.active figure.concept-text img:nth-child(2) {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.7s;
}

.concept.active figure.concept-text img:nth-child(3) {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.9s;
}

/* concept-img: メイン画像 スケールリビール */
figure.concept-img {
  opacity: 0;
  transform: scale(0.92);
  overflow: hidden;
  transition: opacity 1.2s ease 0.4s, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.concept.active figure.concept-img {
  opacity: 1;
  transform: scale(1);
}

/* =========================
   ウェーブ区切りデコレーション
========================= */
.section-wave {
  width: 100%;
  height: 60px;
  overflow: hidden;
  position: relative;
  margin-top: 80px;
}

.section-wave svg {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 60px;
  animation: waveSlide 8s linear infinite;
}

.section-wave svg path {
  fill: none;
  stroke: #e0d6c8;
  stroke-width: 1.5;
}

@keyframes waveSlide {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* =========================
   INSTAGRAM
========================= */
.section_inner {
  max-width: 700px;
  margin: 0 auto;
}

p.p-insta {
  text-align: left;
}

p.p-insta img {
  margin-right: 10px;
  vertical-align: bottom;
}

p.p-insta a {
  color: #000;
  text-decoration: none;
}

/* Instagram写真ホバー＋出現アニメ */
.instagram .sbi_photo_wrap {
  transition: transform .6s ease, opacity .6s ease, box-shadow .6s ease;
  opacity: .9;
}

.instagram .sbi_photo_wrap:hover {
  transform: scale(1.05) rotate(0.5deg);
  opacity: 1;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Instagram セクション タイトルのスライド */
.instagram .p-insta {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.instagram.active .p-insta {
  opacity: 1;
  transform: translateX(0);
}

/* Instagram フィード写真のスタガー出現 */
.instagram .sbi_item {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.instagram.active .sbi_item {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* スタガーディレイ（最大12枚） */
.instagram.active .sbi_item:nth-child(1) {
  transition-delay: 0.05s;
}

.instagram.active .sbi_item:nth-child(2) {
  transition-delay: 0.1s;
}

.instagram.active .sbi_item:nth-child(3) {
  transition-delay: 0.15s;
}

.instagram.active .sbi_item:nth-child(4) {
  transition-delay: 0.2s;
}

.instagram.active .sbi_item:nth-child(5) {
  transition-delay: 0.25s;
}

.instagram.active .sbi_item:nth-child(6) {
  transition-delay: 0.3s;
}

.instagram.active .sbi_item:nth-child(7) {
  transition-delay: 0.35s;
}

.instagram.active .sbi_item:nth-child(8) {
  transition-delay: 0.4s;
}

.instagram.active .sbi_item:nth-child(9) {
  transition-delay: 0.45s;
}

.instagram.active .sbi_item:nth-child(10) {
  transition-delay: 0.5s;
}

.instagram.active .sbi_item:nth-child(11) {
  transition-delay: 0.55s;
}

.instagram.active .sbi_item:nth-child(12) {
  transition-delay: 0.6s;
}

/* =========================
   CONTACT
========================= */
section.contact {
  padding-top: 60px;
}

p.p-contact {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 20px;
}

.contact-buttons {
  margin-top: 60px;
}

/* お問い合わせボタン パルスアニメ＋ホバー */
.circle-btn {
  width: 130px;
  height: 131px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 10px;
  text-decoration: none;
  transition: all .5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

.circle-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.15);
  animation: pulseRing 2.5s ease-out infinite;
  transition: all 0.4s ease;
}

/* 内部画像へのトランジション制御 */
.circle-btn img {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.5s ease;
}

@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  70% {
    transform: scale(1.25);
    opacity: 0;
  }

  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

.circle-btn:hover {
  /* 既存の動きに「少し多めの浮揚感」と「遊び心のある回転」を追加 */
  transform: translateY(-15px) scale(1.1) rotate(5deg);
  opacity: 1;
}

/* ホバー時に画像を少し拡大し、影を強める */
.circle-btn:hover img {
  transform: scale(1.06);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
}

/* ホバー時に外側のパルスを速め、色を少し強調 */
.circle-btn:hover::after {
  animation-duration: 1.2s;
  border-color: rgba(201, 169, 110, 0.5);
  /* ブランドカラー系のアクセント */
  inset: -8px;
}

/* コンタクトセクション出現 */
.contact .p-contact {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact.active .p-contact {
  opacity: 1;
  transform: translateY(0);
}

.contact .contact-buttons .circle-btn {
  opacity: 0;
  transform: translateY(30px) scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact.active .contact-buttons .circle-btn:nth-child(2) {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.2s;
}

.contact.active .contact-buttons .circle-btn:nth-child(3) {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.4s;
}

/* =========================
   FOOTER
========================= */
footer.lp-footer {
  padding: 60px 0 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

footer.lp-footer.active {
  opacity: 1;
  transform: translateY(0);
}

/* フッターロゴ アニメーション */
.lp-footer .footer_logo {
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  filter: blur(6px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

footer.lp-footer.active .footer_logo {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition-delay: 0.3s;
}

.lp-footer p {
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 20px;
  padding: 0 4%;
}

.lp-footer .copy {
  border-top: 1px solid #000;
  padding: 10px 20px;
  text-align: center;
  font-weight: normal;
  margin-bottom: 0;
}

.font-Roboto {
  font-family: "Roboto", sans-serif;
}

/* =========================
   スクロールプログレスバー
========================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #c9a96e, #e8d5b0, #c9a96e);
  width: 0%;
  z-index: 9999;
  transition: width 0.15s ease-out;
}

/* =========================
   Scroll Animation
========================= */

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.6s ease, transform 1.6s ease;
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* スライドイン（左から） */
.slide-in-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.slide-in-left.active {
  opacity: 1;
  transform: translateX(0);
}

/* スライドイン（右から） */
.slide-in-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.slide-in-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* スケールイン */
.scale-in {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-in.active {
  opacity: 1;
  transform: scale(1);
}

/* =========================
   Animation
========================= */

@keyframes fadeInSlow {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* =========================
   Responsive
========================= */
.sp {
  display: none;
}

@media (max-width: 768px) {
  .sp {
    display: block;
  }

  section {
    padding: 60px 4% 0;
  }

  .hero-title {
    font-size: 10vw;
  }

  .section-wave {
    height: 40px;
    margin-top: 50px;
  }

  .circle-btn::after {
    display: none;
  }

  .scroll-progress {
    height: 2px;
  }
}