/* ========================================
   Project — 採用担当者からのメッセージ（message.html）
======================================== */

.p-messagePage {
  position: relative;
  color: var(--works-color-text);
  font-family: var(--works-font);
  overflow: hidden;
}

.p-messagePage [aria-hidden="true"] {
  display: block;
}

/* .p-messagePage__inner {
  max-width: 1280px;
} */

/* ---- Hero（freshers.html と同系統） ---- */
.p-messagePage__hero {
  position: relative;
  padding-top: 20px;
}

.p-messagePage__heroInner {
  position: relative;
  display: flex;
  flex-direction: column;
}

.p-messagePage__heroPanel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  min-height: 148px;
  margin: 0;
  padding: 55px 20px 40px;
  color: var(--works-color-white);
  background-color: var(--works-color-orange-sub);
  border-radius: 0;
  overflow: visible;
}

.p-messagePage__heroPanel > .c-colorBalls {
  z-index: 0;
}

.p-messagePage__heroPanel .c-colorBall--cream {
  background: rgba(253, 247, 224, 0.274783);
  opacity: 0.274783;
}

.p-messagePage__heroTitle {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 0.02em;
}

/* SP color balls（fresh 準拠） */
.p-messagePage__heroPanel > .c-colorBalls .c-colorBall:nth-child(1) {
  top: -20px;
  left: -20px;
  width: 102px;
  height: 103px;
}

.p-messagePage__heroPanel > .c-colorBalls .c-colorBall:nth-child(2) {
  top: 24px;
  left: 71px;
  width: 50px;
  height: 51px;
}

.p-messagePage__heroPanel > .c-colorBalls .c-colorBall:nth-child(3) {
  top: 34px;
  left: 233px;
  width: 49px;
  height: 48px;
}

.p-messagePage__heroPanel > .c-colorBalls .c-colorBall:nth-child(4) {
  top: 96px;
  left: 315px;
  width: 85px;
  height: 85px;
}

.p-messagePage__heroPanel > .c-colorBalls .c-colorBall:nth-child(5) {
  top: 140px;
  left: -10px;
  width: 60px;
  height: 60px;
}

/* SP: ヘッダーあしらい — ENTRY/メニューがオレンジパネルに重なるよう余白を詰める */
@media screen and (max-width: 767px) {
  .Main:has(.p-messagePage) {
    padding-top: var(--works-site-header-top);
  }

  .p-messagePage__hero {
    padding-top: 0;
  }

  .p-messagePage__heroPanel {
    /* Figma: タイトル y194 − オレンジ y113 = 81px（ボタン下にタイトル） */
    padding-top: 81px;
  }

  .p-messagePage__introMedia {
    border-radius: 0;
  }
}

/* ---- Content ---- */
.p-messagePage__content {
  position: relative;
  z-index: 1;
  padding: 40px 0 80px;
}

.p-messagePage__heading {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  color: var(--works-color-text);
}

.p-messagePage__rule {
  display: block;
  width: 100%;
  height: 3px;
  margin: 12px 0 0;
  border: 0;
  background-color: var(--works-color-orange);
}

.p-messagePage__rule--thin {
  height: 1px;
  margin-top: 48px;
  background-color: rgba(233, 102, 0, 0.35);
}

