/* アニメーション前のちらつき防止 */
.record-hero__title,
.record-hero__content {
  visibility: hidden;
}

/* ===================================
   RECORD PAGE STYLES
   =================================== */

  .br-pc{
    display: block;
  }
  .br-sp {
    display: none;
  }

@media (max-width: 750px) {
  .br-pc{
    display: none;
  }
  .br-sp {
    display: block;
  }
}

/* ===================================
   Common Text Styles
   =================================== */
.record-stats__heading,
.record-services__title {
  color: var(--color-dark);
  text-align: center;
  font-family: var(--font-main);
  font-size: 3.5em;
  font-style: normal;
  font-weight: 500;
  line-height: 0.81;
  letter-spacing: 0.16rem;
}

.record-stats__heading{
  padding-bottom: 0.5em;
}

.record-stats__description,
.record-services__description {
  color: var(--color-dark);
  text-align: center;
  font-family: var(--font-strong);
  font-size: 1.3em;
  font-style: normal;
  font-weight: 500;
  line-height: 1.69;
  letter-spacing: 0.065rem;
}

.record-stats__description--approval{
  max-width: 22em;
  width: 100%;
}
@media (max-width: 1030px) {
  .record-stats__description--approval{
    max-width: 16em;
  }
}
@media (max-width: 750px) {
  .record-stats__description--approval{
    max-width: 18rem;
  }
}

