/* ==========================================================================
   # Top - FV
   ========================================================================== */

.top-fv {
  position: relative;
  overflow: hidden;
}

/*
 * 要素の配置はデザインの比率（1440:984）のまま、画面の高さに収まる大きさにする。
 * 横長の画面では枠の幅を「画面の高さ × 比率」に抑えて中央に置き、左右は背景で埋める。
 */
/* 背景が生きるよう、高さは「画面の高さ + 100px」まで許容する（下の 100px ほどは画面外にはみ出す） */
.top-fv-inner {
  position: relative;
  width: min(100%, (100vh + 100px) * 1440 / 984);
  width: min(100%, (100svh + 100px) * 1440 / 984);
  aspect-ratio: 1440 / 984;
  margin-inline: auto;
}

@media (max-width: 768px) {
  .top-fv-inner {
    width: min(100%, (100vh + 60px) * 375 / 700);
    width: min(100%, (100svh + 60px) * 375 / 700);
    aspect-ratio: 375 / 700;
  }
}

/* ---------- 奥行きの層（背景写真・グリッド・回路網・光の帯） ---------- */

.top-fv {
  --mx: 0;
  --my: 0;
  --sy: 0;
  background-color: #0b3f7a;
}

/* マウス位置（--mx, --my）とスクロール量（--sy）に、層ごとの係数 --d を掛けて動かす */
.top-fv [data-depth] {
  transform: translate3d(
    calc(var(--mx) * var(--d, 0) * 28px),
    calc(var(--my) * var(--d, 0) * 18px - var(--sy) * var(--d, 0) * 0.35px),
    0
  );
  will-change: transform;
}

.top-fv-depth {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.top-fv-depth__layer {
  position: absolute;
}

/* 背景写真：動かしても端が見えないよう一回り大きくし、ゆっくりズームさせる */
.top-fv-depth__layer--bg {
  inset: -6%;
}

.top-fv-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  animation: top-fv-zoom 26s ease-in-out infinite alternate;
}

@keyframes top-fv-zoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

/* 遠近グリッド：床面に奥へ流れていく光の格子 */
.top-fv-grid {
  left: -10%;
  right: -10%;
  bottom: 9%;
  height: 60%;
  opacity: 1;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 40%, transparent 95%);
  mask-image: linear-gradient(to top, #000 0%, #000 40%, transparent 95%);
}

.top-fv-grid::before {
  content: "";
  position: absolute;
  inset: 0 -40%;
  background-image:
    linear-gradient(rgb(130 230 255 / 70%) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgb(130 230 255 / 70%) 1.5px, transparent 1.5px);
  background-size: 72px 72px;
  transform: perspective(520px) rotateX(58deg);
  transform-origin: 50% 100%;
  animation: top-fv-grid-flow 2.4s linear infinite;
}

@keyframes top-fv-grid-flow {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 72px;
  }
}

/* 回路網（Canvas）：JS で粒子と接続線を描く */
.top-fv-network {
  inset: -5%;
  width: 110%;
  height: 110%;
  mix-blend-mode: screen;
}

/* 光の帯：斜めに横切るスキャン光 */
.top-fv-sweep {
  position: absolute;
  inset: 0;
  overflow: hidden;
  mix-blend-mode: screen;
}

.top-fv-sweep::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 45%;
  background: linear-gradient(100deg, transparent 0%, rgb(160 235 255 / 0%) 35%, rgb(190 245 255 / 22%) 50%, rgb(160 235 255 / 0%) 65%, transparent 100%);
  transform: translateX(-120%) skewX(-12deg);
  animation: top-fv-sweep 7s cubic-bezier(0.65, 0, 0.35, 1) 1.5s infinite;
}

@keyframes top-fv-sweep {
  0% {
    transform: translateX(-120%) skewX(-12deg);
  }

  45%,
  100% {
    transform: translateX(260%) skewX(-12deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-fv-bg,
  .top-fv-grid::before,
  .top-fv-sweep::before {
    animation: none;
  }

  .top-fv-sweep {
    display: none;
  }

  .top-fv [data-depth] {
    transform: none;
  }
}

@media (max-width: 768px) {
  .top-fv-bg {
    object-position: 60% bottom;
  }
}

/* 右上・左下の写真（4 組を順に切り替え） */
.top-fv-right {
  position: absolute;
  left: calc(558.5 / 1440 * 100%);
  top: calc(177.5 / 984 * 100%);
  z-index: 1;
  width: calc(694.2 / 1440 * 100%);
  aspect-ratio: 1388 / 736;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 99.27%, 53.82% 100%);
}

@media (max-width: 768px) {
  .top-fv-right {
    left: calc(40 / 375 * 100%);
    top: calc(96 / 700 * 100%);
    width: calc(360 / 375 * 100%);
  }
}

.top-fv-left {
  position: absolute;
  left: calc(179 / 1440 * 100%);
  top: calc(396 / 984 * 100%);
  z-index: 1;
  width: calc(775 / 1440 * 100%);
  aspect-ratio: 1550 / 856;
  overflow: hidden;
  clip-path: polygon(0 0, 44.06% 0, 100% 100%, 0 100%);
}

@media (max-width: 768px) {
  .top-fv-left {
    left: 0;
    top: calc(250 / 700 * 100%);
    width: calc(360 / 375 * 100%);
  }
}

/*
 * 切り替え：新しい写真が斜めの帯で拭き取るように現れ（右上は右から、左下は左から）、
 * 大きめの倍率から引いていく。境目には光の線が走る。
 */
.top-fv-slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

.top-fv-slide.is-active,
.top-fv-slide.is-leaving {
  visibility: visible;
}

.top-fv-slide.is-active {
  z-index: 2;
}

.top-fv-slide.is-leaving {
  z-index: 1;
}

.top-fv-slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform-origin: 60% 50%;
}

.top-fv-slide.is-entering {
  animation: top-fv-wipe-right 1.3s cubic-bezier(0.77, 0, 0.18, 1) both;
}

.top-fv-left .top-fv-slide.is-entering {
  animation-name: top-fv-wipe-left;
}

.top-fv-slide.is-active img {
  animation: top-fv-pull 6.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* 出ていく写真は少し暗く沈める */
.top-fv-slide.is-leaving img {
  transform: scale(1.02);
  filter: brightness(0.55);
  transition: filter 1.3s ease;
}

/* 光の線（斜めの境目に沿って走る） */
.top-fv-right::after,
.top-fv-left::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 18%;
  background: linear-gradient(90deg, rgba(120, 230, 255, 0) 0%, rgba(160, 240, 255, 0.85) 48%, #fff 50%, rgba(160, 240, 255, 0.85) 52%, rgba(120, 230, 255, 0) 100%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: skewX(37deg);
  pointer-events: none;
}

.top-fv-right.is-switching::after {
  animation: top-fv-flash-right 1.3s cubic-bezier(0.77, 0, 0.18, 1) both;
}

.top-fv-left.is-switching::after {
  animation: top-fv-flash-left 1.3s cubic-bezier(0.77, 0, 0.18, 1) both;
}

@keyframes top-fv-wipe-right {
  from {
    clip-path: polygon(140% 0, 140% 0, 140% 100%, 180% 100%);
  }
  to {
    clip-path: polygon(-40% 0, 140% 0, 140% 100%, 0% 100%);
  }
}

@keyframes top-fv-wipe-left {
  from {
    clip-path: polygon(-80% 0, -40% 0, 0% 100%, -80% 100%);
  }
  to {
    clip-path: polygon(-80% 0, 100% 0, 140% 100%, -80% 100%);
  }
}

@keyframes top-fv-pull {
  from {
    transform: scale(1.22);
  }
  to {
    transform: scale(1.02);
  }
}

@keyframes top-fv-flash-right {
  0% {
    left: 151%;
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: -29%;
    opacity: 0;
  }
}

@keyframes top-fv-flash-left {
  0% {
    left: -29%;
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: 111%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-fv-slide.is-entering,
  .top-fv-slide.is-active img,
  .top-fv-right.is-switching::after,
  .top-fv-left.is-switching::after {
    animation: none;
  }
}

/* キャッチコピー */
.top-fv-message {
  position: absolute;
  left: calc(37 / 1440 * 100%);
  top: calc(244.1 / 984 * 100%);
  z-index: 2;
  width: calc(588 / 1440 * 100%);
  aspect-ratio: 588 / 201;
  margin: 0;
}

@media (max-width: 768px) {
  .top-fv-message {
    left: calc(4 / 375 * 100%);
    top: calc(470 / 700 * 100%);
    width: calc(360 / 375 * 100%);
  }
}

.top-fv-message__line {
  position: absolute;
  max-width: none;
  height: auto;
}

.top-fv-message__line--01 {
  left: 2.22%;
  top: 0;
  width: 83.57%;
}

.top-fv-message__line--02 {
  left: 0;
  top: 38.24%;
  width: 99.91%;
}

.top-fv-message__line--en {
  left: 4.26%;
  top: 94.43%;
  width: 52.2%;
}

.top-fv-tagline {
  position: absolute;
  left: calc(913 / 1440 * 100%);
  top: calc(662 / 984 * 100%);
  z-index: 2;
  width: calc(339 / 1440 * 100%);
  height: auto;
}

@media (max-width: 768px) {
  .top-fv-tagline {
    display: none;
  }
}

/* ==========================================================================
   # Top - News
   ========================================================================== */

.top-news {
  padding-block: 25px 122px;
}

@media (max-width: 1000px) {
  .top-news {
    padding-block: 45px 60px;
  }
}

.c-inner.top-news-inner {
  padding-inline: 40px;
  transform: translateX(60px);
}

@media (max-width: 1350px) {
  .c-inner.top-news-inner {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .c-inner.top-news-inner {
    padding-inline: 25px;
  }
}

.top-news-top {
  display: flex;
  gap: 90px;
  align-items: center;
  margin-bottom: 79px;
}

@media (max-width: 1350px) {
  .top-news-top {
    gap: 40px;
  }
}

@media (max-width: 1000px) {
  .top-news-top {
    flex-direction: column;
    gap: 36px;
    margin-bottom: 40px;
  }
}

.top-news-head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  width: 280px;
  gap: 70px;
}

@media (max-width: 1000px) {
  .top-news-head {
    width: 100%;
  }

  .top-news-head__title-break {
    display: none;
  }

  .top-news-head__btn {
    display: none;
  }
}

.top-news-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  max-width: 770px;
  margin-top: 58px;
  border-top: 1px solid #9b9fa2;
}

@media (max-width: 1000px) {
  .top-news-list {
    width: 100%;
    margin-top: 0;
  }
}

.top-news-list__item {
  border-bottom: 1px solid #9b9fa2;
}

.top-news-list__link {
  display: flex;
  align-items: center;
  padding-block: 29px 28px;
  color: #363d40;
  transition: color 0.4s;
}

@media (max-width: 768px) {
  .top-news-list__link {
    gap: 12px;
    padding-block: 16px 11px;
  }
}

.top-news-list__link:hover {
  color: #1b5da8;
}

.top-news-list__dot {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  margin-left: auto;
  border: 1px solid transparent;
  border-radius: 50%;
  transition: border-color 0.4s;
}

.top-news-list__dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background-color: #1b5da8;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.top-news-list__link:hover .top-news-list__dot {
  border-color: #d2d6db;
}

/* @media (max-width: 768px) {
  .top-news-list__link {
    gap: 12px;
    padding-block: 16px;
  }
} */

.top-news-list__meta {
  display: flex;
  align-items: center;
  min-width: 0;
}

@media (max-width: 768px) {
  .top-news-list__meta {
    flex-wrap: wrap;
    gap: 5px 12px;
    flex: 1;
  }
}

