@charset "utf-8";

/* =========================================================
   Base
========================================================= */

.p-pal-company {
  color: #183128;
  background: #fafbf8;
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
}

.p-pal-company * {
  box-sizing: border-box;
}

.p-pal-company__container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.p-pal-company__breadcrumb {
  width: min(1120px, calc(100% - 48px));
  margin: 8px auto;
  font-size: 13px;
}

.p-pal-company__breadcrumb a,
.p-pal-company__text-link {
  color: #078708;
  font-weight: 700;
}

.p-pal-company__breadcrumb span {
  margin-left: 10px;
}


/* =========================================================
   Typography
========================================================= */

.p-pal-company h1,
.p-pal-company h2,
.p-pal-company h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.4;
}

.p-pal-company h1 {
  font-size: clamp(24px, 3vw, 48px);
}

.p-pal-company h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.p-pal-company p {
  line-height: 1.9;
}

.p-pal-company__eyebrow {
  margin: 0 0 12px;
  color: #078708;
  font: 700 12px/1.4 Arial, sans-serif;
  letter-spacing: .16em;
}

.p-pal-company__lead {
  font-size: 18px;
  font-weight: 700;
}


/* =========================================================
   Common Layout
========================================================= */

.p-pal-company__section {
  padding: 78px 0;
  background: #fff;
}

.p-pal-company__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 7vw, 90px);
  align-items: center;
}


/* =========================================================
   Hero
========================================================= */

.p-pal-company__hero {
  padding: 72px 0;
  background:
    linear-gradient(135deg, #eef8ebcc, #fff8f0cc),
    url(../../../images/set-course/top_slide_01_03_pc.webp) center / cover;
}

.p-pal-company__hero p {
  max-width: 650px;
}


/* =========================================================
   YUNAGISO
========================================================= */

.p-pal-company__yunagiso-mark {
  display: grid;
  min-height: 260px;
  place-content: center;
  padding: 32px;
  border-radius: 20px;
}

.p-pal-company__yunagiso-mark img {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin-inline: auto;
}


/* =========================================================
   Partnership
========================================================= */

.p-pal-company__partnership,
.p-pal-company__trust {
  background: linear-gradient(135deg, #dceee6, #f9eadc);
}

.p-pal-company__partnership-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 18px;
  margin: 34px 0 24px;
  text-align: center;
}


/* Palsystem partners */

.p-pal-company__partners {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.p-pal-company__partner {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
}

.p-pal-company__partner img {
  display: block;
  width: 100%;
  max-height: 74px;
  height: auto;
  object-fit: contain;
}


/* Partnership symbol */

.p-pal-company__partnership-diagram > b {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #078708;
  font-size: 28px;
}

/* =========================================================
   Partnership diagram - PC
========================================================= */

@media (min-width: 1025px) {

  .p-pal-company__partnership-diagram {
    display: grid;
    grid-template-columns:
      minmax(420px, 1.45fr)
      52px
      minmax(260px, .9fr)
      52px
      minmax(220px, .75fr);
    gap: 20px;
    align-items: center;
    justify-items: center;
    margin: 34px 0 24px;
    text-align: center;
  }

  /* パルシステム4生協 */
  .p-pal-company__partners {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 520px;
  }

  .p-pal-company__partner {
    min-height: 74px;
    padding: 10px 14px;
  }

  .p-pal-company__partner img {
    width: 100%;
    max-height: 54px;
    object-fit: contain;
  }

  /* × */
  .p-pal-company__partnership-diagram > b {
    width: auto;
    height: auto;
    font-size: 34px;
    line-height: 1;
  }

  /* 株式会社セレモニー */
  .p-pal-company__ceremo {
    width: 100%;
    max-width: 320px;
    padding: 18px;
  }

  .p-pal-company__ceremo img {
    width: min(100%, 260px);
  }

  /* ↓ をPCでは右向きにする */
  .p-pal-company__diagram-arrow {
    display: block;
    font-size: 32px;
    line-height: 1;
    transform: rotate(-90deg);
  }

  /* 夕凪葬 */
  .p-pal-company__yunagiso-service {
    width: 100%;
    max-width: 240px;
    padding: 10px;
  }

  .p-pal-company__yunagiso-service img {
    width: min(100%, 210px);
  }
}



/* Ceremony */

.p-pal-company__ceremo {
  display: grid;
  gap: 8px;
  width: min(100%, 360px);
  padding: 18px;
  border-radius: 12px;
}

.p-pal-company__ceremo small {
  font-size: 12px;
  font-weight: 700;
}

.p-pal-company__ceremo img {
  display: block;
  width: min(100%, 280px);
  height: auto;
  margin-inline: auto;
}


/* Arrow */

.p-pal-company__diagram-arrow {
  color: #078708;
  font-size: 28px;
  line-height: 1;
}


/* Yunagiso service */

.p-pal-company__yunagiso-service {
  display: grid;
  place-items: center;
  width: min(100%, 300px);
  padding: 16px;
}

.p-pal-company__yunagiso-service img {
  display: block;
  width: min(100%, 220px);
  height: auto;
}


/* Roles */

.p-pal-company__role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.p-pal-company__role-grid article {
  padding: 22px;
  border-radius: 14px;
  background: #fff;
}

.p-pal-company__role-grid strong {
  color: #078708;
  font-size: 18px;
}


/* =========================================================
   Origin
========================================================= */

.p-pal-company__origin {
  background: #dceee6;
}

.p-pal-company__origin-card {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(28px, 6vw, 60px);
  border-radius: 18px;
}


/* =========================================================
   Company Profile
========================================================= */

.p-pal-company__profile {
  background: #fff;
}

.p-pal-company__profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .95fr);
  gap: 28px;
  align-items: start;
  margin-top: 28px;
}

