@charset "utf-8";

/* ==============================================================
   3つの「16タイプ」でできること (Mobile First / AIO Optimized)
============================================================== */
:root {
  --lapis-border-color: #333333;
  --lapis-bg-header: #f9f9f9;
  --lapis-accent-pink: #ff99cc; /* 画像に合わせた視認性の高いピンク */
}

/* タイトル装飾（左右のライン） */
.content_lead.type16 li h3 {
font-weight: 700;
}

.lapis-feat-title::before,
.lapis-feat-title::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background-color: var(--lapis-border-color);
}
.lapis-feat-title::before { margin-right: 1.5rem; }
.lapis-feat-title::after { margin-left: 1.5rem; }

.highlight-pink {
  color: var(--lapis-accent-pink);
  font-weight: bold;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.sp-only {
  display: block;
}

/* =========================================
   モバイル版 (iPhone X 基準: 375px)
========================================= */
.lapis-feat-table {
  width: 100%;
  border-collapse: collapse; 
}

.lapis-feat-table thead {
  display: none;
}

.lapis-feat-table td,
.lapis-feat-table th {
  border: none; 
}

/* カード全体の枠組み */
.lapis-feat-table tbody tr {
  display: block;
  margin-bottom: 1.5rem;
  background-color: #fff;
  border: 1px solid var(--lapis-border-color); 
}

/* 黒い見出し部分 */
.lapis-feat-table th[scope="row"] {
  display: block;
 /* background-color: var(--lapis-border-color);*/
  color: #fff;
  padding: 1rem;
  font-size: 1.1rem;
  text-align: center; 
  border-bottom: 1px solid var(--lapis-border-color);
}

/* ★修正: 白いデータ部分 */
.lapis-feat-table td {
  display: flex;
  flex-direction: column;
  align-items: center; 
  justify-content: center;
  text-align: center;
  
  /* before（帯）を配置するための基準点にする */
  position: relative; 
  
  /* 帯の高さ分、上のpadding（余白）を3remに広げて文字が隠れないようにする */
  padding: 3rem 1rem 1.5rem 1rem; 
  font-size: 0.95rem;
  border-bottom: 1px solid var(--lapis-border-color);
}

.lapis-feat-table td:last-child {
  border-bottom: none;
}

/* ★修正: モバイル用の疑似ラベルを「ヘッダー帯」に変更 */
.lapis-feat-table td::before {
  content: attr(data-label);
  
  /* セルの上部に張り付けて横幅100%にする */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  
  /* 背景色と、中身との区切り線を追加 */
  background-color: var(--lapis-bg-header);
  border-bottom: 1px solid #ddd;
  
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: bold;
  color: #333;
  display: block;
}

/* ==============================================================
   各行の見出しセル（th）の個別カラー設定（コースのテーマカラーに準拠）
============================================================== */
/* 1行目：パーソナルカラー診断 */
.lapis-feat-table tbody tr:nth-child(1) th[scope="row"] {
  background-color: rgba(254, 206, 230, 1.00);
  color: rgba(225, 133, 179, 1.00);
}

/* 2行目：カラーセラピー */
.lapis-feat-table tbody tr:nth-child(2) th[scope="row"] {
  background-color: #E0D0F0;
  color: rgba(154, 111, 211, 1.00);
}

/* 3行目：コスメアドバイス */
.lapis-feat-table tbody tr:nth-child(3) th[scope="row"] {
  background-color: #FCFAD0;
  color: rgba(244, 176, 131, 1.00);
}
/* =========================================
   PC/タブレット版 (768px以上)
========================================= */
@media (min-width: 768px) {
  .sp-only {
    display: none;
  }

  .lapis-feat-table thead {
    display: table-header-group;
  }

  .lapis-feat-table tbody tr {
    display: table-row;
    margin-bottom: 0;
    border: none; 
  }

  /* ★修正: PC版ではスマホ用の position や padding をリセットする */
  .lapis-feat-table th,
  .lapis-feat-table td {
    display: table-cell;
    position: static; /* positionリセット */
    padding: 1.5rem 1rem; /* paddingリセット */
    border: 1px solid var(--lapis-border-color);
    text-align: center;
    vertical-align: middle;
  }

  .lapis-feat-table th[scope="col"] {
    background-color: var(--lapis-bg-header);
    font-weight: bold;
  }

  .lapis-feat-table th[scope="row"] {
    display: table-cell;
  /*  background-color: var(--lapis-bg-header);
    color: #333;*/
    font-weight: bold;
    text-align: center;
  }

  .lapis-feat-table td::before {
    display: none;
  }

  /* 左上の空セルだけボーダーを非表示 */
  .lapis-feat-table th.lapis-empty-cell {
    border-top: hidden;
    border-left: hidden;
    background-color: transparent;
  }
		.lapis-feat-table td:last-child {
  border: 1px solid var(--lapis-border-color);
}

/* ★追加：1列目（左端）の幅を適切に確保する */
  .lapis-feat-table th:first-child {
    width: 25%; /* テーブル全体の4分の1の幅を割り当てる */
    min-width: 200px; /* どれだけ画面が狭くても最低200pxは確保する */
    word-break: keep-all; /* 単語の途中で不自然に改行されるのを防ぐ */
  }

  /* ★お客様が追加された素晴らしい修正（最後のボーダー欠け対策） */
  .lapis-feat-table td:last-child {
    border: 1px solid var(--lapis-border-color);
  }
}