@charset "UTF-8";

:root {
  --main-color: rgb(245, 138, 188); /* #f58abc */
  --main-color-dark: rgb(225, 100, 150);
  --main-color-light: rgb(255, 240, 248);
  --text-dark: #2c3e50;
  --text-gray: #666666;
  --font-sans: 'Zen Kaku Gothic New', sans-serif;
  --font-serif: 'Zen Old Mincho', serif;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  line-height: 1.8;
  letter-spacing: 0.05rem;
  overflow-x: hidden;
  background-color: #fff;
  width: 100%;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 50px;
  left: -200px;
  width: 100%;
  height: 100%;
  background-image: url('./images/yamaguchi.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover; /* Or 'contain' or specific size like '80%' depending on preference */
  opacity: 0.1;
  z-index: -10;
  pointer-events: none;
}

@media (max-width: 767px) {
  body::before {
    /* 回転しても描画領域が不足しないよう要素サイズを拡張 */
    width: 150vw;
    height: 150vh;
    left: -25vw;
    top: -25vh;
    
    background-size: 120%; /* 少し大きめに */
    background-position: center 250px;
    transform: rotate(-10deg);
  }
}

/* Fix for mobile overflow */
@media (max-width: 767px) {
  .hero-v3 .container, 
  .hero-v3 .row {
    overflow-x: hidden;
  }
}

/* Utilities */
.text-main { color: var(--main-color) !important; }
.bg-main { background-color: var(--main-color) !important; }
.bg-light-soft { background-color: #fcfcfc; }
.font-serif { font-family: var(--font-serif); }
.ls-2 { letter-spacing: 0.2rem; }
.leading-tight { line-height: 1.2; }
.py-section { padding: 100px 0; }

.text-highlight {
  position: relative;
  z-index: 1;
  display: inline-block;
}

.text-highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 15px;
  background-color: rgba(245, 138, 188, 0.3);
  z-index: -1;
  transform: rotate(-1deg);
}

.btn-main {
  background-color: var(--main-color);
  border-color: var(--main-color);
  color: white;
  transition: all 0.3s;
}

.btn-main:hover {
  background-color: var(--main-color-dark);
  border-color: var(--main-color-dark);
  color: white;
  transform: translateY(-2px);
}

.rounded-custom { border-radius: 30px 4px 30px 4px; }
.rounded-custom-lg { border-radius: 50px 10px 50px 10px; }

/* Header */
.site-header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.nav-link-custom {
  color: var(--text-dark);
  text-decoration: none;
  position: relative;
  padding-bottom: 5px;
}

.nav-link-custom::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--main-color);
  transition: width 0.3s ease;
}

.nav-link-custom:hover::before {
  width: 100%;
}

.btn-join {
  background-color: #333;
  color: #fff;
  transition: transform 0.3s;
}
@media (max-width: 400px) {
  .btn-join {
      display: none;
  }
}
.btn-join span {
  display: inline-block;
  margin-bottom: 3px;
}
.btn-join:hover {
  transform: scale(1.05);
  color: #fff;
}

/* Background Shapes */
.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.shape-1 {
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background-color: var(--main-color-light);
  animation: float-shape 10s infinite alternate;
}

.shape-2 {
  bottom: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background-color: rgba(242, 228, 107, 0.2);
  animation: float-shape 15s infinite alternate-reverse;
}

@media (max-width: 767px) {
  .bg-shape {
    display: none;
  }
}

@keyframes float-shape {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, 50px); }
}

/* Hero Section */
.hero-v3 {
  min-height: 100vh;
  padding-top: 80px;
}

.hero-image-wrapper {
  position: relative;
  padding: 20px;
}

.blob-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background-color: var(--main-color);
  border-radius: 43% 57% 70% 30% / 30% 62% 38% 70%;
  z-index: -1;
  opacity: 0.1;
  animation: blob-anim 10s infinite linear;
}

@media (max-width: 991px) {
  .blob-bg {
    width: 100%;
    height: 100%;
  }
}


