/* typography
========================================== */
/* color
========================================== */
/* layout
========================================== */
/* spacing
========================================== */
/* mixin
========================================== */
html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  font-family: "Noto Sans JP", system-ui;
  font-weight: 400;
  background: #fefcf6;
  padding-top: 131px;
}
@media screen and (min-width: 1024px) {
  body {
    font-size: 18px;
  }
}

.l-wrapper {
  overflow: hidden;
}

.c-width {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* layout-section
========================================== */
.l-section {
  margin-bottom: 120px;
}
.l-section--lower {
  margin-top: 60px;
}
@media screen and (min-width: 1024px) {
  .l-section--lower {
    margin-top: 0;
  }
}

.o-section__title {
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.o-section__title--en {
  color: #9ca3af;
  font-size: 14px;
  font-family: "Montserrat", system-ui;
}
.o-section__title--jp {
  color: #398d78;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 40px;
}
.o-section__title--lower {
  color: #398d78;
  font-size: 24px;
  font-weight: 500;
}
.o-section__title--footer {
  text-align: center;
  color: #fefcf6;
}
.o-section__title.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.o-section__text {
  text-align: justify;
}
.o-section__text p {
  margin-bottom: 1em;
}
.o-section__text p:last-of-type {
  margin-bottom: 0;
}

/* layout-pc
========================================== */
@media screen and (min-width: 1024px) {
  .u-pc-only {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-end;
    gap: 60px;
  }
  .u-pc-only--owner {
    flex-direction: row;
    align-items: center;
  }
  .u-pc-only--price {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
  }
}

@media screen and (min-width: 1024px) {
  .u-pc-only-footer {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 120px;
  }
}

.u-pc-only-group {
  display: none;
}
@media screen and (min-width: 1024px) {
  .u-pc-only-group {
    display: block;
  }
}

/* button
========================================== */
.c-button {
  border: solid 2px #398d78;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  color: #398d78;
  font-weight: 500;
  width: 100%;
}
@media screen and (min-width: 480px) {
  .c-button {
    max-width: 300px;
    margin: 0 auto;
  }
}
.c-button:hover {
  color: #fefcf6;
  background-color: #398d78;
}
.c-button--header {
  width: 200px;
  height: 45px;
}
.c-button--footer {
  height: 70px;
  color: #677876;
  border: none;
  background: #fefcf6;
}
.c-button--footer:hover {
  background-color: #677876;
  border: solid 2px #fefcf6;
}
.c-button--previous {
  color: #677876;
  border: solid 2px #677876;
}
.c-button--previous:hover {
  color: #fefcf6;
  background-color: #677876;
}

/* button-more
========================================== */
.c-button-more-wrap {
  display: flex;
  justify-content: flex-end;
}

.c-button-more {
  display: inline-flex;
  align-items: center;
}
.c-button-more:hover {
  color: #398d78;
}
.c-button-more__text {
  font-size: 14px;
}
.c-button-more__icon {
  display: flex;
  align-items: center;
}

.c-button-more-icon {
  width: 24px;
  height: 24px;
}

/* card slider
========================================== */
.c-card-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  margin-top: 40px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.c-card-slider::-webkit-scrollbar {
  display: none;
}
@media (min-width: 1180px) {
  .c-card-slider {
    justify-content: space-between;
  }
}

.c-card-slider__item {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: 270px;
  height: 376px;
  background: #fff;
  border: solid 1px #a8c1b8;
  border-radius: 12px;
  scroll-snap-align: start;
  padding: 30px 25px 30px;
}
.c-card-slider__item--process {
  background: none;
  border: solid 1px #d5c5b4;
  height: 400px;
}

.o-card-slider__wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  gap: 20px;
}

.o-card-slider__title {
  font-size: 18px;
  letter-spacing: 0.05em;
}
.o-card-slider__title--center {
  text-align: center;
}

.o-card-slider__text {
  text-align: justify;
}

/* contact form
========================================== */
.c-form {
  margin-top: 60px;
}

.c-form__item {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
}
.c-form__item + .c-form__item {
  margin-top: 28px;
}

.c-form__head {
  font-weight: 500;
  width: 100%;
  -moz-text-align-last: left;
       text-align-last: left;
}

.c-form__content {
  width: 100%;
  -moz-text-align-last: left;
       text-align-last: left;
}
.c-form__content textarea {
  resize: vertical;
  height: 250px;
  width: 100%;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #9b9b9b;
  text-align: justify;
  box-sizing: border-box;
}
.c-form__content input {
  height: 70px;
  width: 100%;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #9b9b9b;
  text-align: left;
  box-sizing: border-box;
}
.c-form__content select {
  height: 70px;
  width: 100%;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #9b9b9b;
  box-sizing: border-box;
}
.c-form__content ::-moz-placeholder {
  color: #bbbfba;
}
.c-form__content ::placeholder {
  color: #bbbfba;
}
.c-form__content :focus {
  outline: none;
  border: 2px solid #398d78;
}

.c-form__attention {
  text-align: right;
  margin-bottom: 40px;
}

.c-form__attention-text {
  font-size: 14px;
}

.c-form__acceptance {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
}
.c-form__acceptance p {
  display: inline-block;
}
.c-form__acceptance a {
  text-decoration: underline;
}
.c-form__acceptance a:hover {
  color: #398d78;
}
.c-form__acceptance label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.c-form__acceptance input[type=checkbox] {
  cursor: pointer;
  display: flex;
}
.c-form__acceptance input[type=checkbox]::before {
  content: "";
  min-width: 20px;
  min-height: 20px;
  border: 1px solid #333;
  position: relative;
}
.c-form__acceptance input[type=checkbox]::after {
  content: "";
  height: 20px;
  width: 20px;
  border: 2px solid;
  border-color: transparent;
  position: absolute;
}
.c-form__acceptance input[type=checkbox]:checked::before {
  content: "";
  height: 20px;
  width: 20px;
  border: none;
  position: relative;
}
.c-form__acceptance input[type=checkbox]:checked::after {
  content: "";
  position: absolute;
  height: 10px;
  width: 20px;
  border: 2px solid #398d78;
  top: 0;
  transform: rotate(-45deg);
  transition: all 0.3s ease-in-out;
  border-top: none;
  border-right: none;
}

.p-send__btn {
  text-align: center;
}

.wpcf7-list-item {
  margin: 0;
}

.wpcf7-spinner {
  display: none;
}

.wpcf7-not-valid-tip {
  color: #398d78;
  margin-top: 10px;
}

/* scroll spacing
========================================== */
#owner_voice,
#staff,
#achievements,
#company,
#group,
#inheritance,
#will,
#adult-guardianship,
#legal-planning,
#inheritance_price,
#will_price,
#adult-guardianship_price,
#legal-planning_price,
#inheritance_knowledge,
#will_knowledge,
#adult-guardianship_knowledge,
#legal-planning_knowledge {
  scroll-margin-top: 200px;
}
@media screen and (min-width: 1024px) {
  #owner_voice,
  #staff,
  #achievements,
  #company,
  #group,
  #inheritance,
  #will,
  #adult-guardianship,
  #legal-planning,
  #inheritance_price,
  #will_price,
  #adult-guardianship_price,
  #legal-planning_price,
  #inheritance_knowledge,
  #will_knowledge,
  #adult-guardianship_knowledge,
  #legal-planning_knowledge {
    scroll-margin-top: 120px;
  }
}

