:root {
  --pad-x: clamp(30px, 6vw, 130px);
  --offset: clamp(100px, 11vw, 180px);
  --f-ja: "Shippori Mincho", serif;
  --fs-h1: clamp(4rem, 5vw, 61px);
}

.page-heading {
  margin-left: var(--pad-x);
}

.page-heading .page-title {
  font-size: var(--fs-h1);
  font-weight: 400;
  color: black;
  margin-bottom: 15px;
  line-height: calc(72 / 61);
}

.page-heading .page-sub {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.page-container {
  padding-top: var(--offset);
  font-family: var(--f-ja);
}

/* Page Practice Areas */

.page-practice-areas {
  padding-top: var(--offset);

  font-family: var(--f-ja);
}

.page-practice__section-1 {
  padding-bottom: clamp(60px, 5vw, 100px);

  background: linear-gradient(to top,
      rgba(220, 228, 229, 0.34),
      rgba(255, 255, 255, 0.34));
}

.practice-card__icon_sp {
  display: none;
}

@media screen and (max-width: 768px) {

  .page-heading {
    padding-top: 50px;
  }

  .page-heading .page-sub {
    font-size: 14px;
  }

  .practice-card__icon {
    display: none;
  }

  .practice-card__icon_sp {
    display: flex;
    justify-content: center;
    margin: 0;
  }

  .practice-card__icon_sp img {
    display: block;
  }
}

.page-practice__title {
  font-size: var(--fs-h1);
  font-weight: 400;
  color: black;
  margin-bottom: 15px;
  line-height: calc(72 / 61);
}

.page-practice__sub {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.page-practice__content {
  gap: 50px;
  margin-top: 120px;
}

.page-practice__cards {
  display: flex;
  flex-direction: column;
  gap: 100px;
  margin-left: 17vw;
}

.practice-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10vw;
  align-items: center;
}

.practice-card__icon img {
  width: 160px;
  height: auto;
}

.practice-card__content {
  width: 100%;
}

.practice-card__heading {
  display: flex;
  align-items: end;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #d9d9d9;
  margin-bottom: 26px;
}

.practice-card__number {
  font-size: clamp(45px, 4vw, 60px);
  color: #d1d1d1;
  font-weight: medium;
  line-height: 1;
}

.practice-card__heading h2 {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 20px);
  font-weight: medium;
  line-height: 1.4;
  color: #000;
  font-family: var(--f-ja);
}

.practice-card__content p {
  margin: 0;
  font-size: 16px;
  line-height: 2;
  color: black;
  font-family: var(--f-ja);
  padding-right: 17vw;
}

.page-practice__back {
  margin-top: clamp(70px, 8vw, 140px);
  display: flex;
  justify-content: flex-end;
}

.page-practice__back-link {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;

  padding-bottom: 10px;
  font-weight: medium;
  text-decoration: none;
  color: #111;
  font-family: var(--f-ja);
  font-size: 16px;
  line-height: 1;
  margin-right: 26%;
}

.page-practice__back-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 1px;
  background: #cfcfcf;
}

.page-practice__back-arrow {
  font-size: 34px;
  line-height: 1;
  color: #cfcfcf;

  transition: transform 0.3s ease;
}

.page-practice__back-link:hover .page-practice__back-arrow {
  transform: translateX(6px);
}

