/* ==========================================================
   2026.10 LP改修分（style.css の後に読み込み）
   ========================================================== */

/* header：CTAボタン1つ化 */
.header__cta-btn--single {
  width: 100%;
}
@media (min-width: 1200px) {
  .header__cta-btn--single {
    width: auto;
  }
}

/* hero：キャッチコピーが語の途中で折り返さないように */
.p-top-hero__title-unit {
  display: inline-block;
}

/* hero：SP〜タブレットでは文字ブロックを中身の幅にして左右中央に置く（文字は左寄せのまま） */
@media (max-width: 1023px) {
  .p-top-hero__lead {
    width: fit-content;
    max-width: 100%;
  }
  .p-top-hero__btn {
    margin-inline: auto;
  }
  .p-top-hero__note {
    text-align: center;
  }
  /* キャッチコピー右上のあしらい（SPデザインより） */
  .p-top-hero__title {
    position: relative;
    z-index: 0;
  }
  .p-top-hero__title::after {
    content: "";
    position: absolute;
    top: -38px;
    right: 22px;
    z-index: -1;
    width: 63px;
    height: 59px;
    background: url("../assets/hero_deco_01.svg") no-repeat center / contain;
    pointer-events: none;
  }
}

/* hero：成功事例スライダー */
/* SP〜タブレットは画像が絶対配置で幅を持たないため、カードを横幅いっぱいにする */
@media (max-width: 1023px) {
  .p-top-hero__case {
    width: 100%;
  }
}

.p-top-hero__case-info {
  min-height: 2.6em;
}

.p-top-hero__case-img--slider {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 510/320;
}
.p-top-hero__case-img--slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.p-top-hero__case-img--slider img.is-active {
  opacity: 1;
}
/* Figmaの切り抜き位置（左寄せ気味）に合わせる */
.p-top-hero__case-img--slider img.p-top-hero__case-img-taisei {
  object-position: 95% 50%;
}

.p-top-hero__case-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.p-top-hero__case-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #cfd2e6;
  transition: all 0.3s ease;
}
.p-top-hero__case-dots button.is-active {
  width: 24px;
  border-radius: 4px;
  background-color: #e9450a;
}

/* 導入企業ロゴ（流れるロゴ） */
.p-top-logos {
  background-color: #ffffff;
  border-top: 1px solid #eeeff7;
  border-bottom: 1px solid #eeeff7;
  padding: 20px 0;
  overflow: hidden;
}

.p-top-logos__label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #8c8c8c;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.p-top-logos__marquee {
  display: flex;
  width: max-content;
  animation: logo-marquee 40s linear infinite;
}
.p-top-logos__marquee:hover {
  animation-play-state: paused;
}

.p-top-logos__track {
  display: flex;
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
  padding-right: clamp(32px, 4vw, 64px);
}
.p-top-logos__track img {
  height: clamp(22px, 2.4vw, 34px);
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* 主な支援実績（主催名を逆向きに流す） */
.p-top-logos__events {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eeeff7;
}
.p-top-logos__marquee--reverse {
  animation-duration: 30s;
  animation-direction: reverse;
}
.p-top-logos__track--events {
  gap: 0;
  padding-right: 0;
}
.p-top-logos__track--events li {
  display: flex;
  align-items: center;
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 600;
  color: #333333;
  white-space: nowrap;
}
.p-top-logos__track--events li::after {
  content: "";
  width: 4px;
  height: 4px;
  margin: 0 clamp(20px, 2.4vw, 36px);
  border-radius: 50%;
  background-color: #c4c6d4;
}

@keyframes logo-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-top-logos__marquee {
    animation: none;
  }
}

/* case：コマ数別カルーセル */
.p-top-case__group {
  margin-bottom: 56px;
}
.p-top-case__group:last-child {
  margin-bottom: 0;
}

.p-top-case__group-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.p-top-case__group-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #22232b;
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  padding: 10px 20px;
  border-radius: 100px;
  line-height: 1;
}
.p-top-case__group-tag strong {
  font-size: 1.4em;
}

