/*
|---------------------------------------------------------------
| qinc2026-top-core-value.css - コアバリュー図解セクション
|---------------------------------------------------------------
*/

/* ==========================================================================
   Top Core Value
   ========================================================================== */
.top-core-value {
  position: relative;
  background-color: var(--color-blue01);
  padding: 128px 0 176px;
  overflow: hidden;
  border-radius: 50px 50px 0 0;
}

/* Background Image */
.top-core-value__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.top-core-value__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Inner Container */
.top-core-value__inner.container {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.top-core-value__label {
  display: block;
  font-family: var(--font-family-en);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 16px;
}

.top-core-value__title {
  font-weight: 900;
  font-size: 48px;
  line-height: 1;
  color: var(--color-white);
  text-align: center;
  margin: 0 0 24px;
}

.top-core-value__lead {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-white);
  text-align: center;
  margin: 0 0 200px;
}

/* --------------------------------------------------------------------------
   Diagram Area
   -------------------------------------------------------------------------- */
.top-core-value__diagram {
  position: relative;
  width: 100%;
  max-width: 1024px;
  height: 500px;
  margin: 0 auto;
}

/* Circle Border */
.top-core-value__circle-border {
  position: absolute;
  width: 650px;
  height: 650px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  animation: core-value-ring-pulse 4s ease-in-out infinite;
}

@keyframes core-value-ring-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.top-core-value__card {
  position: absolute;
  width: 256px;
  height: 144px;
  background-color: var(--color-white);
  border-radius: 12px;
  border-bottom: 4px solid var(--color-gold);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Card Positions */
.top-core-value__card--top {
  top: -104px;
  left: 50%;
  transform: translateX(-50%);
}

.top-core-value__card--left {
  bottom: 40px;
  left: 40px;
}

.top-core-value__card--right {
  bottom: 40px;
  right: 40px;
}

/* Card Hover */
.top-core-value__card--top:hover {
  transform: translateX(-50%) translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.top-core-value__card--left:hover,
.top-core-value__card--right:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Card Elements */
.top-core-value__card-category {
  display: block;
  font-family: var(--font-family-en);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--color-blue01);
  margin-bottom: 8px;
}

.top-core-value__card-title {
  display: block;
  font-weight: 900;
  font-size: 24px;
  line-height: 1.2;
  color: var(--color-blue01);
  margin-bottom: 8px;
}

.top-core-value__card-desc {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-blue01);
  margin: 0;
}

/* Card Arrow */
.top-core-value__card-arrow {
  position: absolute;
  width: 40px;
  height: 40px;
  color: #a0a0a0;
}

.top-core-value__card-arrow--down {
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%) rotate(90deg);
  animation: core-value-arrow-down 2s ease-in-out infinite;
}

.top-core-value__card-arrow--right {
  top: -20px;
  right: -4px;
  transform: rotate(-45deg);
  animation: core-value-arrow-right 2s ease-in-out infinite;
}

.top-core-value__card-arrow--left {
  top: -20px;
  left: -4px;
  transform: rotate(-135deg);
  animation: core-value-arrow-left 2s ease-in-out infinite;
}

.top-core-value__card-arrow svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

@keyframes core-value-arrow-down {
  0%, 100% {
    transform: translateX(-50%) rotate(90deg) translateX(0);
    opacity: 0.5;
  }
  50% {
    transform: translateX(-50%) rotate(90deg) translateX(6px);
    opacity: 1;
  }
}

@keyframes core-value-arrow-right {
  0%, 100% {
    transform: rotate(-45deg) translateX(0);
    opacity: 0.5;
  }
  50% {
    transform: rotate(-45deg) translateX(6px);
    opacity: 1;
  }
}

@keyframes core-value-arrow-left {
  0%, 100% {
    transform: rotate(-135deg) translateX(0);
    opacity: 0.5;
  }
  50% {
    transform: rotate(-135deg) translateX(6px);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   Center Circle
   -------------------------------------------------------------------------- */
.top-core-value__center {
  position: absolute;
  width: 256px;
  height: 256px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--color-blue01);
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: core-value-center-pulse 3s ease-in-out infinite;
}

@keyframes core-value-center-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
                0 0 30px 8px rgba(196, 172, 104, 0.3);
  }
}

