/* features.css - ROOM SERVICE. Exact UI Trace of DMM_03_features.png */

.section#features {
  background: #FFF; 
  padding: 100px 0;
  counter-reset: feature-num; /* CSS カウンターで数字を自動生成 */
}

/* 特徴セクションの上部見出し固有の装飾 */
.section-label {
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.text-accent {
  color: var(--accent);
  font-size: 1.25em; /* 5つの、など強調部分のサイズと色 */
}

/* 特徴カードコンテナ */
.feature-card {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 120px;
  position: relative;
  /* 画像が左、テキストが右（奇数行・デフォルト） HTML構造上、feature-contentが先にあるためrow-reverseで画像(ph)を左へ */
  flex-direction: row-reverse;
  counter-increment: feature-num; /* カウンターを増やす */
}

/* 偶数行：テキストが左、画像が右 */
.feature-card:nth-of-type(even) {
  flex-direction: row;
}

.feature-content {
  flex: 1;
}

/* 画像プレースホルダー */
.feature-ph {
  flex: 0 0 45%; /* スマホレスポンシブなども考慮し少し余白を持たせる */
  aspect-ratio: 4 / 3;
  background: var(--bg-alt); /* 薄いグレーのプレースホルダ */
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #aaa;
  font-size: 20px;
  position: relative; /* 数字を画像にくっつけるための絶対配置の起点！ */
  overflow: hidden;
}

.feature-ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* 画像に被る手書き風の装飾数字 */
.feature-ph::after {
  content: counter(feature-num); /* data-numではなく自動採番で確実に対応 */
  position: absolute;
  /* 手書き風の指定（Cursive系フォント） */
  font-family: "Caveat", "Brush Script MT", cursive, serif;
  font-size: 160px; /* 大幅に縮小し、画像に被る適正サイズへ */
  font-weight: 900;
  font-style: italic;
  color: var(--accent);
  opacity: 0.35; /* .markerのハイライト(#AEE0F8)と同等の透明度 */
  line-height: 0.7;
  z-index: 10;
  pointer-events: none;
}

/* 奇数行（画像左側）：数字は画像内から右下のエッジを越えてはみ出す */
.feature-card:nth-of-type(odd) .feature-ph::after {
  bottom: -16px;
  right: -32px;
  left: auto;
}

/* 偶数行（画像右側）：数字は画像内から左下のエッジを越えてはみ出す */
.feature-card:nth-of-type(even) .feature-ph::after {
  bottom: -16px;
  left: -32px;
  right: auto;
}

/* 見出しとマーカー装飾 */
.feature-heading {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.6;
  margin-bottom: 24px;
  color: var(--text);
}

.feature-heading .marker {
  /* マーカー装飾（文字の下半分を覆う水色ハイライト） */
  background: linear-gradient(transparent 55%, #AEE0F8 55%);
  display: inline;
}

/* HTMLに残っている旧テキスト用の丸バッジ等は非表示 */
.feature-number {
  display: none;
}
.feature-number-option {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  background: var(--bg-alt, #EEF2F5);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 8px;
}

/* 本文エリア */
.feature-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  font-weight: var(--fw-b);
}
.feature-body p {
  margin-bottom: 12px;
}

.feature-diff {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 16px;
}

/* レスポンシブ */
@media(max-width: 992px) {
  .feature-card, .feature-card:nth-of-type(even) {
    flex-direction: column-reverse;
    gap: 40px;
    margin-bottom: 80px;
  }
  .feature-ph {
    width: 100%;
    flex: none;
  }
  .feature-ph::after {
    font-size: 140px;
  }
  /* スマホ時は画像の下辺にくっつける */
  .feature-card:nth-of-type(odd) .feature-ph::after { right: 16px; bottom: -20px; }
  .feature-card:nth-of-type(even) .feature-ph::after { left: 16px; bottom: -20px; }
}

@media(max-width: 480px) {
  .feature-heading { font-size: 24px; }
  .feature-ph::after { font-size: 120px; bottom: -16px; }
}