/* General Styles */
body {
  font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif; /* 可愛らしいフォントを優先 */
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f4f7f6; /* Light gray background */
  color: #333;
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 5px; /* バーの高さ */
  background-color: #8A2BE2; /* 紫色 */
  z-index: 10000; /* 他の要素より前面に */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.bg-light {
  background-color: #ffffff;
}

/* Loading Overlay */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f4f7f6;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.loading-content img {
  max-width: 200px;
  animation: fadeInScale 1.5s ease-out forwards;
}



@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes revealImageFromLeft {
  from {
    clip-path: inset(0 100% 0 0); /* 右端から隠す */
  }
  to {
    clip-path: inset(0 0 0 0); /* 全体を表示 */
  }
}



.img-wrap {
  overflow: hidden; /* アニメーションのために必要 */
}

.img-wrap img {
  animation: revealImageFromLeft 2s ease-out forwards; /* 左から表示するアニメーション */
}

/* Header & Hero Section */
.hero-section {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/1500x500.jpeg') no-repeat center center/contain; /* coverからcontainに変更 */
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 500px; /* Adjust as needed */
}

.hero-content h1 {
  font-family: 'Poppins', sans-serif; /* 英語フォント */
  font-size: 3.5rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content .tagline {
  font-size: 1.5rem;
  margin-top: 0;
  opacity: 0.9;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: flex;
  gap: 30px;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.main-nav a:hover {
  background-color: rgba(255,255,255,0.2);
}

/* Section Headings */
h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

h2::after {
  content: '';
  width: 80px;
  height: 4px;
  background-color: #a7d9ed;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -15px;
  border-radius: 2px;
}

/* About Section */
.about-content {
  display: flex;
  flex-direction: column; /* Default to column for mobile */
  align-items: center;
  gap: 40px;
}

.profile-image {
  max-width: 300px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.about-text {
  text-align: left;
  max-width: 600px;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.profile-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-details li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.profile-details strong {
  color: #555;
}

.skeb-link a {
  display: inline-block;
  background-color: #a7d9ed;
  color: #fff;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.skeb-link a:hover {
  background-color: #87c0d9;
}

/* Works Section */
.work-category h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  color: #2c3e50;
  margin-top: 40px;
  margin-bottom: 30px;
  text-align: center;
}

.work-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.work-item {
  text-align: center;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.work-item:hover {
  transform: translateY(-5px);
}

.work-item img {
  max-width: 150px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.work-item a {
  display: block;
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}

.work-item a:hover {
  text-decoration: underline;
}

.work-image-large {
  max-width: 250px; /* For larger images like shop */
}

/* Movies Section */
.movies-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px; /* Adjust gap as needed */
}

.movie-item {
  flex: 0 1 45%; /* Flex-grow, flex-shrink, and basis */
  max-width: 45%; /* On larger screens, two items per row */
  text-align: center;
}

.movie-item a {
  display: inline-block;
  position: relative;
  transition: transform 0.3s ease;
}

.movie-item a:hover {
  transform: scale(1.05);
}

.movie-item img {
  width: 100%; /* Make image fill the container */
  height: auto;
  border-radius: 8px;
  border: 2px solid #a7d9ed;
}

.movie-item a::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 60px; /* Slightly smaller play icon */
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  transition: color 0.3s ease;
}

.movie-item a:hover::after {
  color: rgba(255, 0, 0, 0.9);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 767px) {
  .movie-item {
    flex-basis: 100%; /* Full width on smaller screens */
    max-width: 100%;
  }
}

.youtube-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  margin: 0 auto;
  max-width: 800px; /* Adjust max-width as needed */
}

.youtube-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

/* Contact Section */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
}

.form-group textarea {
  resize: vertical;
}

.btn-primary {
  background-color: #a7d9ed;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #87c0d9;
}

/* Footer */
.site-footer {
  background-color: #2c3e50;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#x-bubble,
#youtube-bubble {
  position: fixed;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease-in-out;
  z-index: 999;
}

#x-bubble {
  bottom: 20px;
  right: 20px;
  background-color: #1DA1F2; /* Xのブランドカラー */
}

#youtube-bubble {
  bottom: 90px; /* Xの吹き出しの上に配置 */
  right: 20px;
  background-color: #FF0000; /* YouTubeのブランドカラー */
}

#x-bubble:hover,
#youtube-bubble:hover {
  transform: scale(1.1);
}

#x-bubble img,
#youtube-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Walking Cat Animation */
#walking-cat {
  position: fixed;
  bottom: 0;
  left: 100%; /* Start off-screen to the right */
  z-index: 10001;
  animation: walk-left 20s linear infinite; /* 10s move + 10s pause */
  animation-play-state: paused; /* Start paused */
  visibility: hidden; /* Start hidden */
}

#walking-cat img {
  display: block;
  height: 144px; /* 3 times the original height (48px * 3) */
  transform: scaleX(1); /* No flip, cat faces left */
}

@keyframes walk-left {
  0% {
    left: 100%;
  }
  45% { /* Move for 45% of the animation duration (approx 9s) */
    left: -150px; /* End off-screen to the left */
  }
  50% { /* Stay off-screen for 5% (approx 1s) to ensure smooth transition */
    left: -150px;
  }
  100% { /* Stay off-screen for the remaining 50% (approx 10s) */
    left: -150px;
  }
}

/* Responsive Design */
@media (min-width: 768px) {
  .about-content {
    flex-direction: row; /* Row for larger screens */
    text-align: left;
  }

  .about-text {
    text-align: left;
  }

  .profile-image {
    margin-right: 40px;
  }
}

@media (max-width: 767px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content .tagline {
    font-size: 1.2rem;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .section-padding {
    padding: 50px 0;
  }

  h2 {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .profile-image {
    margin-bottom: 30px;
  }

  .work-items {
    flex-direction: column;
    align-items: center;
  }

  .work-item {
    width: 90%;
  }

  .contact-form {
    padding: 30px;
  }
}
