/* intro */
.p-post-intro {
  display: grid;
  gap: 32px;
  justify-items: center;
  margin-top: clamp(64px, 49.9155px + 3.7559vw, 104px);
}

.p-post-intro__title {
  color: var(--color-brand);
  text-align: center;
}

.p-post-intro__text {
  display: grid;
  gap: 2.2em;
  line-height: var(--lh-lead);

  @media (width >= 768px) {
    gap: 1.8em;
    line-height: var(--lh-base);
    text-align: center;
  }
}
/* /intro */

/* staff-card */
.p-staff__slider {
  --inset: max(32px, (100% - var(--content-width)) / 2);

  margin-top: 48px;
}

.p-staff__track {
  position: relative;
  display: flex;
  gap: clamp(16px, 11.775px + 1.127vw, 40px);
  padding: 16px var(--inset);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--inset);
  scrollbar-width: none;

  &::-webkit-scrollbar {
    display: none;
  }

  @media (width >= 768px) {
    clip-path: inset(-24px -100vw -24px calc(var(--inset) - 24px));
  }
}

.p-staff__track > li {
  flex: 0 0 clamp(311px, 262.06px + 13.05vw, 450px);
  scroll-snap-align: start;
}

.p-staff__card {
  display: block;
  height: 100%;
  padding: clamp(24px, 21.183px + 0.751vw, 40px);
  background-color: var(--color-white);
  border-radius: 24px;
  box-shadow: 0 0 16px rgb(0 104 183 / 0.08);
}

.p-staff__photo {
  position: relative;
  container-type: inline-size;
  overflow: hidden;
  border-radius: 16px;

  & img {
    width: 100%;
    aspect-ratio: 370 / 290;
    object-fit: cover;
    object-position: bottom;
  }
}

.p-staff__catch {
  position: absolute;
  top: clamp(16px, 15.296px + 0.1878vw, 16px);
  right: clamp(18px, 17.648px + 0.0939vw, 20px);
  display: flex;
  flex-direction: row-reverse;
  gap: clamp(6px, 4.944px + 0.2817vw, 9px);
  align-items: flex-start;
  font-family: var(--font-heading);
  --catch-len: 10;

  font-size: min(clamp(19px, 16.887px + 0.5634vw, 25px), (100cqi * 290 / 370 - 42px) / (var(--catch-len) * 1.1));
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--color-brand);

  & span {
    padding: 4px 4px 6px;
    writing-mode: vertical-rl;
    background-color: var(--color-white);
  }
}

.p-staff__en {
  margin-top: clamp(20px, 15.775px + 1.127vw, 32px);
  font-family: var(--font-en);
  font-size: clamp(12px, 10.944px + 0.2817vw, 15px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--color-brand);
}

