@charset "UTF-8";
/* ============================================================
   top-custom.css — TOPページ固有
   メインビジュアル / 共感 / 解決策 / 実績ダイジェスト
============================================================ */

/* ---------- メインビジュアル ---------- */
.ace-hero {
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  color: #fff;
  min-height: clamp(560px, 84vh, 860px);
  background: radial-gradient(130% 130% at 76% 16%, var(--red-soft) 0%, var(--red) 44%, var(--red-deep) 100%);
}
/* #slideshow（CMSスライダー差し替え枠）— 高さは外枠に追従 */
.ace-hero__media { position: absolute; inset: 0; z-index: 1; height: 100%; }
.ace-hero__media .swiper-slide,
.ace-hero__slide { width: 100%; height: 100%; }
.ace-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 58%; }
/* CMSスライダー枠を枠いっぱいに固定（::after グラデーションより下層） */
.ace-hero__media #cms-slider-1-1-area {
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* CMSスライダーは独自に height:95vh（--swiper-wrapper-height）を持つため、枠いっぱい(100%)に上書き */
.ace-hero__media #cms-slider-1-1-area #main_slider.slider_wrapper {
  --swiper-wrapper-height: 100%;
  height: 100%;
}
.ace-hero__media #cms-slider-1-1-area #main_slider .main_slider__outer { height: 100%; }
/* 内側の .swiper〜img は CMS 側で height:100% / object-fit:cover 済み */
.ace-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(95deg, rgba(177,60,74,0.95) 0%, rgba(177,60,74,0.88) 16%, rgba(177,60,74,0.62) 38%, rgba(177,60,74,0.3) 62%, rgba(177,60,74,0.06) 100%),
    linear-gradient(to top, rgba(145,48,64,0.28), transparent 42%);
}
.ace-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  padding-block: clamp(40px, 6vw, 80px);
}
.ace-hero__copy { max-width: 640px; }
.ace-hero__intro {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 9px;
  border-bottom: 2px solid rgba(255,255,255,0.55);
}
.ace-hero__title {
  font-size: clamp(2.8rem, 6.4vw, 6.6rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin-bottom: 26px;
  text-shadow: 0 2px 26px rgba(120,30,45,0.22);
}
.ace-hero__title .hl { display: inline-block; position: relative; }
.ace-hero__title .hl::after {
  content: "";
  position: absolute; left: -2px; right: -2px; bottom: 8px;
  height: 15px; background: rgba(255,255,255,0.24);
  z-index: -1;
}
.ace-hero__sub {
  font-size: 1.6rem;
  color: rgba(255,255,255,0.92);
  line-height: 2;
  margin-bottom: 34px;
  max-width: 27em;
}
.ace-hero__actions { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.ace-hero__textlink {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 700; font-size: 1.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 3px;
  white-space: nowrap;
  transition: gap 0.22s var(--ease), border-color 0.22s;
}
.ace-hero__textlink:hover { gap: 12px; border-color: #fff; opacity: 1; }

/* ---------- 共感・問題提起 ---------- */
.ace-empathy { background: var(--cream); }
.ace-bubbles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 48px;
  align-items: stretch;
}
.ace-bubble {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 20px 26px;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), border-color 0.32s var(--ease);
}
.ace-bubble::after {
  content: "";
  position: absolute;
  left: 42px; bottom: -13px;
  width: 24px; height: 24px;
  background: #fff;
  border-right: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
  transform: rotate(45deg);
  transition: border-color 0.32s var(--ease);
}
.ace-bubble:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: var(--shadow-md);
  border-color: var(--red-soft);
}
.ace-bubble:hover::after { border-color: var(--red-soft); }
.ace-bubbles .ace-bubble:nth-child(2) { margin-top: 26px; }
.ace-bubbles .ace-bubble:nth-child(3) { margin-top: 12px; }
.ace-empathy__text {
  font-size: clamp(1.8rem, 2.2vw, 2.2rem);
  font-weight: 500;
  line-height: 1.8;
  text-align: center;
  text-wrap: balance;
}
.ace-empathy__text .accent { color: var(--red); font-weight: 700; }

