.cross-talk-page {
  --cross-blue-dark: #123eaa;
  --cross-blue-mid: #65c4d1;
  --cross-blue-light: #bceef3;
}

/* PC：写真下のグレー境界に隠れて一部だけ見える緑ピースのみ除外 */
.cross-talk-content .lower-page-puzzle--16 {
  display: none !important;
}

/* Keep the M.M profile card consistent with the Talk top/story pages. */
.cross-talk-page .profile__card {
  border: 0;
  background: #fef7e1;
  box-shadow: 0 0 2px 2px #bfc4d1;
}

.cross-talk-page .profile__card:hover {
  box-shadow: 0 10px 24px rgba(32, 72, 88, 0.12), 0 0 2px 2px #bfc4d1;
}

.cross-talk-page .profile__more {
  color: #6f78a1;
}

.cross-talk-content .experience-lead {
  margin-bottom: 10px;
}

.cross-talk-members {
  width: min(100%, 720px);
  margin: 4px auto 58px;
  text-align: center;
}

.cross-talk-members h2 {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 800;
}

.cross-talk-members__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cross-talk-member {
  display: grid;
  min-height: 230px;
  padding: 20px 22px 18px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 2px 2px #bfc4d1;
  color: #292929;
  font: inherit;
  cursor: pointer;
  place-content: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cross-talk-member:hover,
.cross-talk-member:focus-visible {
  box-shadow: 0 12px 26px rgba(39, 112, 126, .14), 0 0 2px 2px #bfc4d1;
  transform: translateY(-3px);
}

.cross-talk-member:focus-visible {
  outline: 3px solid rgba(18, 62, 170, .2);
  outline-offset: 4px;
}

.cross-talk-member__identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.cross-talk-member__identity img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
}