@media screen and (max-width: 767px) {
  .page-practice__sub {
    font-size: 14px;
  }

  .page-practice__content {
    margin-top: 70px;
  }

  .page-practice__cards {
    margin-left: unset;
    gap: 60px;
  }

  .practice-card {
    width: 90%;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .page-practice__back-link {
    margin-right: 10%;
  }

  .practice-card__icon img {
    width: 80px;
  }

  .practice-card__heading {
    gap: 12px;
    margin-bottom: 0;
    padding-bottom: 14px;
  }

  .practice-card__number {
    font-size: 42px;
  }

  .practice-card__content p {
    max-width: none;
    padding-right: 0;
  }

  .practice-card__content {
    width: 100%;
  }
}

/*Page Contact*/

.page-contact {
  padding-top: var(--offset);

  font-family: var(--f-ja);
}

.contact-page__content {
  padding-top: clamp(70px, 6vw, 100px);
}

.contact-page__container {
  width: 80vw;
  max-width: 860px;
  margin: 0 auto;
  font-weight: regular;
}

@media screen and (max-width: 767px) {
  .contact-page__container {
    width: calc(100% - 60px);
    max-width: none;
  }
}

.cf7-step[hidden] {
  display: none !important;
}

.cf7-hidden-submit {
  display: none;
}

.cf7-form-wrap {
  width: 100%;
}

.cf7-field-group {
  padding: 20px 0;
  border-top: 1px solid #efefef;
}

.cf7-field-group:last-of-type {
  border-bottom: 1px solid #efefef;
}

.cf7-field-group--textarea {
  border-bottom: 1px solid #efefef;
}

.cf7-field-group p {
  margin: 0;

  display: flex;
  align-items: center;
  gap: 20px;
}

.cf7-field-group--textarea p {
  align-items: flex-start;
}

.cf7-field-group label {
  width: 180px;
  flex-shrink: 0;
  text-align: right;
  font-size: 14px;
  line-height: 1.8;
  color: #000;
  font-weight: 700;
}

.cf7-field-group .required {
  color: #000;
}

.cf7-field-group .wpcf7-form-control-wrap {
  flex: 1;
}

.cf7-field-group input[type="text"],
.cf7-field-group input[type="email"],
.cf7-field-group input[type="tel"],
.cf7-field-group select,
.cf7-field-group textarea {
  width: 100%;

  border: none;
  background: #f4f4f4;

  padding: 16px 18px;

  font-size: 14px;
  color: #111;

  appearance: none;
  -webkit-appearance: none;
}

.cf7-field-group input[type="text"],
.cf7-field-group input[type="email"],
.cf7-field-group input[type="tel"],
.cf7-field-group select {
  height: 56px;
}

.cf7-field-group textarea {
  height: 240px;
  resize: none;
  padding-top: 18px;
}

.cf7-field-group input::placeholder,
.cf7-field-group textarea::placeholder {
  color: #b5b5b5;
}

.cf7-field-group select {
  cursor: pointer;
}

.cf7-form-wrap .wpcf7-submit {
  width: 240px;
  height: 60px;

  margin: 50px auto 0;
  display: block;

  border: 1px solid #d9d9d9;
  background: transparent;

  font-size: 15px;
  letter-spacing: 0.08em;
  cursor: pointer;

  transition: 0.3s ease;
}

.c-page-text {
  font-size: 16px;
  font-weight: 400;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 80px;
}

.cf7-form-wrap .wpcf7-submit:hover {
  opacity: 0.7;
}

.cf7-form-wrap>p {
  margin: 0;
}

.cf7-field-group:last-of-type p,
.cf7-field-group:has(textarea) p,
.cf7-field-group:has(textarea) {
  align-items: flex-start;
  width: 100%;
}

.cf7-field-group:has(textarea) label {
  padding-top: 14px;
}

.cf7-privacy-text br {
  display: none;
}

.cf7-privacy-text {
  margin-top: 90px !important;

  text-align: center;

  font-size: 16px;
  font-weight: 400;

  color: #000;

  white-space: nowrap;
}

@media screen and (max-width: 767px) {
  .cf7-privacy-text {
    margin-top: 50px !important;
    font-size: 13px;
    white-space: normal;
    line-height: 1.7;
  }
}

.cf7-privacy-text a {
  display: inline;

  color: #000;

  text-decoration: underline;
  text-underline-offset: 3px;
}

.cf7-acceptance {
  /* margin-top: 35px; */
  display: flex;
  justify-content: center;
}

.cf7-acceptance .wpcf7-list-item {
  margin: 0;
  font-size: 16px;
}

.cf7-acceptance label {
  display: flex;
  align-items: center;
  gap: 12px;

  cursor: pointer;

  font-size: 16px;
  line-height: 1.8;
  color: #111;
}

.cf7-acceptance input[type="checkbox"] {
  width: 24px;
  height: 24px;

  margin: 0;

  appearance: none;
  -webkit-appearance: none;

  border: 1px solid #bdbdbd;
  background: #fff;

  position: relative;
  cursor: pointer;
}

.cf7-acceptance input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;

  top: 4px;
  left: 8px;

  width: 6px;
  height: 12px;

  border-right: 2px solid #111;
  border-bottom: 2px solid #111;

  transform: rotate(45deg);
}

.cf7-submit-wrap p {
  margin: 0;
}

.cf7-submit-wrap .wpcf7-submit,
.cf7-submit-wrap button,
.cf7-submit-wrap .js-cf7-confirm {
  width: 100%;
  height: 100%;

  padding: 0;
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  border: none;
  background: transparent;
  box-shadow: none;

  font: inherit;
  color: inherit;
  letter-spacing: inherit;

  appearance: none;
  -webkit-appearance: none;

  cursor: pointer;
}

