/* ==========================================================================
   experience.css
   RESIDENCE EXPERIENCE ページ専用スタイル
   - 共通ヘッダー/フッター/タイポグラフィ等は styles.css を読み込んだ上で使用
   - WordPress 化する際は page-experience.php からのみエンキューする想定
   ========================================================================== */

/* ===== ページ全体（ヘッダー固定分のオフセット） ===== */
.experience-page {
  padding-top: 88px;
}

/* ===== TOP INTRO =====
   styles.css の .residence-exp / .section-title-en などを再利用しつつ、
   ページ単独で完結する余白を持たせる
*/
.exp-intro {
  padding: 80px 0 60px;
  text-align: center;
}

.exp-intro .section-title-en {
  text-align: center;
}

.exp-intro .exp-sub-en {
  font-size: 14px;
  letter-spacing: .4em;
  color: var(--text-sub);
  margin-top: 22px;
}

.exp-intro .section-title-jp {
  text-align: center;
  margin-top: 28px;
}

.exp-intro .section-lead {
  text-align: center;
  margin-top: 22px;
  color: var(--text-sub);
}

/* ===== TABS（セクション切り替えナビ） ===== */
.exp-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* max-width: 1280px; */
  max-width: 100%;
  margin: 40px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.exp-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 10px;
  font-size: 14px;
  letter-spacing: .22em;
  color: #fff;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.3s ease, color 0.3s ease;
}

.exp-tab:last-child {
  border-right: none;
}

.exp-tab:hover {
  background: rgba(255, 255, 255, 0.05);
}

.exp-tab.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
}

/* ===== 各セクション ===== */
.exp-section {
  padding: 20px 0 100px;
}

.exp-section + .exp-section {
  /* border-top: 1px solid rgba(255, 255, 255, 0.06); */
}

/* ===== セクションヒーロー（全画面幅 + ラベル） ===== */
.exp-hero {
  position: relative;
  width: 100%;
  margin: 0 0 80px;
  padding: 0;
  overflow: hidden;
}

.exp-hero .ph {
  width: 100%;
  height: 620px;
  object-fit: cover;
  display: block;
}

.exp-hero-label {
  position: absolute;
  left: 60px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 42px;
  letter-spacing: .2em;
  color: #fff;
  z-index: 2;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

/* ===== 2カラム行（画像 + テキスト）
   画像側を広く、テキスト側を狭くしてモックアップの雰囲気に揃える */
.exp-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto 100px;
  padding: 0 40px;
}

/* 画像を右側に出すレイアウト（テキスト左・画像右） */
.exp-row.exp-row-reverse {
  grid-template-columns: 1fr 1.4fr;
}
.exp-row.exp-row-reverse .exp-row-img {
  order: 2;
}
.exp-row.exp-row-reverse .exp-row-text {
  order: 1;
}

.exp-row-img .ph {
  width: 100%;
  aspect-ratio: 723 / 426;
  object-fit: cover;
}

.exp-row-text h3 {
  font-family: var(--jp-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.4;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: .04em;
}

.exp-body {
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 32px;
}

.exp-item-title {
  font-size: 16px;
  color: #fff;
  letter-spacing: .08em;
  margin-bottom: 10px;
  /* padding-bottom: 12px; */
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.18); */
}

.exp-spec {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 2;
  margin-bottom: 20px;
}

.exp-spec dt {
  display: inline;
  color: #fff;
}

.exp-spec dd {
  display: inline;
  margin-right: 8px;
}

.exp-spec br + dt {
  margin-top: 4px;
}

.exp-note {
  display: inline-block;
  font-size: 14px;
  color: var(--text-mute);
  margin-top: 0px;
}

/* メーカー公式HPリンク（常に右寄せ） */
.hp-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-left: auto;
  font-size: 14px;
  letter-spacing: .12em;
  /* color: var(--gold); */
  padding-bottom: 2px;
  border-bottom: 1px solid #fff;
  transition: opacity 0.3s ease;
}

.hp-link:hover {
  opacity: 0.7;
}

