/* ============================================
   profile.css - プロフィールページ専用スタイル
   ============================================ */

#profile-main {
  overflow-x: clip;
}


/* ============================================
   HERO
   ============================================ */

#profile-main .page-hero__img {
  height: 180%;
  object-position: center 30%;
}

#profile-main .page-hero__overlay {
  background-color: rgba(0, 0, 0, 0.40);
}


/* ============================================
   BIO
   ============================================ */

.profile-bio {
  position: relative;
  background-color: var(--cream-light);
  padding: 8rem 4rem;
  overflow: hidden;
}

/* sage 装飾ブロック（2枚重ね） */
.profile-bio__deco {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 340px;
  pointer-events: none;
  z-index: -1;
}

.profile-bio__sage {
  position: absolute;
  background-color: var(--sage);
  overflow: hidden;
}

/* ノイズテクスチャ */
.profile-bio__sage::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.945 0 0 0 0 0.925 0 0 0 0 0.843 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
}

.profile-bio__sage::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/suisai.png');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.profile-bio__sage--1 {
  top: 0px;
  left: -50px;
  width: 100px;
  height: 100px;
}

.profile-bio__sage--2 {
  top: -70px;
  left: 50px;
  width: 70px;
  height: 70px;
}

.profile-bio__sage--3 {
  top: 450px;
  right: -40px;
  width: 300px;
  height: 300px;
}

.profile-bio__sage--1::after,
.profile-bio__sage--2::after,
.profile-bio__sage--3::after {
  opacity: 0.6;
  mix-blend-mode: normal;
}


.profile-bio__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "names photo"
    "body  photo";
  column-gap: 4rem;
}

.profile-bio__text-col {
  grid-area: names;
  padding-top: 2rem;
}

.profile-bio__photo-col {
  grid-area: photo;
  align-self: start;
}

.profile-bio__body {
  grid-area: body;
}

.profile-bio__role {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--brown-mid);
  margin-bottom: 0.75rem;
}

.profile-bio__name-ja {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--brown-dark);
  margin-bottom: 0.25rem;
}

.profile-bio__name-en {
  font-family: var(--font-nav);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  line-height: 1.2;
  color: var(--brown-mid);
}

.profile-bio__body {
  font-size: 1rem;
  line-height: 2;
  color: var(--brown-dark);
}

.profile-bio__body p + p {
  margin-top: 0.75rem;
}

.profile-bio__photo-col {
  position: relative;
  padding: 1rem;
}

.profile-bio__photo {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  position: relative;
  z-index: 1;
}


/* ============================================
   主な出演／振付作品
   ============================================ */

.profile-works {
  display: flex;
  min-height: 520px;
  background-color: #000;
}

.profile-works__image-col {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
}

.profile-works__img {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.75;
}

.profile-works__text-col {
  flex: 1;
  padding: 5rem var(--side-padding-pc) 5rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.profile-works__title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--gold);
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(234, 204, 138, 0.3);
}

.profile-works__category {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-works__cat-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--gold);
}

.profile-works__cat-body {
  font-size: 0.875rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.75);
}


/* ============================================
   GALLERY
   ============================================ */

.profile-gallery {
  background-color: var(--cream-light);
  padding: 6rem var(--side-padding-pc) 5rem;
}

.profile-gallery__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.profile-gallery__heading {
  color: var(--sage);
}

.profile-gallery__lead {
  font-size: 0.875rem;
  line-height: 2;
  color: var(--brown-mid);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

/* PC ではカスタムスクロールバーを非表示 */
.gallery-scrollbar {
  display: none;
}

/* PC: 矢印ボタン不要 */
.gallery-slider__btn {
  display: none;
}

/* PC: グリッドレイアウトのコンテナ */
.gallery-slider-wrap {
  padding: 0;
}

/* PC: グリッド本体 */
.gallery-slider {
  overflow: visible;
}

.gallery-slider__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* 個々の画像アイテム */
.gallery-item {
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.gallery-item__img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

@media (hover: hover) {
  .gallery-item:hover .gallery-item__img {
    transform: scale(1.04);
  }
}

.gallery-item:active .gallery-item__img {
  transform: scale(1.04);
}


/* ============================================
   LIGHTBOX
   ============================================ */

.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.gallery-lightbox__content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox__img {
  max-width: min(900px, 90vw);
  max-height: min(600px, 90vh);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border: none;
}

.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  opacity: 0.75;
  transition: opacity var(--transition);
  z-index: 2;
  color: #C9A84C;
}

@media (hover: hover) {
  .gallery-lightbox__nav:hover {
    opacity: 0.85;
  }
}

.gallery-lightbox__nav:active {
  opacity: 0.85;
}

.gallery-lightbox__nav svg {
  width: 40px;
  height: 40px;
  display: block;
}

.gallery-lightbox__nav--prev {
  left: -56px;
}

.gallery-lightbox__nav--next {
  right: -56px;
}

.gallery-lightbox__nav--next svg {
  transform: scaleX(-1);
}

.gallery-lightbox__close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color var(--transition);
  z-index: 2;
}