/* hide CF7 native response/validation output */
.wpcf7-response-output,
.wpcf7 form .wpcf7-response-output,
.wpcf7-not-valid-tip {
  display: none !important;
}

.cf7-submit-wrap .wpcf7-spinner {
  display: none;
}

.cf7-submit-wrap {
  margin: 60px auto;
}

@media screen and (max-width: 767px) {
  .cf7-privacy-text br {
    display: none;
  }

  .cf7-acceptance label {
    font-size: 14px;
  }

  .cf7-submit-wrap .wpcf7-submit {
    width: 100%;
    font-size: 16px;
  }

  .cf7-submit-wrap::after {
    right: 20px;
  }
}

.contact-page__info {
  margin-top: 120px;

  padding: 50px 0;

  border-top: 1px solid #efefef;
  border-bottom: 1px solid #efefef;
}

.contact-page__info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.contact-page__info-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-page__info-label {
  font-size: 20px;
  letter-spacing: 0.18em;
  line-height: 1;
}

.contact-page__info-item a,
.contact-page__info-item span {
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #111;
  text-decoration: none;
}

.contact-page__hours {
  margin-top: 28px;

  text-align: center;

  font-size: 14px;
  line-height: 1.8;
  color: #111;
}

@media screen and (max-width: 767px) {
  .contact-page__info {
    padding: 40px 0;
  }

  .contact-page__info-row {
    flex-direction: column;
    gap: 24px;
  }

  .contact-page__info-item {
    justify-content: center;
  }

  .contact-page__info-item a,
  .contact-page__info-item span {
    font-size: 32px;
  }
}

