/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: calc(10 / 375 * 100vw);
}

@media (min-width: 768px) {
  html {
    font-size: calc(10 / 1920 * 100vw);
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: #000000;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
}

.text-sm {
  font-size: clamp(12px, 0.875rem, 8.75px);
}

.text-center {
  text-align: center;
}

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


.mb-6 {
  margin-bottom: 1.5rem;
}

/* Layout */
.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media (min-width: 768px) {
  .container {
    flex-direction: row;
    max-width: 1200px;
    margin: 0 auto;
  }



}

/* Sidebar */
.left-panel {
  width: 100%;
  color: white;
  padding: 2rem;
  background-color: #a17373;
  display: flex;
  flex-direction: column;
}

.logo {
  text-align: center;
  margin-bottom: 0rem;
  font-size: clamp(12px, 3rem, 30px);
}

.subtitle {
  font-size: clamp(12px, 1.25rem, 12.5px);
  font-style: italic;
  font-weight: 300;
  width: 82%;
  margin: 0 auto;
}

.subtitle-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.divider {
  margin: 0rem auto;
  width: 1px;
  height: 45px;
  background-color: white;
}

/* .about-section {
  margin-bottom: 2rem;
} */

.about-img {
  width: 35%;
  height: auto;
  object-fit: cover;
  margin: 2rem 0 1rem 50%;
  transform: translateX(-50%);
}

.about-title {
  font-size: clamp(12px, 2.4rem, 24px);
  margin-bottom: 1rem;
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  margin-top: 2rem;
  margin-bottom: 2rem;
  margin: 2rem auto;
}

.social-icon {
  width: 40px;
  height: auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  aspect-ratio: 1/1;
}

.social-icon img {
  transition: filter 0.3s ease;
}

.social-icon:hover img {
  filter: brightness(1.5);
}

.social-icon:nth-of-type(3){
  width: 57px;
  aspect-ratio: 57/40;
}

.contact-box, .contact-button {
  border: 1px solid white;
  padding: 1rem;
  border-radius: 0.25rem;
  margin-top: 2rem;
  text-align: center;
  cursor: pointer;
  font-size: clamp(12px, 1.6rem, 16px);
}

/* Content Area */
.content {
  flex: 1;
  background-color: white;
  padding: 1rem;
}

.content-inner {
  max-width: 450px;
  margin: 0 auto;
}

/* Service Cards */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .left-panel {
    width: 47%;
    min-height: 100vh;

    padding: 0;
    background-color: #ffffff;
  }

  .logo {
    margin-bottom: 0;
    font-size: clamp(14px, 5.2rem, 52px);
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .wide-card {
    grid-column: span 2;
  }
  .social-icons {
    width: 55%;
  }

  .social-icon {
    width: 29px;
    height: 29px;
  }

  .social-icon:nth-of-type(3){
    height: 29px;
    aspect-ratio: 57 / 40;
    width: auto;
  }
}

@media (min-width: 1024px) {
  .wide-card {
    grid-column: span 1;
  }
}

.service-card {
  border-radius: 0.25rem;
  padding: 0.5rem;
}

.service-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-image {
  aspect-ratio: 299/150;
  margin-bottom: 0.5rem;
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.service-card .thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card .overlay-text {
  color: #A17373;
  font-size: clamp(12px, 1.6rem, 16px);
  font-weight: 700;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.service-card a:hover .thumbnail-overlay {
  opacity: 1;
}

.service-card a:hover .overlay-text {
  transform: translateY(0);
}

.service-card a:hover img {
  transform: scale(1.05);
}

.card-title {
  text-align: center;
  font-size: clamp(12px, 1.8rem, 18px);
  color: #A17373;
}

/* Sections */
.section {
  border-top: 1px solid #d9d9d9;
  padding-top: 1rem;
  margin-bottom: 2rem;
}

.section-title {
  font-size: clamp(12px, 2.4rem, 24px);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  font-size: clamp(12px, 1.6rem, 16px);
  margin-bottom: 1rem;
  color: #806D6D;
}

.list-items {
  list-style: disc;
  margin-left: 1rem;
}

.list-items img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* YouTube Section */
.youtube-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.youtube-grid a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.youtube-link {
  transition: transform 0.3s ease;
}

.youtube-link:hover {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .youtube-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.youtube-thumbnail {
  position: relative;
  overflow: hidden;
}

.youtube-thumbnail img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay-text {
  color: #a17373;
  font-size: clamp(12px, 1.6rem, 16px);
  font-weight: bold;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.youtube-link:hover .thumbnail-overlay {
  opacity: 1;
}

.youtube-link:hover .overlay-text {
  transform: translateY(0);
}

/* SNS Section */
.sns-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.sns-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
}

/* HP Section */
.contact-info {
  text-align: center;
  margin-bottom: 2rem;
}

.video-container {
  width: 90%;
  height: auto;
  margin: 2rem auto 0 auto;
  position: relative;
  overflow: hidden;
}

.video-content {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-container a {
  display: block;
  position: relative;
}

.video-container .thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-container .overlay-text {
  color: #A17373;
  font-size: clamp(12px, 1.8rem, 18px);
  font-weight: 500;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.video-container a:hover .video-content {
  transform: scale(1.05);
}

.video-container a:hover .thumbnail-overlay {
  opacity: 1;
}

.video-container a:hover .overlay-text {
  transform: translateY(0);
}

/* Media Section */
.media-card {
  width: 90%;
  border-radius: 0.25rem;
  padding: 0.5rem;
  margin: 0 auto 1rem auto;
}

.media-link {
  display: block;
  width: 100%;
  margin: 1.5rem auto 0.5rem auto;
  position: relative;
  overflow: hidden;
}

.media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.media-link .thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.media-link .overlay-text {
  color: #A17373;
  font-size: clamp(12px, 1.8rem, 18px);
  font-weight: 700;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.media-link:hover .media-image {
  transform: scale(1.05);
}

.media-link:hover .thumbnail-overlay {
  opacity: 1;
}

.media-link:hover .overlay-text {
  transform: translateY(0);
}

.media-header {
  background-color: #4b0082;
  color: white;
  padding: 0.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.media-title {
  font-weight: bold;
}

.media-subtitle {
  font-size: clamp(12px, 1.8rem, 18px);
}

/* 既存のスタイルを保持 */
.left-panel-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.profile-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 450px;
  margin: 0 auto;
}

.about-text {
  font-size: clamp(12px, 1.6rem, 16px);
}

.about-name {
  margin-bottom: 20px;
  font-size: clamp(12px, 1.8rem, 18px);
}

.mb-10 {
  margin-bottom: 10px;
}

.about-text-dec {
  margin-left: 5px;
}

.icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Desktop Styles */
@media (min-width: 768px) {
  .container {
    flex-direction: row;
  }
  
  .left-panel {
    position: sticky;
    width: 50%;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: end;
    top: 0;
    left: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin: 0;
  }

  .left-panel-content {
    min-width: 350px;
    height: 100%;
    background-color: #a17373;
    color: #ffffff;
    padding: 3rem 1.5rem;
  }

  .subtitle {
    width: 50%;
  }
  .subtitle-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .about-section {
    width: 70%;

    position: relative;
  }

  .about-section::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: #a17373;
  }

  .about-img {
    position: absolute;
    top: 1%;
    right: 0;
    width: 30%;
    height: auto;
    object-fit: cover;

    margin: 0;
    transform: none;
  }

  .about-title {
    font-size: clamp(14px, 3.6rem, 36px);
  }

  .about-text {
    font-size: clamp(14px, 1.8rem, 18px);
  }

  .about-name {
    font-size: clamp(14px, 2.8rem, 28px);
  }

  .divider {
    margin: 2rem auto;
    height: 45px;
  }

  .about-text-dec {
    display: inline-block;
  }

  .contact-box, .contact-button {
    width: 60%;
    font-size: clamp(14px, 2rem, 20px);
  }

  .profile-content {
    position: static;
    padding-top: 20;
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .content {
    width: 50%;
    padding: 3rem 3.5rem;
  }

  .content-inner {
    max-width: 650px;
  }

  .card-title {
    line-height: 1;
  }

  .section { 
    padding-top: 3rem;
  }

  .section-title {
    font-size: clamp(14px, 2.4rem, 24px);
  }

  .section-subtitle {
    font-size: clamp(14px, 1.6rem, 16px);
  }

  .video-container {
    width: 50%;
  }

/* 
  .media-card {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .media-card-item{
    width: 48%;
    flex: 1;
    overflow: hidden;
  }

  .media-link {
    width: 100%;
    height: 52px;
  } */

  .media-card {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap:4%;
  }
  
  .media-card-item {
    width: 48%;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  /* リンク部分を相対位置にして、内部のオーバーレイと画像配置に対応 */
  .media-link {
    width: 100%;
    flex: 1;
    display: block;
    position: relative;
  }
  
  /* 左側（1つ目）の画像は自然なアスペクト比で表示 */
  .media-card-item:first-child .media-link img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  /* 右側（2つ目）の画像は、親要素の高さに合わせる */
  .media-card-item:last-child .media-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* 必要に応じて contain に変更可能 */
    display: block;
  }
  
  
  
}

/* ポップアップスタイル（styles.cssに追加） */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.popup-content {
  position: relative;
  background-color: white;
  padding: 10px;
  border-radius: 5px;
  max-width: 80%;
  max-height: 80%;
}

.close-popup {
  position: absolute;
  top: 0px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #3a3a3a;
}

#popupImage {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

/* お問い合わせボタンのホバー効果 */
.contact-button {
  transition: all 0.3s ease;
}

.contact-button:hover {
  background-color: white;
  color: #a17373;
}

/* ===== スクロールインジケーター ===== */
.scroll-indicator {
  position: fixed;
  right: 20px; /* 画面右からの距離 */
  top: 62%;     /* 上から50%の位置 */
  transform: translateY(-50%); /* 垂直中央揃え */
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 999; /* 他の要素より手前に表示 */
  transition: color 0.3s ease, background-color 0.3s ease; /* 色の変化を滑らかに */
}

.scroll-text {
  writing-mode: vertical-rl; /* 文字を縦書き（右から左へ） */
  text-orientation: mixed;
  color: white; /* SP時の文字色を白に変更 */
  font-size: clamp(10px, 1.2rem, 12px);
  margin-bottom: 10px; /* 線との間隔 */
  font-family: 'Inter', sans-serif; /* フォント指定（例） */
  transition: color 0.3s ease; /* 色の変化を滑らかに */
}

.scroll-line-container {
  width: 2px; /* 線の太さ */
  height: 80px; /* 線の長さ */
  background-color: rgba(255, 255, 255, 0.3); /* SP時の薄い線の色を白ベースに変更 */
  position: relative;
  overflow: hidden; /* はみ出した部分を隠す */
  border-radius: 1px; /* 角を少し丸める */
  transition: background-color 0.3s ease; /* 色の変化を滑らかに */
}

.scroll-line {
  width: 100%;
  height: 40px; /* 動く部分の長さ */
  background-color: white; /* SP時の動く部分の線の色を白に変更 */
  position: absolute;
  top: 0;
  left: 0;
  /* アニメーションを上から下へ流れるように変更 */
  animation: scroll-down-animation 1.8s linear infinite; /* アニメーション適用 */
  border-radius: 1px;
  transition: background-color 0.3s ease; /* 色の変化を滑らかに */
}

/* スクロールアニメーション (上から下へ突き抜ける) */
@keyframes scroll-down-animation {
  0% {
    /* 開始位置 (上端より外) */
    transform: translateY(-40px); /* 線高さ分だけ上に */
    opacity: 0;
  }
  20% {
    /* 表示され始める */
    opacity: 1;
  }
  80% {
    /* 下端に到達する直前まで表示 */
    opacity: 1;
  }
  100% {
    /* 終了位置 (下端より外) */
    transform: translateY(80px); /* コンテナ高さ分だけ下に移動 */
    opacity: 0; /* 完全に消える */
  }
}

/* 色が変わった状態のスタイル (SP表示時、contentが見えた時) */
.scroll-indicator.indicator-colored .scroll-text {
  color: #555; /* PCと同じ文字色 */
}

.scroll-indicator.indicator-colored .scroll-line-container {
  background-color: rgba(161, 115, 115, 0.3); /* PCと同じ薄い線の色 */
}

.scroll-indicator.indicator-colored .scroll-line {
  background-color: #a17373; /* PCと同じ動く部分の線の色 */
}

/* ===== メディアクエリ ===== */
@media (min-width: 768px) {
  /* PC表示時のスクロールインジケーター色を再設定 */
  /* デフォルトでPCの色になるように .indicator-colored クラスは不要 */

  .scroll-indicator {
    top: 50vh;   
  }

  .scroll-text {
    color: #555;
  }

  .scroll-line-container {
    background-color: rgba(161, 115, 115, 0.3);
  }

  .scroll-line {
    background-color: #a17373;
  }
  
}