@media (hover: hover) {
  .gallery-lightbox__close:hover {
    color: #fff;
  }
}

.gallery-lightbox__close:active {
  color: #fff;
}


/* ============================================
   BLOG
   ============================================ */

.profile-blog {
  background-color: var(--cream-light);
  padding: 5rem var(--side-padding-pc);
  border-top: 1px solid var(--gray-light);
}

.profile-blog__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 5rem;
}

.profile-blog__text-col {
  flex: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-blog__heading-wrap {
  position: relative;
  display: inline-block;
}

.profile-blog__heading {
  line-height: 1;
  background: linear-gradient(to bottom, #EACC8A 0%, #CFAB5C 50%, #574826 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-blog__pen {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  margin-left: 0.5rem;
  height: 120px;
  width: auto;
}

.profile-blog__lead {
  line-height: 2;
  min-width: 330px;
  margin-bottom: 1rem;
}

.profile-blog__more {
  display: inline-block;
  margin-top: 0.5rem;
  position: relative;
}

.profile-blog__more-img {
  height: 44px;
  width: auto;
  display: block;
  transition: opacity var(--transition);
}

.profile-blog__more-img--hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

/* PC（769px以上）のみhover演出。スマホ画面はhoverなし・タップで即遷移 */
@media (min-width: 769px) {
  .profile-blog__more:hover .profile-blog__more-img--normal {
    opacity: 0;
  }

  .profile-blog__more:hover .profile-blog__more-img--hover {
    opacity: 1;
  }
}

.profile-blog__photo-col {
  flex: 3;
}

.profile-blog__photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}


/* ============================================
   CONTACT（プロフィール専用）
   ============================================ */

.profile-contact {
  background-color: var(--cream-light);
  padding: 4rem var(--side-padding-pc) 6rem;
}

.profile-contact__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.profile-contact__card {
  margin: 0 auto;
  background-color: rgba(182, 201, 160, 0.15);
  border: 1px solid var(--sage);
  padding: 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.profile-contact__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.15em;
  color: var(--brown-dark);
  line-height: 1;
}

.profile-contact__subtitle {
  font-family: var(--font-nav);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  color: var(--brown-mid);
}

.profile-contact__icon img {
  height: 72px;
  width: auto;
  display: block;
  margin: 0 auto;
  opacity: 0.75;
}

.profile-contact__desc {
  font-size: 0.875rem;
  line-height: 2;
  color: var(--brown-dark);
  max-width: 480px;
}

.profile-contact__btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.85rem 2.5rem;
  background-color: var(--sage-dark);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background-color var(--transition);
}

@media (hover: hover) {
  .profile-contact__btn:hover {
    background-color: var(--brown-dark);
  }
}

.profile-contact__btn:active {
  background-color: var(--brown-dark);
}

@media (max-width: 1024px) {

  .profile-bio__sage--1 {
    top: 120px;
    left: 50px;
    width: 100px;
    height: 100px;
  }

  .profile-bio__sage--2 {
    top: 50px;
    left: 150px;
    width: 70px;
    height: 70px;
  }

  .profile-bio__sage--1,
  .profile-bio__sage--2 {
    display: none;
  }

  .profile-bio__sage--3 {
    z-index: -1;
    top: 600px;
    right: -64px;
    width: 600px;
    height: 600px;
  }

  .profile-bio__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "names"
      "photo"
      "body";
    gap: 2rem;
  }

  .profile-bio__name-en {
    margin-bottom: 0;
  }

  .profile-works__text-col {
    padding: 4rem 60px 4rem 2.5rem;
  }

  .profile-blog {
    padding: 5rem 60px;
  }

  .profile-blog__photo-col {
    flex: 0 0 340px;
  }

  .profile-contact {
    padding: 4rem 60px 6rem;
  }

  .profile-gallery {
    padding: 4rem 60px 4rem;
  }

  .profile-gallery__inner {
    padding: 0;
  }

  .gallery-lightbox__nav--prev {
    left: -52px;
  }

  .gallery-lightbox__nav--next {
    right: -52px;
  }

}


