/*
 * modules/fv.css — TOP main visual (.axihub-fv)
 * Ported from the standalone mock "FV" block plus the inline styles that sat on
 * the stats badges and the copy block. TOP-only: see inc/asset-styles.php.
 */

.axihub-fv {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2px;
  background: var(--color-border);
  align-items: stretch;
  /* 右タイルの正方形比率で無限に高くならないよう高さ上限 */
  height: min(680px, 100svh);
  min-height: 520px;
}

.axihub-fv__main {
  position: relative;
  background: var(--color-bg);
  min-height: 0;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
}

.axihub-fv__main > img#hero-main,
.axihub-media#hero-main {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Stats badges (top-right circles) */
.axihub-fv__stats {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  gap: 14px;
  z-index: 3;
  pointer-events: none;
}

.axihub-fv__stat {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-on-inverse);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 8px 20px var(--color-shadow-a25);
}

.axihub-fv__stat-value {
  font-family: 'Space Grotesk', 'Avenir Next', 'Segoe UI', sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
}

.axihub-fv__stat-unit {
  font-size: 12px;
}

.axihub-fv__stat-label {
  font-size: 11px;
  margin-top: 5px;
  opacity: .9;
}

/* Readability shade over the photo */
.axihub-fv__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--fv-shade-a18) 0%, var(--fv-shade-a28) 42%, var(--fv-shade-a78) 100%),
    linear-gradient(90deg, var(--fv-shade-a55) 0%, var(--fv-shade-a22) 48%, transparent 78%);
}

.axihub-fv__copy {
  position: absolute;
  /* サイト本文列の左端に揃える（狭い幅は section-pad） */
  left: max(var(--section-pad-x), calc((100vw - var(--layout-inner-max)) / 2));
  bottom: 44px;
  color: var(--color-on-inverse);
  max-width: min(520px, calc(100% - (var(--section-pad-x) * 2)));
  z-index: 3;
  pointer-events: auto;
}

.axihub-fv__eyebrow {
  font-size: 12px;
  letter-spacing: .15em;
  color: var(--color-on-inverse-a70);
  margin-bottom: 14px;
  font-weight: 700;
}

.axihub-fv__title {
  margin: 0;
  font-size: 36px;
  line-height: 1.5;
  font-weight: 900;
}

.axihub-fv__lead {
  margin: 16px 0 0;
  font-size: var(--fs-base);
  line-height: 1.9;
  color: var(--color-on-inverse-a85);
}

.axihub-fv__actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.axihub-fv__btn {
  padding: 15px 28px;
  border: 1px solid var(--color-inverse);
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
}

.axihub-fv__btn--primary,
.axihub-fv__btn--primary:hover,
.axihub-fv__btn--primary:visited {
  background: var(--color-accent);
  color: var(--color-on-inverse);
}

.axihub-fv__btn--primary:hover {
  background: var(--color-accent-hover);
}

.axihub-fv__btn--secondary,
.axihub-fv__btn--secondary:hover,
.axihub-fv__btn--secondary:visited {
  background: var(--color-bg);
  color: var(--color-text);
}

/* Right-hand promo tiles */
.axihub-fv__promos {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.axihub-fv__tile {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 16px;
  color: var(--color-on-inverse);
  text-decoration: none;
  border-radius: 0;
  text-align: center;
}

.axihub-fv__tile:hover,
.axihub-fv__tile:visited,
.axihub-fv__tile:active,
.axihub-fv__tile:focus {
  color: var(--color-on-inverse);
  text-decoration: none;
}

.axihub-fv__tile--line {
  background: var(--color-line);
}

.axihub-fv__tile--line:hover {
  background: var(--color-line-hover);
}

.axihub-fv__tile--contact {
  background: var(--color-inverse);
}

.axihub-fv__tile--contact:hover {
  background: var(--color-inverse-hover);
}

.axihub-fv__tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: var(--color-on-inverse);
  flex-shrink: 0;
}

.axihub-fv__tile-icon svg,
.axihub-fv__tile-icon-img {
  width: 56px;
  height: 56px;
  display: block;
}

.axihub-fv__tile-icon-img {
  filter: brightness(0) invert(1);
}

.axihub-fv__tile-brand {
  font-family: 'Space Grotesk', 'Avenir Next', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .12em;
  line-height: 1;
}

.axihub-fv__tile-label {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.axihub-fv__tile-cta {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  opacity: .92;
}

@media (max-width: 900px) {
  .axihub-fv {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .axihub-fv__main {
    min-height: 0;
    height: auto;
    aspect-ratio: 4/3;
  }

  .axihub-fv__promos {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }

  .axihub-fv__tile {
    flex: none;
    aspect-ratio: 1/1;
  }

  .axihub-fv__stats {
    top: 12px;
    right: 12px;
    left: 12px;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .axihub-fv__stat {
    width: 96px;
    height: 96px;
  }

  .axihub-fv__stat-value {
    font-size: 19px;
  }

  .axihub-fv__copy {
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: none;
  }

  .axihub-fv__title {
    font-size: 24px;
    line-height: 1.4;
  }

  .axihub-fv__lead {
    font-size: var(--fs-sm);
    margin-top: 12px;
  }

  .axihub-fv__actions {
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
  }

  .axihub-fv__btn {
    text-align: center;
  }

  .axihub-fv__tile {
    gap: 8px;
    padding: 16px 12px;
  }

  .axihub-fv__tile-icon {
    width: 48px;
    height: 48px;
  }

  .axihub-fv__tile-icon svg,
  .axihub-fv__tile-icon-img {
    width: 44px;
    height: 44px;
  }

  .axihub-fv__tile-brand {
    font-size: 14px;
  }

  .axihub-fv__tile-label {
    font-size: 12px;
  }

  .axihub-fv__tile-cta {
    font-size: 10px;
  }
}

@media (max-width: 560px) {
  .axihub-fv__main {
    aspect-ratio: 3/4;
    min-height: 320px;
  }

  .axihub-fv__stats {
    display: none;
  }

  .axihub-fv__title {
    font-size: 22px;
  }

  .axihub-fv__tile {
    padding: 12px 8px;
    gap: 6px;
  }

  .axihub-fv__tile-icon {
    width: 40px;
    height: 40px;
  }

  .axihub-fv__tile-icon svg,
  .axihub-fv__tile-icon-img {
    width: 36px;
    height: 36px;
  }

  .axihub-fv__tile-brand {
    font-size: 12px;
  }

  .axihub-fv__tile-label {
    font-size: 11px;
  }
}