.top-news-list__date {
  flex-shrink: 0;
  font-family: "Figtree", sans-serif;
  font-size: clamp(13px, -3.43px + 2.6vw, 16px);
  font-weight: 400;
  line-height: 1.5;
  margin-left: clamp(4px, -2.86px + 0.89vw, 10px);
  margin-right: clamp(12px, -1.71px + 1.79vw, 24px);
}

@media (max-width: 1000px) {
  .top-news-list__date {
    font-size: 16px;
    margin-left: 0;
  }
}

.top-news-list__tag {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 1px 10px;
  background-color: #e9f1f8;
  color: #363d40;
  font-size: clamp(10px, 7.71px + 0.3vw, 12px);
  font-weight: 400;
  border-radius: 999px;
  width: clamp(64px, 43.43px + 2.68vw, 82px);
  height: clamp(22px, 15.14px + 0.89vw, 28px);
  text-align: center;
  margin-right: clamp(10px, -1.43px + 1.49vw, 20px);
}

@media (max-width: 1000px) {
  .top-news-list__tag {
    font-size: 12px;
    width: 82px;
    height: 28px;
  }
}

.top-news-list__title {
  flex: 1;
  min-width: 0;
  font-size: clamp(13px, 10.71px + 0.3vw, 15px);
  font-weight: 500;
  letter-spacing: 0;
}

@media (max-width: 1000px) {
  .top-news-list__title {
    flex-basis: 100%;
    white-space: normal;
    font-size: 15px;
  }
}

.top-news-swiper {
  position: relative;
  margin-left: 370px;
}

@media (max-width: 1350px) {
  .top-news-swiper {
    margin-left: 320px;
  }
}

@media (max-width: 1000px) {
  .top-news-swiper {
    margin-left: 0;
  }
}

.top-news-swiper__container {
  overflow: hidden;
  width: calc(100vw - 360px);
}

@media (min-width: 1280px) {
  .top-news-swiper__container {
    width: calc(50vw + 280px);
  }
}

@media (min-width: 1351px) {
  .top-news-swiper__container {
    width: calc(50vw + 170px);
  }
}

@media (max-width: 1000px) {
  .top-news-swiper__container {
    width: calc(100vw - 40px);
  }
}

@media (max-width: 768px) {
  .top-news-swiper__container {
    width: calc(100vw - 20px);
  }
}

.top-news-card {
  width: 230px;
}

.top-news-card__link {
  display: block;
}

.top-news-card__image {
  width: 100%;
  height: auto;
  aspect-ratio: 230 / 143;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.top-news-card__date {
  font-family: "Figtree", sans-serif;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.142;
  letter-spacing: 0;
}

.top-news-card__text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.06em;
}

.top-news-swiper__bottom {
  display: none;
}

@media (max-width: 1000px) {
  .top-news-swiper__bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 40px;
    margin-top: 24px;
  }
}

.top-news-swiper__pagination.swiper-pagination-progressbar {
  display: none;
  position: relative;
  top: auto;
  left: auto;
  flex: 1;
  max-width: 350px;
  height: 3px;
  background-color: #d2d6db;
  border-radius: 999px;
  overflow: hidden;
}

.top-news-swiper__pagination .swiper-pagination-progressbar-fill {
  background-color: #1b5da8;
  border-radius: 999px;
}

@media (max-width: 1000px) {
  .top-news-swiper__pagination.swiper-pagination-progressbar {
    display: block;
  }
}

.top-news-swiper__nav {
  display: none;
  justify-content: flex-start;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 1000px) {
  .top-news-swiper__nav {
    display: flex;
  }
}

.top-news-swiper__prev,
.top-news-swiper__next {
  position: relative;
  width: 32px;
  height: 32px;
  background-color: transparent;
  border: 1px solid #a1a1a1;
  border-radius: 4px;
  transition:
    border-color 0.4s,
    opacity 0.4s;
}

.top-news-swiper__prev:hover,
.top-news-swiper__next:hover {
  border-color: #1b5da8;
}

.top-news-swiper__prev:hover::after,
.top-news-swiper__next:hover::after {
  border-color: #1b5da8;
}

.top-news-swiper__prev::after,
.top-news-swiper__next::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid #a1a1a1;
  border-right: 1.5px solid #a1a1a1;
  transition: border-color 0.4s;
}

.top-news-swiper__prev::after {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.top-news-swiper__next::after {
  transform: translate(-70%, -50%) rotate(45deg);
}

.top-news-swiper__prev.swiper-button-disabled,
.top-news-swiper__next.swiper-button-disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* ==========================================================================
   # Top - Technology
   ========================================================================== */

.top-technology {
  position: relative;
  padding-block: 120px 100px;
}

@media (max-width: 768px) {
  .top-technology {
    padding-block: 60px;
  }
}

.top-technology .c-top-section-title__main {
  line-height: 1.3;
}

.top-technology__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 50px;
}

@media (max-width: 768px) {
  .top-technology__heading {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
  }
}

.top-technology__lead {
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.02em;
  text-align: left;
  margin-top: 20px;
  transform: translateX(7px);
}

@media (max-width: 768px) {
  .top-technology__lead {
    font-size: 14px;
  }
}

/* .top-technology__swiper {
  width: 100%;
} */

.top-technology__container {
  overflow: hidden;
}

.top-technology__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}

@media (max-width: 768px) {
  .top-technology__list {
    display: flex;
    /* gap: 0; */
  }
}

@media (min-width: 769px) {
  .top-technology__list {
    transform: none !important;
    width: auto !important;
  }
}

.top-technology-item {
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .top-technology-item {
    width: 260px;
    flex-shrink: 0;
  }

  .top-technology__list .top-technology-item:last-child {
    margin-right: 0 !important;
    margin-inline-end: 0 !important;
  }
}

@media (min-width: 769px) {
  .top-technology-item {
    width: auto !important;
    margin-right: 0 !important;
  }
}

a.top-technology-item__media {
  display: block;
  color: inherit;
}

.top-technology-item__media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.top-technology-item__image {
  width: 100%;
  height: auto;
  aspect-ratio: 290 / 474;
  object-fit: cover;
}

.top-technology-item__overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 34px 27px 32px;
  color: #fff;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.top-technology-item__badge {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top-technology-item__number {
  font-family: "Figtree", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.11;
}

.top-technology-item__heading {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.27;
}

.top-technology-item__text {
  margin-top: auto;
  font-size: 13px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: #fff;
}

.top-technology__bottom {
  display: none;
}

@media (max-width: 768px) {
  .top-technology__bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 40px;
    margin-top: 24px;
  }
}

.top-technology__pagination.swiper-pagination-progressbar {
  display: none;
  position: relative;
  top: auto;
  left: auto;
  flex: 1;
  max-width: 350px;
  height: 3px;
  background-color: #d2d6db;
  border-radius: 999px;
  overflow: hidden;
}

.top-technology__pagination .swiper-pagination-progressbar-fill {
  background-color: #1b5da8;
  border-radius: 999px;
}

@media (max-width: 768px) {
  .top-technology__pagination.swiper-pagination-progressbar {
    display: block;
  }
}

.top-technology__nav {
  display: none;
  justify-content: flex-start;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .top-technology__nav {
    display: flex;
  }
}

.top-technology__prev,
.top-technology__next {
  position: relative;
  width: 32px;
  height: 32px;
  background-color: transparent;
  border: 1px solid #a1a1a1;
  border-radius: 4px;
  transition:
    border-color 0.4s,
    opacity 0.4s;
}

.top-technology__prev:hover,
.top-technology__next:hover {
  border-color: #1b5da8;
}

.top-technology__prev:hover::after,
.top-technology__next:hover::after {
  border-color: #1b5da8;
}

.top-technology__prev::after,
.top-technology__next::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid #a1a1a1;
  border-right: 1.5px solid #a1a1a1;
  transition: border-color 0.4s;
}

.top-technology__prev::after {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.top-technology__next::after {
  transform: translate(-70%, -50%) rotate(45deg);
}

.top-technology__prev.swiper-button-disabled,
.top-technology__next.swiper-button-disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* ==========================================================================
   # Top - Our Strengths
   ========================================================================== */

.top-our-strengths {
  background-color: #ecf1f5;
  padding-block: 65px 100px;
}

/* 事業案内ページでは白背景（ページ見出しのすぐ下に来るため、上の余白も広め） */
.has-top-sections .top-our-strengths {
  background-color: #fff;
  padding-block: clamp(56px, 37.69px + 4.88vw, 120px) 100px;
}

@media (max-width: 768px) {
  .top-our-strengths__inner {
    padding-inline: 25px;
  }
}

.top-our-strengths .c-top-section-title__main {
  line-height: 1.3;
}

@media (max-width: 900px) {
  .top-our-strengths .c-top-section-title__main {
    line-height: 1.3;
  }
}

.top-our-strengths__heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 39px;
}

@media (max-width: 768px) {
  .top-our-strengths__heading {
    flex-direction: column;
    gap: 7px;
    margin-bottom: 40px;
  }
}

.top-our-strengths__heading-body {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 40px;
}

@media (max-width: 900px) {
  .top-our-strengths__heading-body {
    align-items: flex-start;
  }
}

.top-our-strengths__lead {
  font-size: clamp(14px, 13.29px + 0.19vw, 16px);
  line-height: 1.81;
  letter-spacing: 0.02em;
  margin-top: 15px;
}

@media (max-width: 820px) {
  .top-our-strengths__lead {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .top-our-strengths__lead {
    font-size: 16px;
    letter-spacing: 0.01em;
    line-height: 1.75;
  }
}

.top-our-strengths__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 1.87vw, 27px);
  /* gap: clamp(24px, 18.37px + 1.5vw, 40px) clamp(12px, 7.77px + 1.13vw, 24px); */
}

