/* static/css/team_home.css */

/* ===== base ===== */
.team-page { background: #fff; }
.team-container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}
.team-section {
  padding: 72px 0;
  background: #fff;
}
.team-section--soft { background: linear-gradient(180deg, #F5F7FB 0%, #EDF1F7 100%); }

.team-h2{
  margin: 0 0 18px;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(10,30,63,.72);
}

/* ===== hero ===== */
.team-hero{
  position: relative;
  min-height: 64vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0A1E3F; /* deep indigo fallback */
}
.team-hero__bg{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,30,63,.85) 0%, rgba(10,30,63,.92) 65%, rgba(10,30,63,.98) 100%),
    url("../img/team_hero.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  filter: saturate(.85) contrast(1.05);
}
.team-hero__inner{
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 40px));
  padding: 96px 0 72px;
  color: #fff;
  text-align: left;
}
.team-hero__kicker{
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .86;
}
.team-hero__title{
  margin: 0 0 14px;
  font-size: clamp(34px, 4.8vw, 56px);
  letter-spacing: .08em;
  line-height: 1.08;
  font-weight: 700;
}
.team-hero__lead{
  margin: 0;
  font-size: 14px;
  letter-spacing: .08em;
  opacity: .85;
}

/* scroll hint */
.team-hero__scroll{
  position: absolute;
  left: 0;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.55);
  display: grid;
  place-items: center;
  text-decoration: none;
}
.team-hero__scroll span{
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255,255,255,.75);
  border-bottom: 2px solid rgba(255,255,255,.75);
  transform: rotate(45deg);
  margin-top: -4px;
}

/* ===== intro ===== */
.team-intro{
  max-width: 720px;
  font-size: 15px;
  line-height: 2.1;
  color: rgba(10,30,63,.86);
}

/* ===== philosophy ===== */
.team-philo{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.team-philo__card{
  border: 1px solid #E6EAF0;
  padding: 22px 20px;
  background: #fff;
}
.team-philo__en{
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(10,30,63,.55);
}
.team-philo__ja{
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: rgba(10,30,63,.92);
}

/* ===== numbers ===== */
.team-numbers{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.team-num{
  border: 1px solid #E6EAF0;
  padding: 18px 16px;
}
.team-num__label{
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(10,30,63,.60);
}
.team-num__value{
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
  color: rgba(10,30,63,.95);
  text-align: center;
}
.team-num__unit{
  margin-left: 4px;
  font-size: 10px;
  letter-spacing: .06em;
  color: rgba(10,30,63,.55);
  font-feature-settings: "palt";
}

/* ===== field ===== */
.team-field{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.team-field__card{
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  border: 1px solid #E6EAF0;
  background: #fff;
}
.team-field__img{
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.team-field__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.9) contrast(1.03);
  transform: scale(1.01);
  transition: transform .25s ease, filter .25s ease;
}
.team-field__meta{
  padding: 16px 16px 18px;
}
.team-field__title{
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(10,30,63,.82);
}
.team-field__desc{
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(10,30,63,.78);
}
.team-field__card:hover .team-field__img img{
  transform: scale(1.04);
  filter: saturate(.9) contrast(1.05) brightness(.92);
}

/* ===== CTA ===== */
.team-cta{
  border: 1px solid #0A1E3F;
  padding: 22px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.team-cta__title{
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(10,30,63,.82);
}
.team-cta__sub{
  margin: 0;
  font-size: 14px;
  color: rgba(10,30,63,.78);
}
.team-cta__btn{
  border: 1px solid #0A1E3F;
  padding: 12px 14px;
  text-decoration: none;
  color: #0A1E3F;
  font-size: 14px;
  letter-spacing: .08em;
  white-space: nowrap;
}
.team-cta__btn:hover{
  background: #0A1E3F;
  color: #fff;
}

/* ===== responsive ===== */
@media (max-width: 960px){
  .team-philo{ grid-template-columns: 1fr; }
  .team-numbers{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-field{ grid-template-columns: 1fr; }
  .team-cta{ flex-direction: column; align-items: flex-start; }
  .team-hero__inner{ padding: 86px 0 66px; }
}
@media (max-width: 520px){
  .team-section{ padding: 56px 0; }
  .team-hero{ min-height: 58vh; }
  .team-hero__scroll{ left: 0; }
}



/* intro 折りたたみ */
.team-intro {
  max-width: 720px;
}

/* 初期：折りたたみ */
.team-intro__wrap{
  position: relative;
  max-height: 360px;           /* ← ここで見せたい量を調整（おすすめ 320-420） */
  overflow: hidden;
  transition: max-height .35s ease;
}

/* 開いた時 */
.team-intro__wrap.is-open{
  max-height: 5000px;          /* 十分大きく */
}

/* フェード */
.team-intro__fade{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 75%);
  pointer-events: none;
  transition: opacity .2s ease;
}

/* 開いたらフェード消す */
.team-intro__wrap.is-open .team-intro__fade{
  opacity: 0;
}

/* ボタン（硬派） */
.team-intro__more{
  margin-top: 14px;
  border: 1px solid #0A1E3F;
  background: transparent;
  color: #0A1E3F;
  padding: 10px 14px;
  font-size: 14px;
  letter-spacing: .08em;
  cursor: pointer;
}
.team-intro__more:hover{
  background: #0A1E3F;
  color: #fff;
}

/* h3のトーン統一（任意） */
.team-intro h3{
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: .08em;
  color: rgba(10,30,63,.92);
}
.team-intro p{
  margin: 0 0 14px;
  line-height: 2.0;
  color: rgba(10,30,63,.86);
}

.page{
  min-height: auto;
}

/* ===== CTA GRID ===== */
.team-cta-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* 共通CTA */
.team-cta{
  border: 1px solid #0A1E3F;
  padding: 26px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
}

.team-cta__body{
  max-width: 70%;
}

.team-cta__title{
  margin: 0 0 18px;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(10, 30, 63, .72);
}

.team-cta__sub{
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(10,30,63,.78);
}

/* ボタン共通 */
.team-cta__btn{
  border: 1px solid #0A1E3F;
  padding: 12px 14px;
  text-decoration: none;
  color: #0A1E3F;
  font-size: 14px;
  letter-spacing: .08em;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}

.team-cta__btn:hover{
  background: #0A1E3F;
  color: #fff;
}

/* SPONSOR側は少し控えめ */
.team-cta--sponsor{
  border-color: rgba(10,30,63,.45);
}

.team-cta__btn--ghost{
  border-color: rgba(10,30,63,.45);
  color: rgba(10,30,63,.75);
}

.team-cta__btn--ghost:hover{
  background: rgba(10,30,63,.08);
  color: #0A1E3F;
}

/* ===== Responsive ===== */
@media (max-width: 960px){
  .team-cta-grid{
    grid-template-columns: 1fr;
  }
  .team-cta{
    flex-direction: column;
    align-items: flex-start;
  }
  .team-cta__body{
    max-width: 100%;
  }
}