#top {
  scroll-margin-top: 131px;
}

.l-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #fefcf6;
  box-shadow: none;
  transition: box-shadow 0.2s ease;
}
.l-header.is-scrolled {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.p-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 16px;
}

.p-hd__logo {
  height: 100%;
}

.p-hd__logo-link {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
}

.p-hd__logo-img {
  display: flex;
  align-items: center;
  color: #398d78;
  height: clamp(20px, 8vw, 25px);
  width: clamp(20px, 8vw, 25px);
}
.p-hd__logo-img svg {
  height: 100%;
  width: auto;
}

.p-hd__logo-txt {
  font-size: clamp(14px, 4.5vw, 18px);
  color: #398d78;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.p-hd__nav {
  height: 100%;
  display: none;
}
@media screen and (min-width: 1024px) {
  .p-hd__nav {
    display: block;
    font-size: 14px;
  }
}

.p-hd__nav-list {
  height: 100%;
  display: flex;
}

.p-hd__menu-item {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-hd__menu-link {
  letter-spacing: 0.05em;
  display: inline-block;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  transition: color 0.3s ease;
}
.p-hd__menu-link:hover {
  color: #398d78;
}

.p-hd__menu-link-line {
  position: relative;
}
.p-hd__menu-link-line::after {
  content: "";
  width: 100%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: #398d78;
  position: absolute;
  transform: scaleX(0);
  transform-origin: center;
  transition: all 0.5s;
}
.p-hd__menu-link-line.is-active::after {
  transform: scaleX(1);
}

.p-hd__ctc-btn {
  margin-left: 16px;
}

/* header-sp
========================================== */
.p-hd__sp-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: clamp(85px, 25vw, 92px);
  height: 100%;
}
@media screen and (min-width: 1024px) {
  .p-hd__sp-btn {
    display: none;
  }
}

