/* ===============================================
# company intro
=============================================== */

/* ===============================================
# page-head
=============================================== */
.c-page-mv--company {
  background-image: url(../images/company/mv.jpg);
}
.p-company-intro {
  background: #fff url(../images/company/company_bg_sky.jpg) no-repeat center /
    cover;
  width: 100%;
}

@media screen and (min-width: 768px) {
  .p-company-intro {
    padding-bottom: 0;
  }
}

.p-company-intro__content {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
  align-items: end;
  border-bottom: 3px solid rgba(51, 51, 51, 0.486);
}

@media screen and (min-width: 768px) {
  .p-company-intro__content {
    margin-top: 5rem;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
  }
}

.p-company-intro__image img {
  width: 100%;
  display: block;
}

.p-company-intro__inner .c-intro__title {
  font-size: clamp(2.9rem, 4vw, 4.2rem);
}

.p-company-intro__text {
  padding: 0 1rem;
}

@media screen and (min-width: 768px) {
  .p-company-intro__text {
    margin-bottom: 2rem;
    max-width: 40rem;
  }
}

.p-company-intro__text p {
  font-size: 1.5rem;
  line-height: 1.7;
  letter-spacing: 0.03rem;
}

@media screen and (min-width: 768px) {
  .p-company-intro__text p {
    line-height: 2;
  }
}
.p-company-intro__text p:first-child {
  margin-bottom: 1rem;
}

/* ===============================================
# intro-message
=============================================== */
.p-company-intro__message {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 1.5rem;
  margin: 3rem auto 0;
  font-size: 1.4rem;
}

@media screen and (min-width: 768px) {
  .p-company-intro__message {
    display: grid;
    max-width: 70%;
    grid-template-columns: 20% 1fr;
    gap: 3rem;
    margin: 3rem auto;
    font-size: 1.5rem;
  }
}

.p-company-intro__message-text span {
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
}
.p-company-intro__message-img img {
  border-radius: 999px;
}

/* ===============================================
# philosophy
=============================================== */

.p-company-philosophy {
  background: var(--t-blue);
  color: var(--white);
}

.p-company-philosophy__list {
  display: grid;
  gap: 1.6rem;
  max-width: 90%;
  list-style: decimal;
  padding-left: 2rem;
  margin: 0 auto;
}

.p-company-philosophy__list li {
  font-size: 1.8rem;
  line-height: 1.9;
}

/* ===============================================
# profile
=============================================== */

.p-company-profile {
  background: #fff;
}

.p-company-history {
  font-size: 1.4rem;
}

.p-company-profile__table-wrap {
  overflow-x: auto;
}

@media screen and (min-width: 768px) {
  .p-company-profile__table-wrap {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}
.p-company-profile__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  table-layout: fixed;
}

@media screen and (min-width: 768px) {
  .p-company-profile__table {
    max-width: 80rem;
    margin: 0 auto;
  }
}
.p-company-profile__table tr:nth-child(odd) {
  background: #eeeeee;
}

.p-company-profile__table th,
.p-company-profile__table td {
  padding: 1.6rem;
  text-align: left;
  line-height: 1.6;
  letter-spacing: 0.05rem;
  font-size: 1.4rem;
}

@media screen and (min-width: 768px) {
  .p-company-profile__table th,
  .p-company-profile__table td {
    font-size: 1.6rem;
  }
}
.p-company-profile__table th {
  width: 30%;
  font-weight: 700;
  white-space: nowrap;
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-character;
  font-size: 1.4rem;
}

@media screen and (min-width: 768px) {
  .p-company-profile__table th {
    font-size: 1.6rem;
    width: 20%;
  }
}

/* map */
.p-company-profile__map {
  aspect-ratio: 4 / 3;
}

.p-company-profile__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media screen and (min-width: 768px) {
  .p-company-profile__map {
    aspect-ratio: 16 / 9;
    max-width: 70rem;
    margin: 0 auto;
  }
}
/* ===============================================
# history
=============================================== */

.p-company-history {
  margin-top: 5rem;
  font-size: 1.5rem;
}

@media screen and (min-width: 768px) {
  .p-company-history {
    max-width: 80rem;
    margin: 5rem auto 0;
  }
}

.p-company-history__title {
  font-size: 3rem;
  font-weight: normal;
  margin-bottom: 2.4rem;
  color: rgba(3, 88, 167, 0.497);
  opacity: 0.8;
  font-family: serif;
}

.p-company-history__list {
  position: relative;
  display: grid;
  gap: 0;
}