@media (max-width: 768px) {
  .top-our-strengths__list {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

.top-our-strengths-item__media {
  position: relative;
  margin-bottom: 73px;
}

@media (max-width: 1100px) {
  .top-our-strengths-item__media {
    margin-bottom: 50px;
  }
}

.top-our-strengths-item__image {
  width: 100%;
  height: auto;
  aspect-ratio: 382 / 345;
  object-fit: cover;
  /* border-radius: 12px; */
}

.top-our-strengths-item__badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -39px;
  display: flex;
  align-items: center;
  gap: clamp(12px, 7.43px + 1.22vw, 25px);
  border-radius: 8px;
}

@media (max-width: 1100px) {
  .top-our-strengths-item__badge {
    gap: 13px;
    bottom: -30px;
  }
}
@media (max-width: 768px) {
  .top-our-strengths-item__badge {
    bottom: -39px;
  }
}

.top-our-strengths-item__number {
  flex-shrink: 0;
  font-family: "Figtree", sans-serif;
  font-size: clamp(16px, 10.02px + 1.6vw, 33px);
  font-weight: 700;
  color: #1a5cac;
  line-height: 2.12;
  padding-right: clamp(8px, 1.04vw, 15px);
  border-right: 1px solid #d2d6db;
}

@media (max-width: 1100px) {
  .top-our-strengths-item__number {
    padding-right: 5px;
  }
}

@media (max-width: 850px) {
  .top-our-strengths-item__number {
    font-size: 20px;
  }
}
@media (max-width: 768px) {
  .top-our-strengths-item__number {
    font-size: 33px;
    line-height: 1.82;
    padding-right: 17px;
  }
}

.top-our-strengths-item__heading {
  white-space: nowrap;
  font-size: clamp(14px, 9.77px + 1.13vw, 24px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

@media (max-width: 1100px) {
  .top-our-strengths-item__heading {
    font-size: 17px;
  }
}
@media (max-width: 900px) {
  .top-our-strengths-item__heading {
    font-size: 15px;
  }
}
@media (max-width: 768px) {
  .top-our-strengths-item__heading {
    font-size: 22px;
  }
}

.top-our-strengths-item__text {
  font-size: clamp(14px, 12.94px + 0.28vw, 17px);
  line-height: 1.88;
  letter-spacing: 0.02em;
}

@media (max-width: 1100px) {
  .top-our-strengths-item__text {
    font-size: 14px;
    letter-spacing: 0.01em;
  }
}

@media (max-width: 900px) {
  .top-our-strengths-item__text {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .top-our-strengths-item__text {
    font-size: 16px;
    line-height: 1.75;
  }
}

.top-our-strengths__btn--pc {
  align-self: flex-end;
}

.top-our-strengths__btn--sp {
  display: none;
}

@media (max-width: 768px) {
  .top-our-strengths__btn--pc {
    display: none;
  }

  .top-our-strengths__btn--sp {
    display: flex;
    /* width: 100%; */
    margin-top: 40px;
  }
}

/* ==========================================================================
   # Top - Banner（こんなんつくっちゃいました）
   ========================================================================== */

.top-banner {
  padding-top: 60px;
}

.top-banner-stage {
  position: relative;
  width: min(1105px, 100%);
  aspect-ratio: 1105 / 603;
  margin-inline: auto;
}

.top-banner__burst {
  position: absolute;
  left: 7.78%;
  top: -0.66%;
  width: 81.63%;
  max-width: none;
  height: auto;
}

.top-banner__art {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

.top-banner__loupe {
  position: absolute;
  left: 38.37%;
  top: 68%;
  z-index: 1;
  width: 2.62%;
  height: auto;
  pointer-events: none;
}

.top-banner__btn {
  position: absolute;
  left: 36.38%;
  top: 78.77%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  height: 60px;
  padding-right: 16px;
  background-color: #a7f573;
  border: 3px solid #182e58;
  border-radius: 50px;
  box-shadow: -2px 4px 0 #182e58;
  color: #182e58;
  font-size: 17px;
  font-weight: 700;
  transition: transform 0.3s, box-shadow 0.3s;
}

.top-banner__btn:hover {
  box-shadow: 0 0 0 #182e58;
  transform: translate(-2px, 4px);
}

.top-banner__btn-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #182e58 url("../images/top-banner-arrow.svg") no-repeat 54% center / 8px auto;
  transform: translateY(-50%);
}

.top-banner__name {
  position: absolute;
  top: 96.35%;
  padding-inline: 4px;
  background-color: #fff;
  color: #1b5da8;
  font-size: clamp(10px, 1.12vw, 16px);
  font-weight: 700;
  line-height: 1.375;
  white-space: nowrap;
}

.top-banner__name--seimitsu {
  left: 3.17%;
}

.top-banner__name--ojichan {
  left: 83.26%;
}

@media (max-width: 1000px) {
  .top-banner__btn {
    left: 50%;
    width: 200px;
    height: 48px;
    font-size: 14px;
    transform: translateX(-50%);
  }

  .top-banner__btn:hover {
    transform: translate(calc(-50% - 2px), 4px);
  }

  .top-banner__btn-icon {
    right: 10px;
    width: 26px;
    height: 26px;
    background-size: 6px auto;
  }
}

@media (max-width: 768px) {
  .top-banner {
    padding-top: 40px;
  }

  .top-banner-stage {
    padding-bottom: 72px;
    aspect-ratio: auto;
  }

  .top-banner__btn {
    top: auto;
    bottom: 0;
  }

  .top-banner__loupe {
    display: none;
  }

  .top-banner__name {
    top: auto;
    bottom: 72px;
    transform: translateY(100%);
  }

  .top-banner__name--ojichan {
    left: auto;
    right: 0;
  }
}

/* ==========================================================================
   # Common - Header
   ========================================================================== */

.l-header {
  position: fixed;
  top: calc(30px + var(--wp-admin--admin-bar--height, 0px));
  left: 50%;
  z-index: 300;
  width: var(--nk-header-width);
  transform: translateX(-50%);
}

/* スクロール中のヘッダー：下へ進むときは隠し、上へ戻るときは画面の一番上にぴったり表示する */
.l-header {
  transition:
    top 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.l-header.is-pinned {
  top: var(--wp-admin--admin-bar--height, 0px);
  box-shadow: 0 4px 16px rgb(0 0 0 / 8%);
}

.l-header.is-hidden {
  transform: translate(-50%, calc(-100% - 24px));
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .l-header {
    transition: none;
  }
}

.p-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(48px, 34.62px + 3.57vw, 86px);
  padding-left: clamp(16px, 12.83px + 0.85vw, 25px);
  padding-right: clamp(16px, 7.55px + 2.25vw, 40px);
  background-color: #fff;
}

@media (max-width: 1350px) {
  .p-header {
    padding-left: 5px;
    padding-right: 15px;
  }
}

.p-header-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .p-header-logo {
    gap: 10px;
  }
}

.p-header-logo img {
  display: block;
  width: clamp(150px, 26.3px + 16.09vw, 258px);
  height: auto;
}

.p-header-logo__text {
  color: #202f39;
  font-size: clamp(12px, 11.65px + 0.09vw, 13px);
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

@media (max-width: 1439px) and (min-width: 1351px), (max-width: 480px) {
  .p-header-logo__text {
    display: none;
  }
}

.p-header-menu {
  display: flex;
  align-items: center;
  gap: clamp(16px, 11.07px + 1.32vw, 30px);
}

.p-header-nav {
  flex-shrink: 0;
}

@media (max-width: 1350px) {
  .p-header-nav {
    display: none;
  }
}

.p-header-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 1.38vw, 20px);
  font-size: clamp(13px, 1.04vw, 15px);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* リンクとボタン（事業案内）で縦位置がずれないよう、どちらもブロックにして同じ行の高さで並べる */
.p-header-nav__list > li {
  display: flex;
  align-items: center;
}

.p-header-nav__list > li > a,
.p-header-nav__trigger {
  position: relative;
  display: block;
  line-height: inherit;
  transition: opacity 0.4s;
}

.p-header-nav__trigger {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.p-header-nav__list > li > a::after,
.p-header-nav__trigger::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 14px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(270deg, #6eb83f 0%, #348daa 49%, #185baa 100%);
  opacity: 0;
  transform: translateX(-50%) scale(0);
  transition:
    opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.34, 1.8, 0.64, 1);
}

/* ドットはマウスオーバー時と、閲覧中のページの項目にだけ表示する */
.p-header-nav__list > li > a:hover::after,
.p-header-nav__list > li > a:focus-visible::after,
.p-header-nav__list > li > a.is-current::after,
.p-header-nav__trigger:hover::after,
.p-header-nav__trigger:focus-visible::after,
.p-header-nav__trigger.is-current::after,
.p-header-nav__item--mega.is-open .p-header-nav__trigger::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.p-header-nav__list > li > a:hover,
.p-header-nav__trigger:hover {
  opacity: 0.6;
}

/* ---------- 事業案内のメガメニュー ---------- */

.p-header {
  position: relative;
}

/* ヘッダーの下に、ヘッダーと同じ幅で開く */
.p-header-mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  padding-top: 12px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition:
    opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.4s;
}

.p-header-nav__item--mega.is-open .p-header-mega {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition:
    opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}

.p-header-mega__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 36px 40px 40px;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 20px 40px rgb(24 46 88 / 16%);
}

.p-header-mega__en {
  background: linear-gradient(90deg, #185baa 0%, #348daa 51%, #6eb83f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-family: "Figtree", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.p-header-mega__title {
  margin-top: 10px;
  color: #202f39;
  font-size: 15px;
  font-weight: 700;
}

.p-header-mega__lead {
  margin-top: 16px;
  color: #555;
  font-size: 13px;
  line-height: 1.8;
}

.p-header-mega__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: #1b5da8;
  font-size: 14px;
  font-weight: 700;
  transition: opacity 0.3s;
}

.p-header-mega__more::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.p-header-mega__more:hover {
  opacity: 0.6;
}

.p-header-mega__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.p-header-mega__card {
  display: flex;
  flex-direction: column;
  color: #202f39;
}

.p-header-mega__thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  background-color: #ecf1f5;
}

.p-header-mega__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.34, 1.7, 0.64, 1);
}

.p-header-mega__card-en {
  margin-top: 14px;
  color: #1b5da8;
  font-family: "Figtree", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.p-header-mega__card-ja {
  position: relative;
  margin-top: 2px;
  padding-right: 22px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  transition: color 0.3s;
}

.p-header-mega__card-ja::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-top: 2px solid #1b5da8;
  border-right: 2px solid #1b5da8;
  transform: rotate(45deg);
  transition: right 0.3s ease;
}

.p-header-mega__card-text {
  margin-top: 8px;
  color: #666;
  font-size: 12px;
  line-height: 1.7;
}

@media (hover: hover) {
  .p-header-mega__card:hover .p-header-mega__thumb img {
    transform: scale(1.1);
  }

  .p-header-mega__card:hover .p-header-mega__card-ja {
    color: #1b5da8;
  }

  .p-header-mega__card:hover .p-header-mega__card-ja::after {
    right: 0;
  }
}

.p-header-mega__card[aria-current="page"] .p-header-mega__card-ja {
  color: #1b5da8;
}

