@charset "UTF-8";
/* ============================================================
   pages/features.css — できること（body.p-features）だけで使う部品
   共通部品（page-header・スプリット・画面の絵・カード・CTA など）は style.css 側。
   ここでは並べ方と位置だけを足し、共通部品の見た目は変えない。
   遊び心のある版（2026-09-30）: page-header のイラストと輪（style.css 4-8b）・機能の段の区切りの輪（4-21）は HTML 側で共通部品を置くだけ。
   このファイルで足したのは「こんなお店に」の札だけ。
   ============================================================ */

/* ---------- ページ内の目次（6つの機能へ。トップの FEATURES と同じ、線でつないだマス） ---------- */
.feature-index { margin-top: 32px; }
.feature-index__list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; list-style: none;
  background: var(--color-line); border: 1px solid var(--color-line);
}
.feature-index__list li { display: flex; }
.feature-index__link {
  position: relative; flex: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 14px 14px 16px;
  background: var(--color-surface); text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.feature-index__link:hover { opacity: 1; background: var(--color-tint); color: var(--color-main-text); }
.feature-index__link:focus-visible { outline-offset: -4px; }
.feature-index__n {
  position: absolute; top: 12px; right: 14px;
  font-family: var(--font-en); font-weight: 800; font-size: 13px; line-height: 1.5;
  letter-spacing: 0.04em; color: var(--color-main-text);
}
/* 下向きの小さな矢印（ページ内へ移動することを示す） */
.feature-index__link::after {
  content: ""; position: absolute; right: 16px; bottom: 20px;
  width: 7px; height: 7px;
  border-right: 2px solid var(--color-muted-2); border-bottom: 2px solid var(--color-muted-2);
  transform: rotate(45deg);
  transition: transform 0.2s, border-color 0.2s;
}
.feature-index__link:hover::after { border-color: var(--color-main); transform: translateY(2px) rotate(45deg); }
.feature-index__name {
  padding-right: 16px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.5;
}
@media (min-width: 768px) {
  .feature-index__list { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .feature-index { margin-top: 40px; }
  .feature-index__list { grid-template-columns: repeat(6, 1fr); }
  .feature-index__link { padding: 18px 16px 20px; }
}

/* ---------- 機能のブロック ---------- */
/* 目次から飛んだとき、固定ヘッダーの下に少し余白を残す（html の scroll-padding-top に足される） */
.p-features .feature { scroll-margin-top: 24px; }
.p-features .feature .note { margin-top: 14px; }

/* 「こんなお店に」の札（遊び心のある版・2026-09-30）
   見出しの語を共通のれんがの札（.tag--brick。白 4.92:1）にして、淡いピーチの札の上の辺に掛ける。文言はそのまま。
   札の地の上の文字は #5e544c（淡いピーチの上 6.44:1）。面の色の段（04）の上でも同じ札を使う（地より明るい札になる） */
.p-features .split__fit {
  position: relative;                            /* 札（.tag）の位置の基準 */
  margin-top: 30px; padding: 20px 16px 14px;
  border-top: 0; border-radius: var(--radius);
  background: var(--color-peach-soft); color: var(--color-muted);
}
.p-features .split__fit > .tag {
  position: absolute; top: 0; left: 12px; transform: translateY(-50%);
  display: inline-block; font-size: 13px; line-height: 1.6; padding: 2px 10px;
  color: var(--color-main-ink);                  /* 共通の .split__fit b（れんがの文字・block）に勝たせる */
}
@media (min-width: 1024px) {
  .p-features .split__fit { margin-top: 32px; padding: 22px 20px 16px; }
  .p-features .split__fit > .tag { left: 16px; }
}

/* 写真を敷かない画面の絵: スマホの絵を左、カードを右下に重ねる（トップのファーストビューと同じ組み） */
.p-features .feature-stage { justify-content: flex-start; align-items: flex-start; min-height: 440px; }
.p-features .feature-stage .ui-card { position: absolute; right: 20px; bottom: 24px; }
@media (min-width: 768px) {
  .p-features .feature-stage { min-height: 420px; }
  /* 2つの絵を 460px 幅にまとめて中央へ（タブレットで左右に離れすぎないように） */
  .p-features .feature-stage .ui-phone { margin-left: max(4%, calc((100% - 460px) / 2)); }
  .p-features .feature-stage .ui-card { right: max(4%, calc((100% - 460px) / 2)); bottom: 28px; }
}

/* 写真の見せる位置（人の手元・部屋の奥がスマホの絵に隠れないように） */
.p-features .feature--records .ui-stage--photo > img { object-position: 0% 50%; }
.p-features .feature--booking .ui-stage--photo > img { object-position: 70% 50%; }
.p-features .feature--tickets .ui-stage--photo > img { object-position: 45% 30%; }
@media (max-width: 767px) {
  .p-features .ui-stage--photo { min-height: 460px; }
}

/* カードがスマホの下部タブの字にかからないよう、台の高さを足す（money のカードはバーがあって背が高い）
   1024〜1179px は2列の1列が狭く、スマホとカード（230+230px）が横に並びきらないので、縦にずらして逃がす。
   カードやスマホの文言を変えて高さが変わったときは、_qa/review/refute_trycss.py で重なりを測り直す */
@media (max-width: 767px) {
  .p-features .feature--money .feature-stage { min-height: 460px; }
}
@media (min-width: 1024px) and (max-width: 1179px) {
  .p-features .ui-stage { min-height: 440px; }
  .p-features .feature--money .feature-stage { min-height: 460px; }
}
