@charset "utf-8";
/* ============================================================
   08 医療脱毛とエステ脱毛の違い（Figma SP 3142:2151 / 375x457）
   ・比較表は <table>。列の幅は 87 / 121 / 121、列の間は2px
   ・見出しは列ごとに高さが違う（医療脱毛44px・エステ28px・項目26px）。
     セルは高さを持たないただの器にして、中の箱を下揃えで置く
   ・セル内の改行はすべて <br> で指定する（折り返しはさせない）
   ============================================================ */

/* --- サイト共通CSS(com.css)の palt（約物詰め）を外す。これが残ると
   日本語が約8%詰まってFigmaと折り返し位置・行幅がずれる。
   text-align / letter-spacing / margin / img は css/style.css で一括済み。
   そのぶん .kh p/.kh span 等(0,1,1)が効くので、字送り・揃えを指定する行は
   セクションのルートを前置きして (0,2,0) に上げている */
.kh-vs { font-feature-settings: normal; }

.kh-vs {
  position: relative;
  padding: 60px 0;
  background: #fcf9ed;
}
.kh-vs__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-inline: auto;
  width: 334px;
}

/* 背面の英字（装飾）。見出しに重なる位置に置く */
.kh-vs .kh-vs__en {
  position: absolute;
  left: 50%;
  top: 57.5px;
  transform: translate(-50%, -17.5px);  /* 修正13: px固定をやめ文字数に依存しない形へ */
  width: 203px;
  font-family: "Alata", var(--kh-font-b);
  font-weight: 400;
  font-size: 35px;
  line-height: 1;
  letter-spacing: 2.45px;
  color: #f6eabc;
  text-align: center;
}

/* ---- 見出し -------------------------------------------- */
.kh-vs .kh-vs__title {
  position: relative;
  width: 306px;
  text-align: center;   /* .kh-title の中央寄せが .kh h2 に負けるので持たせ直す */
  font-size: 20px;
}
.kh-vs__title-1,
.kh-vs__title-2 { display: block; }
.kh-vs__title-1 { line-height: 1.65; }
.kh-vs__title-2 { line-height: 1.45; }
.kh-vs__title small { font-size: 17px; font-weight: 700; }

/* ---- 比較表 -------------------------------------------- */
.kh-vs__table {
  margin: 15px 0 0;          /* サイト共通の table の下マージンも消す */
  width: 337px;
  margin-inline: -2px;        /* 外側にも付く border-spacing の2pxを打ち消す */
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 2px 0;      /* 列の間だけ2px空ける */
}

/* 見出し行：セル自体は高さを持たせず、中の箱を下に揃える */
.kh-vs__table thead .kh-vs__head {
  width: 121px;
  padding: 0;
  background: none;
  border: 0;
  vertical-align: bottom;
}
.kh-vs__table thead .kh-vs__head:first-child { width: 87px; }

.kh-vs .kh-vs__head-box {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--kh-font-b);
  text-align: center;
}
.kh-vs__head-box--corner {
  height: 26px;
  background: #f7f2ea;
  border-radius: 10px 0 0 0;
}
.kh-vs__head-box--main {
  height: 44px;
  background: var(--kh-blue);
  border: .5px solid var(--kh-blue);
  border-radius: 10px 10px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--kh-white);
}
.kh-vs__head-box--sub {
  height: 28px;
  background: #ececec;
  border: .5px solid var(--kh-cream);
  border-radius: 0 10px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--kh-text);
}

/* ---- 本文のセル ---------------------------------------- */
.kh-vs__table tbody th,
.kh-vs__table tbody td {
  box-sizing: border-box;
  padding: 2px 4px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  color: var(--kh-text);
}
/* 行の高さ（Figmaの「医療脱毛」列の実数 38/37/38/38/55px） */
.kh-vs__table tbody tr { height: 38px; }
.kh-vs__table tbody tr:nth-child(2) { height: 37px; }
.kh-vs__table tbody tr.kh-vs__last { height: 55px; }

/* 1列目（項目名）。セル同士は1pxだけ背景色を見せて離す */
.kh-vs__table .kh-vs__item {
  width: 87px;
  background: var(--kh-white);
  border: 0;
  border-bottom: 1px solid #fcf9ed;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.65;
  color: var(--kh-blue);
}


/* 2列目（医療脱毛）。強調列 */
.kh-vs__table .kh-vs__main {
  width: 121px;
  background: #eaf5fc;
  border: .5px solid var(--kh-blue);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}


/* 3列目（エステ脱毛） */
.kh-vs__table .kh-vs__sub {
  width: 121px;
  background: var(--kh-white);
  border: .5px solid var(--kh-cream);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.65;
}


/* 強調列の足元にだけ影を落とす（Figmaは列全体に drop-shadow） */
.kh-vs__last .kh-vs__main { box-shadow: 0 4px 2px rgb(0 0 0 / 13%); }

/* ---- 注記 ---------------------------------------------- */
.kh-vs__note {
  align-self: flex-start;
  margin-top: 11px;
  width: 327px;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--kh-text);
}

/* 2行のセルだけ Figma は行送り1.3。基本の指定(0,2,0)と同じ強さにして後ろに置く */
.kh-vs__table .kh-vs__item--2line,
.kh-vs__table .kh-vs__main--2line,
.kh-vs__table .kh-vs__sub--2line { line-height: 1.3; }