/* 開くとき、カードが順番にふわっと出る */
@media (prefers-reduced-motion: no-preference) {
  .p-header-mega__list > li {
    opacity: 0;
    transform: translateY(10px);
    transition:
      opacity 0.3s ease,
      transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .p-header-nav__item--mega.is-open .p-header-mega__list > li {
    opacity: 1;
    transform: none;
  }

  .p-header-nav__item--mega.is-open .p-header-mega__list > li:nth-child(2) {
    transition-delay: 0.05s;
  }

  .p-header-nav__item--mega.is-open .p-header-mega__list > li:nth-child(3) {
    transition-delay: 0.1s;
  }

  .p-header-nav__item--mega.is-open .p-header-mega__list > li:nth-child(4) {
    transition-delay: 0.15s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-header-mega {
    transition: none;
  }
}

.p-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

@media (max-width: 1350px) {
  .p-header-actions {
    display: none;
  }
}

.p-header-actions__contact {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 172px;
  height: 46px;
  background: linear-gradient(90deg, #1f61a5 0%, #71bc43 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 4px;
  white-space: nowrap;
  transition: opacity 0.4s;
}

.p-header-actions__contact:hover {
  opacity: 0.8;
}

.p-header-actions__contact[data-cta-roll]:hover,
.p-header-actions__contact[data-cta-roll]:focus-visible {
  opacity: 1;
}

.p-header-actions__contact[data-cta-roll] .nk-cta__label {
  overflow: hidden;
}

.p-header-actions__lang {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 73px;
  height: 46px;
  background-color: #a1a1a1;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  border-radius: 4px;
  transition: opacity 0.4s;
}

.p-header-actions__lang:hover {
  opacity: 0.8;
}

.p-header-hamburger {
  position: relative;
  display: none;
  flex-shrink: 0;
  width: 36px;
  height: 30px;
  background-image: url("../images/hamburger-bg.webp");
  background-size: cover;
  background-position: center;
}

@media (max-width: 1350px) {
  .p-header-hamburger {
    display: block;
  }
}

.p-header-hamburger__line {
  position: absolute;
  left: 50%;
  width: 19.5px;
  height: 2px;
  background-color: #fff;
  transform: translateX(-50%);
  transition:
    transform 0.3s,
    top 0.3s,
    opacity 0.3s;
}

.p-header-hamburger__line:first-child {
  top: calc(50% - 3px);
}

.p-header-hamburger__line:last-child {
  top: calc(50% + 3px);
}

.p-header-hamburger.is-open .p-header-hamburger__line:first-child {
  top: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.p-header-hamburger.is-open .p-header-hamburger__line:last-child {
  top: 50%;
  transform: translateX(-50%) rotate(-45deg);
}

/* ==========================================================================
   # Common - Drawer
   ========================================================================== */

.p-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow-y: auto;
  background-color: #ecf1f5;
  visibility: hidden;
  opacity: 0;
  transform: translateX(30px);
  transition:
    opacity 0.3s,
    transform 0.3s,
    visibility 0.3s;
}

.p-drawer.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

.p-drawer-nav {
  padding-top: calc(
    30px + clamp(48px, 34.62px + 3.57vw, 86px) + 16px +
      var(--wp-admin--admin-bar--height, 0px)
  );
  padding-inline: 25px;
}

.p-drawer-nav__list {
  display: flex;
  flex-direction: column;
  margin-inline: auto;
  max-width: 500px;
}

.p-drawer-nav__item {
  border-bottom: 1px solid #d5d5d5;
}

.p-drawer-nav__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-block: 15px;
}

.p-drawer-nav__en {
  display: inline-block;
  font-family: "Figtree", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.03em;
  background: linear-gradient(90deg, #6eb83f 0%, #348daa 49%, #185baa 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  width: fit-content;
}

.p-drawer-nav__ja {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.11;
}

.p-drawer-contact-wrap {
  flex-shrink: 0;
  padding-inline: 10px;
}

.p-drawer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 300px;
  height: 52px;
  margin: 40px auto 30px;
  background: linear-gradient(90deg, #1f61a5 0%, #71bc43 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 4px;
  transition: opacity 0.4s;
}

.p-drawer-contact:hover {
  opacity: 0.8;
}

.p-drawer-contact[data-cta-roll]:hover,
.p-drawer-contact[data-cta-roll]:focus-visible {
  opacity: 1;
}

.p-drawer-contact[data-cta-roll] .nk-cta__label {
  overflow: hidden;
}

.p-drawer-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 8px;
  padding-bottom: 24px;
}

.p-drawer-lang__btn {
  font-size: 15px;
  font-weight: 400;
  color: #9b9fa2;
  letter-spacing: 0;
}

.p-drawer-lang__btn.is-active {
  color: #1b5da8;
}

.p-drawer-lang__divider {
  color: #9b9fa2;
}

/* ==========================================================================
   # Common - Footer
   ========================================================================== */

.l-footer {
  background-color: #232d33;
  color: #fff;
}

.c-inner.l-footer__inner {
  padding-top: clamp(32px, 18.1px + 3.31vw, 52px);
  padding-bottom: 200px;
}

@media (max-width: 768px) {
  .c-inner.l-footer__inner {
    padding-bottom: 100px;
  }
}

.p-footer-logo__link {
  display: inline-flex;
  width: 100%;
  max-width: 198px;
}

.p-footer-logo__link img {
  width: 100%;
  height: auto;
  aspect-ratio: 198 / 30;
  object-fit: cover;
}

.p-footer-sns {
  display: flex;
  gap: 12px;
}

.p-footer-sns__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  border: 1px solid #fff;
  border-radius: 50%;
  transition: opacity 0.4s;
}

.p-footer-sns__link:hover {
  opacity: 0.7;
}

.p-footer-sns__icon {
  width: 40%;
  height: auto;
  aspect-ratio: 1 / 1;
  /* X のロゴは縦長なので、切れないよう枠内に収める */
  object-fit: contain;
}

.p-footer-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Figtree", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.p-footer-tel__icon {
  width: 14px;
  height: auto;
  aspect-ratio: 14 / 21;
  object-fit: cover;
}

.p-footer-contact__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 240px;
  margin-top: 8px;
  padding-block: 12px;
  background-color: #232d33;
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.0625em;
  line-height: 2.8;
  border: 1px solid #fff;
  border-radius: 4px;
  text-align: center;
  transition: opacity 0.4s;
}

.p-footer-contact__btn:hover {
  opacity: 0.8;
}

.p-footer-contact__btn[data-cta-roll]:hover,
.p-footer-contact__btn[data-cta-roll]:focus-visible {
  opacity: 1;
}

.p-footer-contact__btn[data-cta-roll] .nk-cta__label {
  display: block;
  width: 100%;
  overflow: hidden;
}

@media (max-width: 768px) {
  .p-footer-contact__btn {
    max-width: 300px;
  }
}

.p-footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: clamp(20px, 11.66px + 1.987vw, 32px);
  padding-bottom: 40px;
  color: #fff;
}

@media (max-width: 768px) {
  .p-footer-top {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: clamp(24px, 12.87px + 2.65vw, 40px);
  }
}

/* Logo
---------------------------------------------*/
.p-footer-logo {
  order: 0;
  flex: 0 0 100%;
}

@media (max-width: 768px) {
  .p-footer-logo {
    order: 2;
    flex-basis: auto;
  }
}

/* Brand
---------------------------------------------*/
.p-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  order: 1;
}

@media (max-width: 768px) {
  .p-footer-brand {
    order: 3;
  }
}

.p-footer-address {
  font-style: normal;
  font-size: clamp(12px, 3.2vw, 14px);
  line-height: 1.8;
}

.p-footer-address__company {
  font-weight: 700;
}

.p-footer-brand__privacy {
  display: none;
  font-size: 10px;
  color: #878a92;
}

@media (max-width: 768px) {
  .p-footer-brand__privacy {
    display: inline-block;
  }

  .p-footer-bottom__privacy--desktop {
    display: none;
  }
}

/* Nav
---------------------------------------------*/
.p-footer-nav {
  display: flex;
  gap: clamp(32px, 18.1px + 3.31vw, 52px);
  order: 2;
}

@media (max-width: 768px) {
  .p-footer-nav {
    order: 0;
    justify-content: space-between;
    gap: 32px;
  }
}

.p-footer-nav__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: clamp(12px, 3.2vw, 14px);
}

.p-footer-nav__item a {
  transition: opacity 0.4s;
}

.p-footer-nav__item a:hover {
  opacity: 0.7;
}

/* Contact
---------------------------------------------*/
.p-footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  order: 3;
}

@media (max-width: 768px) {
  .p-footer-contact {
    order: 1;
    width: 100%;
  }
}

.p-footer-contact__note {
  font-size: 10px;
  color: #878a92;
}

/* Bottom
---------------------------------------------*/
.p-footer-bottom {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  color: #fff;
  padding-top: 20px;
  border-top: 1px solid #3b4552;
  font-size: 12px;
}

.p-footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}

