@charset "UTF-8";

/*
=========================================
  Member Section - メンバー紹介
========================================= */

.member {
  background-color: var(--c-bg-gray);
  padding-top: 18rem;
  padding-bottom: 10.5rem;
  position: relative;
  overflow: hidden;
}

/* Inner Container */
.member__inner {
  max-width: var(--w-content);
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
  position: relative;
}

/* Background Decorative Text */
.member__bg-text {
  font-family: var(--font-decorative);
  font-size: 16.4rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: var(--c-bg-pink-text);
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  top: -6rem;
  left: -10rem;
}

/* Section Header */
.member__header {
  position: relative;
  z-index: 1;
  margin-bottom: 3.7rem;
}

/* Section Title */
.member__title {
  font-family: var(--font-base);
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.1em;
  color: var(--c-text-main);
}

/* Section Introduction */
.member__intro {
  font-family: var(--font-base);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.1em;
  color: var(--c-text-main);
  margin-bottom: 5.5rem;
  position: relative;
  z-index: 1;
}

/*
=========================================
  Member List Grid
========================================= */
.member__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.4rem; /* 24px */
  position: relative;
  z-index: 1;
}

/* Member Card (List Item) */
.member__card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  cursor: pointer;
  transition: opacity 0.3s;
}

.member__card:hover {
  opacity: 0.8;
}

.member__card-visual {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 1rem; /* 10px */
  overflow: hidden;
}

.member__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.member__card:hover .member__card-img {
  transform: scale(1.05);
}

.member__card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ★PC版修正: 文字サイズをさらに小さく (1.5rem -> 1.4rem) */
.member__card-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500; /* Medium */
  font-size: 1.4rem; /* 14px */
  letter-spacing: 0.1em; /* 10% */
  color: var(--c-primary); /* #C2133D */
  line-height: 1.5;
}

/* Link Button Design */
.member__card-link {
  display: flex;
  align-items: center;
  justify-content: center; /* 中央揃えに変更 */
  width: 100%; /* 横幅いっぱいに広げる */
  gap: 0.8rem;
  background-color: var(--c-primary); /* 背景を赤に */
  border-radius: 9999px; /* カプセル型に */
  padding: 1rem 0.5rem; /* 内側の余白を設定 */
  margin-top: 0.5rem; /* 名前との間隔を少し開ける */
  transition: transform 0.3s ease;
}

.member__card-link-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700; /* Bold */
  font-size: 1.5rem; /* 文字数が長いため少し小さめに調整 */
  letter-spacing: 0.05em; /* 文字間を調整 */
  color: #fff; /* 文字色を白に */
}

.member__card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background-color: #fff; /* アイコン背景を白に */
  color: var(--c-primary); /* 矢印を赤に */
  font-size: 1.1rem;
  border: none; /* 既存のボーダーを削除 */
}

/* 以前のホバー時の色反転をリセット（白背景・赤矢印のまま固定） */
.member__card:hover .member__card-icon {
  background-color: #fff;
  color: var(--c-primary);
}


/*
=========================================
  Modal Window (Modified Layout)
========================================= */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s;
}

.modal.is-active {
  visibility: visible;
  opacity: 1;
}

/* Overlay */
.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

/* Window Container (Outer Frame) */
.modal__window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 117.6rem; /* 1176px */
  max-width: 95vw;
  max-height: 90vh;
  background-color: #fff;
  border-radius: 2rem; /* 20px */
  padding: 0; 
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Scroll Area (Inner Scrollable Box) */
.modal__scroll-area {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 6rem;
  scrollbar-gutter: stable;
}

/* Adjusting scrollbar to look "inset" (inside the radius) */
.modal__window {
  padding-right: 1rem;
}
.modal__scroll-area {
  padding-right: 5rem;
}

/* Content Inner Layout */
.modal__content-inner {
  display: flex;
  flex-direction: column;
  /* ★修正: gap指定を削除し、マージンで個別に制御 */
  gap: 0;
}

/* Close Button */
.modal__close-btn {
  position: absolute;
  top: 3rem;
  right: 3rem;
  width: 4.7rem; /* 47px */
  height: 4.7rem; /* 47px */
  border: 1px solid var(--c-primary);
  border-radius: 50%;
  background: #fff;
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem; /* 23px */
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
}

.modal__close-btn:hover {
  background-color: var(--c-primary);
  color: #fff;
}


/* --- Top Section (Photo + Right Col) --- */
.modal__top-section {
  display: flex;
  gap: 6rem;
  align-items: flex-start;
  /* ★修正: 下のセクションとの余白をここで確保 */
  margin-bottom: 3rem;
}

.modal__visual {
  flex-shrink: 0;
  width: 45rem; /* 450px */
}