.p-top-case__group-tag--large {
  background: linear-gradient(90deg, #f18f00 0%, #e9450a 50%, #f18f00 100%);
  background-size: 200% 100%;
}

.p-top-case__group-note {
  font-size: 14px;
  color: #8c8c8c;
}

.c-carousel {
  position: relative;
}

.c-carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 16px;
  scrollbar-width: none;
}
.c-carousel__track::-webkit-scrollbar {
  display: none;
}

.c-carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
@media (min-width: 1024px) {
  .c-carousel__slide {
    flex-basis: calc(50% - 12px);
  }
}

.c-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all 0.3s ease;
}
.c-carousel__nav:hover {
  background-color: #e9450a;
  color: #ffffff;
}
.c-carousel__nav svg {
  width: 18px;
  height: 18px;
}

.c-carousel__nav--prev {
  left: -12px;
}

.c-carousel__nav--next {
  right: -12px;
}

@media (min-width: 1280px) {
  .c-carousel__nav--prev {
    left: -56px;
  }
  .c-carousel__nav--next {
    right: -56px;
  }
}

.c-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.c-carousel__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #cfd2e6;
  transition: all 0.3s ease;
}
.c-carousel__dots button.is-active {
  width: 28px;
  border-radius: 4px;
  background-color: #e9450a;
}

/* スライドが1ページに収まるときは矢印・ドットを出さない */
.c-carousel.is-static .c-carousel__nav,
.c-carousel.is-static .c-carousel__dots {
  display: none;
}

.p-top-case__card {
  background-color: #eeeff7;
  border-radius: 8px;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.p-top-case__card-thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 504/300;
  margin-bottom: 16px;
  background-color: #dfe1ee;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}








/* サムネ左上のコマ数バッジ */
.p-top-case__card-size {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #e9450a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 9px 12px;
  border-radius: 100px;
}

.p-top-case__card-client {
  text-align: center;
  background-color: #ffffff;
  font-size: clamp(1rem, 0.9rem + 0.45vw, 1.25rem);
  font-weight: 600;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  line-height: 1.4;
}
.p-top-case__card-client small {
  display: block;
  font-size: 0.75em;
  color: #8c8c8c;
  font-weight: 500;
}

.p-top-case__card-kpi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.p-top-case__card-kpi-item {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 14px 12px;
  text-align: center;
  border-top: 4px solid #e9450a;
}

.p-top-case__card-kpi-item:nth-child(2) {
  border-top-color: #f18f00;
}

.p-top-case__card-kpi-label {
  font-size: 12px;
  color: #8c8c8c;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.p-top-case__card-kpi-value {
  font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2.125rem);
  font-weight: 700;
  color: #e9450a;
  line-height: 1;
}
.p-top-case__card-kpi-value small {
  font-size: 0.5em;
  font-weight: 600;
  margin-left: 2px;
}

.p-top-case__card-kpi-item:nth-child(2) .p-top-case__card-kpi-value {
  color: #d9560a;
}

/* 施工タイプ：数値ではなく文言なので小さめにする。
   2行になるカードがあっても隣のカードと高さがそろうよう、枠に最小の高さを持たせ、値は残りの高さの中央に置く */
.p-top-case__card-kpi-item {
  display: flex;
  flex-direction: column;
  min-height: 94px;
}
.p-top-case__card-kpi-value {
  margin-block: auto;
}
.p-top-case__card-kpi-value--type {
  font-size: clamp(0.875rem, 0.82rem + 0.25vw, 1.05rem);
  font-weight: 600;
  line-height: 1.2;
  /* 改行は「+」の直後（HTMLの<wbr>）だけにして、語の途中では折り返さない */
  word-break: keep-all;
}

.p-top-case__card-detail {
  display: flex;
  gap: 16px;
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.p-top-case__card-detail-label {
  min-width: 56px;
  color: #8c8c8c;
  flex-shrink: 0;
}

.p-top-case__card-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 13px 14px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.45;
}

.p-top-case__card-point-label {
  flex-shrink: 0;
  background-color: #22232b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 100px;
}