@media (max-width: 768px) {
  .p-footer-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.p-footer-bottom__copyright {
  font-family: "Figtree", sans-serif;
}

/* Visual
---------------------------------------------*/
.p-footer-visual {
  position: relative;
}

.p-footer-visual__media {
  position: relative;
  width: 100%;
  aspect-ratio: 2880 / 1628;
  overflow: hidden;
}

@media (max-width: 768px) {
  .p-footer-visual__media {
    aspect-ratio: 750 / 724;
  }
}

.p-footer-visual__text {
  position: absolute;
  top: 0;
  left: calc(50% + 7px);
  z-index: 1;
  margin: 0;
  transform: translate(-50%, -50%);
  font-family: "Figtree", sans-serif;
  font-weight: 700;
  font-size: clamp(100px, 36.62px + 16.9vw, 330px);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 2px #fff;
}

@media (max-width: 768px) {
  /* スマホでは文字が画面からはみ出すので、横に流して全文を読めるようにする */
  .p-footer-visual {
    overflow-x: clip;
  }

  .p-footer-visual__text {
    left: 0;
    transform: translateY(-50%);
    animation: footer-visual-text-scroll 14s linear infinite;
  }
}

@keyframes footer-visual-text-scroll {
  0% {
    transform: translate(100vw, -50%);
  }

  100% {
    transform: translate(-100%, -50%);
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .p-footer-visual__text {
    left: 50%;
    font-size: 22vw;
    animation: none;
    transform: translate(-50%, -50%);
  }
}

/* ==========================================================================
   # Footer - Quiz（全ページ共通）
   ========================================================================== */

.p-footer-visual--quiz .p-footer-visual__media {
  background: linear-gradient(117deg, #2f6bb3 10%, #5b958d 30%, #8ec767 50%, #8dc29a 78%, #8ec2a8 100%);
}

.p-footer-quiz {
  --u: calc(100cqw / 1440);
  position: absolute;
  inset: 0;
  z-index: 1;
  container-type: inline-size;
  color: #182e58;
}

.p-footer-quiz * {
  --u: calc(100cqw / 1440);
}

.p-footer-quiz [hidden] {
  display: none !important;
}

.p-footer-quiz__set,
.p-footer-quiz__view {
  position: absolute;
  inset: 0;
}

@keyframes footer-quiz-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 登場アニメーション（キャラ → 吹き出し → 質問 → ドン!!） ---------- */

.p-footer-quiz.is-anim .p-footer-quiz__view--question:not(.is-playing) :is(.p-footer-quiz__chara, .p-footer-quiz__bubble, .p-footer-quiz__box, .p-footer-quiz__doon) {
  opacity: 0;
}

.p-footer-quiz__view--question.is-playing .p-footer-quiz__chara {
  animation: footer-quiz-chara 0.8s cubic-bezier(0.34, 1.4, 0.64, 1) both;
  transform-origin: 50% 100%;
}

.p-footer-quiz__view--question.is-playing .p-footer-quiz__bubble {
  animation: footer-quiz-bubble 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s both;
  transform-origin: 75% 100%;
}

.p-footer-quiz__view--question.is-playing .p-footer-quiz__box {
  animation: footer-quiz-box 0.55s cubic-bezier(0.22, 1, 0.36, 1) 1.15s both;
}

.p-footer-quiz__view--question.is-playing .p-footer-quiz__doon {
  animation: footer-quiz-doon 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.55s both;
  transform-origin: 40% 60%;
}

@keyframes footer-quiz-chara {
  0% {
    opacity: 0;
    transform: translateY(40%) scale(0.7, 0.6);
  }

  45% {
    opacity: 1;
    transform: translateY(-10%) scale(0.95, 1.08);
  }

  70% {
    transform: translateY(0) scale(1.06, 0.94);
  }

  85% {
    transform: translateY(-3%) scale(0.98, 1.02);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes footer-quiz-bubble {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }

  60% {
    opacity: 1;
    transform: scale(1.08);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes footer-quiz-box {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes footer-quiz-doon {
  0% {
    opacity: 0;
    transform: scale(2.6) rotate(-18deg);
  }

  40% {
    opacity: 1;
    transform: scale(0.88) rotate(4deg);
  }

  55% {
    transform: scale(1.08) rotate(-4deg);
  }

  70% {
    transform: scale(0.97) rotate(3deg);
  }

  85% {
    transform: scale(1.02) rotate(-1deg);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-footer-quiz__view--question.is-playing :is(.p-footer-quiz__chara, .p-footer-quiz__bubble, .p-footer-quiz__box, .p-footer-quiz__doon) {
    animation: none;
  }
}

/* ---------- 回答のアニメーション（キャラ → 答え → ボタン → え!?） ---------- */

.p-footer-quiz.is-anim .p-footer-quiz__view--answer:not(.is-playing) :is(.p-footer-quiz__surprised, .p-footer-quiz__panel, .p-footer-quiz__answer, .p-footer-quiz__answer-actions, .p-footer-quiz__eh) {
  opacity: 0;
}

.p-footer-quiz__view--answer.is-playing .p-footer-quiz__surprised {
  animation:
    footer-quiz-surprised-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both,
    footer-quiz-shiver 0.5s linear 0.45s 2;
  transform-origin: 50% 100%;
}

.p-footer-quiz__view--answer.is-playing .p-footer-quiz__panel {
  animation: footer-quiz-panel 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.p-footer-quiz__view--answer.is-playing .p-footer-quiz__answer {
  animation: footer-quiz-answer 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.75s both;
}

.p-footer-quiz__view--answer.is-playing .p-footer-quiz__answer-actions {
  animation: footer-quiz-actions 0.4s ease-out 1.15s both;
}

.p-footer-quiz__view--answer.is-playing .p-footer-quiz__eh {
  animation: footer-quiz-eh 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 1.35s both;
  transform-origin: 75% 90%;
}

@keyframes footer-quiz-surprised-in {
  0% {
    opacity: 0;
    transform: translateY(30%) scale(0.7);
  }

  60% {
    opacity: 1;
    transform: translateY(-6%) scale(1.06);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

/* 驚いてガタガタ震える */
@keyframes footer-quiz-shiver {
  0%,
  100% {
    transform: none;
  }

  20% {
    transform: translateX(-1.5%) rotate(-2deg);
  }

  40% {
    transform: translateX(1.5%) rotate(2deg);
  }

  60% {
    transform: translateX(-1%) rotate(-1deg);
  }

  80% {
    transform: translateX(1%) rotate(1deg);
  }
}

@keyframes footer-quiz-panel {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-12deg);
  }

  55% {
    opacity: 1;
    transform: scale(1.1) rotate(3deg);
  }

  75% {
    transform: scale(0.96) rotate(-1deg);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

/* 答えの文字：大きく飛び込んでドンと止まる（PC は中央寄せの translateX を保つ） */
.p-footer-quiz__answer {
  --answer-x: -50%;
}

@keyframes footer-quiz-answer {
  0% {
    opacity: 0;
    transform: translateX(var(--answer-x)) scale(3);
    filter: blur(4px);
  }

  45% {
    opacity: 1;
    transform: translateX(var(--answer-x)) scale(0.85);
    filter: none;
  }

  65% {
    transform: translateX(var(--answer-x)) scale(1.12);
  }

  82% {
    transform: translateX(var(--answer-x)) scale(0.97);
  }

  100% {
    opacity: 1;
    transform: translateX(var(--answer-x));
  }
}

.p-footer-quiz__answer-actions {
  --actions-x: -50%;
}

@keyframes footer-quiz-actions {
  0% {
    opacity: 0;
    transform: translate(var(--actions-x), 16px);
  }

  100% {
    opacity: 1;
    transform: translate(var(--actions-x), 0);
  }
}

@keyframes footer-quiz-eh {
  0% {
    opacity: 0;
    transform: scale(0) rotate(15deg);
  }

  60% {
    opacity: 1;
    transform: scale(1.15) rotate(-6deg);
  }

  80% {
    transform: scale(0.95) rotate(2deg);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-footer-quiz__view--answer.is-playing :is(.p-footer-quiz__surprised, .p-footer-quiz__panel, .p-footer-quiz__answer, .p-footer-quiz__answer-actions, .p-footer-quiz__eh) {
    animation: none;
  }
}

/* ---------- 質問 ---------- */

.p-footer-quiz__bubble {
  position: absolute;
  left: calc(147 * var(--u));
  top: calc(231 * var(--u));
  width: calc(285 * var(--u));
  height: auto;
}

.p-footer-quiz__doon {
  position: absolute;
  left: calc(1063 * var(--u));
  top: calc(196 * var(--u));
  z-index: 1;
  width: calc(249.5 * var(--u));
  height: auto;
  pointer-events: none;
}

.p-footer-quiz__box {
  position: absolute;
  left: calc(410 * var(--u));
  top: calc(301 * var(--u));
  width: calc(807 * var(--u));
  height: calc(373 * var(--u));
  border-radius: calc(20 * var(--u));
  background: #fff url("../images/quiz/pattern.webp") center / cover no-repeat;
}

.p-footer-quiz__box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: rgb(255 255 255 / 75%);
}

.p-footer-quiz__question {
  position: absolute;
  left: calc(54 * var(--u));
  top: calc(71.9 * var(--u));
  width: calc(733 * var(--u));
  height: calc(79 * var(--u));
  border-radius: calc(39.5 * var(--u));
  background-color: #fff;
}

.p-footer-quiz__bar,
.p-footer-quiz__tail,
.p-footer-quiz__q,
.p-footer-quiz__marks {
  position: absolute;
  max-width: none;
  height: auto;
}

.p-footer-quiz__bar--left {
  left: calc(-1.48 * var(--u));
  top: calc(-1.5 * var(--u));
  width: calc(618.74 * var(--u));
}

.p-footer-quiz__bar--right {
  left: calc(97.48 * var(--u));
  top: calc(-1.5 * var(--u));
  width: calc(636.4 * var(--u));
}

.p-footer-quiz__tail {
  left: calc(53.6 * var(--u));
  top: calc(78.7 * var(--u));
  width: calc(17.95 * var(--u));
}

.p-footer-quiz__q {
  left: calc(45 * var(--u));
  top: calc(17.1 * var(--u));
  width: calc(63.56 * var(--u));
}

.p-footer-quiz__marks {
  left: calc(614 * var(--u));
  top: calc(-38.9 * var(--u));
  width: calc(72.57 * var(--u));
}

.p-footer-quiz__title {
  position: absolute;
  left: calc(121 * var(--u));
  top: calc(28.1 * var(--u));
  margin: 0;
  font-size: calc(24 * var(--u));
  font-weight: 700;
  line-height: calc(32 * var(--u));
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* 問題文が長いときは少し小さくして枠内に収める */
.p-footer-quiz__title--long {
  font-size: calc(22 * var(--u));
  letter-spacing: 0;
}

.p-footer-quiz__options {
  position: absolute;
  left: calc(426.5 * var(--u));
  top: calc(199 * var(--u));
  display: flex;
  gap: calc(30 * var(--u));
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateX(-50%);
}

.p-footer-quiz__option {
  display: flex;
  align-items: center;
  gap: calc(11 * var(--u));
}

.p-footer-quiz__option-key {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: calc(41 * var(--u));
  height: calc(41 * var(--u));
  border-radius: 50%;
  background-color: #a7f573;
  font-family: "Dela Gothic One", sans-serif;
  font-size: calc(20 * var(--u));
  line-height: 1;
}

.p-footer-quiz__option-label {
  color: #333;
  font-size: calc(20 * var(--u));
  font-weight: 700;
  line-height: calc(34 * var(--u));
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.p-footer-quiz__btn {
  position: absolute;
  left: calc(279 * var(--u));
  top: calc(270 * var(--u));
  display: block;
  width: calc(250 * var(--u));
  height: calc(60 * var(--u));
  padding: 0;
  border: calc(3 * var(--u)) solid #182e58;
  border-radius: calc(50 * var(--u));
  background-color: #fff;
  box-shadow: calc(-2 * var(--u)) calc(4 * var(--u)) 0 #182e58;
  color: #182e58;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.p-footer-quiz__btn:hover {
  box-shadow: 0 0 0 #182e58;
  transform: translate(calc(-2 * var(--u)), calc(4 * var(--u)));
}

.p-footer-quiz__btn-key {
  position: absolute;
  left: calc(54 * var(--u));
  top: 50%;
  font-family: "Dela Gothic One", sans-serif;
  font-size: calc(26 * var(--u));
  line-height: 1;
  transform: translate(-50%, -50%);
}

.p-footer-quiz__btn-label {
  position: absolute;
  left: calc(126.5 * var(--u));
  top: 50%;
  font-size: calc(17 * var(--u));
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.p-footer-quiz__btn-icon {
  position: absolute;
  left: calc(195 * var(--u));
  top: 50%;
  width: calc(33 * var(--u));
  height: calc(33 * var(--u));
  border-radius: 50%;
  background: #182e58 url("../images/top-banner-arrow.svg") no-repeat 54% center / calc(8 * var(--u)) auto;
  transform: translateY(-50%);
}

/* イラストは足元で切れているため、下端をフッターの下端（814）にそろえて切れ目を隠す */
.p-footer-quiz__chara {
  position: absolute;
  left: calc(290 * var(--u));
  bottom: 0;
  width: calc(152 * var(--u));
  height: auto;
}

/* ---------- 回答 ---------- */

.p-footer-quiz__eh {
  position: absolute;
  left: calc(142 * var(--u));
  top: calc(272 * var(--u));
  width: calc(307 * var(--u));
  height: auto;
}

.p-footer-quiz__surprised {
  position: absolute;
  left: calc(335 * var(--u));
  top: calc(366 * var(--u));
  width: calc(320 * var(--u));
  height: auto;
}

.p-footer-quiz__panel {
  position: absolute;
  left: calc(607 * var(--u));
  top: calc(282 * var(--u));
  width: calc(657.5 * var(--u));
  height: calc(449.5 * var(--u));
}

.p-footer-quiz__burst {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.p-footer-quiz__answer-label,
.p-footer-quiz-modal__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(13 * var(--u));
  color: #182e58;
  font-size: calc(30 * var(--u));
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.09em;
}

.p-footer-quiz__answer-label::before,
.p-footer-quiz__answer-label::after,
.p-footer-quiz-modal__label::before,
.p-footer-quiz-modal__label::after {
  content: "";
  width: calc(24 * var(--u));
  height: calc(24 * var(--u));
  background: linear-gradient(45deg, transparent calc(50% - 1px), #1b5da8 calc(50% - 1px), #1b5da8 calc(50% + 1px), transparent calc(50% + 1px));
}

.p-footer-quiz__answer-label::after,
.p-footer-quiz-modal__label::after {
  background: linear-gradient(135deg, transparent calc(50% - 1px), #1b5da8 calc(50% - 1px), #1b5da8 calc(50% + 1px), transparent calc(50% + 1px));
}

.p-footer-quiz__answer-label {
  position: absolute;
  left: calc(311 * var(--u));
  top: calc(112 * var(--u));
  transform: translateX(-50%);
  white-space: nowrap;
}

.p-footer-quiz__answer {
  position: absolute;
  left: calc(315 * var(--u));
  top: calc(176 * var(--u));
  color: #71bc40;
  font-size: calc(42 * var(--u));
  font-weight: 700;
  line-height: calc(48 * var(--u));
  letter-spacing: 0.03em;
  white-space: nowrap;
  transform: translateX(-50%);
}

.p-footer-quiz__answer-actions {
  position: absolute;
  left: calc(311 * var(--u));
  top: calc(243 * var(--u));
  display: flex;
  gap: calc(14 * var(--u));
  transform: translateX(-50%);
}

.p-footer-quiz__pill {
  position: relative;
  display: flex;
  align-items: center;
  width: calc(184 * var(--u));
  height: calc(60 * var(--u));
  padding: 0 0 0 calc(40 * var(--u));
  border: calc(3 * var(--u)) solid #182e58;
  border-radius: calc(50 * var(--u));
  background-color: #fff;
  box-shadow: calc(-2 * var(--u)) calc(4 * var(--u)) 0 #182e58;
  color: #182e58;
  font-size: calc(17 * var(--u));
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.p-footer-quiz__pill:hover {
  box-shadow: 0 0 0 #182e58;
  transform: translate(calc(-2 * var(--u)), calc(4 * var(--u)));
}

.p-footer-quiz__pill--trivia {
  background-color: #a7f573;
}

.p-footer-quiz__pill-icon {
  position: absolute;
  right: calc(13 * var(--u));
  top: 50%;
  display: grid;
  place-items: center;
  width: calc(33 * var(--u));
  height: calc(33 * var(--u));
  border-radius: 50%;
  background-color: #182e58;
  color: #fff;
  transform: translateY(-50%);
}

/* 豆知識：はてなマーク */
.p-footer-quiz__pill--trivia .p-footer-quiz__pill-icon::before {
  content: "?";
  font-family: "Figtree", sans-serif;
  font-size: calc(19 * var(--u));
  font-weight: 800;
  line-height: 1;
}

/* 閉じる：バツ印 */
.p-footer-quiz__pill--close .p-footer-quiz__pill-icon::before,
.p-footer-quiz__pill--close .p-footer-quiz__pill-icon::after {
  content: "";
  grid-area: 1 / 1;
  width: calc(14 * var(--u));
  height: calc(1.5 * var(--u));
  min-height: 1px;
  background-color: #fff;
  transform: rotate(45deg);
}

.p-footer-quiz__pill--close .p-footer-quiz__pill-icon::after {
  transform: rotate(-45deg);
}

/* ---------- 豆知識ポップアップ ---------- */

.p-footer-quiz-modal {
  --u: 1px;
  width: min(580px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  overflow: auto;
  border: 3px solid #182e58;
  border-radius: 20px;
  background: #fff;
  box-shadow: -4px 8px 0 #182e58;
  color: #333;
}

.p-footer-quiz-modal * {
  --u: 1px;
}

.p-footer-quiz-modal::backdrop {
  background-color: rgb(24 46 88 / 60%);
}

.p-footer-quiz-modal[open] {
  animation: footer-quiz-in 0.3s ease both;
}

.p-footer-quiz-modal__inner {
  padding: 40px 40px 36px;
}

.p-footer-quiz-modal__label {
  font-size: 26px;
}

.p-footer-quiz-modal__question {
  margin-top: 24px;
  color: #182e58;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.p-footer-quiz-modal__answer {
  margin-top: 6px;
  color: #71bc40;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.p-footer-quiz-modal__text {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px dashed #d2d6db;
  font-size: 16px;
  line-height: 1.9;
}

.p-footer-quiz-modal__text a {
  color: #1b5da8;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.p-footer-quiz-modal__actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

@media (prefers-reduced-motion: reduce) {
  .p-footer-quiz-modal[open] {
    animation: none;
  }
}

@media (max-width: 768px) {
  .p-footer-visual--quiz .p-footer-visual__media {
    aspect-ratio: auto;
  }

  .p-footer-quiz {
    --u: 1px;
    position: relative;
    inset: auto;
    padding: 90px 16px 48px;
  }

  .p-footer-quiz * {
    --u: 1px;
  }

  .p-footer-quiz__set,
  .p-footer-quiz__view {
    position: relative;
    inset: auto;
  }

  /* 質問 */
  .p-footer-quiz__bubble {
    position: relative;
    left: 0;
    top: 0;
    display: block;
    width: 180px;
    margin-bottom: -8px;
  }

  .p-footer-quiz__doon {
    left: auto;
    right: 0;
    top: 20px;
    width: 130px;
  }

  .p-footer-quiz__box {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    padding: 24px 16px 28px;
    border-radius: 16px;
  }

  .p-footer-quiz__question {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    padding: 14px 16px 14px 56px;
    border: 2px solid #71bc40;
    border-radius: 30px;
  }

  .p-footer-quiz__bar,
  .p-footer-quiz__tail,
  .p-footer-quiz__marks {
    display: none;
  }

  .p-footer-quiz__q {
    left: 12px;
    top: 50%;
    width: 36px;
    transform: translateY(-50%);
  }

  .p-footer-quiz__title,
  .p-footer-quiz__title--long {
    position: static;
    font-size: 15px;
    line-height: 1.6;
    white-space: normal;
  }

  .p-footer-quiz__options {
    position: relative;
    left: 0;
    top: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
    transform: none;
  }

  .p-footer-quiz__option {
    gap: 8px;
  }

  .p-footer-quiz__option-key {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .p-footer-quiz__option-label {
    font-size: 15px;
    line-height: 1.5;
    white-space: normal;
  }

  .p-footer-quiz__btn {
    position: relative;
    left: auto;
    top: auto;
    width: 220px;
    height: 54px;
    margin: 24px auto 0;
  }

  .p-footer-quiz__btn-key {
    left: 44px;
    font-size: 22px;
  }

  .p-footer-quiz__btn-label {
    left: 110px;
    font-size: 15px;
  }

  .p-footer-quiz__btn-icon {
    left: auto;
    right: 12px;
    width: 28px;
    height: 28px;
    background-size: 7px auto;
  }

  .p-footer-quiz__burst {
    display: none;
  }

  /* キャラクター：吹き出しの右に立たせ、足元を問題の枠の上端に少し重ねる */
  .p-footer-quiz__view--question {
    padding-top: 64px;
  }

  /* 吹き出しを左、キャラクター（左向き＝吹き出しの方を向く）を右に並べる */
  .p-footer-quiz__chara {
    position: absolute;
    left: auto;
    right: 44px;
    top: 8px;
    bottom: auto;
    z-index: 3;
    display: block;
    width: 64px;
  }

  .p-footer-quiz__view--question .p-footer-quiz__bubble {
    margin-left: 44px;
    margin-top: -40px;
    /* 問題の枠の位置は変えずに、吹き出しだけ 60px 上へ */
    top: -60px;
    width: 180px;
  }

  /* 「ドン!!」は右上（キャラクターの頭の上） */
  .p-footer-quiz__doon {
    left: auto;
    right: 16px;
    top: -56px;
    width: 80px;
  }

  /* 回答：驚いたキャラクターを右上に（足元はパネルの上端に重ねる） */
  .p-footer-quiz__view--answer {
    padding-top: 40px;
  }

  .p-footer-quiz__surprised {
    position: absolute;
    left: auto;
    right: 40px;
    top: 0;
    z-index: 3;
    display: block;
    width: 112px;
  }

  /* 回答 */
  .p-footer-quiz__eh {
    position: relative;
    left: 40px;
    /* パネルの位置は変えずに、吹き出しだけ 50px 上へ */
    top: -50px;
    display: block;
    width: 160px;
    margin-bottom: -16px;
  }

  .p-footer-quiz__panel {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    padding: 32px 16px 36px;
    border-radius: 16px;
    background-color: #fff;
  }

  .p-footer-quiz__answer-label,
  .p-footer-quiz__answer,
  .p-footer-quiz__answer-actions {
    --answer-x: 0%;
    --actions-x: 0%;
    position: static;
    transform: none;
  }

  .p-footer-quiz__answer-label {
    font-size: 24px;
  }

  .p-footer-quiz__answer {
    margin-top: 16px;
    font-size: 32px;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
  }

  .p-footer-quiz__answer-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
  }

  .p-footer-quiz__pill {
    width: 150px;
    height: 52px;
    padding-left: 28px;
    font-size: 15px;
  }

  .p-footer-quiz__pill-icon {
    right: 10px;
    width: 28px;
    height: 28px;
  }

  .p-footer-quiz-modal__inner {
    padding: 32px 20px 28px;
  }

  .p-footer-quiz-modal__label {
    font-size: 22px;
  }

  .p-footer-quiz-modal__text {
    font-size: 15px;
  }
}

/* ==========================================================================
   # Top - CTA
   ========================================================================== */
.top-cta {
  padding-top: 120px;
  padding-bottom: 120px;
}

.top-cta-inner {
  /* padding-left: 0;
  padding-right: 0; */
  /* max-width: none; */
  max-width: 1300px;
}

.top-cta-box {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  max-width: 1300px;
  min-height: 350px;
  margin-inline: auto;
  padding: clamp(57px, 3.75vw, 54px) clamp(34px, 11.39vw, 164px)
    clamp(55px, 3.12vw, 45px) clamp(34px, 7.71vw, 111px);
  background-image: url("../images/cta-background_pc.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
}

@media (max-width: 1100px) {
  .top-cta-box {
    padding-left: 42px;
    padding-right: 62px;
  }
}

@media (max-width: 950px) {
  .top-cta-box {
    padding-left: 24px;
    padding-right: 24px;
  }
}
/* @media (max-width: 880px) {
  .top-cta-box {
    padding-left: 12px;
    padding-right: 12px;
  }
} */

@media (max-width: 768px) {
  .top-cta-box {
    max-width: 600px;
    min-height: 549px;
    padding: 57px 22px 45px;
    border-radius: 12px;
    background-image: url("../images/cta-background_sp.jpg");
  }
}

.top-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

@media (max-width: 1100px) {
  .top-cta-content {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .top-cta-content {
    flex-direction: column;
    /* align-items: stretch; */
    gap: 40px;
  }
}

.top-cta-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(14px, 12.85px + 0.15vw, 15px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .top-cta-label {
    margin: 0 auto;
    margin-bottom: 0;
    font-size: 14px;
    white-space: normal;
  }
}

.top-cta-label::before {
  content: "＼";
}

.top-cta-label::after {
  content: "／";
}

.top-cta-body {
  position: relative;
  z-index: 1;
  /* max-width: clamp(0px, 44.44vw, 640px); */
}

@media (max-width: 768px) {
  .top-cta-body {
    max-width: none;
    text-align: left;
  }
}

.top-cta-lead {
  font-size: clamp(14px, 12.85px + 0.15vw, 15px);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .top-cta-lead {
    font-size: 14px;
    margin-bottom: 14px;
    text-align: center;
    white-space: normal;
  }
}

.top-cta-heading {
  font-size: clamp(24px, 17.12px + 0.89vw, 30px);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: 0.06em;
  margin-bottom: 50px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .top-cta-heading {
    font-size: 28px;
    margin-bottom: 30px;
    line-height: 1.21;
    letter-spacing: 0.03em;
    text-align: center;
  }
}

.top-cta-text {
  font-size: clamp(15px, 1.11vw, 16px);
  line-height: 2;
  letter-spacing: 0.125em;
}

@media (max-width: 768px) {
  .top-cta-text {
    font-size: 15px;
  }
}

.top-cta-action {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .top-cta-action {
    align-items: stretch;
  }
}

.top-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 33px;
  padding-right: clamp(33px, 29.48px + 0.94vw, 43px);
  padding-left: clamp(33px, 29.48px + 0.94vw, 43px);
  padding-bottom: 32px;
  background-color: #fff;
  color: #363d40;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: 0.058em;
  border-radius: 4px;
  text-align: center;
  transition: opacity 0.4s;
}

.top-cta-btn:hover {
  opacity: 0.8;
}

.nk-cta__roll {
  position: relative;
  display: block;
  overflow: hidden;
}

.nk-cta__line {
  display: block;
}

.nk-cta__line--to {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.nk-cta__char {
  display: inline-block;
}

.top-cta-btn[data-cta-roll] .nk-cta__label {
  display: block;
  width: 100%;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  [data-cta-roll]:hover,
  [data-cta-roll]:focus-visible {
    opacity: 1;
  }

  [data-cta-roll] .nk-cta__char {
    transition: transform 0.4s cubic-bezier(0.56, -0.01, 0.32, 0.99);
    transition-delay: calc(0.12s + var(--i, 0) * 0.02s);
  }

  [data-cta-roll] .nk-cta__line--to .nk-cta__char {
    transform: translate3d(0, 100%, 0);
  }

  [data-cta-roll]:hover .nk-cta__line--from .nk-cta__char,
  [data-cta-roll]:focus-visible .nk-cta__line--from .nk-cta__char {
    transform: translate3d(0, -100%, 0);
  }

  [data-cta-roll]:hover .nk-cta__line--to .nk-cta__char,
  [data-cta-roll]:focus-visible .nk-cta__line--to .nk-cta__char {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 768px) {
  .top-cta-btn {
    width: 100%;
    /* 375px でも 1 行に収める */
    padding-inline: 10px;
    font-size: clamp(13px, 3.8vw, 16px);
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
}

.top-cta-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 23px clamp(32px, 26.37px + 1.5vw, 48px) 18px;
  border: 1px solid #fff;
  border-radius: 4px;
  gap: 5px;
}

.top-cta-tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Figtree", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.017em;
  line-height: 0.89;
}

.top-cta-tel__icon {
  width: 14px;
  height: auto;
  aspect-ratio: 14 / 21;
  object-fit: cover;
}

.top-cta-note {
  font-size: 11px;
  opacity: 0.85;
  font-weight: 500;
  letter-spacing: 0.054em;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .top-cta-note {
    text-align: center;
  }
}

/* ==========================================================================
   # Top - Nav
   ========================================================================== */

.top-nav-inner {
  display: flex;
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

@media (max-width: 768px) {
  .top-nav-inner {
    flex-direction: column;
    gap: 0;
  }
}

.top-nav-item {
  position: relative;
  display: block;
  width: 50%;
  aspect-ratio: 720 / 366;
  min-height: 250px;
  overflow: hidden;
  color: #fff;
}

@media (max-width: 768px) {
  .top-nav-item {
    width: 100%;
    aspect-ratio: 750 / 588;
  }
}

.top-nav-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #25435c;
  opacity: 0.4;
}

.top-nav-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.top-nav-item:hover .top-nav-item__image {
  transform: scale(1.05);
}

.top-nav-item__body {
  position: absolute;
  inset: 0;
  padding-top: calc(70 / 1440 * 100%);
  padding-left: calc(72 / 1440 * 100%);
  padding-right: calc(20 / 1440 * 100%);
  z-index: 1;
}

@media (max-width: 768px) {
  .top-nav-item__body {
    padding-top: calc(50 / 375 * 100%);
    padding-left: calc(41 / 375 * 100%);
    padding-right: calc(37 / 375 * 100%);
  }
}

.top-nav-item__label {
  display: inline-block;
  font-family: "Figtree", sans-serif;
  font-size: clamp(15px, 1.11vw, 16px);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.06;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .top-nav-item__label {
    font-size: 13px;
  }
}

.top-nav-item__heading {
  font-size: clamp(24px, 1.94vw, 28px);
  font-weight: 700;
  line-height: 1.285;
  letter-spacing: 0.07em;
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .top-nav-item__heading {
    font-size: 24px;
  }
}

.top-nav-item__text {
  font-size: clamp(15px, 1.11vw, 16px);
  line-height: 1.625;
  letter-spacing: 0;
  margin-bottom: 25px;
  font-weight: 400;
}

@media (max-width: 768px) {
  .top-nav-item__text {
    font-size: 15px;
  }
}

.top-nav-item__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(40px, 36.48px + 0.94vw, 50px);
  height: clamp(40px, 36.48px + 0.94vw, 50px);
  background-color: #fff;
  border-radius: 2px;
}

.top-nav-item__link-icon {
  width: 16px;
  height: auto;
}

/* ==========================================================================
   # Top - Product
   ========================================================================== */

.top-product-box {
  background-image: url("../images/test.png");
  /* background-image: url("../images/top-product-bg_pc.webp"); */
  background-size: cover;
  background-position: center;
  border-radius: 27px 27px 0 0;
  padding-top: 90px;
  padding-bottom: 113px;
}

@media (max-width: 768px) {
  .top-product-box {
    background-image: url("../images/top-product-bg_sp.webp");
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

.c-inner.top-product-inner {
  max-width: 1080px;
}

@media (max-width: 768px) {
  .c-inner.top-product-inner {
    display: flex;
    flex-direction: column;
    gap: 34px;
    max-width: none;
    padding-left: 25px;
    padding-right: 25px;
    max-width: 600px;
  }
}

.top-product-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 60px;
  color: #fff;
}

@media (max-width: 768px) {
  .top-product-heading {
    display: contents;
  }
}

.top-product-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 24px;
}

@media (max-width: 768px) {
  .top-product-list {
    order: 1;
    grid-template-columns: repeat(2, 1fr);
    gap: 17px 16px;
  }
}

.top-product-item {
  display: block;
}

.top-product-item__image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .top-product-item__image {
    margin-bottom: 8px;
  }
}

.top-product-item__name {
  color: #fff;
  font-size: 18px;
  line-height: 1.33;
  letter-spacing: 0.08em;
  font-weight: 500;
}

@media (max-width: 768px) {
  .top-product-item__name {
    font-size: 16px;
    letter-spacing: 0.03em;
  }
}

@media (max-width: 768px) {
  .top-product-heading__btn {
    order: 2;
    margin-inline: auto;
  }
}

.top-product-visual {
  position: relative;
  margin-top: -10px;
  line-height: 0;
}

.top-product-visual picture {
  display: block;
}

.top-product-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #2396e8;
  opacity: 0.39;
}

.top-product-visual__image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ==========================================================================
   # Top - Solution
   ========================================================================== */

.top-solution {
  padding-top: clamp(60px, 38.87px + 5.63vw, 120px);
}

.top-solution-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 18.87px + 5.63vw, 100px);
}

@media (max-width: 1100px) {
  .top-solution-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.top-solution-lead {
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  max-width: 600px;
  font-weight: 400;
}

@media (max-width: 1100px) {
  .top-solution-lead {
    margin-bottom: 0;
  }
}

.top-solution-tabs {
  display: none;
}

@media (max-width: 768px) {
  .top-solution-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
  }

  .top-solution-tab {
    position: relative;
    flex: 104;
    padding-block: 14px;
    background-color: #fff;
    color: #1b5da8;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.03em;
    text-align: center;
    border: 1px solid #1b5da8;
    border-radius: 8px;
    transition:
      background-color 0.3s,
      color 0.3s,
      border-color 0.3s;
  }

  .top-solution-tab.is-active {
    flex: 210;
  }

  .top-solution-tab__sub {
    font-size: 14px;
    line-height: 1.14;
  }

  .top-solution-tab::after {
    content: "";
    position: absolute;
    bottom: -14px;
    left: 50%;
    width: 14px;
    height: 14px;
    background-color: transparent;
    transform: translateX(-50%);
    transition: background-color 0.3s;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
  }

  .top-solution-tab.is-active {
    background-color: #1b5da8;
    color: #fff;
    border-color: #1b5da8;
  }

  .top-solution-tab.is-active::after {
    background-color: #1b5da8;
  }
}

.top-solution-panels {
  display: flex;
  gap: clamp(20px, 12.96px + 1.88vw, 40px);
  margin-bottom: clamp(32px, 22.14px + 2.63vw, 60px);
}

.top-solution-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

@media (max-width: 1100px) {
  .top-solution-panels {
    display: block;
  }

  .top-solution-panel:first-child {
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .top-solution-panel {
    display: none;
  }

  .top-solution-panel.is-active {
    display: block;
  }
}

.top-solution-panel__heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(16px, 11.07px + 1.32vw, 30px);
}

@media (max-width: 1100px) {
  .top-solution-panel__heading {
    gap: 12px;
  }
}

.top-solution-panel__label {
  flex-shrink: 0;
  padding: clamp(8px, 6.94px + 0.28vw, 11px) clamp(20px, 15.77px + 1.13vw, 32px);
  /* background-color: #eef4fa;
  color: #1b5da8; */
  font-size: clamp(14px, 12.94px + 0.28vw, 17px);
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 999px;
  border: solid 1px #000;
}

.top-solution-panel__title {
  font-size: clamp(18px, 15.89px + 0.56vw, 24px);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.top-solution-needs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  flex: 1;
  gap: 12px;
}

.top-solution-needs__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 9.18px + 0.75vw, 20px);
  width: 100%;
  max-width: 184px;
  margin-inline: auto;
  background-color: #eef1f3;
  border-radius: 8px;
  text-align: center;
}

@media (max-width: 1100px) {
  .top-solution-needs {
    grid-template-rows: none;
  }

  .top-solution-needs__item {
    max-width: none;
    padding-block: 24px;
  }
}

.top-solution-needs__item--05 {
  gap: 33px;
}

.top-solution-needs__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: inherit;
  width: 100%;
  height: 100%;
  color: inherit;
  transition: opacity 0.4s;
}

.top-solution-needs__link:hover,
.top-solution-industry__link:hover {
  opacity: 0.7;
}

.top-solution-industry__link {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  transition: opacity 0.4s;
}

.top-solution-needs__icon {
  width: clamp(48px, 4.27vw, 62px);
  height: auto;
}

.top-solution-needs__text {
  font-size: clamp(14px, 12.59px + 0.38vw, 18px);
  font-weight: 500;
  line-height: 1.33;
  letter-spacing: 0.11em;
}

.top-solution-industry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  flex: 1;
  gap: 10px;
}

@media (max-width: 1100px) {
  .top-solution-industry {
    grid-template-rows: none;
  }
}

.top-solution-industry__item {
  display: flex;
  flex-direction: column;
}

.top-solution-industry__media {
  position: relative;
  flex: 1;
  line-height: 0;
}

.top-solution-industry__image {
  flex: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

@media (max-width: 1100px) {
  .top-solution-industry__media,
  .top-solution-industry__image {
    flex: none;
  }

  .top-solution-industry__image {
    height: auto;
    aspect-ratio: 576 / 232;
  }
}

.top-solution-industry__logo {
  position: absolute;
  top: 12px;
  right: 12px;
  width: clamp(36px, 3.13vw, 45px);
  height: auto;
}

.top-solution-industry__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-block: 14px;
  background-color: #eef1f3;
  border-radius: 0 0 8px 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.top-solution-industry__title {
  font-size: clamp(14px, 12.59px + 0.38vw, 18px);
  font-weight: 500;
  letter-spacing: 0.11em;
  line-height: 1.33;
}

.top-solution-industry__title-sub {
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.5;
}

.top-solution-industry__desc {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.42;
}

.top-solution-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  height: 60px;
  margin-inline: auto;
  background-color: #1b5da8;
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.0625em;
  border-radius: 4px;
  text-align: center;
  transition: opacity 0.4s;
}

.top-solution-more:hover {
  opacity: 0.8;
}

.top-solution__btn {
  margin-inline: auto;
}

@media (max-width: 1100px) {
  .top-solution-more {
    width: 100%;
    max-width: 300px;
  }
}

/* ==========================================================================
   # Top - Quality
   ========================================================================== */

.top-quality {
  position: relative;
  padding-block: 110px 120px;
  /* margin-left: 80px; */
}

@media (max-width: 768px) {
  .top-quality {
    padding-block: 60px;
  }
}

.top-quality .c-top-section-title__main {
  line-height: 1.3;
}

.top-quality-inner {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 3.4vw, 64px);
  padding-top: 100px;
  padding-bottom: 103px;
  max-width: none;
  padding-left: clamp(40px, 6.94vw, 100px);
  padding-right: clamp(40px, 8.33vw, 120px);
  margin-right: 0;
  margin-left: clamp(24px, 5.5vw, 80px);
  background: #fff;
}

@media (max-width: 1100px) {
  .top-quality-inner {
    flex-direction: column;
    gap: 40px;
  }
}

.top-quality__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  width: 336px;
}

.top-quality__heading-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 1100px) {
  .top-quality__heading {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
  }

  .top-quality__heading-body {
    align-items: flex-end;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .top-quality__heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-quality__heading-body {
    align-items: flex-start;
    gap: 0;
  }
}

.top-quality__lead {
  margin-top: 70px;
  font-size: clamp(14px, 13.29px + 0.19vw, 16px);
  line-height: 1.81;
  letter-spacing: 0.02em;
}

@media (max-width: 1100px) {
  .top-quality__lead {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .top-quality__lead {
    margin-top: 70px;
    font-size: 14px;
    line-height: 1.75;
  }
}

.top-quality__btn {
  margin-top: 40px;
}

@media (max-width: 1100px) {
  .top-quality__btn {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .top-quality__btn {
    margin-top: 40px;
    margin-inline: auto;
  }
}

.top-quality__list {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e5e9ec;
}

.top-quality-item {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.67vw, 32px);
  padding-block: 40px;
  border-bottom: 1px solid #e5e9ec;
}

@media (max-width: 768px) {
  .top-quality-item {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-block: 24px;
  }
}

.top-quality-item__media {
  flex: 280 280 0;
  min-width: 0;
}

@media (max-width: 768px) {
  .top-quality-item__media {
    flex: none;
    width: 100%;
  }
}

.top-quality-item__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 280 / 180;
  object-fit: cover;
  border-radius: 3px;
}

.top-quality-item__body {
  flex: 424 424 0;
  min-width: 0;
}

.top-quality-item__heading {
  font-size: 22px;
  font-weight: 700;
  color: #1c5ca8;
  line-height: 0.9;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .top-quality-item__heading {
    font-size: 16px;
  }
}

.top-quality-item__text {
  margin-top: 40px;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: #3d4550;
}

@media (max-width: 768px) {
  .top-quality-item__text {
    font-size: 13px;
  }
}

/* ==========================================================================
   # Top - Technology / Quality / Equipment background wrapper
   ========================================================================== */

.bg-group {
  position: relative;
  background: #ecf1f5;
}

.bg-group::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    url("../images/top-technology-bg-01.webp"),
    url("../images/top-technology-bg-02.webp"),
    url("../images/top-technology-bg-03.webp");
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position:
    left calc(-227 / 1440 * 100vw) top calc(-310 / 1440 * 100vw),
    right calc(-306 / 1440 * 100vw) top calc(338 / 1440 * 100vw),
    left calc(-555 / 1440 * 100vw) top calc(1774 / 1440 * 100vw);
  background-size:
    calc(701 / 1440 * 100vw) auto,
    calc(862 / 1440 * 100vw) auto,
    calc(555 / 1440 * 100vw) auto;
}

/* ==========================================================================
   # Top - Equipment
   ========================================================================== */

.top-equipment {
  padding-block: 100px;
}

.top-equipment .c-top-section-title__main {
  font-size: 72px;
  line-height: 1.1917;
  letter-spacing: 0;
}

@media (max-width: 768px) {
  .top-equipment {
    padding-block: 0 60px;
  }

  /* スマホでは他のセクション見出しと同じ大きさにする（72px だとカードからはみ出すため） */
  .top-equipment .c-top-section-title__main {
    font-size: 44px;
  }
}

.c-inner.top-equipment-inner {
  max-width: 1280px;
}

.top-equipment-card {
  display: flex;
  align-items: stretch;
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .top-equipment-card {
    flex-direction: column;
  }
}

.top-equipment-card__body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 70px 60px;
  padding-left: clamp(25px, 4.17vw, 60px);
  background-color: #1b5da8;
  color: #fff;
}

@media (max-width: 900px) {
  .top-equipment-card__body {
    padding: 40px 25px;
    padding-left: clamp(25px, 4.17vw, 60px);
  }
}

.top-equipment-card__lead {
  margin-top: 54px;
  font-size: 16px;
  line-height: 1.8;
}

.top-equipment-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 10px;
  margin-top: 30px;
  max-width: 370px;
}

.top-equipment-card__tag {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 18px;
  border: 1px solid #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.85;
}

.top-equipment-card__tag a {
  color: inherit;
  transition: opacity 0.4s;
}

.top-equipment-card__tag a:hover {
  opacity: 0.7;
}

.top-equipment-card__tag-small {
  font-size: 12px;
}

.top-equipment-card__btn {
  width: 280px;
  height: 60px;
  justify-content: center;
  padding-inline: 20px;
  margin-top: 40px;
  color: #363d40;
  font-size: 18px;
  text-align: center;
}

.top-equipment-card__btn::after {
  display: none;
}

.top-equipment-card__media {
  flex-shrink: 0;
  width: 47.8%;
}

@media (max-width: 900px) {
  .top-equipment-card__media {
    width: 100%;
  }
}

.top-equipment-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .top-equipment-card__image {
    height: auto;
    aspect-ratio: 375 / 300;
  }
}

/* ==========================================================================
   # Top - Instagram (Smash Balloon)
   ========================================================================== */

.top-sns {
  padding-block: 100px;
}

@media (max-width: 768px) {
  .top-sns {
    padding-block: 60px;
  }
}

.c-inner.top-sns-inner {
  max-width: 1080px;
}

.top-sns-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 900px) {
  .top-sns-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.top-sns-lead {
  padding-right: 0;
  color: #333;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.02em;
  transform: translateY(-10px);
}

@media (max-width: 900px) {
  .top-sns-lead {
    font-size: 14px;
    transform: none;
  }
}

.top-sns-accounts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin-top: 30px;
  margin-bottom: 20px;
}

.top-sns-account {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.4s;
}

.top-sns-account:hover {
  opacity: 0.7;
}

.top-sns-account__icon {
  width: 24px;
  height: 24px;
}

.top-sns-account__body {
  display: flex;
  flex-direction: column;
}

.top-sns-account__name {
  color: #202f39;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
}

.top-sns-account__id {
  color: #8a8f93;
  font-size: 12px;
  line-height: 16px;
}

.top-sns-feed #sbi_images {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 20px !important;
  width: 100% !important;
  padding: 0 !important;
}

@media (max-width: 768px) {
  .top-sns-feed #sbi_images {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px !important;
  }
}

.top-sns-feed #sbi_images .sbi_item {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.top-sns-feed .sbi_photo_wrap,
.top-sns-feed .sbi_photo {
  border-radius: 8px;
  overflow: hidden;
}

.top-sns-feed .sb_instagram_header,
.top-sns-feed #sbi_load {
  display: none !important;
}

.nk-instagram-feed #sb_instagram,
.nk-instagram-feed .sbi {
  width: 100% !important;
  max-width: 100%;
  padding: 0 !important;
  margin: 0 !important;
}

.nk-plugin-missing {
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #d4dde5;
  color: #333;
  font-size: 14px;
  line-height: 1.7;
}

/* ==========================================================================
   # Top - Motion（スクロール演出・サムネイル拡大・パララックス）
   ========================================================================== */

/* Our Strengths のカードはリンク */
.top-our-strengths-item__link {
  display: block;
  color: inherit;
}

/* ---------- サムネイルのマウスオーバー拡大（枠内で少し拡大） ---------- */

.top-news-card__thumb,
.top-our-strengths-item__media picture,
.top-solution-industry__media,
.top-product-item picture,
.top-quality-item__media {
  display: block;
  overflow: hidden;
}

.top-news-card__thumb {
  border-radius: 5px;
}

.top-solution-industry__media {
  border-radius: 8px 8px 0 0;
}

/* 画像下の余白は枠の外（picture）に付け、枠を画像ぴったりの大きさにする */
.top-product-item picture {
  margin-bottom: 20px;
  border-radius: 10px;
}

.top-product-item picture .top-product-item__image {
  display: block;
  margin-bottom: 0;
  border-radius: 0;
}

@media (max-width: 768px) {
  .top-product-item picture {
    margin-bottom: 8px;
  }
}

/* 強みの写真は左下がバッジ用に切り欠いてあるため、枠も同じ形で切り抜き、拡大しても切り欠きにはみ出さないようにする */
.top-our-strengths-item__media picture {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 85.6% 100%, 85.6% 84.64%, 0 84.64%);
}

.top-our-strengths-item__media picture .top-our-strengths-item__image {
  display: block;
}

@media (max-width: 768px) {
  .top-our-strengths-item__media picture {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 89.08% 100%, 89.08% 84.64%, 0 84.64%);
  }
}

