/* ==================================================
   専門家詳細：ヒーロー
================================================== */
.expert-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff url("assets/search-hero-bg.png") bottom / cover no-repeat;
}

.expert-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 48px));
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.expert-hero__titles {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
}

.expert-hero__titles h2 {
  margin: 0;
  color: rgba(212, 68, 70, .4);
  font-family: "Quicksand", sans-serif;
  font-size: clamp(64px, 8.333vw, 120px);
  font-weight: 600;
  line-height: .8;
  letter-spacing: -.02em;
}

.expert-hero__titles p {
  margin: 0;
  color: #6e5d5d;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: .03em;
}

.expert-hero__lead {
  margin: 0;
  color: #6e5d5d;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: .03em;
  text-align: center;
}

/* ==================================================
   専門家詳細：プロフィール
================================================== */
.expert-profile-section {
  padding: 100px 24px;
  background: #fbf9f5;
}

.expert-profile-card {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 60px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(110,90,82,.06), 0 1px 2px rgba(0,0,0,.05);
}

.expert-profile-card__header {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-bottom: 33px;
  border-bottom: 1px solid rgba(110,93,93,.2);
}

.expert-profile-card__avatar {
  width: 160px;
  height: 160px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}

.expert-profile-card__identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.expert-profile-card__identity h2,
.expert-profile-card__identity p {
  margin: 0;
}

.expert-profile-card__identity h2 {
  font-size: 32px;
  line-height: 1;
  font-weight: 500;
}

.expert-profile-card__identity > p {
  font-size: 18px;
  line-height: 1.4;
}

.expert-profile-card__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.expert-profile-card__tags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f4efeb;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

.expert-profile-card__online {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d44446;
  white-space: nowrap;
}

.expert-profile-card__method-list {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.expert-profile-card__method-icon {
  width: 35px;
  height: auto;
  object-fit: contain;
}

.expert-profile-card__method-icon--store {
  width: 25px;
}

.expert-profile-card__body {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 40px;
}

.expert-detail h3 {
  position: relative;
  margin: 0 0 20px;
  padding-left: 13px;
  font-size: 24px;
  line-height: 1.8;
}

.expert-detail h3::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 3px;
  height: 28px;
  content: "";
  border-radius: 999px;
  background: #d44446;
  transform: translateY(-50%);
}

.expert-detail p {
  margin: 0;
  color: #6e5d5d;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: .03em;
}

.expert-detail__content p + p {
  margin-top: 1.2em;
}

