/* ファーストビュー */
.p-hero {
  position: relative;
  /* height: 100vh;  */
  overflow: hidden;
  background: var(--color-bg-page);
  /* background: #fff; */
  /* background: #fcfcfe; */
}

.p-hero::before {
  position: absolute;
  z-index: 2;
  bottom: -25px;
  left: -118px;
  width: 270px;
  height: 270px;
  background: url("../../../images/motif-sun-glow.svg") center / contain no-repeat;
  content: "";
  pointer-events: none;
}

.p-hero-photo {
  position: absolute;
  z-index: 0;
  top: 280px;
  right: 0;
  bottom: 0;
  left: 0;
}

.p-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 57% 32%;
  filter:drop-shadow(20px 4px 20px #999)
}

.p-hero-wash {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  height: 530px;
    background: linear-gradient(180deg, #fde8b9, transparent 60% 100%) ;
  /* background: linear-gradient( 180deg, #fbf8f2 0 48%, rgb(251 248 242 / 96%) 58%, rgb(251 248 242 / 64%) 72%, rgb(251 248 242 / 18%) 88%, transparent 100%); */
  pointer-events: none;
}

.p-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(100% - 40px, var(--content-width));
  min-height: 780px;
  padding-top: 78px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.p-hero-label {
  display: none;
  color: var(--color-text-accent);
  font-size: 0.75rem;
  font-weight: 500;
}

.p-hero-title {
  font-size: clamp(1.75rem, 7.7vw, 1.875rem);
  font-weight: 500;
  line-height: 1.533;
  letter-spacing: 0.024em;
}

.p-hero-lead {
  margin-top: 2px;
  color: var(--color-text-secondary);
}

.p-hero-note {
  position: absolute;
  right: 0;
  bottom: 124px;
  left: 0;
  margin: 0;
  color: var(--color-text-secondary);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
}

.p-hero .c-button {
  position: absolute;
  bottom: 53px;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
}

.p-hero .c-button:hover {
  transform: translateX(-50%) translateY(-2px);
}

/* タブレット幅でもSP版の縦構成と自然な写真比率を保つ */
@media (min-width: 600px) and (max-width: 1023px) {
  .p-hero-photo {
    right: 50%;
    left: auto;
    /* width: 620px; */
    transform: translateX(50%);
  }

  .p-hero::before {
    left: calc(50% - 428px);
  }
}

/* プロフィール */
.p-profile {
  min-height: 1750px;
  background: var(--color-bg-section);
}

.p-profile-circle {
  top: 580px;
  left: -122px;
  width: 300px;
  height: 300px;
  opacity: 0.78;
}

.p-profile-grid {
  display: grid;
  margin-top: 36px;
  gap: 54px;
}

.p-profile-visual {
  position: relative;
  height: 570px;
}

.p-profile-main {
  width: 100%;
  height: 520px;
  border-radius: 170px 20px 20px;
  object-fit: cover;
  object-position: 50% 22%;
}

.p-profile-detail {
  position: absolute;
  right: -4px;
  bottom: 0;
  width: 190px;
  height: 148px;
  border: 7px solid var(--color-bg-page);
  border-radius: 16px;
  object-fit: cover;
}

.p-profile-name {
  font-size: 1.375rem;
  line-height: 1.5;
}

.p-profile-role {
  margin-top: 6px;
  color: var(--color-text-accent);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
}

.p-profile-qualifications {
  margin-top: 20px;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.9;
  list-style: none;
}

.p-profile-qualifications li::before {
  content: "・";
}

.p-profile-intro {
  display: grid;
  margin-top: 32px;
  gap: 20px;
}

.p-profile-stories {
  display: grid;
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--color-border-default);
  gap: 32px;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.93;
}

/* MVV */
.p-philosophy {
  min-height: 948px;
  background: var(--color-bg-page);
}