.p-top-case__card-voice {
  position: relative;
  background-color: #fff5f0;
  border: 1px solid #fbd9c9;
  border-radius: 8px;
  padding: 13px 14px 13px 45px;
}
.p-top-case__card-voice img {
  position: absolute;
  top: 15px;
  left: 17px;
  width: 16px;
  height: 16px;
}

.p-top-case__card-voice-label {
  font-size: 11px;
  font-weight: 700;
  color: #e9450a;
  margin-bottom: 4px;
}

.p-top-case__card-voice-text {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.p-top-case__card-voice-name {
  font-size: 12px;
  color: #8c8c8c;
  margin-top: 4px;
}

/* contact：導入企業ロゴ・種別選択 */
.p-top-contact .c-form__sub {
  margin-bottom: 32px;
}

.c-form__logos {
  background-color: #eeeff7;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 32px;
}

.c-form__logos-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #8c8c8c;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.c-form__logos-title::before, .c-form__logos-title::after {
  content: "";
  height: 1px;
  width: 40px;
  background-color: #cfd2e6;
}

.c-form__logos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.c-form__logos-grid li {
  background-color: #ffffff;
  border-radius: 6px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
}
.c-form__logos-grid img {
  max-height: 60px;
  width: auto;
  max-width: min(100%, 240px);
  object-fit: contain;
}
/* 横長で重く見えるロゴは幅で抑えて、他社と見た目の大きさをそろえる */
.c-form__logos-grid .c-form__logos-item--yuasa img {
  width: 160px;
}
.c-form__logos-grid .c-form__logos-item--daiwa img {
  width: 170px;
}
@media (max-width: 480px) {
  .c-form__logos-grid li {
    height: 84px;
    padding: 8px;
  }
}

.c-form__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.c-form__radio {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #8c8c8c;
  background-color: #eeeff7;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.c-form__radio:has(input:checked) {
  border-color: #e9450a;
  background-color: #fff5f0;
  color: #e9450a;
}
.c-form__radio input {
  accent-color: #e9450a;
  width: 18px;
  height: 18px;
}

/* 追従CTA：SP（画面下部） */
.fixed-btn__btns-btn--single {
  width: 100%;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 0;
}
.fixed-btn__btns-btn--single small {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
}

/* 追従CTA：PC（右下） */
.float-cta {
  display: none;
  position: fixed;
  z-index: 998;
  right: 24px;
  bottom: 96px; /* 右下の reCAPTCHA バッジと重ならない位置 */
}
@media (min-width: 1024px) {
  .float-cta {
    display: block;
  }
}

.float-cta__btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(90deg, #f18f00 0%, #e9450a 50%, #f18f00 100%);
  background-size: 200% 100%;
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 10px 30px rgba(233, 69, 10, 0.4);
  transition: all 0.3s ease;
}
.float-cta__btn:hover {
  transform: translateY(-4px) scale(1.03);
  background-position: 100% 0;
}
.float-cta__btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(233, 69, 10, 0.5);
  animation: float-cta-pulse 2s infinite;
}
.float-cta__btn svg {
  width: 26px;
  height: 26px;
}
.float-cta__btn small {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
}