.top-quality-item__media {
  border-radius: 3px;
}

/* 戻りはなめらかに、拡大は勢いよく（少し行き過ぎてから止まる） */
.top-news-card__image,
.top-our-strengths-item__image,
.top-solution-industry__image,
.top-product-item__image,
.top-technology-item__image,
.top-quality-item__image {
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
}

@media (hover: hover) {
  .top-news-card__link:hover .top-news-card__image,
  .top-our-strengths-item__link:hover .top-our-strengths-item__image,
  .top-solution-industry__link:hover .top-solution-industry__image,
  .top-product-item:hover .top-product-item__image,
  .top-technology-item__media:hover .top-technology-item__image,
  .top-quality-item:hover .top-quality-item__image {
    filter: brightness(1.06) saturate(1.1);
    transform: scale(1.14);
    transition:
      transform 0.45s cubic-bezier(0.34, 1.7, 0.64, 1),
      filter 0.45s ease;
  }
}

/* ---------- パララックス（JS で --parallax-y を更新） ---------- */

.top-product-visual picture,
.top-equipment-card__media {
  position: relative;
  overflow: hidden;
}

.js-parallax {
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.5);
  will-change: transform;
}

/* ---------- スクロール演出（トップページ） ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* セクション内のカード・一覧を順番に浮かび上がらせる */
  .js-reveal .js-reveal-item {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition:
      opacity 0.7s ease-out,
      transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(0.35s + var(--reveal-i, 0) * 0.09s);
  }

  .js-reveal.is-visible .js-reveal-item {
    opacity: 1;
    transform: none;
  }

  /* 見出し：小見出しは左から、英字の大見出しは左から右へ塗り出す */
  :is(.home, .has-top-sections) .js-reveal .c-top-section-title__sub {
    opacity: 0;
    transform: translate3d(-20px, 0, 0);
    transition:
      opacity 0.6s ease-out 0.15s,
      transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
  }

  :is(.home, .has-top-sections) .js-reveal .c-top-section-title__main {
    clip-path: inset(-10% 100% -20% 0);
    transform: translate3d(0, 16px, 0);
    transition:
      clip-path 1s cubic-bezier(0.77, 0, 0.18, 1) 0.3s,
      transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
  }

  :is(.home, .has-top-sections) .js-reveal.is-visible .c-top-section-title__sub {
    opacity: 1;
    transform: none;
  }

  :is(.home, .has-top-sections) .js-reveal.is-visible .c-top-section-title__main {
    clip-path: inset(-10% -5% -20% 0);
    transform: none;
  }

  /* 見出し横の点が一度だけ脈打つ */
  :is(.home, .has-top-sections) .js-reveal.is-visible .c-top-section-title__sub::before {
    animation: top-title-dot 0.9s ease-out 0.5s;
  }

  /* 画面に入った時点で既に見えていたセクションは演出しない */
  .js-reveal.is-reveal-instant .js-reveal-item,
  :is(.home, .has-top-sections) .js-reveal.is-reveal-instant .c-top-section-title__sub,
  :is(.home, .has-top-sections) .js-reveal.is-reveal-instant .c-top-section-title__main {
    transition: none;
  }
}

