/* ============================================================
   about.css
   ABOUTページ固有スタイル
   ============================================================ */

/* --- Page header (banner) ------------------------------------*/
.p-page-header {
  line-height: 0;
}

.p-page-header__bg {
  width: 90%;
  height: auto;
  aspect-ratio: 1920 / 470;
  object-fit: cover;
  margin: 48px auto;
  border-radius: 40px;
}

/* --- Section heading (ABOUT / HISTORY) -------------------------*/
.p-about-heading {
  position: relative;
  /* padding: 56px 0 40px; */
  text-align: center;
}

.p-about-heading__bg {
  position: absolute;
  top: -190px;
  left: 0;
  width: 69%;
  height: 281px;
  background-color: #CCCCCC;
  z-index: -1;
}

.p-about-heading--history {
  margin-top: 340px;
}

.p-about-heading--history .p-about-heading__bg {
  top: -190px;
  left: auto;
  right: 0;
  width: 69%;
  height: 281px;
  background-color: #CCCCCC;
  z-index: -1;
}

.p-about-heading .c-heading-block__en {
  position: relative;
  z-index: 1;
  font-family: var(--font-en);
  font-size: 148px;
  font-weight: 600;
  letter-spacing: -4px;
  color: var(--c-navy);
  line-height: 1;
}

.p-about-heading .c-heading-block__ja {
  margin-top: 10px;
  font-size: 57px;
  font-weight: bold;
  color: var(--c-brown);
  letter-spacing: 3px;
}

.p-about-heading__tag {
  display: inline-block;
  padding: 0px 10px;
  background-color: var(--c-green);
  color: #fff;
  font-weight: bold;
  font-size: 30px;
  letter-spacing: 3px;
  margin-top: 10px;
}

/* --- MESSAGE ----------------------------------------------------*/
.p-about-message__label {
  display: block;
  width: fit-content;
  margin: 0 auto 40px;
  padding: 0px 10px;
  background-color: var(--c-green);
  color: #fff;
  font-weight: bold;
  font-size: 30px;
  letter-spacing: 3px;
}

.p-about-message__main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 80%;
  margin: 0 auto;
}

.p-about-message__text p {
  margin-bottom: 24px;
  line-height: 1.9;
}

.p-about-message__text p:last-child {
  margin-bottom: 0;
}

.p-about-message__img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
}

/* --- PHILOSOPHY ---------------------------------------------------*/
.p-about-philosophy__title {
  text-align: center;
  font-size: 57px;
  font-weight: bold;
  color: var(--c-brown);
  margin-bottom: 80px;
}

.p-about-philosophy__list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 40px;
  align-items: start;
  width: fit-content;
  margin: 0 auto;
}

.p-about-philosophy__item {
  display: contents;
}

.p-about-philosophy__label {
  padding: 0px 10px;
  background-color: #F2B02C;
  color: var(--c-navy);
  font-weight: bold;
  line-height: 1.5;
  white-space: nowrap;
  width: fit-content;
  font-size: 24px;
}

.p-about-philosophy__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}

.p-about-philosophy__text li {
  position: relative;
  padding-left: 26px;
  line-height: 1.7;
  white-space: nowrap;
}

.p-about-philosophy__text li::before {
  content: "■";
  position: absolute;
  left: 0;
  top: 50%;
  color: var(--c-green);
  transform: translateY(-50%);
}

/* --- COMPANY ------------------------------------------------------*/
.p-about-company__title {
  text-align: center;
  font-size: 57px;
  font-weight: bold;
  color: var(--c-brown);
  margin-bottom: 80px;
}

.p-about-company__table {
  width: 50%;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 20px 0;
  font-size: 20px;
}

.p-about-company__table th,
.p-about-company__table td {
  padding: 32px 16px 8px;
  text-align: left;
  font-weight: normal;
}

.p-about-company__table th {
  width: 270px;
  text-align: center;
  font-weight: bold;
  color: var(--c-navy);
  white-space: nowrap;
  border-bottom: 3px solid var(--c-navy);
}

.p-about-company__table td {
  border-bottom: 2px solid #c9c9c9;
}

/* --- HISTORY ------------------------------------------------------*/
.p-about-history__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 100px;
  width: fit-content;
  margin: 0 auto;
}

.p-about-history__list::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 130.1px;
  width: 1.8px;
  background-color: var(--c-green);
}

.p-about-history__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
}

.p-about-history__year {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 600;
  color: var(--c-navy);
  width: 90px;
  flex-shrink: 0;
  text-align: end;
  line-height: 1;
}

.p-about-history__item:first-child .p-about-history__year,
.p-about-history__item:last-child .p-about-history__year {
  font-size: 48px;
}

.p-about-history__text {
  position: relative;
  padding-left: 34px;
  line-height: 1.6;
  font-size: 24px;
  font-weight: 600;
}

.p-about-history__item:first-child .p-about-history__text,
.p-about-history__item:last-child .p-about-history__text {
  font-size: 30px;
}

.p-about-history__text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 18px;
  background-color: var(--c-green);
  transform: translateY(-50%);
}

.p-about-history__text::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  width: 30px;
  height: 30px;
  background-color: rgba(26, 151, 89, 0.2);
  transform: translateY(-50%);
  z-index: -1;
}

/* --- Responsive ----------------------------------------------------*/
@media (max-width: 768px) {
  .p-page-header__bg {
    aspect-ratio: 375 / 220;
  }

  .p-about-heading {
    padding: 32px 0 24px;
  }

  .p-about-heading__bg {
    width: 70%;
    height: 64px;
  }

  .p-about-heading .c-heading-block__en {
    font-size: 60px;
  }

  .p-about-heading .c-heading-block__ja {
    font-size: 20px;
  }

  .p-about-message__main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .p-about-message__img {
    order: -1;
  }

  .p-about-philosophy__list {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }

  .p-about-philosophy__text {
    padding-top: 0;
  }

  .p-about-philosophy__text li {
    white-space: normal;
  }

  .p-about-company__table th,
  .p-about-company__table td {
    display: block;
    width: 100%;
    padding: 8px 0;
  }

  .p-about-company__table th {
    border-bottom: none;
    padding-bottom: 0;
  }

  .p-about-history__list {
    gap: 48px;
  }

  .p-about-history__list::before {
    left: 80.1px;
  }

  .p-about-history__item {
    gap: 16px;
  }

  .p-about-history__year {
    font-size: 22px;
    width: 60px;
  }

  .p-about-history__item:first-child .p-about-history__year,
  .p-about-history__item:last-child .p-about-history__year {
    font-size: 30px;
  }

  .p-about-history__text {
    font-size: 16px;
  }

  .p-about-history__item:first-child .p-about-history__text,
  .p-about-history__item:last-child .p-about-history__text {
    font-size: 20px;
  }

}