/* Intro */
.p-messagePage__intro {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.p-messagePage__introMedia {
  width: 100%;
  aspect-ratio: 350 / 197;
  overflow: hidden;
  background-color: #d5d5d5;
}

.p-messagePage__introMedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

.p-messagePage__catch {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  color: var(--works-color-text);
}

.p-messagePage__texts {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.p-messagePage__text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  color: var(--works-color-text);
}

.p-messagePage__text + .p-messagePage__text {
  margin-top: 16px;
}

/* Profile */
.p-messagePage__profile {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.p-messagePage__person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.p-messagePage__avatar {
  width: 212px;
  height: 212px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #d9d9d9;
  flex-shrink: 0;
}

.p-messagePage__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

/* Figma mask crop (212 circle within placed photos) */
.p-messagePage__avatar--01 img {
  object-position: 50% 46%;
}

.p-messagePage__avatar--02 img {
  object-position: 53% 42%;
}

.p-messagePage__avatar--03 img {
  object-position: 62% 42%;
}

.p-messagePage__role {
  margin: 24px 0 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
  color: var(--works-color-text);
}

.p-messagePage__name {
  margin: 5px 0 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 33px;
  color: var(--works-color-text);
}

.p-messagePage__subHeading {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  color: var(--works-color-text);
}

/* Back button */
.p-messagePage__backWrap {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.p-works .p-messagePage__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 350px;
  height: 64px;
  padding: 0 24px;
  border-radius: 40px;
  background-color: var(--works-color-orange);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
  color: var(--works-color-white);
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.p-works .p-messagePage__back:hover {
  opacity: 0.88;
  color: var(--works-color-white);
}

/* ========================================
   PC（768px〜）
======================================== */
@media screen and (min-width: 768px) {
  .Main:has(.p-works) {
    padding-top: 90px;
  }

  .p-messagePage__hero {
    padding-top: 0;
  }

  .p-messagePage__heroInner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: block;
  }

  .p-messagePage__heroPanel {
    width: calc(100% + 80px);
    max-width: none;
    min-height: 148px;
    margin: 0 -40px;
    padding: 54px 40px 40px;
    border-radius: 0;
  }

  .p-messagePage__heroTitle {
    font-size: 40px;
    line-height: 48px;
  }

  .p-messagePage__heroPanel > .c-colorBalls .c-colorBall:nth-child(6) {
    top: -40px;
    left: -50px;
    width: 215px;
    height: 215px;
  }

  .p-messagePage__heroPanel > .c-colorBalls .c-colorBall:nth-child(7) {
    top: 40px;
    left: 280px;
    width: 90px;
    height: 90px;
  }

  .p-messagePage__heroPanel > .c-colorBalls .c-colorBall:nth-child(8) {
    top: 100px;
    left: 150px;
    width: 95px;
    height: 95px;
  }

  .p-messagePage__heroPanel > .c-colorBalls .c-colorBall:nth-child(9) {
    top: -10px;
    left: 340px;
    width: 57px;
    height: 56px;
  }

  .p-messagePage__content {
    padding: 48px 0 96px;
  }

  .p-messagePage__inner {
    padding-inline: 40px;
  }

  .p-messagePage__heading {
    font-size: 26px;
    line-height: 40px;
  }

  .p-messagePage__rule {
    margin-top: 16px;
  }

  .p-messagePage__intro {
    margin-top: 48px;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }

  .p-messagePage__introMedia {
    width: 512px;
    flex-shrink: 0;
    aspect-ratio: 512 / 336;
  }

  .p-messagePage__introBody {
    flex: 1;
    min-width: 0;
    padding-top: 0;
  }

  .p-messagePage__catch {
    margin-bottom: 20px;
    font-size: 24px;
    line-height: 36px;
  }

  .p-messagePage__text {
    font-size: 16px;
    line-height: 23.7px;
  }

  .p-messagePage__text + .p-messagePage__text {
    margin-top: 24px;
  }

  .p-messagePage__profile {
    margin-top: 56px;
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }

  .p-messagePage__profile--reverse {
    flex-direction: row-reverse;
  }

  .p-messagePage__person {
    width: 216px;
    flex-shrink: 0;
  }

  .p-messagePage__profileBody {
    flex: 1;
    min-width: 0;
    padding-top: 8px;
  }

  .p-messagePage__subHeading {
    margin-bottom: 24px;
    font-size: 20px;
    line-height: 36px;
  }

  .p-messagePage__rule--thin {
    margin-top: 80px;
  }

  .p-messagePage__backWrap {
    margin-top: 56px;
  }

  .p-works .p-messagePage__back {
    max-width: 512px;
    height: 80px;
    font-size: 18px;
    line-height: 26.6px;
    box-shadow: none;
  }
}

@media screen and (min-width: 1280px) {
  .p-messagePage__heroPanel {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 600px);
    padding-right: calc(50vw - 600px);
  }
}