@keyframes top-title-dot {
  0% {
    box-shadow: 0 0 0 0 rgb(26 94 170 / 50%);
  }

  100% {
    box-shadow: 0 0 0 10px rgb(26 94 170 / 0%);
  }
}

/* ==========================================================================
   # Top - Quality（スマホ）：見出し → リード文 → 3項目（写真・見出し・本文）→ ボタン
   ========================================================================== */

@media (max-width: 768px) {
  .top-quality {
    padding-block: 40px 0;
  }

  .top-quality-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 60px 25px 80px;
    border-radius: 30px 30px 0 0;
  }

  /* ボタンをいちばん下へ移すため、見出しまわりの入れ物をほどいて並び順を指定する */
  .top-quality__heading,
  .top-quality__heading-body {
    display: contents;
  }

  .top-quality__heading .c-top-section-title {
    order: 1;
  }

  .top-quality__lead {
    order: 2;
    margin-top: 30px;
    color: #374151;
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: 0.01em;
  }

  .top-quality__list {
    order: 3;
    margin-top: 40px;
    border-top: 0;
  }

  .top-quality__btn {
    order: 4;
    width: 280px;
    max-width: 100%;
    margin: 14px auto 0;
  }

  .top-quality-item {
    align-items: center;
    gap: 0;
    padding-block: 30px;
    border-bottom: 1px solid #d5d5d5;
  }

  .top-quality-item:first-child {
    padding-top: 0;
  }

  .top-quality-item:last-child {
    border-bottom: 0;
  }

  .top-quality-item__media {
    width: 280px;
    max-width: 100%;
    overflow: hidden;
    border-radius: 4px;
  }

  .top-quality-item__body {
    width: 100%;
    margin-top: 30px;
  }

  .top-quality-item__heading {
    font-size: clamp(17px, 5.1vw, 20px);
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-align: center;
  }

  .top-quality-item__text {
    margin-top: 20px;
    color: #333;
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: 0.04em;
  }
}