.cross-talk-member__identity strong {
  color: #202225;
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.cross-talk-member__department {
  color: #4e5358;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: center;
}

.cross-talk-member__year {
  margin-top: 6px;
  color: #4e5358;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: center;
}

.cross-talk-member__more {
  margin-top: 14px;
  color: #6f78a1;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cross-talk-member--hs {
  background: #f8e9eb;
}

.cross-talk-member--tr {
  background: #e4f4fc;
}

.cross-talk-page .experience-piece__shape path,
.cross-talk-page .experience-modal__puzzle-shape path {
  fill: var(--cross-blue-mid);
}

.cross-talk-page .experience-piece:hover .experience-piece__shape,
.cross-talk-page .experience-piece:focus-visible .experience-piece__shape {
  filter: brightness(1.03) drop-shadow(0 10px 12px rgba(42, 115, 128, .16));
}

.cross-talk-page .experience-piece.is-read {
  color: #51757b;
}

.cross-talk-page .puzzle-board__tile {
  fill: var(--cross-blue-mid);
}

.cross-talk-page .puzzle-board__slot.is-filled {
  fill: var(--cross-blue-mid);
  filter: drop-shadow(0 5px 7px rgba(42, 115, 128, .14));
}

.cross-talk-page .puzzle-reset {
  border-color: #38aab9;
  color: #208695;
}

.cross-talk-page .puzzle-reset:hover,
.cross-talk-page .puzzle-reset:focus-visible {
  background: #38aab9;
  color: #fff;
  box-shadow: 0 8px 20px rgba(32, 134, 149, .2);
}

.cross-talk-photo {
  box-sizing: border-box;
  width: min(1000px, 100%);
  height: 420px;
  margin: 42px auto 76px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(39, 70, 76, .14);
}

.cross-talk-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.experience-modal__speakers {
  align-self: center;
  justify-self: center;
  display: flex;
  margin-left: 0;
}

.experience-modal__speakers img {
  width: 118px;
  height: 118px;
  border: 5px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(22, 63, 72, .12);
}

.experience-modal__speakers img + img {
  margin-left: -26px;
}

/* Long-form CROSS TALK conversation */
html.experience-modal-open,
html.experience-modal-open body {
  overflow: hidden;
}

.experience-modal.is-conversation-modal {
  width: min(1120px, calc(100vw - 48px));
  max-width: 1120px;
  max-height: none;
  overflow: hidden;
  border-radius: 28px;
}

.experience-modal.is-conversation-modal::backdrop {
  background: rgba(35, 42, 45, .34);
}

.experience-modal__content.is-conversation {
  display: block;
  min-height: 0;
  max-height: min(760px, calc(100dvh - 72px));
  padding: 52px 38px 34px;
  box-sizing: border-box;
  border: 0;
  clip-path: inset(0 round 28px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #888 transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.experience-modal__content.is-conversation::-webkit-scrollbar {
  width: 8px;
}

.experience-modal__content.is-conversation::-webkit-scrollbar-track {
  margin-block: 18px;
  background: transparent;
}

.experience-modal__content.is-conversation::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.experience-modal__content.is-conversation::-webkit-scrollbar-thumb {
  border: 0;
  border-radius: 999px;
  background: #888;
}

.experience-modal__content.is-conversation .experience-modal__puzzle {
  width: 340px;
  height: 220px;
  margin: 0 auto 36px;
}

@media (min-width: 821px) {
  .cross-talk-page .experience-modal__content.is-conversation .experience-modal__puzzle-shape {
    transform: scale(1.24);
  }
}

@media (max-width: 820px) {
  .cross-talk-page .experience-modal__content.is-conversation .experience-modal__puzzle-shape {
    transform: scale(1.14);
  }
}

.experience-modal__content.is-conversation .experience-modal__puzzle strong {
  max-width: 60%;
  font-size: 21px;
  line-height: 1.42;
  white-space: normal;
}

.experience-modal__content.is-conversation > h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.experience-modal__content.is-conversation .experience-modal__speakers {
  display: none;
}

.experience-modal__content.is-conversation .experience-modal__answer {
  width: 100%;
}

.cross-talk-dialogue {
  display: grid;
  gap: 14px;
  width: 100%;
}

.cross-talk-dialogue__card {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 16px;
  background: #f6f6f6;
}

.cross-talk-dialogue__card[data-speaker="M.M"] {
  background: #fef7e1;
}

.cross-talk-dialogue__card[data-speaker="H.S"] {
  background: #f8e9eb;
}

.cross-talk-dialogue__card[data-speaker="T.R"] {
  background: #e4f4fc;
}

.cross-talk-dialogue__avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  object-fit: cover;
}

.cross-talk-dialogue__content h3 {
  margin: 0 0 5px;
  color: #292929;
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.experience-modal__content.is-conversation .cross-talk-dialogue__content p {
  margin: 0;
  color: #292929;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
}

.experience-modal__content.is-conversation .cross-talk-dialogue__content p + p {
  margin-top: 6px;
}

.experience-modal__content.is-conversation .cross-talk-dialogue__content strong {
  font-weight: 800;
}

.experience-modal__content.is-conversation .experience-modal__close {
  position: sticky;
  z-index: 5;
  top: 0;
  display: block;
  width: 44px;
  height: 44px;
  margin: -12px 0 -44px auto;
}

.experience-modal__content.is-conversation .experience-modal__close span::before,
.experience-modal__content.is-conversation .experience-modal__close span::after {
  top: 50%;
  left: 50%;
  width: 24px;
  height: 3px;
}

.experience-modal__content.is-conversation .experience-modal__close span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.experience-modal__content.is-conversation .experience-modal__close span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.member-modal {
  position: fixed;
  inset: 50% 0 auto;
  width: min(1180px, calc(100vw - 24px));
  max-width: 1180px;
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
  color: #222;
  font-family: "Noto Sans JP", sans-serif;
  transform: translateY(-50%);
}

.member-modal::backdrop {
  background: rgba(18, 22, 24, .56);
}

.member-modal__content {
  position: relative;
  box-sizing: border-box;
  max-height: calc(100dvh - 48px);
  padding: 34px 36px 30px;
  border: 2px solid #333;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 55px rgba(0, 0, 0, .3);
  overflow: auto;
}

.member-modal[data-member-theme="hs"] .member-modal__content {
  background: #f8e9eb;
}

.member-modal[data-member-theme="tr"] .member-modal__content {
  background: #e4f4fc;
}

.member-modal__header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 86px 22px 0;
}

.member-modal__avatar {
  flex: 0 0 auto;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  object-fit: cover;
}

.member-modal__identity {
  min-width: 0;
}

.member-modal__identity h2 {
  margin: 0 0 10px;
  color: #222;
  font-family: inherit;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.member-modal__identity p,
.member-modal__identity small {
  display: block;
  margin: 0;
  color: #4e5358;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.member-department__part {
  display: inline;
  white-space: nowrap;
}

.member-department__part + .member-department__part {
  margin-left: 1em;
}
.member-department__part--joined {
  margin-left: 0 !important;
}

.member-modal__list {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.member-modal__list > div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid #d7d7d7;
}

.member-modal__list > div:last-child {
  border-bottom: 0;
}

.member-modal__list dt,
.member-modal__list dd {
  margin: 0;
}

.member-modal__list dt,
.member-modal__list dd strong {
  font-weight: 700;
}

.member-modal__student-row dd {
  line-height: 1.5;
}

.member-modal__close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: #202225;
  cursor: pointer;
}

.member-modal__close span::before,
.member-modal__close span::after {
  position: absolute;
  top: 25px;
  left: 13px;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  content: "";
}

.member-modal__close span::before { transform: rotate(45deg); }
.member-modal__close span::after { transform: rotate(-45deg); }

@media (max-width: 767px) {
  .cross-talk-content .experience-lead {
    margin-bottom: 20px;
  }

  .cross-talk-members {
    margin: 12px auto 42px;
  }

  .cross-talk-members h2 {
    margin-bottom: 16px;
    font-size: 22px;
  }

  .cross-talk-members__list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cross-talk-member {
    min-height: 250px;
    padding: 24px 18px 20px;
  }

  .cross-talk-member__identity img {
    width: 82px;
    height: 82px;
  }

  .cross-talk-member__identity strong {
    font-size: 19px;
  }

  .cross-talk-page .experience-piece strong {
    font-size: 13px;
  }

  .cross-talk-photo {
    width: min(86%, 320px);
    height: auto;
    margin: 30px auto 46px;
  }

  .cross-talk-photo img {
    height: auto;
  }

  .cross-talk-photo { border-radius: 4px; }

  .experience-modal__speakers {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 6px auto 14px;
  }

  .experience-modal__speakers img {
    width: 84px;
    height: 84px;
    border-width: 4px;
  }

  .experience-modal__speakers img + img {
    margin-left: -18px;
  }

  .experience-modal__content.is-conversation {
    display: block;
    max-height: calc(100dvh - 32px);
    padding: 68px 14px 24px;
    border-radius: 24px;
    clip-path: inset(0 round 24px);
    scrollbar-width: thin;
  }

  .experience-modal.is-conversation-modal {
    width: min(100% - 20px, 600px);
    max-width: 600px;
    max-height: none;
    overflow: hidden;
    border-radius: 24px;
  }

  .experience-modal__content.is-conversation::-webkit-scrollbar {
    width: 6px;
  }

  .experience-modal__content.is-conversation::-webkit-scrollbar-track {
    margin-block: 14px;
  }

  .experience-modal__content.is-conversation .experience-modal__puzzle {
    width: 232px;
    height: 164px;
    margin: 0 auto 30px;
  }

  .experience-modal__content.is-conversation .experience-modal__puzzle strong {
    max-width: 62%;
    font-size: 16px;
    line-height: 1.4;
  }

  .cross-talk-dialogue {
    gap: 12px;
  }

  .cross-talk-dialogue__card {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 11px;
    padding: 14px 13px;
    border-radius: 14px;
  }

  .cross-talk-dialogue__avatar {
    width: 50px;
    height: 50px;
  }

  .cross-talk-dialogue__content h3 {
    margin-bottom: 4px;
    font-size: 16px;
  }

  .experience-modal__content.is-conversation .cross-talk-dialogue__content p {
    font-size: 13px;
    line-height: 1.72;
  }

  .experience-modal__content.is-conversation .cross-talk-dialogue__content p + p {
    margin-top: 7px;
  }

  .experience-modal__content.is-conversation .experience-modal__close {
    top: -48px;
    width: 40px;
    height: 40px;
    margin: -52px 0 4px auto;
  }

  .experience-modal__content.is-conversation .experience-modal__close span::before,
  .experience-modal__content.is-conversation .experience-modal__close span::after {
    width: 22px;
    height: 3px;
  }

  .member-modal {
    width: min(100% - 12px, 440px);
    max-height: calc(100dvh - 20px);
  }

  .member-modal__content {
    max-height: calc(100dvh - 20px);
    padding: 70px 20px 28px;
    border-width: 1px;
    border-radius: 24px;
    text-align: left;
  }

  .member-modal__header {
    gap: 20px;
    margin: 0 42px 30px 0;
  }

  .member-modal__avatar {
    width: 112px;
    height: 112px;
  }

  .member-modal__identity h2 {
    margin-bottom: 8px;
    font-size: 22px;
  }

  .member-modal__identity p,
  .member-modal__identity small {
    font-size: 14px;
    line-height: 1.4;
  }

  .member-department__part {
    display: block;
  }

  .member-department__part + .member-department__part {
    margin-left: 0;
  }

  .member-modal__list {
    font-size: 17px;
    line-height: 1.55;
  }

  .member-modal__list > div {
    display: block;
    padding: 13px 0;
  }

  .member-modal__list dt {
    margin-bottom: 6px;
    font-size: 18px;
  }

  .member-modal__student-row dd {
    line-height: 1.55;
  }

  .member-modal .pc-block {
    display: none;
  }

  .member-modal__close {
    top: 14px;
    right: 14px;
    width: 48px;
    height: 48px;
  }

  .member-modal__close span::before,
  .member-modal__close span::after {
    top: 23px;
    left: 12px;
    width: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cross-talk-member { transition: none; }
}

/* Requested employee colors, modal sizing, and readable puzzle copy. */
.cross-talk-member--hs,
.member-modal[data-member-theme="hs"] .member-modal__content { background: #fbf5f6; }
.cross-talk-member--tr,
.member-modal[data-member-theme="tr"] .member-modal__content { background: #e4f4fc; }
.member-modal__content { border: 0 !important; }
.cross-talk-page .experience-piece strong { font-size: 16px; }
.cross-talk-page .experience-piece small { color: #252529; font-size: 12px; }
.cross-talk-page .experience-piece:hover small,
.cross-talk-page .experience-piece:focus-visible small,
.cross-talk-page .experience-piece small > span,
.cross-talk-page .experience-piece small .view-more__arrow { color: #252529; }
.member-modal__list dd { font-weight: 400 !important; overflow-wrap: anywhere; }
.member-modal__list > div { border-bottom: 1px solid #D9D9D9 !important; }
.member-modal__list > div:last-child { border-bottom: 0 !important; }
.cross-talk-page .experience-modal__content { background: #fff; }

@media (max-width: 820px) {
  .cross-talk-page .cross-talk-member {
    box-sizing: border-box;
    width: min(100%, 280px);
    margin-inline: auto;
  }

  .cross-talk-page .member-modal {
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
  }
}

@media (min-width: 821px) {
  .cross-talk-page .cross-talk-members,
  .cross-talk-content .cross-talk-members { margin-top: 52px !important; }

  .cross-talk-page .puzzle-board {
    box-sizing: border-box;
    width: 1000px;
    max-width: none;
    height: 648px;
    min-height: 648px;
  }
}

@media (max-width: 820px) {
  .cross-talk-page .experience-piece strong { font-size: 13px; line-height: 1.4; }
  .cross-talk-page .experience-piece small { font-size: 11px; }
  .cross-talk-page .member-modal__content { overflow-y: auto; }
  .cross-talk-page .member-modal__identity,
  .cross-talk-page .member-modal__list { min-width: 0; }
  .cross-talk-page .member-modal__identity,
  .cross-talk-page .member-modal__list dd { white-space: normal; }
  .cross-talk-page .member-modal__identity [data-member-year] { white-space: nowrap; }
  .cross-talk-page .member-modal__list dd { word-break: break-word; }
}

/* Make the four CROSS TALK puzzle pieces more generous without enlarging the copy. */
.cross-talk-page .experience-piece__shape {
  inset: -17%;
  width: 134%;
  height: 134%;
}

@media (max-width: 820px) {
  .cross-talk-page .experience-piece__shape {
    inset: -20%;
    width: 140%;
    height: 140%;
  }
}

/* Keep the employee department and graduation year together in the profile modal. */
.member-modal__identity [data-member-department],
.member-modal__identity [data-member-year] {
  display: inline;
}

.member-modal__identity [data-member-year] {
  margin-left: 0.35em;
  white-space: nowrap;
}

/* In the CROSS TALK story modal, only the text inside the puzzle piece stays bold. */
.experience-modal__content.is-conversation .cross-talk-dialogue__content h3,
.experience-modal__content.is-conversation .cross-talk-dialogue__content p,
.experience-modal__content.is-conversation .cross-talk-dialogue__content strong {
  font-weight: 400;
}