.hp-link::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M13 16H2C0.9 16 0 15.1 0 14V3C0 1.9 0.9 1 2 1H7.5C7.9 1 8.25 1.35 8.25 1.75S7.9 2.5 7.5 2.5H2C1.7 2.5 1.5 2.7 1.5 3V14C1.5 14.3 1.7 14.5 2 14.5H13C13.3 14.5 13.5 14.3 13.5 14V8.5C13.5 8.1 13.85 7.75 14.25 7.75S15 8.1 15 8.5V14C15 15.1 14.1 16 13 16Z' fill='black'/><path d='M16 0.7C16 0.3 15.7 0 15.3 0H10.5C10.1 0 9.8 0.3 9.8 0.7S10.1 1.4 10.5 1.4H13.6L7 7.95C6.7 8.25 6.7 8.7 7 9C7.15 9.1 7.35 9.2 7.55 9.2S7.95 9.1 8.05 9L14.6 2.45V5.5C14.6 5.9 14.9 6.2 15.3 6.2S16 5.9 16 5.5V0.7Z' fill='black'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M13 16H2C0.9 16 0 15.1 0 14V3C0 1.9 0.9 1 2 1H7.5C7.9 1 8.25 1.35 8.25 1.75S7.9 2.5 7.5 2.5H2C1.7 2.5 1.5 2.7 1.5 3V14C1.5 14.3 1.7 14.5 2 14.5H13C13.3 14.5 13.5 14.3 13.5 14V8.5C13.5 8.1 13.85 7.75 14.25 7.75S15 8.1 15 8.5V14C15 15.1 14.1 16 13 16Z' fill='black'/><path d='M16 0.7C16 0.3 15.7 0 15.3 0H10.5C10.1 0 9.8 0.3 9.8 0.7S10.1 1.4 10.5 1.4H13.6L7 7.95C6.7 8.25 6.7 8.7 7 9C7.15 9.1 7.35 9.2 7.55 9.2S7.95 9.1 8.05 9L14.6 2.45V5.5C14.6 5.9 14.9 6.2 15.3 6.2S16 5.9 16 5.5V0.7Z' fill='black'/></svg>") no-repeat center / contain;
}

/* ===== カードグリッド（2枚 / 3枚） ===== */
.exp-cards {
  display: grid;
  gap: 36px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.exp-cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.exp-cards-2 {
  grid-template-columns: repeat(2, 1fr);
}

.exp-card .ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.exp-card h4 {
  font-family: var(--jp-serif);
  font-weight: 400;
  font-size: 18px;
  color: #fff;
  margin: 22px 0 12px;
  letter-spacing: .06em;
}

.exp-card p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.9;
}

.exp-card .hp-link {
  margin-top: 14px;
}

.exp-row-img-sp {
  margin-inline: -18px;
  margin-bottom: 20px;
  display: none;
}

/* ============================================================
   レスポンシブ
   ============================================================ */

/* タブレット */
@media (max-width: 1080px) {
  .exp-hero .ph {
    /* height: 420px; */
  }
  /* .exp-hero-label {
    font-size: 32px;
    left: 40px;
    bottom: 36px;
  } */
  .exp-row {
    gap: 48px;
  }
  .exp-row-text h3 {
    font-size: 22px;
  }
}

/* SP */
@media (max-width: 860px) {
  .exp-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .exp-tab {
    padding: 18px 8px;
    font-size: 12px;
    letter-spacing: .18em;
  }
  /* 1段目の右端 / 2段目（=3,4番目）の上部にも線を入れる */
  .exp-tab:nth-child(2n) {
    border-right: none;
  }
  .exp-tab:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  /* SPでもカードは2カラムを維持（3枚の場合は 2 + 1） */
  .exp-cards-3,
  .exp-cards-2 {
    grid-template-columns: repeat(1, 1fr);
    gap: 35px;
  }
  .exp-card h4 {
    font-size: 15px;
    margin: 14px 0 8px;
  }
  .exp-card p {
    font-size: 13px;
    line-height: 1.7;
  }
}

@media (max-width: 640px) {
  .experience-page {
    padding-top: 72px;
  }
  .exp-intro {
    padding: 60px 0 40px;
  }
  .exp-section {
    padding: 0 0 160px;
  }
  .exp-hero {
    padding: 0;
    margin-bottom: 100px;
  }
  .exp-hero .ph {
    height: 600px;
  }
  .exp-hero-label {
    /* left: 18px;
    top: auto; */
    /* bottom: 18px;
    transform: none; */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    text-align: center;
    letter-spacing: .12em;
    width: 100%;
    line-height: 1.2;
  }

  .exp-row,
  .exp-cards {
    padding: 0 18px;
  }

  .exp-row {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 100px;
  }
  /* reverse 時も SP では同じ一カラム */
  .exp-row.exp-row-reverse {
    grid-template-columns: 1fr;
  }

  /* SP: reverse の有無に関わらず常に画像→テキスト */
  .exp-row .exp-row-img {
    order: 1;
    display: none;
  }
  .exp-row .exp-row-text {
    order: 2;
  }

  .exp-row-text h3 {
    font-size: 18px;
    margin-bottom: 14px;
  }

  .exp-body {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 18px;
  }

  .exp-item-title {
    font-size: 14px;
  }
  .exp-spec {
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 14px;
  }

  .exp-card h4 {
    font-size: 14px;
  }
  .exp-card p {
    font-size: 12px;
  }
  .hp-link {
    font-size: 13px;
  }
  .hp-link::after {
    width: 12px;
    height: 12px;
  }

  .exp-intro .exp-sub-en {
    font-size: 12px;
    letter-spacing: .2em;
    margin-top: 10px;
  }
  

  .exp-row-img-sp {
    display: block;
  }
}