.p-staff__name {
  margin-top: clamp(8px, 5.183px + 0.751vw, 16px);
  font-family: var(--font-heading);
  font-size: clamp(22px, 19.887px + 0.5634vw, 28px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  color: var(--color-brand);

  & span {
    margin-left: 0.4em;
    color: var(--color-text);
  }
}

.p-staff__text {
  margin-top: clamp(20px, 15.775px + 1.127vw, 32px);
  font-size: clamp(14px, 13.296px + 0.1878vw, 16px);
  line-height: var(--lh-base);
}

.p-staff__controls,
.p-voice__controls {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
  margin-top: clamp(24px, 15.549px + 2.254vw, 48px);
}

.p-staff__dots,
.p-voice__dots {
  display: flex;
  gap: 24px;
  margin-right: clamp(8px, -0.451px + 2.254vw, 32px);

  & button {
    width: 10px;
    height: 10px;
    background-color: var(--color-blue-01);
    border-radius: 50%;

    &[aria-current="true"] {
      background-color: var(--color-brand);
    }
  }
}

.p-staff__arrow,
.p-voice__arrow {
  display: grid;
  place-items: center;
  width: clamp(54px, 48.718px + 1.408vw, 69px);
  aspect-ratio: 1;
  color: var(--color-brand);
  background-color: var(--color-white);
  border-radius: 50%;

  &.p-staff__arrow--prev .c-arrow,
  &.p-voice__arrow--prev .c-arrow {
    rotate: 180deg;
  }

  &:disabled {
    opacity: 0.5;
    cursor: default;
  }

  @media (any-hover: hover) {
    &:not(:disabled):hover {
      color: var(--color-white);
      background-color: var(--color-brand);
    }
  }
}

.p-staff__slider--stack {
  @media (width < 768px) {
    margin-top: 24px;

    & .p-staff__track {
      display: grid;
      gap: 24px;
      padding-block: 16px 0;
      overflow: visible;

      & > [aria-hidden="true"] {
        display: none;
      }
    }

    & .p-staff__controls {
      display: none;
    }
  }
}
/* /staff-card */

/* voice-card */
.p-voice__slider {
  --inset: max(32px, (100% - var(--content-width)) / 2);

  margin-top: 48px;
}

.p-voice__track {
  display: flex;
  gap: clamp(16px, 10.3662px + 1.5023vw, 32px);
  padding: 16px var(--inset);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--inset);
  scrollbar-width: none;

  &::-webkit-scrollbar {
    display: none;
  }

  @media (width >= 768px) {
    clip-path: inset(-24px -100vw -24px calc(var(--inset) - 24px));
  }

  & > li {
    display: flex;
    flex: 0 0 clamp(311px, 285.2958px + 6.8545vw, 384px);
    scroll-snap-align: start;
  }
}

.p-voice__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: clamp(24px, 18.3662px + 1.5023vw, 40px);
  background-color: var(--color-white);
  border-radius: 24px;
  box-shadow: 0 0 12px rgb(0 104 183 / 0.08);
}

.p-voice__photo {
  overflow: hidden;
  border-radius: 16px;

  & img {
    width: 100%;
    aspect-ratio: 304 / 190;
    object-fit: cover;
  }
}

.p-voice__title {
  margin-top: 24px;
  font-size: clamp(18px, 17.2958px + 0.1878vw, 20px);
  font-weight: 700;
  line-height: var(--lh-base);
}

.p-voice__text {
  margin-top: 24px;
  font-size: clamp(14px, 13.6479px + 0.0939vw, 15px);
  line-height: var(--lh-base);
}

.p-voice__name {
  margin-top: auto;
  padding-top: 24px;
  font-size: clamp(15px, 14.6479px + 0.0939vw, 16px);
  font-weight: 700;
  line-height: var(--lh-base);
  color: var(--color-brand);
}

.p-post-list__grid > li {
  display: flex;
}
/* /voice-card */

/* list */
.p-post-list {
  margin-top: clamp(64px, 49.9155px + 3.7559vw, 104px);
  padding-block: clamp(64px, 49.9155px + 3.7559vw, 104px);
  background-color: var(--color-blue-03);
}