/* 真ん中の1本線 */
@media screen and (min-width: 768px) {
  .p-company-history__list::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28rem;
    width: 1px;
    height: 100%;
    background: #d6d6d6;
  }
}

.p-company-history__row {
  padding: 2.4rem 0;
}

.p-company-history__row dt {
  position: relative;
  font-weight: 500;
  padding-left: 3.6rem;
  margin-bottom: 0.8rem;
}

/* 左の横線（SP用） */
.p-company-history__row dt::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 3rem;
  height: 1px;
  background: #333;
  transform: translateY(-50%);
}

.p-company-history__row dd {
  margin: 0;
  padding-left: 3.6rem;
  line-height: 1.8;
  color: #555;
}

@media screen and (min-width: 768px) {
  .p-company-history__row {
    display: grid;
    grid-template-columns: 30rem 1fr;
    column-gap: 5rem;
    align-items: start;
  }

  .p-company-history__row dt {
    padding-left: 3rem;
    padding-right: 2rem;
    margin-bottom: 0;
    text-align: left;
  }

  .p-company-history__row dt::before {
    content: none;
  }

  .p-company-history__row dd {
    padding-left: 0;
  }
}
/* ===============================================
# community
=============================================== */

.p-company-community {
  background: #dceaf5;
}

.p-company-community__lead {
  margin-bottom: 3rem;
}

.p-company-community__lead span {
  font-family: serif;
}

.p-company-community__lead p:first-child {
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  margin-bottom: 1rem;
}

.p-company-community__lead p:last-child {
  font-size: 1.5rem;
  line-height: 1.9;
}

.p-company-community__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.p-company-community__grid > * {
  min-width: 0;
}

.p-company-community__card {
  background: var(--white);
  padding: 1.2rem;
}

.p-company-community__image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.p-company-community__caption {
  margin-top: 1rem;
  font-size: 1.3rem;
  line-height: 1.6;
}

@media screen and (min-width: 768px) {
  .p-company-community__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }

  .p-company-community__card {
    padding: 1.6rem;
  }

  .p-company-community__caption {
    font-size: 1.4rem;
  }
}

/* ===============================================
# awards
=============================================== */

.p-company-awards {
  background: #fff;
}

.p-company-awards__lead {
  margin-bottom: 3rem;
}

.p-company-awards__lead p {
  font-size: 1.5rem;
  line-height: 1.9;
}

.p-company-awards__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  margin-bottom: 3rem;
}

@media screen and (min-width: 768px) {
  .p-company-awards__gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
  }
}

.p-company-awards__image img {
  width: 100%;
  display: block;
  border: 1px solid #ddd;
}
.p-company-award__link {
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.25);
  text-underline-offset: 0.15em;
  transition: opacity 0.3s ease;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.p-company-award__link:after {
  content: "\f35d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.2rem;
  color: rgba(3, 88, 167, 0.45);
}

/* ===============================================
# leaders
=============================================== */

.p-company-leaders__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.p-company-leaders__list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem 1rem;
}

@media screen and (min-width: 768px) {
  .p-company-leaders__list {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
  }
}

.p-company-leaders__item {
  text-align: center;
}

.p-company-leaders__image {
  width: 9rem;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 999px;
  margin: 0 auto 0.5rem;
}

.p-company-leaders__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-company-leaders__name {
  font-size: 1.4rem;
  line-height: 1.6;
}
.p-company-leaders > .l-container {
  margin-bottom: 5rem;
}

/* ===============================================
# pc
=============================================== */

@media screen and (min-width: 768px) {
  /* .p-company-leaders {
    margin-top: 10rem;
  } */

  .p-company-leaders__image {
    width: 15rem;
    height: 18rem;
  }
  .p-company-leaders__item:first-child img {
    object-fit: cover;
    object-position: center 20%;
  }
}

/* ===============================================
# p-company-youthyell
=============================================== */
.p-company-youthyell__inner {
  display: flex;
  flex-direction: column-reverse;
  gap: 3rem;
  margin: 5rem 0 0;
}

.p-company-youthyell__item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.p-company-youthyell__item img {
  display: block;
  width: 100%;
  height: auto;
}

.p-company-youthyell__item a {
  flex: 1;
}

.p-company-youthyell__text h3 {
  margin-bottom: 1rem;
  color: var(--t-blue);
  font-size: 2.4rem;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .p-company-youthyell__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 5rem;
  }

  .p-company-youthyell__item {
    width: 45%;
  }

  .p-company-youthyell__text {
    flex: 1;
  }

  .p-company-youthyell__text h3 {
    text-align: left;
  }
}