/* ============================================
   RESPONSIVE — mobile (≤ 768px)
   ============================================ */

@media (max-width: 768px) {

  /* HERO */
  #profile-main .page-hero__img {
    height: 130%;
  }

  /* BIO */
  .profile-bio {
    padding: 2rem var(--side-padding-sp);
  }

  .profile-bio__deco {
    width: 180px;
    height: 220px;
  }

  .profile-bio__name-ja {
    font-size: 1.5rem;
  }

  .profile-bio__sage--3 {
    top: clamp(200px, calc(125vw - 310px), 650px);
    left: 60px;
    right: auto;
    width: 700px;
    height: 600px;
  }

  /* WORKS */
  .profile-works {
    flex-direction: column;
    min-height: auto;
  }

  .profile-works__image-col {
    display: none;
  }

  .profile-works__text-col {
    padding: 3rem var(--side-padding-sp);
    gap: 1.5rem;
  }

  .profile-works__title {
    font-size: 1rem;
    border-bottom: none;
  }

  .profile-works__title::after {
    content: '';
    display: block;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(234, 204, 138, 0.3);
    width: 100%;
    height: calc(220px + 1.5rem);
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
      url('../images/profile/works.jpg');
    background-size: cover;
    background-position: center;
    background-origin: content-box;
  }

  /* GALLERY */
  .profile-gallery {
    padding: 4rem 0 4rem;
  }

  .profile-gallery__inner {
    padding: 0;
  }

  .profile-gallery__heading,
  .profile-gallery__lead {
    padding: 0 var(--side-padding-sp);
  }

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

  /* SP: CSS scroll-snap スライド */
  .gallery-slider-wrap {
    padding: 0;
    gap: 0;
  }

  .gallery-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-slider::-webkit-scrollbar {
    display: none;
  }

  .gallery-slider__track {
    display: flex;
    transition: none;
    gap: 1rem;
    padding: 0 var(--side-padding-sp) 0.75rem 30px;
  }

  .gallery-item {
    flex: 0 0 78vw;
    scroll-snap-align: start;
  }

  .gallery-item__img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  /* SP カスタムスクロールバー */
  .gallery-scrollbar {
    display: block;
    margin: 0.5rem var(--side-padding-sp) 0;
    height: 2px;
    background-color: var(--gray-light);
    border-radius: 1px;
    position: relative;
    overflow: hidden;
  }

  .gallery-scrollbar__thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background-color: var(--brown-mid);
    border-radius: 1px;
  }

  /* LIGHTBOX */
  .gallery-lightbox__img {
    max-width: 92vw;
    max-height: min(600px, 80vh);
  }

  .gallery-lightbox__nav--prev {
    left: 0;
    top: auto;
    bottom: -56px;
    transform: none;
  }

  .gallery-lightbox__nav--next {
    right: 0;
    top: auto;
    bottom: -56px;
    transform: none;
  }

  .gallery-lightbox__nav--next svg {
    transform: scaleX(-1);
  }

  .gallery-lightbox__close {
    top: -44px;
    right: 0;
  }

  /* BLOG */
  .profile-blog {
    padding: 4rem var(--side-padding-sp);
  }

  .profile-blog__inner {
    flex-direction: column;
    gap: 2rem;
  }

  .profile-blog__text-col {
    align-items: center;
    text-align: center;
  }

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

  .profile-blog__photo-col {
    flex: none;
    width: 100%;
  }

  .profile-blog__photo {
    height: 220px;
  }

  /* CONTACT */
  .profile-contact {
    padding: 3rem var(--side-padding-sp) 5rem;
  }

  .profile-contact__card {
    padding: 2.5rem 1.5rem;
  }

}