.expert-detail__url {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #6e5d5d;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: .03em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

@media (hover: hover) {
  .expert-detail__url:hover {
    color: #d44446;
    text-decoration-color: #d44446;
  }
}

.expert-detail__url::after {
  width: 14px;
  height: 14px;
  flex: none;
  content: "";
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M9 1h6v6h-2V4.4L7.7 9.7 6.3 8.3 11.6 3H9V1ZM3 3h4v2H4v7h7V9h2v5H2V3h1Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M9 1h6v6h-2V4.4L7.7 9.7 6.3 8.3 11.6 3H9V1ZM3 3h4v2H4v7h7V9h2v5H2V3h1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.expert-detail--row {
  display: block;
}

.expert-detail--row h3 {
  margin-bottom: 20px;
}

.expert-detail--social {
  display: flex;
  align-items: center;
  gap: 32px;
}

.expert-detail--social h3 {
  min-width: 72px;
  margin-bottom: 0;
}

.expert-socials {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
}

.expert-socials a {
  display: block;
  width: 30px;
  height: 30px;
  opacity: 1;
  transition: opacity .2s ease, transform .2s ease;
}

@media (hover: hover) {
  .expert-socials a:hover {
    opacity: .55;
    transform: translateY(-2px);
  }
}

.expert-socials a:focus-visible {
  outline: 2px solid #d44446;
  outline-offset: 4px;
  border-radius: 4px;
}

.expert-socials__icon {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.expert-socials__icon--x {
  width: 24px;
  height: 24px;
  margin: 2px;
}

.expert-socials__icon--note {
  width: 34px;
  height: 34px;
  margin: -2px;
}

.expert-socials__item--note {
  margin-left: -6px;
}

.expert-profile-card__online--mobile {
  display: none;
}

.expert-profile-card__button {
  position: relative;
  display: block;
  width: fit-content;
  margin: 40px auto 0;
  padding: 16px 60px;
  border-radius: 100px;
  background: #d44446;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

/* ==================================================
   専門家詳細：お問い合わせ
================================================== */
.expert-contact {
  padding: 100px 24px;
  background: #fff;
}

.expert-contact__title {
  width: min(1080px, 100%);
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 32px;
  line-height: 1.8;
}

.expert-contact__title img {
  width: 28px;
  height: 30px;
}

.expert-contact__cards {
  display: grid;
  grid-template-columns: repeat(2, 560px);
  gap: 35px;
  justify-content: center;
}

.expert-contact-card {
  padding: 40px;
  border-radius: 20px;
  background: #fbf9f5;
  box-shadow: 0 3px 12px rgba(110,90,82,.06), 0 1px 2px rgba(0,0,0,.05);
}

.expert-contact-card__top {
  display: block;
}

.expert-contact-card__body {
  display: flex;
  align-items: center;
  gap: 40px;
}

.expert-contact-card h3 {
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 1.8;
}

.expert-contact-card p {
  width: 265px;
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
}

.expert-contact-card img {
  width: clamp(110px, 11.11vw, 160px);
  height: clamp(110px, 11.11vw, 160px);
  border-radius: 50%;
  object-fit: cover;
}

.expert-contact-card > a {
  position: relative;
  display: block;
  width: 260px;
  margin: 40px auto 0;
  padding: 17px 41px;
  border: 1px solid #6e5d5d;
  border-radius: 100px;
  color: #6e5d5d;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

/* ==================================================
   専門家詳細：タブレット
================================================== */
@media (min-width: 768px) and (max-width: 1180px) {
  .expert-contact__cards {
    grid-template-columns: minmax(0, 560px);
  }
}

/* ==================================================
   専門家詳細：スマートフォン
================================================== */
@media (max-width: 767px) {
  .expert-hero {
    min-height: 220px;
    justify-content: flex-start;
    overflow: hidden;
    padding: 40px 24px;
  }

  .expert-hero__inner {
    width: 100%;
    gap: 8px;
    align-items: flex-start;
  }

  .expert-hero__titles {
    display: block;
  }

  .expert-hero__titles h2 {
    font-size: 38px;
    line-height: 1.2;
    letter-spacing: .01em;
  }

  .expert-hero__titles p,
  .expert-hero__lead {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    text-align: left;
  }

  .expert-hero__titles p {
    font-weight: 700;
  }

  .expert-profile-section {
    padding: 60px 24px;
  }

  .expert-profile-card {
    padding: 31px 25px;
    border-radius: 8px;
  }

  .expert-profile-card__header {
    flex-direction: column;
    gap: 14px;
    padding-bottom: 0;
    border: 0;
  }

  .expert-profile-card__avatar {
    width: 96px;
    height: 96px;
  }

  .expert-profile-card__identity {
    align-items: center;
    gap: 8px;
  }

  .expert-profile-card__identity h2 {
    font-size: 23px;
    font-weight: 700;
    line-height: 1.45;
  }

  .expert-profile-card__identity > p {
    font-size: 16px;
    line-height: 1.6;
  }

  .expert-profile-card__tags span {
    padding: 4px 10px;
    background: #fbf9f5;
    font-size: 14px;
    line-height: 1.45;
  }

  .expert-profile-card__method-list {
    display: none;
  }

  .expert-profile-card__body {
    gap: 24px;
    padding-top: 24px;
  }

  .expert-socials {
    gap: 12px;
  }

  .expert-detail h3 {
    margin-bottom: 10px;
    padding-left: 10px;
    font-size: 18px;
    line-height: 1.2;
  }

  .expert-detail h3::before {
    height: 20px;
  }

  .expert-detail p {
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: .01em;
  }

  .expert-detail__pc-only {
    display: none;
  }

  .expert-detail--row h3 {
    margin-bottom: 10px;
  }

  .expert-detail--social {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .expert-detail--social h3 {
    min-width: 0;
    margin-bottom: 0;
  }

  .expert-detail__url {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
    overflow-wrap: anywhere;
    font-size: 16px;
    line-height: 1.55;
    text-align: left;
  }

  .expert-detail__url::after {
    margin-top: .45em;
  }

  .expert-profile-card__online--mobile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 14px;
  }

  .expert-profile-card__online--mobile span {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }

  .expert-profile-card__method-icon--online {
    width: 28px;
  }

  .expert-profile-card__button {
    width: 100%;
    margin-top: 24px;
    padding: 16px 35px;
    font-size: 18px;
    line-height: 1.55;
  }

  .expert-contact {
    padding: 60px 24px;
  }

  .expert-contact__title {
    justify-content: flex-start;
    gap: 6px;
    margin-bottom: 18px;
    font-size: 24px;
    line-height: 1.42;
  }

  .expert-contact__title img {
    width: 21px;
    height: 22px;
  }

  .expert-contact__cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .expert-contact-card {
    padding: 24px;
  }

  .expert-contact-card__top {
    display: block;
  }

  .expert-contact-card__body {
    gap: 10px;
  }

  .expert-contact-card h3 {
    margin-bottom: 8px;
    padding-left: 10px;
    font-size: 20px;
    line-height: 1.4;
  }

  .expert-contact-card p {
    width: auto;
    font-size: 16px;
    line-height: 1.6;
  }

  .expert-contact-card img {
    width: 80px;
    height: 80px;
  }

  .expert-contact-card > a {
    width: 260px;
    max-width: 100%;
    margin-top: 20px;
    padding: 13px 41px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
  }
}