.p-hd__sp-ctc-btn {
  height: 40px;
  width: 40px;
  background-color: #398d78;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.p-hd__sp-ctc-icon {
  height: 30px;
  width: 30px;
  color: #fefcf6;
}

.p-hd__sp-menu {
  display: block;
  padding: 0px 16px 4px 16px;
  margin: auto;
}
@media screen and (min-width: 600px) {
  .p-hd__sp-menu {
    max-width: 700px;
  }
}
@media screen and (min-width: 1024px) {
  .p-hd__sp-menu {
    display: none;
  }
}

.p-hd__sp-nav {
  height: 100%;
}

.p-hd__sp-nav-list {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.p-hd__sp-item {
  width: 90px;
}

.p-hd__sp-link {
  position: relative;
  font-size: clamp(9px, 3vw, 12px);
  letter-spacing: 0.05em;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.p-hd__sp-link--gap {
  gap: 4px;
}

.p-hd__sp-icon {
  height: 35px;
  width: 35px;
  color: #398d78;
}
.p-hd__sp-icon--height {
  height: 40px;
  width: 40px;
}

.l-footer {
  background: #677876;
  color: #fefcf6;
}
.l-footer__wrapper {
  padding-top: 80px;
  padding-bottom: 8px;
}

.p-footer-contact {
  margin-bottom: 80px;
}
.p-footer-contact__tel {
  display: block;
  font-size: 23px;
  letter-spacing: 0.2em;
  font-weight: 600;
  text-align: center;
  margin-bottom: 28px;
}

.p-footer__divider {
  display: block;
  border-bottom: solid 1px #fefcf6;
}

.p-footer-info {
  margin: 40px 0;
}
.p-footer-info__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.p-footer-info__item {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.p-footer-info__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  transform: translateY(2px);
}
.p-footer-info__icon svg {
  height: 100%;
  width: auto;
}
.p-footer-info__content {
  display: flex;
  gap: 16px;
}
.p-footer-info__row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.p-footer-info__label {
  min-width: 64px;
}
@media screen and (min-width: 1024px) {
  .p-footer-info__label {
    min-width: 72px;
  }
}
.p-footer-info__divider {
  height: 20px;
  width: 1px;
  background-color: #fefcf6;
  transform: translateY(5px);
}

.p-footer-logo {
  margin-bottom: 24px;
}
.p-footer-logo__link {
  display: flex;
  align-items: center;
  gap: 4px;
}
.p-footer-logo__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
}
.p-footer-logo__icon svg {
  height: 100%;
  width: auto;
}
.p-footer-logo__text {
  font-size: 18px;
}

.p-footer-group {
  margin-bottom: 24px;
}
.p-footer-group__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.p-footer-group__link {
  display: flex;
  gap: 4px;
}
.p-footer-group__text {
  font-size: 16px;
}

.p-footer-bottom {
  margin: 24px 0;
}
.p-footer-bottom__list {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.p-footer-bottom__link {
  display: flex;
  gap: 4px;
}
.p-footer-bottom__pagetop {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.p-footer-bottom__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 24px;
  width: 24px;
}
.p-footer-bottom__icon svg {
  height: 100%;
  width: auto;
}
.p-footer-bottom__icon-text {
  display: block;
  font-size: 12px;
  font-family: "Montserrat", system-ui;
  line-height: 1.2;
  letter-spacing: 0.2em;
  font-weight: 500;
}

.p-footer__copy {
  font-size: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* hover
========================================== */
.u-link-hover:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* reCAPTCHA
========================================== */
.grecaptcha-badge {
  visibility: hidden;
}

.o-lower-section__text {
  text-align: justify;
  margin-bottom: 1em;
}
.o-lower-section__text:last-of-type {
  margin-bottom: 40px;
}
.o-lower-section__heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}
@media screen and (min-width: 480px) {
  .o-lower-section__heading {
    justify-content: flex-start;
    gap: 40px;
  }
}
.o-lower-section__img {
  height: 140px;
  width: auto;
  display: block;
  transform: translateY(-30px);
}
.o-lower-section__img--height-110 {
  height: 110px;
}
.o-lower-section__img--height-95 {
  height: 95px;
}

.p-privacy__txt span {
  font-weight: 500;
  line-height: 2;
}