.modal__img {
  width: 45rem;
  height: 45rem;
  object-fit: cover;
  border-radius: 1rem; /* 10px */
}

.modal__info-top {
  flex: 1;
}

/* Name Label */
.modal__name {
  display: inline-block;
  background-color: var(--c-primary);
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700; /* Bold */
  font-size: 1.8rem; /* 18px */
  letter-spacing: 0.1em; /* 10% */
  width: fit-content;
  padding: 1.4rem 4rem; 
  border-radius: 1rem; /* 10px */
  margin-bottom: 5rem;
  line-height: 1.4;
}

/* --- Bottom Section (Full Width QAs) --- */
.modal__bottom-section {
  width: 100%;
}

/* Q&A List Styling */
.modal__qa {
  /* ★修正: Flex gap を廃止し、marginで制御 */
  display: block;
}

.modal__question {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700; /* Bold */
  font-size: 2.8rem; /* 28px */
  line-height: 1.42;
  letter-spacing: 0;
  color: var(--c-primary);
  border-left: 0.8rem solid var(--c-primary);
  padding-left: 2rem;
  
  /* ★PC修正: 質問と回答の間を詰める (2rem -> 1rem) */
  margin-bottom: 1rem;
}

/* 1つ目の質問の高さ確保 */
.modal__qa > dt:first-child {
  min-height: 7.1rem;
  display: flex;
  align-items: center;
}

/* 2つ目以降の質問の高さ確保 */
.modal__qa > dt:not(:first-child) {
  min-height: 4rem;
  display: flex;
  align-items: center;
}

.modal__answer {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500; /* Medium */
  font-size: 1.6rem; /* 16px */
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--c-text-main);
  margin-left: 0;
  
  /* ★PC修正: ブロック間の余白（回答と次の質問の間） (2rem -> 3rem) */
  margin-bottom: 3rem;
}

/* 最後の要素の余白はなし */
.modal__answer:last-child {
  margin-bottom: 0;
}


/*
=========================================
  SP Layout (max-width: 768px)
========================================= */
@media (max-width: 76.8rem) {
  
  .member {
    padding-top: 7.2rem;
    padding-bottom: 6rem;
  }

  .member__inner {
    padding: 0 1.5rem;
  }

  .member__bg-text {
    font-size: 7.7rem;
    top: -3rem;
    left: 0;
  }
  
  .member__header {
    margin-bottom: 1.9rem;
  }
  
  .member__title {
    font-size: 2.2rem;
  }
  
  .member__intro {
    font-size: 1.4rem;
    line-height: 1.5;
    margin-bottom: 3.1rem;
  }

  /* List Grid - SP: 2 Columns */
  .member__list {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 4rem;
    column-gap: 1.5rem;
  }
  
  .member__card {
    gap: 1rem;
  }
  
  .member__card-body {
    gap: 0.5rem; 
  }

  /* Modal - SP */
  .modal__window {
    width: 90%;
    max-height: 80vh;
    border-radius: 1rem;
    padding-right: 0; /* Reset PC padding */
  }

  .modal__scroll-area {
    padding: 4rem 2rem;
  }
  
  .modal__close-btn {
    top: 1.5rem;
    right: 1.5rem;
    width: 3.2rem; 
    height: 3.2rem;
    font-size: 1.6rem;
  }
  
  /* Reset PC split layout */
  .modal__top-section {
    flex-direction: column;
    gap: 0; /* gap制御をやめてmarginで調整 */
    margin-bottom: 2.5rem;
  }

  /* Image Position */
  .modal__visual {
    width: 100%;
    margin-top: 2rem; 
    margin-bottom: 2rem; /* 写真下の余白 */
  }
  
  .modal__img {
    width: 100%;
    height: auto;
    object-fit: contain;
    aspect-ratio: auto;
  }
  
  /* Name Label - Full Width */
  .modal__name {
    font-size: 1.4rem;
    padding: 1rem 2rem;
    width: 100%; 
    max-width: 100%;
    display: block;
    margin-bottom: 3rem; /* 名前下の余白 */
    text-align: left;
    box-sizing: border-box;
  }
  
  /* Q&A Spacing SP */
  .modal__qa {
    display: block;
  }
  
  .modal__question {
    font-size: 1.8rem;
    line-height: 1.4;
    border-left-width: 0.5rem;
    padding-left: 1.2rem;
    min-height: auto !important;
    display: block !important;
    
    /* ★SP修正: 質問と回答の間を詰める */
    margin-bottom: 0.8rem;
  }
  
  .modal__answer {
    font-size: 1.4rem;
    
    /* ★SP修正: 回答と次の質問の間 */
    margin-bottom: 2.5rem;
  }
}