/* ---------- 解決策提示 ---------- */
.ace-solution__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}
.ace-cause {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  padding: 30px 28px;
}
.ace-cause__head {
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--ink-soft);
  text-align: center;
}
.ace-cause__head .u { color: var(--ink); border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.ace-cause__list { display: flex; flex-direction: column; gap: 13px; }
.ace-ci-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 14px;
  background: var(--cream);
  border: 1px solid var(--line);
}
.ace-ci-mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.4rem; line-height: 1;
}
.ace-ci-row.ok { opacity: 0.82; }
.ace-ci-row.ok .ace-ci-mark { background: rgba(47,143,86,0.14); color: #2f8f56; }
.ace-ci-label { display: flex; flex-direction: column; line-height: 1.3; }
.ace-ci-jp { font-weight: 700; font-size: 1.7rem; }
.ace-ci-jp small { font-size: 1.2rem; color: var(--brown-deep); font-weight: 600; margin-left: 3px; }
.ace-ci-en { font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brown-deep); }
.ace-ci-stat { font-size: 1.2rem; color: var(--ink-soft); white-space: nowrap; }
.ace-ci-row.cause {
  background: var(--red); border-color: var(--red); color: #fff;
  box-shadow: 0 14px 30px rgba(177,60,74,0.28);
  transform: scale(1.035);
}
.ace-ci-row.cause .ace-ci-mark { background: rgba(255,255,255,0.24); color: #fff; }
.ace-ci-row.cause .ace-ci-jp small,
.ace-ci-row.cause .ace-ci-en { color: rgba(255,255,255,0.85); }
.ace-ci-row.cause .ace-ci-stat { color: #fff; font-weight: 700; }
.ace-cause__foot {
  margin-top: 18px;
  text-align: center;
  font-weight: 700;
  color: var(--red);
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* ---------- メソッド解説動画 ---------- */
.ace-method-movie { background: var(--cream); }
.ace-movie { max-width: 860px; margin: 0 auto; }
.ace-movie__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
}
.ace-movie__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- 実績ダイジェスト ---------- */
.ace-results { background: linear-gradient(180deg, #fff 0%, var(--beige) 100%); }
.ace-results__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}
.ace-ba-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.ace-ba-video { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.ace-ba-video img { width: 100%; height: 100%; object-fit: cover; }
.ace-ba-play { position: absolute; inset: 0; display: grid; place-items: center; }
.ace-ba-play .pbtn {
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s var(--ease);
}
.ace-ba-card:hover .pbtn { transform: scale(1.08); }
.ace-ba-play .pbtn svg { width: 26px; height: 26px; color: var(--red); margin-left: 4px; }
.ace-ba-comments { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.ace-ba-comment { display: flex; gap: 12px; align-items: flex-start; font-size: 1.5rem; }
.ace-ba-comment .quote { color: var(--red); font-family: var(--serif); font-size: 3rem; line-height: 1; font-weight: 700; }
.ace-ba-comment .who { color: var(--brown-deep); font-size: 1.2rem; }
.ace-note-pending {
  font-size: 1.2rem;
  color: var(--brown-deep);
  background: var(--beige);
  border: 1px dashed var(--brown);
  border-radius: 8px;
  padding: 4px 10px;
  display: inline-block;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .ace-hero { min-height: auto; }
  /* height: 46vh を撤去：CMSスライダーがメディア枠（=ヒーロー全体）に追従して全高表示 */
  .ace-hero__media { bottom: auto; }
  .ace-hero__media img { object-position: 50% 16%; }
  .ace-hero__media::after { background: linear-gradient(to bottom, rgba(177,60,74,0) 14%, var(--red) 82%); }
  .ace-hero__inner { flex-direction: column; align-items: flex-start; padding-top: calc(46vh - 26px); padding-bottom: 48px; gap: 26px; }
  .ace-hero__copy { max-width: 100%; }
  .ace-solution__grid,
  .ace-results__grid { grid-template-columns: 1fr; }
  /* 1カラム時は上下を逆に（テキスト → 原因リスト） */
  .ace-solution__text { order: -1; }
  .ace-cause { max-width: 460px; margin: 0 auto; }
  .ace-bubbles { grid-template-columns: 1fr; }
  .ace-bubbles .ace-bubble:nth-child(n) { margin-top: 0; }
}
/* スマホはメインビューの縦幅を短く（テキスト位置を上げて全体を圧縮） */
@media (max-width: 639px) {
  .ace-hero__inner { padding-top: calc(32vh - 26px); padding-bottom: 36px; }
  /* CTAボタンを小さめに */
  .ace-hero__actions .ace-btn--lg { padding: 1.3rem 2.6rem; font-size: 1.45rem; }
  .ace-hero__actions .ace-arr { font-size: 1.4rem; }
}