@keyframes blob-anim {
  0% { border-radius: 43% 57% 70% 30% / 30% 62% 38% 70%; transform: translate(-50%, -50%) rotate(0deg); }
  50% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  100% { border-radius: 43% 57% 70% 30% / 30% 62% 38% 70%; transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-img {
  max-width: 400px;
  margin-left: 80px;
}
@media (max-width: 991px) {
  .hero-img-wrapper {
    height: 300px;
    object-fit: cover;
    margin-left: 120px;
  }
  .hero-img {
    max-width: auto;
    margin-left: auto;
  }
}
@media (max-width: 767px) {
  .hero-img-wrapper {
    margin-left: 40px;
  }
}
@media (max-width: 485px) {
  .hero-img-wrapper {
    margin-left: 20px;
  }
}
@media (max-width: 424px) {
  .hero-img-wrapper {
    margin-left: -20px;
  }
}

@media (max-width: 991px) {
  .hero-v3 {
    min-height: auto;
    align-items: flex-start !important;
    padding-top: 120px; /* 固定ヘッダーとの重なりを回避 */
    padding-bottom: 60px;
  }
}

@media (max-width: 991px) {
  .hero-actions {
    text-align: center;
    margin-bottom: 20px;
  }
}
@media (max-width: 991px) {
  .hero-content {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    margin-left: calc(var(--bs-gutter-x) * .5 * -1);
    margin-right: calc(var(--bs-gutter-x) * .5 * -1);

    /* 上(0%)が最も薄い白、下(100%)が完全な白 */
    background-image: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,   /* 完全に透明な白 */
      rgba(255, 255, 255, 0.6) 10%,/* 中間の透明度 */
      rgba(255, 255, 255, 0.75) 30%,/* さらに濃く */
      rgba(255, 255, 255, 1) 50%  /* 不透明な白（真っ白） */
    );
  }
}

.floating-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  min-width: 150px;
  animation: float-y 4s ease-in-out infinite;
}

.card-1 {
  top: 10%;
  left: -20px;
}

.card-2 {
  bottom: 10%;
  right: -20px;
  animation-delay: 1s;
}

@media (max-width: 991px) {
  .card-1 {
    left: 0;
  }
  .card-2 {
    right: 0;
  }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Stance */
.stance-number {
  position: absolute;
  top: -100px;
  left: -10px;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(0,0,0,0.05);
  font-family: var(--font-serif);
  line-height: 1;
  z-index: -1;
}
@media (max-width: 576px) {
  .stance-number {
   top: -80px;
  }
}

.stance-img-box img {
  transition: transform 0.5s;
}
.stance-img-box:hover img {
  transform: scale(1.02);
}

@media (max-width: 991px) {
  .stance-img-box img {
    height: auto !important; /* Reset fixed height on mobile */
    max-height: 400px; /* Optional: limit height if needed but allow natural aspect ratio */
    object-fit: contain; /* Ensure image is fully visible */
  }
}

.timeline-box {
  /* Adjust padding for mobile to prevent overflow/width issues */
}
@media (max-width: 576px) {
  .timeline-box {
    padding: 2rem !important; /* Reduce padding from p-5 (3rem) */
  }
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid #eee;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-marker {
  position: absolute;
  left: -36px; /* -36px is pushing it out if container has no padding */
  top: 5px;
  width: 14px;
  height: 14px;
  background-color: var(--main-color);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--main-color);
}

@media (max-width: 576px) {
  .timeline {
    padding-left: 20px;
    margin-left: 10px;
  }
  .timeline-marker {
    left: -28px;
  }
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 5px;
}

/* Activity Slider */
.activity-card img {
  transition: transform 0.5s;
  height: 250px;
  object-fit: cover;
  object-position: top;
}

.activity-card:hover img {
  transform: scale(1.1);
}

.swiper-pagination-bullet-active {
  background-color: var(--main-color) !important;
}

.swiper-prev, .swiper-next {
  width: 40px;
  height: 40px;
  padding: 0 !important;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
}

/* CTA */
.cta-box {
  background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color-dark) 100%);
}

.cta-circle-1, .cta-circle-2 {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
}

.cta-circle-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -100px;
}

.cta-circle-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  right: -50px;
}

@media (max-width: 767px) {
  .cta-circle-1, .cta-circle-2 {
    display: none;
  }
}

.btn-white {
  background-color: #fff;
  color: var(--main-color);
}
.btn-white:hover {
  background-color: #f0f0f0;
  color: var(--main-color-dark);
}

/* SNS */
.sns-link {
  display: inline-block;
  width: 80px;
  height: 80px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
}

.sns-link.facebook i {
  font-size: 3rem;
  color: #1877f2;
}

.sns-link i {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}

.sns-link img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.sns-link:hover {
  transform: translateY(-5px);
  opacity: 0.8;
}

/* Footer */
.footer-v3 {
  background-color: #fff;
}
