/* ============================
   About Page - りらいぶについて
============================ */

/* Description */
.about-description {
    display: flex;
    width: clamp(41.5rem, 19.118rem + 46.568vw, 75rem);
    margin: clamp(3.75rem, 3.24rem + 2.092vw, 5.75rem) auto 0 auto;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    color: #050505;
    text-align: center;
    font-family: "Noto Sans JP";
    font-size: clamp(0.875rem, 0.843rem + 0.13vw, 1rem);
    font-style: normal;
    font-weight: 400;
    line-height: 2;
}

@media (max-width: 768px) {
    .about-description {
        display: flex;
        width: clamp(19.375rem, 7.381rem + 49.206vw, 31rem);
        justify-content: center;
        flex-shrink: 0;
        color: #050505;
        text-align: left;
        font-family: "Noto Sans JP";
        font-size: clamp(0.875rem, 0.746rem + 0.529vw, 1rem);
        font-style: normal;
        font-weight: 400;
        line-height: 1.5;
    }
}

/* Card Section */
.about-cards-section {
  margin-top: clamp(3.75rem, 3.368rem + 1.569vw, 5.25rem);
}

/* Grid Layout */
.about-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0rem, -2.632rem + 10.79vw, 5.063rem) clamp(0rem, -1.316rem + 5.39vw, 2.5rem);

  max-width: 100%;
  margin: 0 auto;
}

@media screen and (max-width: 768px) {
  .about-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .about-cards-container {
    width: 79.49%;
    margin: 0 auto;
  }
}

/* Card */
.about-card {
  width: 100%;
  aspect-ratio: 780 / 600; /* アスペクト比を固定 */
  background: #FFF;
  border-radius: clamp(0.5rem, 0.402rem + 0.4vw, 1.194rem);
  border: 1px solid #B7B7B7;
  overflow: hidden;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
  position: relative;
}

@media (hover: hover) {
  .about-card:hover {
    opacity: 0.8;
  }
}

.about-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  position: relative;
}

/* Card Image - 固定比率73.08% (437px / 598px) */
.about-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 73.08%; /* 固定比率: 画像部分73.08% */
  overflow: hidden;
  background: #F5F5F5;
}

.about-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card Content - 固定比率26.92% (161px / 598px) */
.about-card-content {
  position: absolute;
  top: 73.08%; /* 画像の高さと同じ比率 */
  left: 0;
  right: 0;
  height: 26.92%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 0.857rem + 1.61vw,3.75rem);
  background: #FFF;
}

.about-card-title {
  color: #000;
  text-align: left;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(0.875rem, 0.678rem + 0.81vw, 1.25rem);
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: clamp(0.088rem, 0.068rem + 0.08vw, 0.125rem);
}

@media screen and (min-width: 769px) {
  .about-card-title {
    font-weight: 400;
  }
}

/* Arrow Icon - swiper-button-next style */
.about-card-arrow {
  display: block;
  width: clamp(1.75rem, 1.065rem + 2.81vw, 4.375rem);
  height: clamp(1.75rem, 1.065rem + 2.81vw, 4.375rem);
  flex-shrink: 0;
  position: relative;
  background-image: url('../../images/pickup-arrow-right.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* About Page Specific Spacing */
#page-about.page-top-under {
  padding-bottom: 0;
}

/* Contact Section Spacing - About Page Only */
#page-about ~ #contact {
  margin-top: clamp(7.5rem, 6.842rem + 2.7vw, 10rem);
}