@keyframes float-cta-pulse {
  0% {
    transform: scale(0.95);
    opacity: 1;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}

/* =========================================================
   Before / After の期間バー（5区切り）
   約1年前：01 / 6-3ヶ月前：02〜03 / 4ヶ月前-前日：04〜05 / 当日：06 / 展示会以降：07
   ========================================================= */
.p-top-flow__body-timeline-item:nth-child(1) {
  background-color: #eeeff7;
  grid-row: 1/2;
}
.p-top-flow__body-timeline-item:nth-child(2) {
  background-color: #dee0f5;
  grid-row: 2/4;
}
.p-top-flow__body-timeline-item:nth-child(3) {
  background-color: #ced2f1;
  grid-row: 4/6;
}
.p-top-flow__body-timeline-item:nth-child(4) {
  background-color: #b6bbe7;
  color: inherit;
  position: static;
  grid-row: 6/7;
  width: auto;
  margin-bottom: 0;
}
.p-top-flow__body-timeline-item:nth-child(4)::after {
  content: none;
}
.p-top-flow__body-timeline-item:nth-child(5) {
  background-color: #969dd7;
  color: #ffffff;
  position: relative;
  grid-row: 7/8;
  margin-bottom: 12px;
}
.p-top-flow__body-timeline-item:nth-child(5)::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-right: 14.335px solid transparent;
  border-left: 14.335px solid transparent;
  border-top: 14.335px solid #969dd7;
}
@media (min-width: 1024px) {
  .p-top-flow__body-timeline-item:nth-child(1) {
    grid-column: 1/2;
    grid-row: 1/1;
  }
  .p-top-flow__body-timeline-item:nth-child(2) {
    grid-column: 2/4;
    grid-row: 1/1;
  }
  .p-top-flow__body-timeline-item:nth-child(3) {
    grid-column: 4/6;
    grid-row: 1/1;
  }
  .p-top-flow__body-timeline-item:nth-child(4) {
    grid-column: 6/7;
    grid-row: 1/1;
  }
  .p-top-flow__body-timeline-item:nth-child(5) {
    grid-column: 7/8;
    grid-row: 1/1;
    width: 90%;
    margin-bottom: 0;
  }
  .p-top-flow__body-timeline-item:nth-child(5)::after {
    bottom: auto;
    left: auto;
    transform: translateX(0);
    right: -32px;
    top: 0;
    border-top: 18.665px solid transparent;
    border-bottom: 18.665px solid transparent;
    border-left: 18.665px solid #969dd7;
    border-right: 0;
  }
}
/* 工程ラベルの番号（01〜07） */
.p-top-flow__body-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-right: 8px;
}

/* 「担当」「業務」「期間」の見出し。PCのみ表示 */
.p-top-flow__body-axis-item {
  align-items: center;
  justify-content: center;
  background-color: #333650;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 6px;
}
.p-top-flow__body-axis,
.p-top-flow__body-axis-item--term {
  display: none;
}

