/* ==========================================
   トップページ共通スタイル
   ========================================== */
.home .w100vw {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.home section + p {
  margin-bottom: 0;
}

.home .--white {
  color: var(--color-white);
}

.home .--blue {
  color: var(--color-blue);
}

.home .container {
  max-width: 1180px !important;
  padding-inline: 1.25rem;
  margin-inline: auto;
}

.home .container > .wp-block-group {
  max-width: initial !important;
}

/* 見出しh2 */
.home .top-heading h2,
.home h2.top-heading {
  font-size: calc(30 / 16 * 1rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: calc(64 / 44);
  margin: 0;
}

.home .top-heading02 h2,
.home h2.top-heading02 {
  font-size: calc(28 / 16 * 1rem);
  font-weight: 900;
  line-height: calc(58 / 40);
  margin: 0;
}

.home div.top-heading02 + p,
.home h2.top-heading02 + p {
  font-family: var(--open-sans);
  font-size: calc(18.3 / 16 * 1rem);
  font-weight: 400;
  line-height: calc(22 / 16);
  margin: calc(4 / 16 * 1rem) 0 0;
  color: #666666;
}

.home div.top-heading02 + p.--white,
.home h2.top-heading02 + p.--white {
  color: var(--color-white);
}

@media (min-width: 768px) {
  .home .top-heading h2,
  .home h2.top-heading {
    font-size: calc(32 / 16 * 1rem);
  }
  .home h2.top-heading02 {
    font-size: calc(30 / 16 * 1rem);
  }
  .home h2.top-heading02 + p {
    font-size: calc(16 / 16 * 1rem);
  }
}

@media (min-width: 1200px) {
  .home .top-heading h2,
  .home h2.top-heading {
    font-size: calc(44 / 16 * 1rem);
  }
  .home .top-heading02 h2,
  .home h2.top-heading02 {
    font-size: calc(40 / 16 * 1rem);
  }
  .home div.top-heading02 + p,
  .home h2.top-heading02 + p {
    font-size: calc(16 / 16 * 1rem);
    margin: calc(4 / 16 * 1rem) 0 0;
  }
}

/* ボタン */
.home .wp-block-buttons {
  justify-content: center;
}

.home .wp-block-buttons .button-arrow .wp-block-button__link {
  width: calc(230 / 16 * 1rem);
  height: calc(48 / 16 * 1rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(8 / 16 * 1rem);
  border-radius: calc(33 / 16 * 1rem);
  font-size: calc(18.3 / 16 * 1rem);
  font-weight: 700;
  line-height: calc(24 / 16);
  color: var(--color-white);
  margin: calc(20 / 16 * 1rem) 0 0;
  border: 0.0625rem solid transparent;
  transition:
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s;
}

.home .wp-block-buttons .button-arrow .wp-block-button__link:hover {
  background-color: var(--color-white);
  color: var(--color-blue);
  border-color: var(--color-blue);
  opacity: 1;
  filter: none;
}

.home .wp-block-buttons .button-arrow .wp-block-button__link:hover::after {
  background-image: url("./images/arrow-right-icon.svg");
}

.home .wp-block-buttons .button-arrow .wp-block-button__link::after {
  content: "";
  display: inline-block;
  width: calc(18 / 16 * 1rem);
  height: calc(18 / 16 * 1rem);
  background-image: url("./images/arrow-right-white-icon.svg");
  background-size: cover;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .home .wp-block-buttons:has(.--left) {
    justify-content: flex-start;
  }

  .home .wp-block-buttons .button-arrow .wp-block-button__link {
    width: calc(253 / 16 * 1rem);
    height: calc(52 / 16 * 1rem);
    font-size: calc(16 / 16 * 1rem);
    margin: calc(20 / 16 * 1rem) 0 0;
  }
}

@media (min-width: 1200px) {
  .home .wp-block-buttons .button-arrow .wp-block-button__link {
    width: calc(253 / 16 * 1rem);
    height: calc(52 / 16 * 1rem);
    margin: calc(40 / 16 * 1rem) 0 0;
  }
}

/* ボタン（反転） */
.home .wp-block-buttons .button-arrow--reverse .wp-block-button__link {
  background-color: var(--color-white);
  color: var(--color-blue);
  border-color: var(--color-blue);
}

.home .wp-block-buttons .button-arrow--reverse .wp-block-button__link::after {
  background-image: url("./images/arrow-right-icon.svg");
}

.home .wp-block-buttons .button-arrow--reverse .wp-block-button__link:hover {
  background-color: var(--color-blue);
  color: var(--color-white);
  border-color: var(--white);
}

.home
  .wp-block-buttons
  .button-arrow--reverse
  .wp-block-button__link:hover::after {
  background-image: url("./images/arrow-right-white-icon.svg");
}

/* ==========================================
       FV
   ========================================== */
.top-fv {
  opacity: 1;
}

.top-fv .wp-block-cover.alignfull {
  height: calc(400 / 16 * 1rem);
}

.top-fv img {
  aspect-ratio: 2/3 !important;
}

.top-fv p {
  font-size: calc(40 / 16 * 1rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: calc(92 / 64);
  color: var(--color-white);
  margin: 0;
}

.top-fv p span {
  display: inline-block;
}

.top-fv p span:first-of-type {
  margin-left: calc(20 / 16 * 1rem);
}

.top-fv h1 {
  font-size: calc(22 / 16 * 1rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: calc(29 / 20);
  color: var(--color-white);
}

@media (min-width: 768px) {
  .top-fv .wp-block-cover.alignfull {
    height: calc(682 / 16 * 1rem);
  }
  .top-fv img {
    aspect-ratio: 1326/682 !important;
  }
  .top-fv p {
    font-size: calc(50 / 16 * 1rem);
  }
  .top-fv p span {
    margin-left: 0;
  }
  .top-fv h1 {
    font-size: calc(20 / 16 * 1rem);
  }
}

@media (min-width: 1200px) {
  .top-fv p {
    font-size: calc(64 / 16 * 1rem);
  }
}

/* ---------- FV アニメーション ---------- */
@keyframes top-fv-ken-burns {
  0% {
    transform: scale(1.08);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes top-fv-fade-up {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.top-fv .wp-block-cover__image-background {
  animation: top-fv-ken-burns 8s ease-out both;
  opacity: 0; /* CSSカスケードで即座に非表示（アニメーションが opacity: 1 に戻す） */
}

/* JS がラップ完了するまで素テキストを非表示にしてフラッシュを防止 */
.js .top-fv .vk-headding-key-visual:not(.is-chars-wrapped) {
  opacity: 0;
}

.top-fv-char {
  display: inline-block;
  animation: top-fv-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.top-fv h1 {
  animation: top-fv-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1s both;
}

/* ==========================================
    SERVICE
   ========================================== */
.top-service {
  padding: calc(30 / 16 * 1rem) 0 calc(100 / 16 * 1rem);
  background-color: var(--color-blue);
  color: var(--color-white);
}

.top-service .wp-block-columns {
  gap: calc(20 / 16 * 1rem);
}

.top-service h2 {
  font-family: var(--open-sans);
  font-size: calc(45 / 16 * 1rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.8;
  text-align: center;
  margin: 0;
}

.top-service p {
  font-size: calc(18.3 / 16 * 1rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.8;
  color: #ffffff;
  margin: 0;
}

@media (min-width: 768px) {
  .top-service {
    padding: calc(50 / 16 * 1rem) 0 calc(240 / 16 * 1rem);
  }
  .top-service .wp-block-columns {
    width: calc(845 / 16 * 1rem);
    margin-inline: auto;
    gap: 0;
    align-items: center;
    max-width: initial;
    flex-wrap: nowrap !important;
  }
  .top-service .wp-block-column {
    align-self: center;
  }
  .top-service .wp-block-column:first-of-type {
    flex: 0 0 43% !important;
  }
  .top-service h2 {
    font-size: calc(64 / 16 * 1rem);
    padding-right: calc(40 / 16 * 1rem);
    margin-bottom: 0;
    text-align: left;
  }
  .top-service p {
    font-size: calc(20 / 16 * 1rem);
    padding-left: calc(45 / 16 * 1rem);
    border-left: calc(1 / 16 * 1rem) solid var(--color-white);
  }
}

@media (min-width: 992px) {
  .top-service .wp-block-columns {
    width: calc(903 / 16 * 1rem);
  }
  .top-service .wp-block-column:first-of-type {
    width: calc(417 / 16 * 1rem);
    flex: initial !important;
  }
  .top-service h2 {
    font-size: calc(74 / 16 * 1rem);
    padding-right: calc(80 / 16 * 1rem);
    margin-bottom: 0;
  }
  .top-service p {
    font-size: calc(20 / 16 * 1rem);
    padding-left: calc(65 / 16 * 1rem);
    border-left: calc(1 / 16 * 1rem) solid var(--color-white);
  }
}

/* ---------- SERVICE アニメーション ---------- */
@keyframes top-service-heading {
  from {
    opacity: 0;
    letter-spacing: -0.05em;
  }
  to {
    opacity: 1;
    letter-spacing: 0.1em;
  }
}

@keyframes top-service-text {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* JS 有効時：レンダー前から非表示にして FOUC を防ぐ */
.js .top-service h2,
.js .top-service p {
  opacity: 0;
}

.top-service h2.is-inview {
  animation: top-service-heading 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.top-service p.is-inview {
  animation: top-service-text 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

/* ==========================================
    会社概要
   ========================================== */
.top-company {
  margin-top: calc(-70 / 16 * 1rem);
}

.top-company .wp-block-column:first-of-type {
  width: 90%;
  margin-inline: auto;
  flex: initial !important;
}

.top-company p {
  font-size: calc(18.3 / 16 * 1rem);
  font-weight: 500;
  line-height: calc(24 / 16);
  margin: calc(20 / 16 * 1rem) 0 0 !important;
}

@media (min-width: 768px) {
  .top-company {
    margin-top: calc(-185 / 16 * 1rem);
  }
  .top-company .wp-block-columns {
    margin-inline: auto;
    gap: 0;
    align-items: center;
    max-width: initial;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2);
    background-color: var(--color-white);
    padding-left: calc(30 / 16 * 1rem);
  }
  .top-company .wp-block-column:first-of-type {
    flex: 0 0 42.4% !important;
    align-self: center;
  }
  .top-company .wp-block-column:last-of-type {
    flex: 1 !important;
    padding: calc(35 / 16 * 1rem) calc(30 / 16 * 1rem);
    align-self: center;
  }

  .top-company p {
    font-size: calc(16 / 16 * 1rem);
    margin: calc(20 / 16 * 1rem) 0 0 !important;
  }
}

@media (min-width: 992px) {
  .top-company .wp-block-columns {
    padding-left: 0;
  }
  .top-company .wp-block-column:first-of-type {
    flex: 0 0 42.4% !important;
    align-self: flex-start;
  }
  .top-company .wp-block-column:last-of-type {
    flex: 1 !important;
    padding: calc(35 / 16 * 1rem) calc(40 / 16 * 1rem);
    align-self: flex-start;
  }
}

@media (min-width: 1200px) {
  .top-company .wp-block-column:first-of-type {
    flex: 0 0 42.4% !important;
  }
  .top-company .wp-block-column:last-of-type {
    padding: calc(70 / 16 * 1rem) calc(60 / 16 * 1rem) calc(50 / 16 * 1rem)
      calc(64 / 16 * 1rem);
  }
  .top-company p {
    margin: calc(32 / 16 * 1rem) 0 0 !important;
  }
}

/* ---------- 会社概要 アニメーション ---------- */

/* 子要素：opacity + transform */
@keyframes top-company-slide-left {
  from {
    opacity: 0;
    transform: translateY(5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes top-company-from-bottom {
  from {
    opacity: 0;
    transform: translateY(3rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.js .top-company .wp-block-columns {
  opacity: 0;
}

/* 発火後：即座に opacity: 1（子のアニメーションが presentation を担う） */
.top-company.is-inview .wp-block-columns {
  opacity: 1;
}

.top-company.is-inview .wp-block-column:first-of-type figure {
  animation: top-company-slide-left 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.top-company.is-inview .wp-block-vk-blocks-heading {
  animation: top-company-from-bottom 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s
    both;
}

.top-company.is-inview .wp-block-column:last-of-type > p:first-of-type {
  animation: top-company-from-bottom 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s
    both;
}

.top-company.is-inview .wp-block-column:last-of-type > p:last-of-type {
  animation: top-company-from-bottom 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s
    both;
}

.top-company.is-inview .wp-block-buttons {
  animation: top-company-from-bottom 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.6s
    both;
}

/* ==========================================
    強み
   ========================================== */
.top-strength {
  padding: calc(70 / 16 * 1rem) 0 calc(70 / 16 * 1rem);
}

.top-strength .top-strength-columns {
  flex-direction: column-reverse;
  gap: calc(00 / 16 * 1rem);
}

/* SP：表示順を「ロゴ+見出し → 画像 → テーブル」に変更 */
@media (max-width: 767.98px) {
  .top-strength .top-strength-columns {
    flex-direction: column; /* column-reverse をリセット */
  }

  /* .top-strength-right の箱を消して子要素をフレックスアイテムに昇格させる */
  .top-strength .top-strength-columns > .wp-block-column.top-strength-right {
    display: contents;
  }

  /* 1番目：ロゴ + 見出し */
  .top-strength .wp-block-column.top-strength-right > .wp-block-columns {
    order: 1;
  }

  /* 2番目：製品画像 */
  .top-strength .top-strength-columns > .top-strength-left {
    order: 2;
  }

  /* 3番目：テーブル */
  .top-strength .wp-block-column.top-strength-right > .wp-block-table {
    order: 3;
  }
}

.top-strength .top-strength-columns .top-strength-left {
  width: 80%;
  margin-inline: auto;
  margin-top: calc(25 / 16 * 1rem);
}

.top-strength .top-strength-right {
  flex-direction: row;
  gap: calc(4 / 16 * 1rem);
  flex-wrap: nowrap !important;
  width: fit-content;
  margin-inline: auto;
}

.top-strength-right.wp-block-columns .wp-block-column:first-of-type {
  flex: 0 0 calc(125 / 320 * 100vw) !important;
}

.top-strength-right .wp-block-column:last-of-type {
  align-self: flex-end;
  margin-bottom: calc(10 / 16 * 1rem);
}

.top-strength-right h2 {
  font-size: calc(20 / 16 * 1rem);
  font-weight: 900;
  line-height: calc(29 / 20);
  color: var(--color-blue);
  margin: 0;
}

.top-product-table table {
  margin-top: calc(20 / 16 * 1rem);
}

.top-product-table table tr {
  display: flex;
  flex-direction: column;
  gap: calc(8 / 16 * 1rem);
  padding: calc(12 / 16 * 1rem) 0;
  border-bottom: 0.0625rem solid var(--color-blue);
  align-items: flex-start;
}

.top-product-table table td {
  border: none;
  padding: 0;
  text-align: left;
}

.top-product-table table td:first-child {
  font-size: calc(20 / 16 * 1rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: calc(29 / 20);
  width: calc(127 / 16 * 1rem);
}

.top-product-table table td:last-child {
  font-size: calc(18 / 16 * 1rem);
  font-weight: 500;
  line-height: calc(24 / 16);
}

@media (min-width: 375px) {
  .top-strength-right.wp-block-columns .wp-block-column:first-of-type {
    flex: 0 0 calc(150 / 16 * 1rem) !important;
  }
}

@media (min-width: 768px) {
  .top-strength {
    padding: calc(96 / 16 * 1rem) 0 0;
  }
  .top-strength .top-strength-columns {
    gap: calc(16 / 16 * 1rem);
    /* width: calc(300 / 16 * 1rem); */
    max-width: initial !important;
    flex-wrap: nowrap !important;
    flex-direction: row;
  }
  .top-strength .top-strength-columns .top-strength-left {
    margin-left: calc(-50vw + 50%);
  }
  .top-strength .top-strength-columns .top-strength-left img {
    max-width: calc(754 / 16 * 1rem);
    width: calc(700 / 1326 * 100vw);
    position: relative;
    left: clamp(
      -13.75rem,
      calc(-220px + (100vw - 768px) * (90 / 223)),
      -8.125rem
    );
  }
  .top-strength .top-strength-columns .top-strength-right {
    flex: 0 0 calc(585 / 16 * 1rem) !important;
  }
  .top-strength .top-strength-right.wp-block-columns {
    width: calc(506 / 16 * 1rem);
    margin: 0;
    gap: calc(37 / 16 * 1rem);
  }
  .top-strength
    .top-strength-right.wp-block-columns
    .wp-block-column:first-of-type {
    flex: 0 0 calc(289 / 16 * 1rem) !important;
  }
  .top-strength
    .top-strength-right.wp-block-columns
    .wp-block-column:last-of-type {
    flex: 1 !important;
    margin-bottom: calc(18 / 16 * 1rem);
  }
  .top-strength-right h2 {
    font-size: calc(20 / 16 * 1rem);
  }
  .top-product-table table {
    margin-top: calc(24 / 16 * 1rem);
  }
  .top-product-table table tr {
    flex-direction: row;
    gap: calc(19 / 16 * 1rem);
    padding: calc(16 / 16 * 1rem) 0;
    align-items: center;
  }
  .top-product-table table td:first-child {
    font-size: calc(20 / 16 * 1rem);
  }
  .top-product-table table td:last-child {
    font-size: calc(16 / 16 * 1rem);
  }
}

@media (min-width: 992px) {
  .top-strength .top-strength-columns .top-strength-left img {
    width: calc(750 / 1326 * 100vw);
    left: calc(-220 / 16 * 1rem);
  }
}

@media (min-width: 1200px) {
  .top-strength .top-strength-columns .top-strength-left img {
    width: calc(754 / 1326 * 100vw);
    left: calc(-200 / 16 * 1rem);
  }
  .top-strength .top-strength-columns .top-strength-right {
    flex: 0 0 calc(655 / 16 * 1rem) !important;
  }
}

@media (min-width: 1401px) {
  .top-strength {
    padding: calc(96 / 16 * 1rem) 0 calc(100 / 16 * 1rem);
  }
  .top-strength .top-strength-columns .top-strength-left {
    margin-left: 0;
  }
  .top-strength .top-strength-columns .top-strength-left img {
    width: calc(525 / 16 * 1rem);
    position: relative;
    left: calc(-50 / 16 * 1rem);
  }
}

/* ---------- 強み アニメーション ---------- */
@keyframes top-strength-slide-left {
  from {
    opacity: 0;
    transform: translateX(-2.5rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes top-strength-fade-up {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.js .top-strength .top-strength-left figure,
.js .top-strength .top-strength-right > .wp-block-columns,
.js .top-strength .top-product-table tr {
  opacity: 0;
  will-change: opacity, transform;
}

/* 発火後 */
.top-strength.is-inview .top-strength-left figure {
  animation: top-strength-slide-left 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.top-strength.is-inview .top-strength-right > .wp-block-columns {
  animation: top-strength-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

/* テーブル行：opacity のみ（translateY はスクロールバーを誘発するため使わない） */
@keyframes top-strength-row-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.top-strength.is-inview .top-product-table tr {
  animation: top-strength-row-in 0.5s ease both;
  animation-delay: 0.3s;
}
.top-strength.is-inview .top-product-table tr:nth-child(2) {
  animation-delay: 0.4s;
}
.top-strength.is-inview .top-product-table tr:nth-child(3) {
  animation-delay: 0.5s;
}
.top-strength.is-inview .top-product-table tr:nth-child(4) {
  animation-delay: 0.6s;
}
.top-strength.is-inview .top-product-table tr:nth-child(5) {
  animation-delay: 0.7s;
}
.top-strength.is-inview .top-product-table tr:nth-child(6) {
  animation-delay: 0.8s;
}

/* ==========================================
    わたしたちが選ばれる3つの理由
   ========================================== */
.top-reason.bg-light-blue {
  background-color: var(--color-light-blue);
}

.top-reason {
  padding: calc(70 / 16 * 1rem) 0 calc(70 / 16 * 1rem);
}

.top-reason .wp-block-columns {
  margin-top: calc(110 / 16 * 1rem);
  gap: calc(110 / 16 * 1rem);
}

.top-reason .wp-block-column {
  position: relative;
  background-color: var(--color-white);
  border-radius: calc(8 / 16 * 1rem);
  box-shadow: 0px 0px 1rem rgba(0, 0, 0, 0.2);
  padding: calc(110 / 16 * 1rem) calc(24 / 16 * 1rem) calc(32 / 16 * 1rem);
}

.top-reason .reason-image {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -45%);
  width: calc(180 / 16 * 1rem);
  height: calc(180 / 16 * 1rem);
  border-radius: 50%;
  overflow: hidden;
}

.top-reason .wp-block-column h3 {
  font-size: calc(22 / 16 * 1rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: calc(35 / 24);
  margin: 0;
}

.top-reason .wp-block-column p {
  font-size: calc(18.3 / 16 * 1rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: calc(24 / 16);
  margin: calc(12 / 16 * 1rem) 0 0 !important;
}

@media (min-width: 768px) {
  .top-reason {
    padding: calc(139 / 16 * 1rem) 0 calc(124 / 16 * 1rem);
  }
  .top-reason .wp-block-columns {
    margin-top: calc(110 / 16 * 1rem);
    gap: calc(16 / 16 * 1rem);
    max-width: initial !important;
    flex-wrap: nowrap !important;
    justify-content: center;
  }
  .top-reason .wp-block-column {
    flex: 0 0 32% !important;
    padding: calc(95 / 16 * 1rem) calc(20 / 16 * 1rem) calc(24 / 16 * 1rem);
  }
  .top-reason .reason-image {
    width: calc(160 / 16 * 1rem);
    height: calc(160 / 16 * 1rem);
  }
  .top-reason .wp-block-column h3 {
    font-size: calc(20 / 16 * 1rem);
  }
}

@media (min-width: 1200px) {
  .top-reason .wp-block-columns {
    gap: calc(30 / 16 * 1rem);
  }
  .top-reason .wp-block-column {
    flex: 0 0 calc(360 / 16 * 1rem) !important;
    padding: calc(100 / 16 * 1rem) calc(24 / 16 * 1rem) calc(32 / 16 * 1rem);
  }
  .top-reason .wp-block-column h3 {
    font-size: calc(24 / 16 * 1rem);
  }
  .top-reason .wp-block-column p {
    font-size: calc(16 / 16 * 1rem);
    margin-top: calc(8 / 16 * 1rem) !important;
  }
}

/* ---------- 選ばれる理由 アニメーション ---------- */
@keyframes top-reason-fade-up {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.js .top-reason h2,
.js .top-reason .wp-block-column {
  opacity: 0;
  will-change: opacity, transform;
}

.top-reason.is-inview h2 {
  animation: top-reason-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.top-reason.is-inview .wp-block-columns .wp-block-column:nth-child(1) {
  animation: top-reason-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.top-reason.is-inview .wp-block-columns .wp-block-column:nth-child(2) {
  animation: top-reason-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.top-reason.is-inview .wp-block-columns .wp-block-column:nth-child(3) {
  animation: top-reason-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

/* ==========================================
    製品紹介
   ========================================== */
.top-product.bg-blue {
  background-color: var(--color-blue);
}

.top-product {
  padding: calc(70 / 16 * 1rem) 0 calc(70 / 16 * 1rem);
}

.top-product .wp-block-columns {
  margin-top: calc(35 / 16 * 1rem);
  gap: calc(30 / 16 * 1rem);
  background-color: var(--color-white);
  border-radius: calc(8 / 16 * 1rem);
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2);
  padding: calc(30 / 16 * 1rem);
}

.top-product .wp-block-column:first-of-type img {
  width: 70%;
  margin-inline: auto;
  display: block;
}

.top-product .wp-block-column:last-of-type {
  padding-top: calc(20 / 16 * 1rem);
  border-top: 0.0625rem solid var(--color-black);
  text-align: center;
}

.top-product .wp-block-column:last-of-type h3 {
  font-size: calc(26 / 16 * 1rem);
  font-weight: 700;
  line-height: calc(46 / 32);
  margin: 0;
  white-space: nowrap;
}

.top-product .wp-block-column:last-of-type p {
  margin: calc(26 / 16 * 1rem) 0 0;
}

.top-product .wp-block-column:last-of-type p + p {
  margin: calc(12 / 16 * 1rem) 0 0;
}

.top-product .wp-block-column:last-of-type a {
  font-size: calc(18.3 / 16 * 1rem);
  font-weight: 700;
  line-height: calc(24 / 16);
  color: var(--color-blue);
  display: inline-flex;
  align-items: center;
  gap: calc(7 / 16 * 1rem);
  text-decoration: none;
  position: relative;
}

.top-product .wp-block-column:last-of-type a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(1 / 16 * 1rem);
  background-color: var(--color-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.top-product .wp-block-column:last-of-type a:hover::before {
  transform: scaleX(1);
}

.top-product .wp-block-column:last-of-type a::after {
  content: "";
  display: inline-block;
  width: calc(17.6 / 16 * 1rem);
  height: calc(17.6 / 16 * 1rem);
  background-image: url("images/arrow-right-icon.svg");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  transition: transform 0.5s ease;
}

.top-product .wp-block-column:last-of-type a:hover::after {
  transform: translateX(5px);
}

.top-product .lineup-brands__link:hover {
  background-color: #edf6ff;
}

.top-product .wp-block-buttons .button-arrow .wp-block-button__link {
  margin-top: calc(35 / 16 * 1rem);
}

@media (min-width: 768px) {
  .top-product {
    padding: calc(90 / 16 * 1rem) 0 calc(100 / 16 * 1rem);
  }
  .top-product .wp-block-columns {
    margin-top: calc(32 / 16 * 1rem);
    max-width: initial !important;
    padding: calc(51 / 16 * 1rem) calc(80 / 16 * 1rem);
    gap: 0;
  }
  .top-product .wp-block-column:first-of-type {
    flex: 0 0 50% !important;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-right: 0.0625rem solid var(--color-black);
    padding-left: calc(30 / 16 * 1rem);
  }
  .top-product .wp-block-column:first-of-type img {
    width: 80%;
    margin: 0;
  }
  .top-product .wp-block-column:last-of-type {
    flex: 1 !important;
    width: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0;
    padding-left: calc(50 / 16 * 1rem);
    border-top: none;
  }
  .top-product .wp-block-column:last-of-type h3 {
    font-size: calc(28 / 16 * 1rem);
  }
  .top-product .wp-block-column:last-of-type p {
    margin-top: calc(20 / 16 * 1rem);
  }
  .top-product .wp-block-column:last-of-type p + p {
    margin-top: calc(16 / 16 * 1rem);
  }
  .top-product .wp-block-column:last-of-type a {
    font-size: calc(16 / 16 * 1rem);
  }
  .top-product .wp-block-buttons .button-arrow .wp-block-button__link {
    margin-top: calc(48 / 16 * 1rem);
  }
  .top-product .lineup-brands__grid {
    max-width: initial !important;
    margin-top: calc(43 / 16 * 1rem);
  }
}

@media (min-width: 900px) {
  .top-product .wp-block-columns {
    margin-top: calc(32 / 16 * 1rem);
    padding: calc(51 / 16 * 1rem) calc(120 / 16 * 1rem);
  }
  .top-product .wp-block-column:first-of-type {
    padding-left: calc(30 / 16 * 1rem);
  }
  .top-product .wp-block-column:first-of-type img {
    width: 80%;
    max-width: calc(300 / 16 * 1rem);
  }
}

@media (min-width: 1200px) {
  .top-product .wp-block-columns {
    margin-top: calc(32 / 16 * 1rem);
    padding: calc(51 / 16 * 1rem) calc(144 / 16 * 1rem);
  }
  .top-product .wp-block-column:first-of-type {
    flex: 0 0 50% !important;
    padding-top: calc(15 / 16 * 1rem);
    padding-right: calc(164.5 / 16 * 1rem);
    display: block;
  }
  .top-product .wp-block-column:first-of-type img {
    width: 100%;
  }
  .top-product .wp-block-column:last-of-type {
    flex: 1 !important;
    padding-left: calc(88.5 / 16 * 1rem);
    padding-right: calc(29 / 16 * 1rem);
  }
  .top-product .wp-block-column:last-of-type h3 {
    font-size: calc(32 / 16 * 1rem);
  }
  .top-product .wp-block-column:last-of-type a {
    font-size: calc(16 / 16 * 1rem);
  }
}

/* ---------- 製品紹介 アニメーション ---------- */
@keyframes top-product-fade-up {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes top-product-slide-left {
  from {
    opacity: 0;
    transform: translateX(-2rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.js .top-product h2,
.js .top-product h2 + p,
.js .top-product .wp-block-column:first-of-type,
.js .top-product .wp-block-column:last-of-type,
.js .top-product .lineup-brands__item,
.js .top-product .wp-block-buttons {
  opacity: 0;
  will-change: opacity, transform;
}

.top-product.is-inview h2 {
  animation: top-product-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.top-product.is-inview h2 + p {
  animation: top-product-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.top-product.is-inview .wp-block-column:first-of-type {
  animation: top-product-slide-left 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s
    both;
}

.top-product.is-inview .wp-block-column:last-of-type {
  animation: top-product-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.top-product.is-inview .lineup-brands__item:nth-child(1) {
  animation: top-product-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

.top-product.is-inview .lineup-brands__item:nth-child(2) {
  animation: top-product-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.65s both;
}

.top-product.is-inview .wp-block-buttons {
  animation: top-product-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.75s both;
}

/* ==========================================
   導入事例
   ========================================== */
.top-case {
  padding: calc(50 / 16 * 1rem) 0 calc(50 / 16 * 1rem);
}

/* トラックラッパー（矢印の幅を確保） */
.top-case-slider__track-wrap {
  position: relative;
  padding: 0;
}

.top-case .top-case-slider {
  margin-top: calc(20 / 16 * 1rem);
  padding-bottom: 1.25rem; /* SP: 矢印(top:100% + translateY(-50%))が 1rem はみ出すため clip-path 領域を拡張 */
}

/* 矢印ボタン */
.top-case-arrow {
  position: absolute;
  top: 100%;
  transform: translateY(-50%);
  background: none;
  border: 0.0625rem solid transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  z-index: 10;
  border-radius: 50%;
  transition:
    background-color 0.3s,
    border-color 0.3s;
}

.top-case-arrow:hover {
  background-color: var(--color-blue);
  border-color: var(--color-blue);
}

.top-case-arrow img {
  display: block;
  width: 2rem;
  height: 2rem;
  transition: filter 0.3s;
}

.top-case-arrow:hover img {
  filter: brightness(0) invert(1);
}

.top-case-arrow--prev {
  left: 0;
}

.top-case-arrow--next {
  right: 0;
}

.top-case .splide__track {
  padding: calc(16 / 16 * 1rem) calc(16 / 16 * 1rem) calc(32 / 16 * 1rem)
    calc(16 / 16 * 1rem);
}

/* スライドアイテムの高さを揃える */
.top-case-splide .splide__slide {
  display: flex;
  flex-direction: column;
}

/* カード */
.top-case-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: calc(25 / 16 * 1rem);
  background-color: var(--color-white);
  border-radius: calc(24 / 16 * 1rem);
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2);
  gap: calc(20 / 16 * 1rem);
}

/* 画像エリア */
.top-case-card__image {
  width: 100%;
  border-radius: calc(12 / 16 * 1rem);
  overflow: hidden;
  aspect-ratio: 346 / 258;
}

.top-case-card__image img {
  aspect-ratio: 346 / 258;
}

/* テキストエリア */
.top-case-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* 取引先名 */
.home .top-case .top-case-card__client {
  margin: 0;
  font-size: calc(18 / 16 * 1rem);
  font-weight: var(--fw-700);
  line-height: calc(29 / 20);
  color: var(--color-blue);
}

/* 記事タイトル */
.top-case-card__title {
  margin: calc(8 / 16 * 1rem) 0 0;
  font-size: calc(19 / 16 * 1rem);
  font-weight: var(--fw-700);
  line-height: calc(35 / 24);
  color: var(--color-black);
  padding-bottom: 1rem;
}

/* 事例を見るリンク */
.top-case-card__link {
  width: calc(230 / 16 * 1rem);
  height: calc(40 / 16 * 1rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(8 / 16 * 1rem);
  border-radius: calc(33 / 16 * 1rem);
  font-size: calc(17 / 16 * 1rem);
  font-weight: 700;
  line-height: calc(24 / 16);
  color: var(--color-blue);
  background-color: var(--color-white);
  border: 0.125rem solid var(--color-blue);
  margin: auto 0 0;
  text-decoration: none;
  transition:
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s;
  padding: 0 calc(50 / 16 * 1rem);
  margin-inline: auto;
}

.top-case-card__link-icon--white {
  display: none;
}

.top-case-card__link:hover {
  background-color: var(--color-blue);
  color: var(--color-white);
}

.top-case-card__link:hover .top-case-card__link-icon--blue {
  display: none;
}

.top-case-card__link:hover .top-case-card__link-icon--white {
  display: inline-block;
}

/* ページネーション */
.top-case-splide .splide__pagination {
  position: static;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: calc(8 / 16 * 1rem);
  padding: 0;
}

.top-case-splide .splide__pagination__page {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #a8a8a8;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.3s;
  opacity: 1; /* Splide デフォルトを上書き */
  transform: none; /* Splide デフォルトを上書き */
}

.top-case-splide .splide__pagination__page.is-active {
  background-color: var(--color-blue);
  transform: none;
}

/* もっと見るボタン */
.top-case-slider__footer {
  display: flex;
  justify-content: center;
  margin-top: calc(24 / 16 * 1rem);
}

.home .top-case .wp-block-buttons .button-arrow .wp-block-button__link {
  margin-top: calc(16 / 16 * 1rem);
}

@media (min-width: 768px) {
  .top-case {
    padding: calc(100 / 16 * 1rem) 0;
  }
  .top-case-slider__track-wrap {
    padding: 0 calc(3rem + 3.4375rem);
  }
  .top-case .top-case-slider {
    margin-top: calc(32 / 16 * 1rem);
    padding-bottom: 0;
  }
  .top-case-card {
    flex-direction: row;
    padding: calc(32 / 16 * 1rem) calc(45 / 16 * 1rem) calc(32 / 16 * 1rem)
      calc(32 / 16 * 1rem);
    gap: calc(30 / 16 * 1rem);
  }
  .top-case-card__image {
    flex: 0 0 calc(250 / 16 * 1rem) !important;
    width: initial;
    align-self: center;
  }
  .top-case-card__body {
    flex: 1;
    align-self: center;
  }
  .top-case-card__client {
    font-size: calc(20 / 16 * 1rem);
  }
  .top-case-card__title {
    margin-top: calc(12 / 16 * 1rem);
    font-size: calc(20 / 16 * 1rem);
    padding-bottom: calc(32 / 16 * 1rem);
  }
  .top-case-card__link {
    width: calc(210 / 16 * 1rem);
    padding: 0 calc(40 / 16 * 1rem);
    /* margin-top: calc(20 / 16 * 1rem); */
    font-size: calc(16 / 16 * 1rem);
    margin-inline: initial;
  }
  .top-case-arrow {
    top: 50%;
    width: 3rem;
    height: 3rem;
  }
  .top-case-arrow img {
    width: 3rem;
    height: 3rem;
  }
  .top-case-arrow--prev {
    left: 0;
  }

  .top-case-arrow--next {
    right: 0;
  }
}

@media (min-width: 992px) {
  .top-case-card__title {
    font-size: calc(20 / 16 * 1rem);
  }
}

@media (min-width: 1200px) {
  .top-case .splide__track {
    padding: calc(24 / 16 * 1rem);
  }
  .top-case-card {
    padding: calc(40 / 16 * 1rem) calc(93 / 16 * 1rem) calc(40 / 16 * 1rem)
      calc(40 / 16 * 1rem);
    gap: calc(67 / 16 * 1rem);
  }
  .top-case-card__image {
    flex: 0 0 calc(346 / 16 * 1rem) !important;
  }
  .top-case-card__title {
    font-size: calc(24 / 16 * 1rem);
  }
  .top-case-card__link {
    margin-top: calc(32 / 16 * 1rem);
    font-size: calc(16 / 16 * 1rem);
    width: calc(253 / 16 * 1rem);
    height: calc(52 / 16 * 1rem);
    padding: 0 calc(50 / 16 * 1rem);
  }
}

/* ---------- 導入事例 アニメーション ---------- */

/* h2・subtitle：他セクションと共通のフェードアップ */
@keyframes top-case-fade-heading {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* スライダー：左→右へのクリップパスワイプ */
@keyframes top-case-wipe {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  to {
    clip-path: inset(0 0% 0 0);
    opacity: 1;
  }
}

/* ボタン */
@keyframes top-case-fade-up {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.js .top-case h2,
.js .top-case h2 + p,
.js .top-case .top-case-slider,
.js .top-case .wp-block-buttons {
  opacity: 0;
  will-change: opacity, transform;
}

.top-case.is-inview h2 {
  animation: top-case-fade-heading 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.top-case.is-inview h2 + p {
  animation: top-case-fade-heading 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.top-case.is-inview .top-case-slider {
  animation: top-case-wipe 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.top-case.is-inview .wp-block-buttons {
  animation: top-case-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

/* ==========================================
   お知らせ一覧 [top_news_list]
   ========================================== */
.top-news {
  padding: calc(30 / 16 * 1rem) 0 calc(70 / 16 * 1rem);
}

.top-news .top-heading02 h2,
.top-news .top-heading02 + p {
  text-align: center;
}

.top-news .top-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-news-list__item {
  margin: 0;
}

.top-news-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: calc(4 / 16 * 1rem) calc(16 / 16 * 1rem);
  padding: calc(16 / 16 * 1rem) calc(12 / 16 * 1rem) calc(16 / 16 * 1rem) 0;
  border-bottom: 0.0625rem solid var(--color-blue);
  text-decoration: none;
  transition: background-color 0.3s;
}

.top-news-item:hover {
  background-color: #185ba310;
  opacity: 1;
}

.top-news-item__date {
  flex: 0 0 100%;
  font-family: var(--open-sans);
  font-size: calc(16 / 16 * 1rem);
  font-weight: var(--fw-400);
  line-height: calc(22 / 16);
  color: #666666;
  white-space: nowrap;
}

.top-news-item__title {
  flex: 1;
  font-size: calc(16 / 16 * 1rem);
  font-weight: var(--fw-500);
  line-height: calc(24 / 16);
  color: var(--color-black);
}

.top-news-item__arrow {
  flex: 0 0 auto;
  display: block;
  transition: transform 0.3s;
  align-self: flex-end;
}

.top-news-item:hover .top-news-item__arrow {
  transform: translateX(0.75rem);
}

.home .top-news .wp-block-buttons .button-arrow .wp-block-button__link {
  margin-top: calc(40 / 16 * 1rem);
}

@media (min-width: 768px) {
  .top-news {
    padding: calc(60 / 16 * 1rem) 0 calc(160 / 16 * 1rem);
  }
  .top-news .top-heading02 h2,
  .top-news .top-heading02 + p {
    text-align: left;
  }
  .top-news .wp-block-columns {
    gap: calc(40 / 16 * 1rem);
    max-width: initial !important;
  }
  .top-news .wp-block-columns .wp-block-column:first-of-type {
    flex: 0 0 calc(162 / 16 * 1rem) !important;
  }
  .top-news .wp-block-columns .wp-block-column:last-of-type {
    flex: 1 !important;
  }
  .top-news-item {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: calc(23 / 16 * 1rem);
    padding: 1rem 1.5rem 1rem 0;
    border-bottom: 0.0625rem solid var(--color-blue);
    text-decoration: none;
  }
  .top-news-item__date {
    flex: 0 0 auto;
    min-width: calc(82 / 16 * 1rem);
    font-size: calc(16 / 16 * 1rem);
  }
  .top-news-item__title {
    flex: 1;
    font-size: calc(16 / 16 * 1rem);
  }
  .top-news-item__arrow {
    flex: 0 0 auto;
    display: block;
    align-self: center;
  }
  .home .top-news .wp-block-buttons .button-arrow .wp-block-button__link {
    margin-top: calc(57 / 16 * 1rem);
  }
}

@media (min-width: 1200px) {
  .top-news .wp-block-columns {
    gap: calc(72 / 16 * 1rem);
  }
}

/* ---------- お知らせ アニメーション ---------- */
@keyframes top-news-fade-up {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes top-news-item-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.js .top-news .wp-block-column:first-of-type,
.js .top-news .top-news-list__item,
.js .top-news .wp-block-buttons {
  opacity: 0;
  will-change: opacity, transform;
}

.top-news.is-inview .wp-block-column:first-of-type {
  animation: top-news-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.top-news.is-inview .top-news-list__item {
  animation: top-news-item-in 0.5s ease both;
  animation-delay: 0.2s;
}
.top-news.is-inview .top-news-list__item:nth-child(2) {
  animation-delay: 0.35s;
}
.top-news.is-inview .top-news-list__item:nth-child(3) {
  animation-delay: 0.5s;
}

.top-news.is-inview .wp-block-buttons {
  animation: top-news-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

/* ==========================================
    お問い合わせ
   ========================================== */
.top-contact {
  padding: calc(50 / 16 * 1rem) 0;
  min-height: initial !important;
}

.home .top-contact .wp-block-columns {
  margin-top: calc(16 / 16 * 1rem);
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2);
  padding: calc(32 / 16 * 1rem) calc(20 / 16 * 1rem);
}

.top-contact .wp-block-columns p.top-contact-p1 {
  font-size: calc(24 / 16 * 1rem);
  font-weight: 500;
  line-height: calc(35 / 24);
  margin: 0;
}

.top-contact .wp-block-columns p.top-contact-p2 {
  font-family: var(--open-sans);
  font-size: calc(40 / 16 * 1rem);
  font-weight: 700;
  line-height: calc(70 / 56);
  margin: calc(-3 / 16 * 1rem) 0 0;
}

.top-contact .wp-block-columns p.top-contact-p2 a {
  color: var(--color-blue);
  text-decoration: none;
}

.top-contact .wp-block-columns p.top-contact-p3 {
  font-size: calc(16 / 16 * 1rem);
  font-weight: 400;
  line-height: calc(24 / 16);
  margin: calc(2 / 16 * 1rem) 0 0;
}

.home .top-contact .top-contact-button {
  margin-top: calc(20 / 16 * 1rem);
}

.home .top-contact .top-contact-button a {
  display: block;
  padding: calc(12 / 16 * 1rem) calc(30 / 16 * 1rem);
  border-radius: calc(33 / 16 * 1rem);
  width: fit-content;
  margin-inline: auto;
  font-size: calc(18.3 / 16 * 1rem);
  font-weight: 700;
  line-height: calc(29 / 20);
  border: 2px solid var(--color-blue);
  transition:
    background-color 0.3s,
    color 0.3s;
}

.home .top-contact .top-contact-button a:hover {
  background-color: var(--color-white) !important;
  color: var(--color-blue) !important;
}

@media (min-width: 768px) {
  .top-contact {
    padding: calc(54 / 16 * 1rem) 0 calc(63 / 16 * 1rem);
  }
  .home .top-contact .wp-block-columns {
    margin-top: calc(24 / 16 * 1rem);
    padding: calc(32 / 16 * 1rem) calc(20 / 16 * 1rem) calc(40 / 16 * 1rem);
  }
  .top-contact .wp-block-columns p.top-contact-p1 {
    font-size: calc(24 / 16 * 1rem);
    margin: 0;
  }
  .top-contact .wp-block-columns p.top-contact-p2 {
    font-size: calc(56 / 16 * 1rem);
    margin: 0;
  }
  .top-contact .wp-block-columns p.top-contact-p2 a {
    pointer-events: none;
  }
  .top-contact .wp-block-columns p.top-contact-p3 {
    font-size: calc(16 / 16 * 1rem);
    margin: calc(-2 / 16 * 1rem) 0 0;
  }
  .home .top-contact .top-contact-button {
    margin-top: calc(32 / 16 * 1rem);
  }
  .home .top-contact .top-contact-button a {
    padding: calc(18 / 16 * 1rem) calc(114.5 / 16 * 1rem);
    font-size: calc(20 / 16 * 1rem);
  }
}

/* ---------- お問い合わせ アニメーション ---------- */
@keyframes top-contact-fade-up {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.js .top-contact .vk_heading_title,
.js .top-contact .vk_heading_subtext,
.js .top-contact .wp-block-columns {
  opacity: 0;
  will-change: opacity, transform;
}

/* 発火後：カードを即座に見せる */
.top-contact.is-inview .vk_heading_title {
  animation: top-contact-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.top-contact.is-inview .vk_heading_subtext {
  animation: top-contact-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

/* カード：白背景ごと隠して、子のアニメーション開始と同時に opacity: 1 へ */
.top-contact.is-inview .wp-block-columns {
  opacity: 1;
}

.top-contact.is-inview .top-contact-p1 {
  animation: top-contact-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.top-contact.is-inview .top-contact-p2 {
  animation: top-contact-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both;
}

.top-contact.is-inview .top-contact-p3 {
  animation: top-contact-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.54s both;
}

.top-contact.is-inview .top-contact-button {
  animation: top-contact-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.66s both;
}

/* ==========================================
   FV スライダー（ショートコード版）
   ========================================== */
.top-fv .top-fv-slider {
  max-width: initial !important;
}

.top-fv-slider {
  position: relative;
  overflow: hidden;
  height: calc(400 / 16 * 1rem);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #00000030; /* クロスフェード中の白抜け防止 */
  transform: translateZ(0); /* GPU レイヤー化でクリップ境界を固定 */
}

/* オーバーレイ */
.top-fv-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
  pointer-events: none;
}

@media (min-width: 768px) {
  .top-fv-slider {
    height: calc(682 / 16 * 1rem);
  }
}

/* 背景画像 */
.top-fv-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: unset !important; /* .top-fv img のルールを上書き */
  opacity: 0;
  animation: fv-slide-kenburns 15s linear infinite backwards;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.top-fv-bg--1 {
  animation-delay: 0s;
}
.top-fv-bg--2 {
  animation-delay: 5s;
}
.top-fv-bg--3 {
  animation-delay: 10s;
}

/* 1枚のみ：単発 Ken Burns */
.top-fv-slider--count-1 .top-fv-bg {
  animation: top-fv-ken-burns 8s ease-out both;
}

/* 2枚：10s サイクル */
.top-fv-slider--count-2 .top-fv-bg {
  animation-duration: 10s;
}

@keyframes fv-slide-kenburns {
  0% {
    opacity: 0;
    transform: scale(1.08);
  }
  7% {
    opacity: 1;
  }
  34% {
    opacity: 1;
    transform: scale(1.02);
  } /* ← ここまで動き続ける */
  40% {
    opacity: 0;
    transform: scale(1);
  } /* フェードアウトと同時にズーム完了 */
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

/* テキストコンテナ */
.top-fv-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  padding-inline: 1.25rem;
  text-align: center;
}
