.pms-profile {
  padding: 56px 16px;
  background: var(--pms-bg, #fffaf3);
}

.pms-profile-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.pms-profile-main {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: center;
  padding: 34px;
  border-radius: 24px;
  background: var(--pms-card, #ffffff);
  box-shadow: 0 12px 32px rgba(90, 62, 30, 0.08);
  border: 1px solid rgba(160, 120, 80, 0.18);
}

.pms-profile-photo img {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.pms-profile-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 12px;
  padding: 6px 15px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pms-accent, #b26a00) 12%, #ffffff);
  color: var(--pms-accent, #b26a00);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pms-profile-name {
  margin: 0 0 16px;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.25;
  color: #2d241c;
}

.pms-profile-lead {
  color: #4a4038;
  font-size: 16px;
  line-height: 1.9;
}

.pms-profile-lead,
.pms-section-body {
  color: var(--pms-text, #4a4038);
}


.pms-profile-lead p {
  margin: 0 0 1em;
}

.pms-profile-sections {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.pms-profile-section {
  position: relative;
  padding: 26px 30px;
  border-radius: 20px;
  background: var(--pms-card, #ffffff);
  border: 1px solid rgba(160, 120, 80, 0.16);
  box-shadow: 0 8px 22px rgba(90, 62, 30, 0.05);
}

.pms-section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px;
  padding: 5px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pms-accent, #8a5a25) 12%, #ffffff);
  color: var(--pms-accent, #8a5a25);
  font-size: 13px;
  font-weight: 800;
}

.pms-profile-section h3 {
  margin: 0 0 12px;
  color: var(--pms-text, #2d241c);
  font-size: clamp(18px, 3vw, 22px);
  line-height: 1.4;
}

.pms-section-body {
  color: var(--pms-text, #4a4038);
  font-size: 16px;
  line-height: 2;
}

.pms-section-body p {
  margin: 0 0 0.9em;
}

.pms-section-body p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------
   Layout: standard / photo-left
------------------------------------ */

.pms-layout-standard .pms-profile-main {
  grid-template-columns: 260px 1fr;
}

.pms-layout-photo-right .pms-profile-main {
  grid-template-columns: 1fr 260px;
}

.pms-layout-photo-right .pms-profile-photo {
  order: 2;
}

.pms-layout-photo-right .pms-profile-text {
  order: 1;
}

/* ------------------------------------
   Layout: photo-top
------------------------------------ */

.pms-layout-photo-top .pms-profile-main {
  display: block;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.pms-layout-photo-top .pms-profile-photo {
  margin: 0 auto 24px;
  text-align: center;
}

.pms-layout-photo-top .pms-profile-photo img {
  max-width: 220px;
  margin: 0 auto;
  border-radius: 999px;
  aspect-ratio: 1 / 1;
}

.pms-layout-photo-top .pms-profile-title {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 18px;
}

.pms-layout-photo-top .pms-profile-name {
  text-align: center;
  margin-top: 24px;
  margin-bottom: 24px;
}

.pms-layout-photo-top .pms-profile-lead {
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
  padding-top: 8px;
}

.pms-layout-photo-top .pms-profile-sections {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------------
   Section Design: Timeline
------------------------------------ */

.pms-section-design-timeline .pms-profile-sections {
  position: relative;
  display: block;
  margin-top: 34px;
  padding-left: 34px;
}

.pms-section-design-timeline .pms-profile-sections::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pms-accent, #b26a00) 28%, #ffffff);
}

.pms-section-design-timeline .pms-profile-section {
  position: relative;
  margin: 0 0 20px;
  padding: 24px 28px;
}

.pms-section-design-timeline .pms-profile-section::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 30px;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--pms-accent, #b26a00);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--pms-accent, #b26a00) 14%, #ffffff);
}

.pms-section-design-timeline .pms-section-label {
  margin-bottom: 8px;
}

.pms-section-design-timeline .pms-profile-section h3 {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--pms-accent, #b26a00) 25%, #ffffff);
}

.pms-section-design-timeline .pms-section-body {
  font-size: 16px;
  line-height: 2;
}

/* ------------------------------------
   写真がない場合
------------------------------------ */

.pms-no-photo .pms-profile-main {
  display: block;
  max-width: 900px;
  margin: 0 auto;
}

.pms-no-photo .pms-profile-text {
  max-width: 720px;
}

.pms-no-photo .pms-profile-title {
  margin-bottom: 14px;
}

.pms-no-photo .pms-profile-name {
  margin-bottom: 22px;
}

.pms-no-photo .pms-profile-lead {
  max-width: 620px;
}


@media (max-width: 768px) {
  .pms-profile {
    padding: 36px 14px;
  }

  .pms-profile-main {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    gap: 22px;
  }

  .pms-profile-photo {
    text-align: center;
  }

  .pms-profile-photo img {
    max-width: 220px;
    margin: 0 auto;
  }

  .pms-profile-text {
    text-align: center;
  }

  .pms-profile-section {
    padding: 22px 18px;
  }

  .pms-layout-photo-right .pms-profile-photo,
  .pms-layout-photo-right .pms-profile-text {
    order: initial;
  }

	.pms-section-design-timeline .pms-profile-sections {
	  padding-left: 26px;
	}
	
	.pms-section-design-timeline .pms-profile-sections::before {
	  left: 8px;
	}
	
	.pms-section-design-timeline .pms-profile-section::before {
	  left: -25px;
	  top: 28px;
	  width: 15px;
	  height: 15px;
	}

}

/* ------------------------------------
   スマホ対応：プロフィール上部を1カラム化
------------------------------------ */

@media (max-width: 768px) {

  .pms-layout-standard .pms-profile-main,
  .pms-layout-photo-right .pms-profile-main,
  .pms-layout-photo-top .pms-profile-main {
    display: block;
    max-width: none;
    padding: 24px 18px;
    text-align: center;
  }

  .pms-layout-photo-right .pms-profile-photo,
  .pms-layout-photo-right .pms-profile-text {
    order: initial;
  }

  .pms-profile-photo {
    margin: 0 auto 22px;
    text-align: center;
  }

  .pms-profile-photo img {
    width: 100%;
    max-width: min(260px, 80vw);
    margin: 0 auto;
  }

  .pms-profile-text {
    max-width: none;
    text-align: center;
  }

  .pms-profile-title {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
    font-size: 12px;
    line-height: 1.6;
    white-space: normal;
  }

  .pms-profile-name {
    margin-bottom: 18px;
    font-size: clamp(22px, 4vw, 30px);
    line-height: 1.3;
  }

  .pms-profile-lead {
    max-width: 100%;
    text-align: left;
    font-size: 15px;
    line-height: 1.9;
  }

  .pms-profile-lead p {
    margin-bottom: 0.8em;
  }
}