@media (min-width: 1024px) {
  /* 左に見出しの列を置き、工程カードと期間バーは同じ列幅でそろえる（04・05・07は文言が長いので少し広く） */
  .p-top-flow__body {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 8px;
    row-gap: 12px;
  }
  .p-top-flow__body-axis {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .p-top-flow__body-axis-item {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .p-top-flow__body-axis-item--role {
    height: 37px;
  }
  .p-top-flow__body-axis-item--task {
    flex-grow: 1;
  }
  .p-top-flow__body-axis-item--term {
    display: flex;
  }
  .p-top-flow__body-list,
  .p-top-flow__body-timeline {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.2fr 1.2fr 1fr 1.12fr;
    column-gap: 4px;
  }
  .p-top-flow__body-item {
    width: auto;
  }
  .p-top-flow__body-role {
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    white-space: nowrap;
  }
  .p-top-flow__body-content {
    padding: 0 6px;
  }
  /* 折り返すときは「/」の後など語の切れ目で改行する */
  .p-top-flow__body-title,
  .p-top-flow__body-task {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  .p-top-flow__body-task {
    font-size: 13px;
    line-height: 1.7;
  }
  /* 期間バーはすき間なしでつなげる（列の位置は工程カードと同じ） */
  .p-top-flow__body-timeline {
    column-gap: 0;
  }
}

/* SP：担当をカード上部の帯にし、アイコン＋見出しの下に業務を並べる。
   カードの高さをそろえ、左の期間バーの区切りとカードの位置を合わせる */
@media (max-width: 1023px) {
  .p-top-flow__body-list {
    display: grid;
    grid-template-rows: repeat(7, 1fr);
    gap: 4px;
  }
  .p-top-flow__body-timeline {
    row-gap: 4px;
  }
  .p-top-flow__body-item {
    flex-direction: column;
    gap: 0;
  }
  .p-top-flow__body-role {
    writing-mode: horizontal-tb;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    padding: 6px 12px;
  }
  .p-top-flow__body-content {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 10px;
    row-gap: 6px;
    padding: 10px 14px 12px;
  }
  .p-top-flow__body-icon {
    margin-right: 0;
  }
  .p-top-flow__body-icon img {
    width: 28px;
  }
  .p-top-flow__body-title {
    margin-right: 0;
    min-width: 0;
  }
  .p-top-flow__body-title br {
    display: none;
  }
  .p-top-flow__body-tasks {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0 14px;
  }
  .p-top-flow__body-task {
    font-size: 12px;
    line-height: 1.7;
  }
}

/* PCの幅が狭いとき（1024〜1279px）は列が細くなるので、文字を一回り小さくして収める */
@media (min-width: 1024px) and (max-width: 1279px) {
  /* 外側・内側の余白を詰めて、カードに使える幅を確保する */
  .p-top-flow__wrapper {
    padding-left: 24px;
    padding-right: 24px;
  }
  .p-top-flow__inner {
    padding-left: 24px;
    padding-right: 24px;
  }
  .p-top-flow__body {
    grid-template-columns: 40px 1fr;
    column-gap: 6px;
  }
  .p-top-flow__body-axis-item {
    font-size: 12px;
    letter-spacing: 0;
  }
  .p-top-flow__body-role {
    font-size: 12px;
    padding: 0 2px;
  }
  .p-top-flow__body-num {
    font-size: 11px;
    margin-right: 4px;
  }
  .p-top-flow__body-content {
    padding: 0 4px;
  }
  .p-top-flow__body-title {
    font-size: 14px;
  }
  .p-top-flow__body-task {
    font-size: 12px;
  }
}

/* SP・タブレット：期間ラベル（縦書き）の「-」を縦向きにする */
@media (max-width: 1023px) {
  .p-top-flow__body-timeline-dash {
    text-orientation: sideways;
  }
}


/* ==========================================================
   hero：SP・タブレットのFVレイアウト（参考：BEAKS）
   写真を上に全幅、その下に文字パネル（左上を角丸にして写真に重ねる）
   PC（1024px以上）は10/29版の見せ方（枠付きカード・「成功事例」タグ・写真の上に社名）のまま
   ========================================================== */
@media (max-width: 1023px) {
  .p-top-hero__case-deco,
  .p-top-hero__case-label {
    display: none;
  }
  .p-top-hero__case-inner {
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
  }
  /* 社名などを読みやすくするため、写真の下側を暗くする */
  .p-top-hero__case-img--slider::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
  }
  .p-top-hero__case-info {
    position: absolute;
    right: 16px;
    bottom: 14px;
    z-index: 2;
    min-height: 0;
    margin-bottom: 0;
    text-align: right;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  }
  .p-top-hero__case-name {
    display: block;
    font-size: 11px;
  }
  .p-top-hero__case-desc {
    display: block;
    padding-left: 0;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.85);
  }
  .p-top-hero__case-dots {
    position: absolute;
    left: 16px;
    bottom: 18px;
    z-index: 2;
    margin-top: 0;
  }
  .p-top-hero__case-dots button {
    background-color: rgba(255, 255, 255, 0.6);
  }
  .p-top-hero__case-dots button.is-active {
    background-color: #e9450a;
  }
}

/* ---------- SP・タブレット ---------- */
@media (max-width: 1023px) {
  .p-top-hero {
    border-bottom-left-radius: 64px;
    overflow: hidden;
  }
  .p-top-hero__wrapper {
    display: flex;
    flex-direction: column;
    min-height: min(100vh, 840px);
    min-height: min(100svh, 840px);
    padding-top: 68px;
    padding-bottom: 40px;
  }
  .p-top-hero__inner {
    flex: 1;
    width: 100%;
    gap: 24px;
  }
  /* 写真を一番上に、画面幅いっぱいで。高さは文字の下に残った分（最低200px） */
  .p-top-hero__case {
    order: -1;
    flex: 1;
    align-self: stretch;
    width: auto;
    min-height: 200px;
    margin-inline: calc(-1 * clamp(20px, -17.143px + 9.524vw, 120px));
  }
  .p-top-hero__case-inner {
    position: absolute;
    inset: 0;
  }
  .p-top-hero__case-img,
  .p-top-hero__case-img--slider {
    height: 100%;
  }
  .p-top-hero__case-img--slider {
    aspect-ratio: auto;
    border-radius: 0;
  }
  .p-top-hero__title::after,
  .p-top-hero__deco--top {
    display: none;
  }
  .p-top-hero__btn {
    width: 100%;
  }
  .p-top-hero__note {
    margin-bottom: 0;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .p-top-hero__wrapper {
    padding-top: 80px;
    min-height: 0;
  }
  .p-top-hero__case {
    flex: none;
    height: 56vw;
  }
}

/* SP：写真の下の文字ブロックをパネルにし、左上の角丸を写真に重ねる（角丸の外側に写真が見える） */
@media (max-width: 767px) {
  .p-top-hero {
    border-bottom-left-radius: 0;
  }
  .p-top-hero__wrapper {
    padding-bottom: 0;
  }
  .p-top-hero__inner {
    gap: 0;
  }
  .p-top-hero__case {
    min-height: 240px;
  }
  .p-top-hero__lead {
    position: relative;
    z-index: 1;
    align-self: stretch;
    width: auto;
    max-width: none;
    margin-top: -32px;
    margin-inline: calc(-1 * clamp(20px, -17.143px + 9.524vw, 120px));
    padding: 28px clamp(20px, -17.143px + 9.524vw, 120px) 40px;
    border-top-left-radius: 32px;
    background: linear-gradient(180deg, #ffffff 0%, #edeef7 100%);
  }
  /* 社名とスライダーの丸は、パネルが重なる32px分だけ上に */
  .p-top-hero__case-info {
    bottom: 46px;
  }
  .p-top-hero__case-dots {
    bottom: 50px;
  }
  .p-top-hero__case-img--slider::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.55) 100%);
  }
}