.p-philosophy-circle {
  top: 92px;
  right: -118px;
  width: 250px;
  height: 250px;
  opacity: 0.78;
  background: radial-gradient(50% 50% at 50% 50%, #FFE6AB 0%, #FCFBF8 100%);
}

.p-philosophy-grid {
  display: grid;
  margin-top: 44px;
  gap: 36px;
}

.p-philosophy-photo {
  width: 100%;
  height: 240px;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.p-philosophy-list {
  display: grid;
  gap: 16px;
}

.p-philosophy-item {
  min-height: 126px;
  padding: 22px 20px 20px 40px;
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: inset 3px 0 0 var(--color-bg-hover);
}

.p-philosophy-item p {
  color: var(--color-text-accent);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.p-philosophy-item h3 {
  margin-top: 7px;
  font-size: 1.125rem;
  line-height: 1.61;
}

.p-philosophy-value {
  background: #fff2d3;
  box-shadow: inset 3px 0 0 #bd5441;
}

/* 大切にしていること */
.p-principles {
  min-height: 1160px;
  background: var(--color-bg-section);
}

.p-principles-circle {
  right: -96px;
  bottom: 82px;
  width: 300px;
  height: 300px;
  opacity: 0.62;
}

.p-principles-grid {
  display: grid;
  margin-top: 42px;
  gap: 56px;
}

.p-principles-list {
  list-style: none;
}

.p-principles-list li {
  display: grid;
  min-height: 92px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-border-default);
  gap: 16px;
  grid-template-columns: 34px 1fr;
  align-items: start;
}

.p-principles-list span {
  color: var(--color-accent-coral);
  font-size: 0.75rem;
  font-weight: 500;
}

.p-principles-list p {
  font-family: var(--font-heading);
  font-weight: 500;
}

.p-principles-photo {
  width: min(100%, 342px);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  object-fit: cover;
}

/* お客様の声 */
.p-voices {
  min-height: 1654px;
  background: var(--color-bg-page);
}

.p-voices-circle {
  top: 84px;
  left: -150px;
  width: 300px;
  height: 300px;
  opacity: 0.45;
}

.p-voices-heading {
  position: relative;
  min-height: 124px;
}

.p-voices-heading img {
  position: absolute;
  top: 32px;
  right: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 32%;

}

.p-voices-list {
  display: grid;
  margin-top: 42px;
  gap: 14px;
}

.p-voice-card {
  min-height: 180px;
  padding: 24px;
}

.p-voice-card span {
  display: block;
  height: 28px;
  color: var(--color-accent-coral);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.p-voice-card p {
  margin-top: 14px;
}

/* サービス */
.p-services {
  min-height: 2215px;
  background: var(--color-bg-section);
}

.p-services-circle {
  top: 30px;
  right: -98px;
  width: 250px;
  height: 250px;
  opacity: 0.66;
}

.p-services-heading {
  display: grid;
  gap: 26px;
}

.p-services-heading > p {
  color: var(--color-text-secondary);
}

.p-service-list {
  display: grid;
  margin-top: 40px;
  gap: 24px;
}

.p-service-card {
  overflow: hidden;
}

.p-service-card > img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.p-service-card:first-child > img {
  object-position: center 35%;
}

.p-service-card:nth-child(2) > img {
  object-position: center 33%;
}

/* サービスカード内の料金・形式欄をカード幅に揃える */
.p-service-card .c-meta-box {
  width: 100%;
}

.p-service-content {
  display: flex;
  padding: 24px 24px 28px;
  gap: 12px;
  flex-direction: column;
  align-items: flex-start;
}

.p-service-label {
  color: var(--color-accent-coral);
  font-size: 0.75rem;
  font-weight: 500;
}

.p-service-card h3,
.p-service-price {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.61;
}

.p-service-description {
  color: var(--color-text-secondary);
}

.p-service-card .c-button {
  margin-top: 4px;
  align-self: center;
}

.p-service-bottom {
  display: grid;
  margin-top: 56px;
  gap: 24px;
}

.p-flow h3 {
  margin-bottom: 20px;
  font-size: 1.125rem;
  font-weight: 700;
}

.p-flow ol {
  display: grid;
  gap: 12px;
  list-style: none;
}

.p-flow li {
  display: grid;
  min-height: 76px;
  padding: 16px;
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md);
  background: var(--color-bg-elevated);
  gap: 12px;
  grid-template-columns: 34px 1fr;
  align-items: center;
}

.p-flow li span {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-accent-coral);
  color: var(--color-text-inverse);
  font-size: 0.6875rem;
  font-weight: 500;
  place-items: center;
}

.p-flow li p {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
}

.p-results {
  display: grid;
  min-height: 150px;
  padding: 24px;
  align-content: center;
}

.p-results > p {
  color: var(--color-accent-coral);
  font-size: 0.6875rem;
  font-weight: 500;
}

.p-results strong {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  line-height: 1.5;
}

.p-results span {
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
}

/* お問い合わせ */
.p-contact {
  min-height: 936px;
  background: var(--color-bg-page);
}

.p-contact-circle {
  top: 294px;
  left: -82px;
  width: 300px;
  height: 300px;
  opacity: 0.42;
}

.p-contact-grid,
.p-contact-intro {
  display: grid;
  gap: 28px;
}

.p-contact-intro > p {
  color: var(--color-text-secondary);
}

.p-contact-intro img {
  display: none;
}

/* PCレイアウト */
@media (min-width: 1024px) {
  .p-hero {
    min-height: 720px;
  }

  .p-hero::before {
    top: -524px;
    right: auto;
    bottom: auto;
    left: 50%;
    width: 552px;
    height: 552px;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(255 230 171 / 90%) 0 38%, rgb(255 230 171 / 42%) 39% 58%, transparent 70%);
  }

  .p-hero::after {
    position: absolute;
    top: 0;
    left: -75px;
    /* width: 915px; */
    width: 60%;
    height: 927px;
    border-radius: 500px 0 0 500px;
    background: linear-gradient(90deg, rgb(239 168 71 / 40%), rgb(255 230 171 / 40%) 50%, transparent);
    /* background: linear-gradient(90deg, rgb(239 168 71 / 40%),rgb(255 230 171 / 40%) 70%, rgb(255 255 255 / 100%) 100%, transparent); */
    /* background: linear-gradient(90deg, rgb(239 168 71 / 40%),rgb(255 230 171 / 60%) 40%,  transparent); */
    content: "";
  }

  .p-hero-photo {
    z-index: 1;
    /* top: 59px; */
    right: calc((100% - min(100% - 80px, var(--content-width))) / 2 + 17px);
    bottom: 0;
    left: auto;
    /* width: min(39.2vw, 564px); */
    height: 525px;
  }

  .p-hero-photo img {
    object-position: center;
  }

  .p-hero-wash {
    z-index: 2;
    top: 59px;
    right: calc((100% - min(100% - 80px, var(--content-width))) / 2 + 17px);
    bottom: 0;
    left: auto;
    width: min(39.2vw, 564px);
    height: 661px;
  background: none ;
    /* background: linear-gradient(90deg, #fff 0%, rgba(253, 253, 251, 0.00) 58.68%, rgba(253, 252, 250, 0.00) 70%, #fff 100%); */
    /* background: linear-gradient(90deg, var(--color-bg-page), transparent 52% 72%, var(--color-bg-page)); */
    /* background: linear-gradient(90deg, #fff, transparent 52% 72%, #fff); */
    /* background: linear-gradient(90deg, #fff 0%, transparent 58.68%, transparent 70%, #fff 100%); */
  }

  .p-hero-copy {
    z-index: 3;
    width: min(100% - 80px, var(--content-width));
    min-height: 720px;
    padding-top: 0;
    padding-bottom: 80px;
    justify-content: center;
  }

  .p-hero-label {
    display: block;
    margin-bottom: 12px;
  }

  .p-hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.5;
  }

  .p-hero-lead {
    margin-top: 30px;
    font-size: 1.0625rem;
    line-height: 1.88;
  }

  .p-hero-note {
    position: static;
    margin-top: 44px;
    text-align: left;
  }

  .p-hero .c-button {
    position: static;
    margin-top: 10px;
    transform: none;
  }

  .p-hero .c-button:hover {
    transform: translateY(-2px);
  }

  .p-profile {
    min-height: 960px;
  }

  .p-profile-circle {
    top: 633px;
    left: calc(50% - 699px);
  }

  .p-profile-grid {
    margin-top: 82px;
    gap: 120px;
    grid-template-columns: 440px 1fr;
  }

  .p-profile-visual {
    height: 644px;
  }

  .p-profile-main {
    height: 570px;
    border-radius: 220px 24px 24px;
  }

  .p-profile-detail {
    right: -72px;
    width: 230px;
    height: 180px;
    border-width: 8px;
  }

  .p-profile-name {
    font-size: 2.125rem;
    font-weight: 700;
    line-height: 1.41;
  }

  .p-profile-intro {
    margin-top: 32px;
    gap: 24px;
    font-size: 0.9375rem;
    line-height: 1.93;
  }

  .p-profile-stories {
    margin-top: 34px;
    grid-template-columns: repeat(2, 1fr);
  }

  .p-philosophy {
    min-height: 680px;
  }

  .p-philosophy-circle {
    top: 0;
    right: calc(50% - 801px);
    width: 560px;
    height: 560px;
  }

  .p-philosophy-grid {
    margin-top: 72px;
    gap: 60px;
    grid-template-columns: 520px 1fr;
  }

  .p-philosophy-photo {
    height: 390px;
    border-radius: 24px 190px 24px 24px;
  }

  .p-philosophy-list {
    gap: 18px;
  }

  .p-philosophy-item {
    display: grid;
    min-height: 112px;
    padding: 20px 27px;
    border: 1px solid var(--color-border-default);
    border-radius: 16px;
    box-shadow: none;
    gap: 10px;
    grid-template-columns: 110px 1fr;
    align-items: start;
  }

  .p-philosophy-item h3 {
    margin-top: 0;
  }

  .p-principles {
    min-height: 720px;
  }

  .p-principles-circle {
    top: 92px;
    right: calc(50% - 689px);
    bottom: auto;
    width: 524px;
    height: 524px;
  }

  .p-principles-grid {
    margin-top: 32px;
    gap: 80px;
    grid-template-columns: 630px 1fr;
    align-items: center;
  }

  .p-principles-list {
    display: grid;
    gap: 0 50px;
    grid-template-columns: repeat(2, 1fr);
  }

  .p-principles-list li {
    min-height: 118px;
  }

  .p-principles-photo {
    width: 480px;
  }

  .p-voices {
    min-height: 930px;
  }

  .p-voices-circle {
    top: 459px;
    left: calc(50% - 775px);
    width: 397px;
    height: 397px;
  }

  .p-voices-heading {
    min-height: 170px;
  }

  .p-voices-heading img {
    top: 0;
    width: 344px;
    height: 200px;
    border-radius: 105px 18px 105px 18px;
  }

  .p-voices-list {
    margin-top: 0;
    gap: 28px 30px;
    grid-template-columns: repeat(3, 1fr);
  }

  .p-voice-card {
    min-height: 150px;
  }

  .p-voice-card:last-child {
    grid-column: 2;
  }

  .p-services {
    min-height: 1240px;
  }

  .p-services-circle {
    top: 820px;
    right: calc(50% - 760px);
    width: 480px;
    height: 480px;
  }

  .p-services-heading {
    gap: 30px;
    grid-template-columns: 1fr 560px;
    align-items: start;
  }

  .p-service-list {
    margin-top: 62px;
    gap: 60px;
    grid-template-columns: repeat(2, 1fr);
  }

  .p-service-card {
    min-height: 632px;
  }

  .p-service-content {
    min-height: 422px;
  }

  .p-service-description {
    min-height: 90px;
  }

  .p-service-card .c-button {
    margin-top: auto;
  }

  .p-service-bottom {
    margin-top: 70px;
    gap: 30px;
    grid-template-columns: 1fr 360px;
    align-items: end;
  }

  .p-flow ol {
    gap: 0;
    grid-template-columns: repeat(3, 1fr);
  }

  .p-flow li {
    position: relative;
    border-radius: 0;
  }

  .p-flow li:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
  }

  .p-flow li:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
  }

  .p-contact {
    min-height: 760px;
  }

  .p-contact-circle {
    top: 294px;
    left: calc(50% - 664px);
    width: 390px;
    height: 390px;
  }

  .p-contact-grid {
    gap: 140px;
    grid-template-columns: 500px 560px;
  }

  .p-contact-intro img {
    display: block;
    width: 100%;
    height: 310px;
    margin-top: 18px;
    border-radius: 155px 20px 155px 20px;
    object-fit: cover;
  }
}

@media (max-width: 600px) {
  .p-hero-photo img {
    width: auto;
    height:400px ;

  }
.p-hero-photo {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.p-hero-copy {
  padding-top: 16px;
  /* height: 100vh;  */
}
}