@charset "utf-8";

/* =========================================================
 *  ai-system-260925 だけの追加スタイル（最後に読み込む）
 *
 *  読み込み順: reset → style → theme-b → e-redesign → theme-meihou
 *              → theme-meihou-shape → このファイル
 *
 *  1) 画面説明つきカルーセル（CASE 03 FAX / CASE 04 勤怠）
 *     既存の .case-carousel は 16:9 の枠いっぱいに画像を cover で敷く作り。
 *     業務システムの画面は全体が見えないと意味がないので、この2枚だけ
 *     「画像 contain ＋ 下に説明文」の縦積みに切り替える。
 *  2) 値上げタイムライン（残枠セクション内）
 * ========================================================= */

/* ---------------------------------------------------------
 *  1) 画面説明つきカルーセル
 * --------------------------------------------------------- */
.case-visual.case-carousel--cap {
  aspect-ratio: auto;          /* 高さは中身（画像＋説明）で決める */
  display: block;
  padding: 0;
  background: var(--c-white);
}
.case-carousel--cap .carousel-viewport { position: static; inset: auto; overflow: hidden; }
.case-carousel--cap .carousel-track { height: auto; align-items: stretch; }
.case-carousel--cap .carousel-slide {
  height: auto; display: flex; flex-direction: column;
  background: var(--c-white);
}
.case-carousel--cap .carousel-slide img {
  width: 100%; height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain; object-position: center top;   /* 画面全体を見せる。切らない */
  background: var(--c-sub-bg-soft);
  border-bottom: 1px solid var(--c-border);
}
.case-carousel--cap .slide-cap {
  flex: 1;                     /* 説明が短いスライドも高さを揃える */
  padding: 0.8rem 1rem 1rem;
  font-size: clamp(0.86rem, 3.3vw, 0.94rem); line-height: 1.8;
  color: var(--c-text-muted); text-align: left;
  word-break: keep-all; overflow-wrap: anywhere;
}
.case-carousel--cap .slide-cap b {
  display: block; margin-bottom: 0.2rem;
  color: var(--c-sub); font-weight: 600;
  font-size: clamp(0.92rem, 3.5vw, 1rem);
}
/* タイトルだけのキャプション（CASE 04）は下余白を詰める */
.case-carousel--cap .slide-cap b:only-child { margin-bottom: 0; }
.case-carousel--cap .slide-cap:has(> b:only-child) { padding-bottom: 0.75rem; }

/* 矢印は「画像の縦中央」に置く。説明文の長さで上下にブレないよう、
   幅基準の % （16:9 の半分 = 28.125%）で位置を出す。 */
.case-carousel--cap .carousel-arrow {
  top: 0; transform: none;
  margin-top: calc(28.125% - 1.05rem);
}
/* ドットは画像に重ねず、説明文の下に置く */
.case-carousel--cap .carousel-dots {
  position: static; padding: 0 0 0.75rem; background: var(--c-white);
}
.case-carousel--cap .carousel-dots button {
  background: rgba(0, 56, 100, 0.22); box-shadow: none;
}
.case-carousel--cap .carousel-dots button.is-active { background: var(--c-main); }

/* PC（画像と本文を左右に並べる）では説明の余白を少し広げる。
   カード高さに合わせて .case-visual 自体は stretch させたままにする
   （flex-start にすると .case-visual の border-bottom がカード途中に線として出る）。 */
@media (min-width: 768px) {
  .case-carousel--cap .slide-cap { padding: 0.9rem 1.15rem 1.15rem; }
}

/* ---------------------------------------------------------
 *  2) 値上げタイムライン（10万 → 20万 → 40万）
 *     背景は濃紺（.scarcity）。文字・枠は白基調で置く。
 * --------------------------------------------------------- */
.hike {
  display: flex; align-items: stretch; justify-content: center;
  gap: clamp(0.25rem, 1.6vw, 0.7rem);
  margin: clamp(0.9rem, 3.4vw, 1.3rem) 0 0.9rem;
}
.hike-step {
  flex: 1 1 0; max-width: 11rem; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 0.14rem;
  padding: clamp(0.6rem, 2.4vw, 0.9rem) clamp(0.3rem, 1.4vw, 0.7rem);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 3px; text-align: center;
}
.hike-when {
  font-size: clamp(0.66rem, 2.7vw, 0.8rem); font-weight: 600; letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.8); white-space: nowrap;
}
.hike-price {
  font-size: clamp(1.3rem, 6.2vw, 1.95rem); font-weight: 700; line-height: 1.15;
  color: #fff; white-space: nowrap;
}
.hike-price small { font-size: 0.5em; font-weight: 600; margin-left: 0.08em; }
.hike-state {
  font-size: clamp(0.62rem, 2.5vw, 0.75rem); line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}
.hike-arrow {
  align-self: center; flex: 0 0 auto;
  font-size: clamp(1.1rem, 4.4vw, 1.5rem); font-weight: 700; line-height: 1;
  color: rgba(255, 255, 255, 0.5);
}

/* 過去 = 終了（打ち消し）/ いま = 強調 / 来月 = 予告 */
.hike-step--past { opacity: 0.6; }
.hike-step--past .hike-price {
  text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: #FF9A52;
}
.hike-step--now {
  background: var(--c-accent); border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(255, 94, 0, 0.22);
}
.hike-step--now .hike-when,
.hike-step--now .hike-state { color: rgba(255, 255, 255, 0.95); }
.hike-step--next { background: rgba(255, 94, 0, 0.14); border-color: rgba(255, 154, 82, 0.75); }
.hike-step--next .hike-price { color: #FF9A52; }

.hike-why {
  max-width: 38rem; margin: clamp(1rem, 3.6vw, 1.3rem) auto 0;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.07);
  border-left: 3px solid #FF9A52; border-radius: 3px;
  text-align: left;
}
.hike-why-lead {
  margin-bottom: 0.25rem; font-weight: 600;
  font-size: clamp(0.95rem, 3.6vw, 1.05rem); color: #FF9A52;
}
.hike-why-body {
  font-size: clamp(0.95rem, 3.6vw, 1.04rem); line-height: 1.95;
  color: rgba(255, 255, 255, 0.92);
  word-break: keep-all; overflow-wrap: anywhere;
}

/* CTA を「20万円のうちに / 無料相談する」の2行に。
   .btn は flex なので、文字列を span で1アイテムに包んで中で <br> する */
.scarcity-alert .btn > span { text-align: center; line-height: 1.35; }
.scarcity-alert .btn { padding-top: 0.85rem; padding-bottom: 0.85rem; }

/* 枠は 3 → 5 に増えたので、狭い画面でも収まるよう詰める */
.slots { flex-wrap: wrap; gap: clamp(0.35rem, 1.8vw, 0.7rem); }
.slot { width: clamp(2.9rem, 11.5vw, 3.7rem); height: clamp(2.9rem, 11.5vw, 3.7rem); }
.slot svg { width: 1.3rem; height: 1.3rem; }