/* SP：写真は高さを伸び縮みさせず、元の写真の比率（16:9）＋パネルが重なる32px に固定してブース全体を見せる */
@media (max-width: 767px) {
  .p-top-hero__case {
    flex: none;
    height: calc(100vw * 9 / 16 + 32px);
    min-height: 0;
  }
  /* 写真の高さを固定したので、FVを画面の高さにはしない（下に空きが出るため） */
  .p-top-hero__wrapper {
    min-height: 0;
  }
  .p-top-hero__case-img--slider img,
  .p-top-hero__case-img--slider img.p-top-hero__case-img-taisei {
    object-position: 50% 50%;
  }
}

/* ==========================================================
   faq：アンサーを開閉できるようにする（初期は閉じる）
   ========================================================== */
.p-top-faq__item {
  padding: 0;
}
.p-top-faq__item-question {
  position: relative;
  margin-bottom: 0;
  padding: 20px 56px 20px 24px;
  cursor: pointer;
  list-style: none;
}
.p-top-faq__item-question::-webkit-details-marker {
  display: none;
}
/* 右端の＋／－アイコン */
.p-top-faq__item-question::before,
.p-top-faq__item-question::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 16px;
  height: 2px;
  background-color: #e9450a;
  transition: transform 0.3s;
}
.p-top-faq__item-question::after {
  transform: rotate(90deg);
}
.p-top-faq__item-details[open] .p-top-faq__item-question::after {
  transform: rotate(0deg);
}
.p-top-faq__item-answer {
  padding: 0 24px 20px;
}
.p-top-faq__item-details[open] .p-top-faq__item-answer {
  animation: faq-open 0.3s ease;
}
@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* ==========================================================
   見出しの行末の「、」：右側の余白を詰めて、中央揃えに見えるようにする
   ========================================================== */
.u-trim-comma {
  margin-right: -0.5em;
}

/* ==========================================================
   img の width / height 属性：縦横比の確保だけに使い、表示サイズは従来どおり CSS に任せる
   （:where で詳細度を 0 にし、個別の指定があればそちらを優先する）
   ========================================================== */
:where(img[width][height]) {
  width: auto;
  height: auto;
}

/* 実績サムネ：alt を付けるため背景画像から img に変更（2026-11-11） */
.p-top-case__card-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