.p-pal-company__profile-copy {
  grid-column: 1 / -1;
  max-width: 720px;
}

.p-pal-company__profile-copy > :first-child {
  margin-top: 0;
}

.p-pal-company__profile-copy > :last-child {
  margin-bottom: 0;
}


/* Profile image */

.p-pal-company__profile-image {
  overflow: hidden;
  aspect-ratio: 7 / 5;
  margin: 0;
  border-radius: 18px;
  background: #f3f8f1;
}

.p-pal-company__profile-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Company facts */

.p-pal-company__facts {
  display: grid;
  gap: 12px;
}

.p-pal-company__facts article {
  padding: 18px 20px;
  border-radius: 12px;
  background: #f3f8f1;
}

.p-pal-company__facts strong {
  display: block;
  color: #078708;
  font-size: 24px;
}

.p-pal-company__facts span {
  font-size: 14px;
}


/* =========================================================
   Life Support
========================================================= */

.p-pal-company__support {
  background: #faf5eb;
}

.p-pal-company__support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.p-pal-company__support-grid article {
  overflow: hidden;
  padding: 0;
  border-radius: 16px;
  background: #fff;
}


/* Support images */

.p-pal-company__support-image {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  margin: 0;
}

.p-pal-company__support-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Support content */

.p-pal-company__support-body {
  padding: 24px;
}

.p-pal-company__support-body h3 {
  margin: 0 0 12px;
  font-size: 21px;
}

.p-pal-company__support-body p {
  margin: 0;
}


/* =========================================================
   Trust / Certification
========================================================= */

.p-pal-company__trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.p-pal-company__trust-grid article {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-radius: 14px;
  background: #fff;
}

.p-pal-company__trust-grid img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: auto;
}

.p-pal-company__trust-logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.p-pal-company__trust-grid h3 {
  font-size: 19px;
}

.p-pal-company__trust-grid p {
  margin-bottom: 0;
  font-size: 14px;
}


/* =========================================================
   Service Area
========================================================= */

.p-pal-company__area {
  background: #fff;
  text-align: center;
}

.p-pal-company__area .p-pal-company__lead {
  max-width: 620px;
  margin-inline: auto;
}

.p-pal-company__areas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 800px;
  margin: 30px auto;
}

.p-pal-company__areas span {
  padding: 18px;
  border-radius: 12px;
  background: #f3f8f1;
  color: #078708;
  font-weight: 800;
}


/* =========================================================
   CTA
========================================================= */

.p-pal-company__cta {
  padding: 72px 0;
  background: #078708;
  color: #fff;
  text-align: center;
}

.p-pal-company__cta .p-pal-company__eyebrow {
  color: #fff;
}

.p-pal-company__cta-actions {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.p-pal-company__cta-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 68px;
  padding: 12px 28px;
  border-radius: 14px;
  background: #fff;
  color: #078708;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.p-pal-company__cta-phone {
  min-width: 220px !important;
  flex-direction: column;
  background: #ef821d !important;
  color: #fff !important;
}

.p-pal-company__cta-phone strong {
  display: block;
  margin-top: 4px;
  font-size: 1.25rem;
  white-space: nowrap;
}

.p-pal-company__cta-note {
  font-size: 13px;
}


/* =========================================================
   Tablet
========================================================= */

@media (min-width: 768px) and (max-width: 1024px) {

  .p-pal-company__partners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 620px;
  }

}


/* =========================================================
   Smartphone
========================================================= */

@media (max-width: 767px) {

  .p-pal-company__container,
  .p-pal-company__breadcrumb {
    width: min(100% - 32px, 620px);
  }

  .p-pal-company__hero,
  .p-pal-company__section,
  .p-pal-company__cta {
    padding: 48px 0;
  }


  /* Common grids */

  .p-pal-company__split,
  .p-pal-company__role-grid,
  .p-pal-company__trust-grid,
  .p-pal-company__support-grid,
  .p-pal-company__profile-layout {
    grid-template-columns: 1fr;
  }


  /* Yunagiso */

  .p-pal-company__yunagiso-mark {
    min-height: 210px;
    padding: 24px;
  }


  /* Partners */

  .p-pal-company__partners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .p-pal-company__partner {
    padding: 8px;
  }

  .p-pal-company__partner img {
    max-height: 62px;
  }


  /* Profile */

  .p-pal-company__profile-copy {
    grid-column: auto;
  }


  /* Trust */

  .p-pal-company__trust-grid article {
    grid-template-columns: 120px 1fr;
  }


  /* Area */

  .p-pal-company__areas {
    grid-template-columns: repeat(2, 1fr);
  }


  /* CTA */

  .p-pal-company__cta-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .p-pal-company__cta-actions a,
  .p-pal-company__cta-phone {
    width: 100%;
    min-width: 0 !important;
    min-height: 60px;
  }

}