@layer custom {

  .page-section {
    padding-block: 46px;
  }
  @media (min-width: 768px) {
    .page-section {
      padding-block: 100px;
    }
  }

  .page-profile .table .licence {
    display: flex;
    flex-direction: column;
  }
  .page-profile .table .tel {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1em;
  }
  .page-profile .table .main-properties .list {
    display: flex;
    flex-wrap: wrap;
  }
  .page-profile .table .features .list .item {
    display: inline;
  }
  @media (min-width: 341px) {
    .page-profile .table .features .list {
      display: flex;
      flex-wrap: wrap;
    }
  }
  .page-profile .table .features .list .item::after,
  .page-profile .table .main-properties .list .item::after {
    content: "、";
  }
  .page-profile .table .features .list .item:last-child::after,
  .page-profile .table .main-properties .list .item:last-child::after {
    content: "";
  }
  .page-profile .table .access {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 0 0.5em;
  }
  @media (min-width: 768px) {
    .page-profile .table .access {
      flex-direction: row;
      align-items: center;
    }
  }
  .aboutus-access-link,
  .aboutus-features-link {
    font-size: 0.84375rem;
    min-width: 225px;
    margin-top: 1rem;
    align-self: flex-start;
  }
  @media (min-width: 768px) {
    .aboutus-access-link {
      margin-top: 0;
    }
  }

  .page-philosophy {
    position: relative;
    overflow: hidden;
    padding-block: 60px;
    background: 
    linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
    linear-gradient(171deg, rgba(241, 245, 249, 0.00) 8.19%, rgba(241, 245, 249, 0.00) 71.3%, #FFF 71.31%, #FFF 93.87%), 
    url("../image/bg-aboutus.jpg") center 140% / 140% no-repeat;
  }
  @media (min-width: 768px) {
    .page-philosophy {
      background: 
      linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
      linear-gradient(171deg, rgba(241, 245, 249, 0.00) 8.19%, rgba(241, 245, 249, 0.00) 71.3%, #FFF 71.31%, #FFF 93.87%), 
      url("../image/bg-aboutus.jpg") center clamp(-43.125rem, -3.125rem + -62.5vw, -33.125rem) / 330% no-repeat;
    }
  }
  @media (min-width: 1024px) {
    .page-philosophy {
      background: 
      linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
      linear-gradient(171deg, rgba(241, 245, 249, 0.00) 8.19%, rgba(241, 245, 249, 0.00) 71.3%, #FFF 71.31%, #FFF 93.87%), 
      url("../image/bg-aboutus.jpg") center clamp(-38.75rem, 4.6528rem + -43.4028vw, -23.125rem) / 170% no-repeat;
    }
  }
  @media (min-width: 1150px) {
    .page-philosophy {
      display: grid;
      grid-template-columns: auto 1fr;
      grid-template-areas:
        "heading message"
        "cards cards";
      gap: 60px;
      padding-block: 100px;
      align-items: start;
    }
  }
  @media (min-width: 1600px) {
    .page-philosophy {
      background: 
      linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
      linear-gradient(171deg, rgba(241, 245, 249, 0.00) 8.19%, rgba(241, 245, 249, 0.00) 71.3%, #FFF 71.31%, #FFF 93.87%), 
      url("../image/bg-aboutus.jpg") center clamp(-39.375rem, 1.875rem + -34.375vw, -32.5rem) / 140% no-repeat;
    }
  }

  .page-philosophy-heading {
    grid-area: heading;
  }

  .page-philosophy-message {
    display: flex;
    flex-direction: column;
    gap: 16px;
    grid-area: message;
  }
  @media (min-width: 768px) {
    .page-philosophy-message {
      gap: 24px;
      margin-left: clamp(0rem, -66.3462rem + 92.3077vw, 7.5rem);
    }
  }

  .page-philosophy-catch {
    font-size: clamp(1.5rem, -1.5rem + 6.25vw, 2.5rem);
    color: var(--red-01);
    font-weight: 500;
    line-height: 1;
    margin: 0;
  }

  .page-philosophy-text {
    font-size: 16px;
    line-height: 1.6;
    color: #1f2937;
    margin: 0;
  }

  .page-philosophy-cards {
    display: grid;
    gap: 24px;
    margin-top: 40px;
    grid-area: cards;
  }
  @media (min-width: 768px) {
    .page-philosophy-cards {
      gap: 60px;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (min-width: 1024px) {
    .page-philosophy-cards {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  .page-philosophy-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
  }
  @media (min-width: 768px) {
    .page-philosophy-card:last-child {
      grid-column: span 2;
      width: 50%;
      justify-self: center;
    }
  }
  @media (min-width: 1024px) {
    .page-philosophy-card:last-child {
      width: auto;
      grid-column: auto;
    }
  }

  .page-philosophy-card-image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    max-height: 260px;
  }

  .page-philosophy-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .page-philosophy-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  @media (min-width: 768px) {
    .page-philosophy-card-body {
      padding: 30px;
    }
  }

  .page-philosophy-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--red-01);
    margin: 0;
    line-height: 1.4;
  }
  @media (min-width: 768px) {
    .page-philosophy-card-title {
      font-size: 24px;
    }
  }

  .page-philosophy-card-text {
    font-size: 16px;
    line-height: 1.6;
    color: #324055;
    margin: 0;
  }
  
  .aboutus-banner-inner {
    border-radius: 8px;
    overflow: hidden;
  }
  .aboutus-banner-inner:hover {
    opacity: 0.8;
  }
  

  @media (min-width: 768px) {
    .page-profile .page-contents {
      overflow: hidden;
      padding: 0;
      border-radius: 10px;
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.10);
    }

    .page-profile .table {
      grid-template-columns: 260px 1fr;
    }

    .page-profile .table .title {
      padding-inline: var(--p-xl);
      background: #F8F8F8;
      display: grid;
      align-items: center;
    }

    .page-profile .table .description {
      padding-inline: var(--p-xl);
    }
  }

  .page-aboutus-banner {
    padding: 0;
    max-width: var(--max-width);
    margin-inline: auto;
  }

  .page-map {
    padding-top: 0;
  }
  .map-description {
    margin-top: 1rem;
  }


  @media (min-width: 768px) {
    .page-profile {
      gap: 40px;
    }
  }

  .aboutus-image-wrapper {
    display: flex;
    gap: 20px;
    flex-direction: column;
  }
  @media (min-width: 768px) {
    .aboutus-image-wrapper {
      flex-direction: row;
      gap: 60px;
    }
  }

  .aboutus-image-caption {
    display: block;
    margin-top: 10px;
  }

}