/* Common card background */
.record-stats__item,
.record-services__item {
  background: linear-gradient(179deg, #EEE9E5 24.08%, rgba(238, 233, 229, 0.50) 52.55%, #9BB2BE 94.81%), #F8F4F1;
}

@media (max-width: 1024px) {
  .record-stats__description,
  .record-services__description {
    font-size: 1.6em;
  }
}

@media (max-width: 750px) {
  .record-stats__heading,
  .record-services__title {
    font-size: 1.8rem;
    line-height: 0.8;
    letter-spacing: 0.09rem;
  }

  .record-stats__heading{
    padding-bottom: 1rem;
  }


  .record-stats__description,
  .record-services__description {
    font-size: 1.2rem;
    line-height: 1.5;
    letter-spacing: 0.06rem;
  }
}

/* ===================================
   LOGO
=================================== */

.record-clients__logo img{
  height: auto;
  width: 100%;
  object-fit: cover;
}

.record-clients__logo-1{
  /* max-width: 19.2em; */
  width: 78%;
  aspect-ratio: 12/1;
  margin-bottom: 5.8em;
}
.record-clients__logo-2{
  /* max-width: 17em; */
  width: 69%;
  margin-bottom: 3.19em;
  aspect-ratio: 170.45/36.89;
}
.record-clients__logo-3{
  /* max-width: 11.2em; */
  width: 46%;
  aspect-ratio: 112.12/46.12;
  margin-right: 2em;
}
.record-clients__logo-4{
  /* max-width: 19.2rem; */
  width: 26%;
  aspect-ratio: 12/1;
}
.record-clients__logo-5{
  /* max-width: 20.99rem; */
  width: 29%;
  aspect-ratio: 210.00/45.45;
}
.record-clients__logo-6{
  /* max-width: 13.81rem; */
  width: 19%;
  aspect-ratio: 138.13/56.82;
}

@media (max-width: 750px) {
  .record-clients__logo-1{
    max-width: none;
    aspect-ratio: 121/10;
    margin-bottom: 3.1rem;
    width: 88%;
  }
  .record-clients__logo-2{
    max-width: none;
    aspect-ratio: 95.01/20.56;
    margin-bottom: 2.21rem;
    width: 69%;
  }
  .record-clients__logo-3{
    max-width: none;
    aspect-ratio: 62.49/25.71;
    margin-right: 1rem;
    width: 46%;
  }
  .record-clients__logo-4{
    max-width: none;
    aspect-ratio: 12/1;
    margin-top: 2.2rem;
    margin-bottom: 3.5rem;
    width: 58%;
  }
  .record-clients__logo-5{
    max-width: none;
    aspect-ratio: 160.25/34.68;
    margin-bottom: 2.27rem;
    width: 48%;
  }
  .record-clients__logo-6{
    max-width: none;
    aspect-ratio: 105.41/43.36;
    width: 32%;
  }
}


/* ===================================
   Hero Section
   =================================== */
.record-hero {
  padding: 9rem 8% 12rem;
  background-image: url(../images/pc/record/bg1.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.record-hero__title {
  color: var(--color-light);
  text-align: center;
  font-family: var(--font-main);
  font-size: 10rem;
  font-style: normal;
  font-weight: 400;
  line-height: 0.5;
  padding: 6rem 0;
}

.record-hero__content {
  font-size: 0.694444vw !important;
  /* font-size: max(8px, 0.694444vw) !important; */
  display: flex;
  flex-direction: column;
  gap: 1.67em;

}

@media (max-width: 750px) {
  .record-hero {
    padding: 0  3rem 5.4rem;
    background-image: url(../images/sp/record/bg1.webp);
  }
  .record-hero__title {
    font-size: 4.8rem;
    line-height: 1.04;
  }
}

/* ===================================
   Stats Section - GRID LAYOUT
   =================================== */
.record-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.61em;
}

.record-stats__left {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.51em;
}

.record-stats__left-1{
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.5em;
}

/* Individual card styles */
.record-stats__item--flights,
.record-stats__item--availability {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2em;
  padding: 2.6em 2.9em 3.7em;
}

.record-stats__item--agent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.record-stats__item--agent .record-stats__description{
  margin-top: 2em;
  margin-bottom: 4.2em;
}

.record-stats__item--approval {
  position: relative;
}

.record-stats__item--approval .record-stats__description{
  margin-top: 2em;
  text-align: start;
}
.record-clients__map{
  position: absolute;
  bottom: 4.7em;
  right: 10.3em;
}
.record-clients__map img{
  width: 100%;
  max-width: 42em;
  height: auto;
  object-fit: cover;
}

.record-stats__approval-content {
  display: flex;
  flex-direction: column;
  align-items: start;
  width: fit-content;
  margin: 11em 0 0 3.6em;
}

/* Number circle with gradient border */
.record-stats__number {
  position: relative;
  width: 3.1em;
  height: 3.1em;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  font-family: var(--font-main);
  font-size: 5em;
  font-style: normal;
  font-weight: 400;
  line-height: 0.76;
}

.record-stats__number-1{
  flex-direction: column;
}

.record-stats__value {
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
}

.record-stats__plus {
  position: absolute;
  bottom: 0.7em;
  left: 50%;
  transform: translateX(-50%);
}

/* Gradient border using pseudo-element */
.record-stats__number::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(263deg, #EEE9E5 -3.07%, #477C98 52.53%, #002246 64.44%);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.record-stats__plus {
  color: var(--color-dark);
  font-family: var(--font-main);
  text-align: center;
  font-size: 0.64em;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
}

/* Logos */
.record-stats__logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.record-stats__logo {
  margin: 0;
}

/* Divider SVG */
.record-stats__divider {
  width: 100%;
}
.record-stats__divider-2{
  max-width: 28em;
}
/* ===================================
   Services Section - GRID LAYOUT
   =================================== */
.record-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.61em;
}

.record-services__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2em;
  padding: 9.4em 3em 8.3em;
}

.record-services__divider {
  width: 100%;
  max-width: 46em;
}

/* ===================================
   Mobile Responsive - Stats & Services
   =================================== */