@media screen and (max-width: 767px) {
  .cf7-field-group {
    padding: 14px 0;

    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .cf7-field-group p {
    margin: 0;

    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .cf7-field-group br {
    display: none;
  }

  .cf7-field-group label,
  .cf7-field-group .wpcf7-form-control-wrap {
    width: 100%;
    display: block;
  }

  .cf7-field-group textarea {
    box-sizing: border-box;
    max-width: 100%;
  }

  .cf7-field-group label {
    text-align: left;
    font-size: 13px;
    line-height: 1.4;
  }

  .cf7-field-group input[type="text"],
  .cf7-field-group input[type="email"],
  .cf7-field-group input[type="tel"],
  .cf7-field-group select {
    height: 50px;
    padding: 12px 14px;
    font-size: 16px;
  }

  .cf7-field-group textarea {
    height: 180px;
    padding: 14px;
    font-size: 16px;
  }

  .cf7-form-wrap .wpcf7-submit {
    width: 100%;
  }

  .cf7-submit-wrap {
    margin: 40px auto;
  }
}

/*custom dropdown design */

.cf7-field-group--select .wpcf7-form-control-wrap {
  position: relative;
}

.cf7-field-group--select .wpcf7-form-control-wrap::after {
  content: "";

  position: absolute;
  top: 50%;
  right: 14px;

  width: 16px;
  height: 16px;

  background: #000;

  transform: translateY(-50%);

  pointer-events: none;
}

.cf7-field-group--select .wpcf7-form-control-wrap::before {
  content: "";

  position: absolute;
  top: 50%;
  right: 19px;

  width: 5px;
  height: 5px;

  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;

  transform: translateY(-70%) rotate(45deg);

  z-index: 2;

  pointer-events: none;
}

.cf7-field-group--select select {
  background-image: none;
  padding-right: 50px;
}

/* === CF7 Steps wrapper === */

.cf7-steps {
  position: relative;
  width: 100%;
}

/* === Confirm step === */

.cf7-step-confirm .cf7-field-group {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 22px 0;
}

.cf7-step-confirm .cf7-field-group strong {
  width: 180px;
  flex-shrink: 0;

  text-align: right;

  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  color: #000;
}

.cf7-step-confirm .cf7-field-group [data-cf7-bind] {
  flex: 1;
  min-height: 24px;

  font-size: 15px;
  line-height: 1.8;
  color: #111;

  word-break: break-word;
  white-space: pre-wrap;
}

.cf7-actions {
  margin-top: 60px;

  display: flex;
  justify-content: center;
  gap: 24px;

  flex-wrap: wrap;
}

.cf7-actions button {
  min-width: 220px;
  height: 60px;
  padding: 0 24px;

  border: 1px solid #d9d9d9;
  background: transparent;

  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: #111;

  cursor: pointer;
  transition: 0.3s ease;
}

.cf7-actions .js-cf7-send {
  background: #111;
  color: #fff;
  border-color: #111;
}

.cf7-actions button:hover {
  opacity: 0.7;
}

/* === Thanks step === */

.cf7-thanks {
  text-align: center;
  padding: 80px 0 40px;
}

.cf7-thanks__icon {
  width: 84px;
  height: 84px;

  margin: 0 auto 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: #111;
  color: #fff;

  font-size: 38px;
  line-height: 1;
}

.cf7-thanks__title {
  margin: 0 0 28px;

  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  color: #000;

  font-family: var(--f-ja);
}

.cf7-thanks__text {
  margin: 0;

  font-size: 15px;
  line-height: 2;
  color: #333;
}

/* === Steps responsive === */

@media screen and (max-width: 767px) {
  .cf7-step-confirm .cf7-field-group {
    flex-direction: column;
    gap: 8px;
    padding: 18px 0;
  }

  .cf7-step-confirm .cf7-field-group strong {
    width: 100%;
    text-align: left;
    font-size: 13px;
  }

  .cf7-step-confirm .cf7-field-group [data-cf7-bind] {
    font-size: 14px;
  }

  .cf7-actions {
    margin-top: 40px;

    flex-direction: column;
    gap: 14px;
  }

  .cf7-actions button {
    width: 100%;
    min-width: 0;
    height: 54px;
    font-size: 14px;
  }

  .cf7-thanks {
    padding: 50px 0 20px;
  }

  .cf7-thanks__icon {
    width: 68px;
    height: 68px;
    margin-bottom: 28px;
    font-size: 30px;
  }

  .cf7-thanks__title {
    margin-bottom: 20px;
    font-size: 18px;
  }

  .cf7-thanks__text {
    font-size: 14px;
    line-height: 1.9;
  }

  .cf7-thanks__text br {
    display: none;
  }
}

/*Page Privacy Policy */

.policy-items {
  width: 100%;
  max-width: 52vw;
  margin: 0 auto;
  padding-top: 90px;
  color: #000;
}

.privacy-policy-block {
  padding-bottom: 70px;
}

.privacy-policy-block__title {
  display: flex;
  align-items: center;
  gap: 14px;

  margin: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid #d8d8d8;

  font-size: 20px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.08em;
}

.privacy-policy-block__number {
  flex-shrink: 0;
}

.privacy-policy-block__heading {
  display: block;
}

.privacy-policy-block__content {
  padding-top: 20px;
}

.privacy-policy-block__content p {
  margin: 0;

  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.08em;
}

.privacy-policy-block__content p+p {
  margin-top: 12px;
}

.privacy-policy-block__list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.privacy-policy-block__list li {
  position: relative;
  padding-left: 2.2em;

  font-size: 16px;
  font-weight: 400;
  line-height: 2.5;
  letter-spacing: 0.08em;
  color: #222;
}

.privacy-policy-block__list li::before {
  content: "（" counter(list-item) "）";
  position: absolute;
  left: 0;
}

.privacy-policy-block__contact a {
  color: inherit;
  text-decoration: none;
}

@media screen and (max-width: 768px) {
  .policy-items {
    width: 90%;
    max-width: unset;
    padding-top: 70px;
  }

  .privacy-policy-block {
    padding-bottom: 50px;
  }

  .privacy-policy-block__title {
    gap: 10px;
    padding-bottom: 14px;
    line-height: 1.7;
  }

  .privacy-policy-block__content {
    padding-top: 16px;
  }

  .privacy-policy-block__content p,
  .privacy-policy-block__list li {
    line-height: 2.2;
  }

  .privacy-policy-block__list {
    margin-top: 14px;
  }
}

.policy-date {
  margin-top: 40px;

  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-align: right;
  color: #222;
}

@media screen and (max-width: 768px) {
  .policy-date {
    margin-top: 32px;
    font-size: 14px;
  }
}

.policy-intro {
  width: 100%;
  margin: 0 auto 72px;

  font-size: 16px;
  font-weight: 400;
  line-height: 2.4;
  letter-spacing: 0.08em;
  color: #222;
}

@media screen and (max-width: 768px) {
  .policy-intro {
    margin-bottom: 54px;


    line-height: 2;
  }
}