.p-post-list__grid {
  display: grid;
  gap: 24px;

  @media (width >= 768px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
  }

  @media (width >= 1024px) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* /list */

/* post */
.p-post {
  max-width: calc(780px + 64px);
  margin-top: clamp(64px, 58.3662px + 1.5023vw, 80px);
}

.p-post__title {
  font-size: clamp(26px, 21.7746px + 1.1268vw, 38px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: var(--ls-base);
}

.p-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: clamp(24px, 21.1831px + 0.7512vw, 32px);
}

.p-post__label {
  padding: 5px 8px;
  font-size: clamp(12px, 11.6479px + 0.0939vw, 13px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--ls-base);
  color: var(--color-brand);
  border: 1px solid var(--color-brand);

  @media (width >= 768px) {
    padding: 7px 8px;
  }
}

.p-post__name {
  font-size: clamp(16px, 14.5915px + 0.3756vw, 20px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--ls-base);

  & span {
    margin-left: 0.4em;
  }
}

.p-post__thumb {
  margin-top: clamp(40px, 31.5493px + 2.2535vw, 64px);

  & img {
    width: 100%;
    aspect-ratio: 780 / 466;
    object-fit: cover;
    object-position: 50% 25%;
    border-radius: 16px;
  }
}

.p-post__content {
  margin-top: 64px;
  font-size: clamp(14px, 13.2958px + 0.1878vw, 16px);
  line-height: var(--lh-base);

  & > * + * {
    margin-top: 1.8em;
  }

  & > h2 {
    position: relative;
    padding-left: 48px;
    font-size: clamp(20px, 19.2958px + 0.1878vw, 22px);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: var(--ls-base);
    color: var(--color-brand);

    &::before {
      content: "";
      position: absolute;
      top: 0.75em;
      left: 0;
      width: 32px;
      height: 1px;
      background-color: var(--color-brand);
    }

    &:not(:first-child) {
      margin-top: 64px;
    }

    & + * {
      margin-top: clamp(32px, 29.1831px + 0.7512vw, 40px);
    }
  }

  & > h3 {
    padding-bottom: clamp(8px, 5.1831px + 0.7512vw, 16px);
    font-size: clamp(20px, 17.8873px + 0.5634vw, 26px);
    font-weight: 700;
    line-height: var(--lh-base);
    letter-spacing: var(--ls-base);
    border-bottom: 2px solid var(--color-brand);

    &:not(:first-child) {
      margin-top: 64px;
    }

    & + * {
      margin-top: 40px;
    }
  }
}

.p-post__check {
  display: grid;
  gap: 24px;
  width: fit-content;
  max-width: 100%;
  padding: 40px 24px;
  background-color: var(--color-blue-03);
  border-radius: 24px;

  @media (width >= 768px) {
    padding: 40px;
  }

  & li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: var(--ls-base);

    &::before {
      content: "";
      flex-shrink: 0;
      width: 24px;
      height: 24px;
      margin-top: calc((1.5em - 24px) / 2);
      background: var(--color-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.2 5.6 10 11.5 4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 14px;
      border-radius: 50%;
    }
  }
}

.p-post__content > .p-post__images {
  display: grid;
  gap: 40px;
  margin-top: 64px;

  @media (width >= 768px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  & img {
    width: 100%;
    aspect-ratio: 378 / 360;
    object-fit: cover;
    border-radius: 16px;
  }
}
.p-post__history {
  display: grid;
  gap: 40px;

  & dt {
    display: flex;
    gap: clamp(12px, 10.5915px + 0.3756vw, 16px);
    align-items: center;
    font-size: clamp(16px, 15.6479px + 0.0939vw, 17px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: var(--ls-base);
    color: var(--color-brand);

    &::before {
      content: "";
      flex-shrink: 0;
      width: clamp(8px, 7.2958px + 0.1878vw, 10px);
      aspect-ratio: 1;
      background-color: currentColor;
      border-radius: 50%;
    }
  }

  & dd {
    display: grid;
    gap: 1.8em;
    margin-top: clamp(16px, 13.1831px + 0.7512vw, 24px);
  }
}

.p-post__content > .p-post__figure {
  margin-top: 64px;

  & img {
    width: 100%;
    aspect-ratio: 780 / 466;
    object-fit: cover;
    border-radius: 16px;
  }

  & + * {
    margin-top: 64px;
  }
}
/* /post */

/* related */
.p-post-related {
  margin-top: clamp(80px, 71.5493px + 2.2535vw, 104px);
  padding-block: clamp(80px, 71.5493px + 2.2535vw, 104px);
  background-color: var(--color-blue-03);
}

.p-post-related__title {
  text-align: center;
}

.p-post-related__more {
  display: flex;
  justify-content: flex-end;
  margin-top: 48px;

  @media (width < 768px) {
    justify-content: center;
  }

  & .c-btn {
    --btn-w: auto;

    min-width: 240px;
    white-space: nowrap;
  }
}
/* /related */