@media (max-width: 750px) {
  .record-hero {
    padding: 0 2rem 6rem;
  }

  .record-hero__title {
    font-size: 5rem;
    padding: 6rem 0;
  }

  .record-hero__content {
    font-size: 10px !important;
    gap: 0.83rem;
  }

  /* Stats Section - Single column on mobile */
  .record-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.84rem;
  }
  .record-stats__left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    gap: 0.83rem;
  }

  .record-stats__left-1{
    gap: 0.83rem;
  }

  .record-stats__item--flights,
  .record-stats__item--availability {
    gap: 0.4rem;
    padding: 1.3rem;
  }

  .record-stats__plus {
    font-size: 1.45rem;
    line-height: 1.19;
  }

  .record-stats__item--approval {
    padding: 2.8rem 2.1rem 2.6rem;
    width: 100%;
    aspect-ratio: 1/1;
  }
  
  .record-stats__approval-content {
    margin: 2.8rem 0 0 2.1rem;
  }
  .record-clients__map{
    position: absolute;
    bottom: 2.6rem;
    right: 2.1rem;
  }
  .record-clients__map img{
    max-width: 26.1rem;
  }

  .record-stats__number {
    width: 7rem;
    height: 7rem;
    font-size: 2.2rem;
  }
  .record-stats__logos {
    gap: 1rem;
  }


  /* Divider SVG */
  .record-stats__divider {
    max-width: 13.68rem;
  }

  /* Services Section - Single column on mobile */
  .record-services {
    display: flex;
    flex-direction: column;
    gap: 0.83rem;
  }

  .record-services__item {
    gap: 1.1rem;
    padding: 3.4rem 2.8rem;
  }
 
 .record-stats__item--agent{
    padding: 5.3rem 2rem 4.4rem;
  }

  .record-stats__item--agent .record-stats__description{
    margin-top: 1.2rem;
    margin-bottom: 2.1rem;
  }
  .record-stats__item--approval .record-stats__description{
    margin-top: 1rem;
    text-align: start;
  }

  .record-services__divider {
    max-width: 25.6rem;
  }


}


/* ===================================
   Clients & Partners Section
   =================================== */
.record-clients {
  padding: 6rem 0 11.4rem;
  background-image: url(../images/pc/record/bg2.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.record-clients__title {
  color: var(--color-light);
  font-family: var(--font-main);
  font-size: 8rem;
  font-style: normal;
  font-weight: 400;
  line-height: 0.9;
  padding: 6rem 0;
}

.record-clients__content {
  margin: 0 auto;
  width: 75%;
  background-color: var(--color-bg);
  padding: 9rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 9rem;
}

.record-clients__category {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.record-clients__heading {
  text-align: center;
  color: var(--color-dark);
  font-family: var(--font-strong);
  font-size: 2.2rem;
  font-style: normal;
  font-weight: 500;
  line-height: 0.9;
}

.record-clients__subheading {
  color: var(--color-dark);
  font-family: var(--font-strong);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.07rem;
  text-align: center;
}

.record-clients__divider {
  width: 100%;
}

/* Logos grid */
.record-clients__logos {
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.record-clients__list {
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
  color: var(--color-dark);
  font-family: var(--font-strong);
  font-size: 1.4rem;
  text-align: center;
  font-style: normal;
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.07rem;
}

.record-clients__list .client-name {
  display: inline-block;
  margin-right: 2em;
}

.record-clients__list .client-name:last-child {
  margin-right: 0;
}



.record-clients__subcategories {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.record-clients__subcategory {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ===================================
   Mobile Responsive - Clients
   =================================== */
@media (max-width: 750px) {
  .record-clients {
    padding: 6rem 0 8.93rem;
    background-image: url(../images/sp/record/bg2.webp);
  }


  .record-clients__title {
    font-size: 4rem;
    line-height: 1.25;
    padding: 0;
    margin: 0;
  }

  .record-clients__content {
    width: 89%;
    padding: 6rem 2.5rem;
    gap: 5.3rem;
    margin-top: 6rem;
  }
  .record-clients__category {
    gap: 1rem;
  }
  .record-clients__heading {
    font-size: 1.8rem;
    line-height: 1.11;
  }
  .record-clients__subheading {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.08rem;
    line-height: 1.25;
  }
  .record-clients__subheading-1{
    margin-top: 1.9rem;
  }
  /* Logos grid */
  .record-clients__logos {
    max-width: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
  }
  .record-clients__list {
    max-width: none;
  }

}