.top-core-value__center-label {
  display: block;
  font-family: var(--font-family-en);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.05em;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.top-core-value__center-title {
  display: block;
  font-family: var(--font-family-en);
  font-weight: 700;
  font-size: 43px;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 12px;
}

.top-core-value__center-sub {
  display: block;
  font-family: var(--font-family-en);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--color-gold);
}

/* ==========================================================================
   Responsive - Top Core Value
   ========================================================================== */
@media screen and (max-width: 1200px) {
  .top-core-value__circle-border {
    width: 550px;
    height: 550px;
  }

  .top-core-value__card--top {
    top: -72px;
  }

  .top-core-value__card--left {
    left: 88px;
    bottom: 72px;
  }

  .top-core-value__card--right {
    right: 88px;
    bottom: 72px;
  }
}

@media screen and (max-width: 1024px) {
  .top-core-value {
    padding: 80px 0 120px;
    border-radius: 30px 30px 0 0;
  }

  .top-core-value__title {
    font-size: 36px;
  }

  .top-core-value__lead {
    font-size: 14px;
    margin-bottom: 128px;
  }

  .top-core-value__diagram {
    height: 450px;
  }

  .top-core-value__circle-border {
    width: 450px;
    height: 450px;
  }

  .top-core-value__center {
    width: 200px;
    height: 200px;
  }

  .top-core-value__center-label {
    font-size: 18px;
  }

  .top-core-value__center-title {
    font-size: 32px;
  }

  .top-core-value__card {
    width: 220px;
    height: 130px;
    padding: 20px 12px;
  }

  .top-core-value__card--top {
    top: -24px;
  }

  .top-core-value__card--left {
    left: calc(50% - 340px);
    bottom: 64px;
  }

  .top-core-value__card--right {
    right: calc(50% - 340px);
    bottom: 64px;
  }

  .top-core-value__card-title {
    font-size: 20px;
  }
}

@media screen and (max-width: 768px) {
  .top-core-value {
    padding: 60px 0 80px;
    border-radius: 24px 24px 0 0;
  }

  .top-core-value__title {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 24px;
  }

  .top-core-value__lead {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 48px;
  }

  .top-core-value__lead br {
    display: none;
  }

  /* 768px: 縮小した円形レイアウトを維持 */
  .top-core-value__diagram {
    height: 400px;
  }

  .top-core-value__circle-border {
    width: 340px;
    height: 340px;
  }

  .top-core-value__center {
    width: 130px;
    height: 130px;
  }

  .top-core-value__center-label {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .top-core-value__center-title {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .top-core-value__center-sub {
    font-size: 10px;
  }

  .top-core-value__card {
    width: 170px;
    height: auto;
    min-height: 110px;
    padding: 16px 10px;
  }

  .top-core-value__card--top {
    top: 0;
  }

  .top-core-value__card--left {
    left: calc(50% - 251px);
    bottom: 40px;
  }

  .top-core-value__card--right {
    right: calc(50% - 251px);
    bottom: 40px;
  }

  .top-core-value__card-category {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .top-core-value__card-title {
    font-size: 18px;
    margin-bottom: 4px;
  }

  .top-core-value__card-desc {
    font-size: 11px;
  }

  .top-core-value__card-arrow {
    width: 28px;
    height: 28px;
  }

  .top-core-value__card-arrow--down {
    bottom: -16px;
  }

  .top-core-value__card-arrow--right {
    top: -16px;
    right: -2px;
  }

  .top-core-value__card-arrow--left {
    top: -16px;
    left: -2px;
  }
}

/* --- Mobile (480px) --- */
@media screen and (max-width: 480px) {
  .top-core-value__lead {
    margin-bottom: 40px;
  }

  /* 480px: 縦並びレイアウト */
  .top-core-value__diagram {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .top-core-value__circle-border {
    display: none;
  }

  .top-core-value__card {
    position: static;
    transform: none;
    width: 100%;
    max-width: 300px;
    height: auto;
    min-height: 130px;
    padding: 24px 16px;
  }

  .top-core-value__card--top,
  .top-core-value__card--left,
  .top-core-value__card--right {
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
  }

  .top-core-value__card-arrow {
    display: none;
  }

  .top-core-value__card--top:hover {
    transform: translateY(-8px);
  }

  .top-core-value__card-category {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .top-core-value__card-title {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .top-core-value__card-desc {
    font-size: 12px;
  }

  .top-core-value__center {
    display: none;
  }
}
