:root {
  --color-navy: #354c78;
  --color-gold: #a18227;
  --color-gold-shadow: #6c511c;
  --color-text: #23231f;
  --color-muted: #a9a99f;
  --color-pale-blue: #d8eaff;
  --color-gray: #f8f8f8;
  --font-sans: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  --font-mincho: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --font-roman: "Marcellus", Georgia, serif;
  --font-condensed: "DIN Condensed", "Arial Narrow", sans-serif;
  --content-width: 1200px;
  --narrow-width: 1040px;
}

:where(body.inheritance-active) :where(.inheritance-page, .subpage),
:where(body.inheritance-active) :where(.inheritance-page, .subpage) *,
:where(body.inheritance-active) :where(.inheritance-page, .subpage) *::before,
:where(body.inheritance-active) :where(.inheritance-page, .subpage) *::after {
  box-sizing: border-box;
}

body.inheritance-active {
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  line-height: normal;
  letter-spacing: 0;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

:where(body.inheritance-active) :where(.inheritance-page, .subpage) img {
  display: block;
  max-width: 100%;
}

:where(body.inheritance-active) :where(.inheritance-page, .subpage) a {
  color: inherit;
  text-decoration: none;
}

:where(body.inheritance-active) :where(.inheritance-page, .subpage) :where(p, h1, h2, h3, dl, dd) {
  margin: 0;
}

:where(body.inheritance-active) :where(.inheritance-page, .subpage) :where(ul) {
  margin: 0;
  padding: 0;
  list-style: none;
}

:where(body.inheritance-active) :where(.inheritance-page, .subpage) :where(strong) {
  font-weight: 600;
}

body.inheritance-active .inheritance-page :where(p, h1, h2, h3, h4, h5, h6, dl, dd, ul, li, a, span, strong),
body.inheritance-active .subpage :where(p, h1, h2, h3, h4, h5, h6, dl, dd, ul, li, a, span, strong) {
  letter-spacing: 0;
}

body.inheritance-active .inheritance-page :where(p, h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption),
body.inheritance-active .subpage :where(p, h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption) {
  text-wrap: wrap;
}

body.inheritance-active .wp-site-blocks {
  padding: 0;
  background: #fff;
}

body.inheritance-active .wp-site-blocks > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

.sp-line {
  display: none;
}

.pc-line {
  display: block;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 80px;
  background: #fff;
  overflow: hidden;
}

.site-header__inner {
  width: min(var(--content-width), calc(100% - 80px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.site-header__logo {
  width: 240px;
  height: 32px;
  object-fit: contain;
}

.fv {
  position: relative;
  height: 810px;
  overflow: hidden;
  background: #fff;
}

.fv__background,
.fv__bg-layer,
.fv__bg-layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fv__background {
  z-index: 0;
  pointer-events: none;
}

.fv__bg-layer img {
  max-width: none;
  object-fit: cover;
}

.fv__bg-layer--base {
  opacity: .24;
}

.fv__bg-layer--burn {
  opacity: .64;
  mix-blend-mode: color-burn;
}

.fv__bg-layer--multiply {
  mix-blend-mode: multiply;
}

.fv__person {
  position: absolute;
  top: 99px;
  left: calc(50% + 8px);
  z-index: 1;
  width: 481px;
  height: 711px;
  overflow: hidden;
  pointer-events: none;
}

.fv__person img {
  width: auto;
  max-width: none;
  height: 100%;
  transform: translateX(-163px);
}

.fv__person-caption {
  position: absolute;
  top: 623px;
  left: calc(50% + 248px);
  z-index: 4;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.8;
  text-align: center;
  white-space: nowrap;
}

.fv__person-caption span {
  display: block;
}

.fv__tags {
  position: absolute;
  top: 152px;
  left: max(40px, calc(50% - 400px));
  z-index: 4;
  display: flex;
  gap: 12px;
  align-items: center;
}

.fv__tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  background: var(--color-navy);
  border-radius: 4px;
  white-space: nowrap;
}

.fv__copy {
  position: absolute;
  top: 205px;
  left: max(40px, calc(50% - 400px));
  z-index: 4;
  width: 448px;
  color: var(--color-navy);
}

.fv__copy h1 {
  font-family: var(--font-mincho);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.3;
}

.fv__copy h1 span {
  display: block;
}

.fv__copy h1 .sp-line {
  display: none;
}

.fv__copy h1 strong {
  font-size: 48px;
}

.fv__copy p {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
}

.fv__badges {
  position: absolute;
  top: 523px;
  left: max(40px, calc(50% - 402px));
  z-index: 5;
  display: flex;
  gap: 9px;
  align-items: center;
}

.trust-badge {
  position: relative;
  width: 110px;
  height: 103px;
  flex: 0 0 110px;
  color: var(--color-text);
  text-align: center;
}

.trust-badge img {
  position: absolute;
  max-width: none;
}

.trust-badge .trust-badge__image {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
}

.trust-badge__left {
  top: 0;
  left: 0;
  width: 49px;
  height: 102px;
}

.trust-badge__right {
  top: 0;
  left: 60px;
  width: 49px;
  height: 102px;
}

.trust-badge__spark {
  top: 9px;
  left: 50px;
  width: 11px;
  height: 10px;
}

.trust-badge__label {
  position: absolute;
  top: 20px;
  left: 0;
  width: 110px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.trust-badge__label--small {
  top: 22px;
  font-size: 10.5px;
}

.trust-badge__number {
  position: absolute;
  top: 27px;
  left: 25px;
  font-family: var(--font-condensed);
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
}

.trust-badge__suffix {
  position: absolute;
  top: 49px;
  left: 72px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
}

.trust-badge__free {
  position: absolute;
  top: 38px;
  left: 0;
  width: 110px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.fv__phone-area {
  position: absolute;
  top: 674px;
  left: 50%;
  z-index: 6;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  width: max-content;
  height: 136px;
  transform: translateX(-50%);
}

.fv__phone-area::before {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  height: 136px;
  content: "";
  background: var(--color-navy);
  transform: translateX(-50%);
}

.fv__phone {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #fff;
}

.fv__phone img {
  width: 56px;
  height: 93px;
}

.fv__phone-number {
  display: block;
  margin-top: -9px;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.fv__phone p {
  margin-top: -8px;
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  background: var(--color-gold);
  box-shadow: 0 6px 0 var(--color-gold-shadow);
}

.cta--large {
  width: 562px;
  height: 80px;
  gap: 16px;
  padding: 8px 26px;
  border-radius: 12px;
}

.cta__free {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: var(--color-gold);
  font-size: 24px;
  line-height: 1.5;
  white-space: nowrap;
  background: #fff;
}

.cta__text {
  flex: 1 1 auto;
  font-size: 28px;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

.cta__icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.section-heading {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: 100%;
  color: var(--color-navy);
  text-align: center;
}

.section-heading__en {
  font-family: var(--font-roman);
  font-size: 16px;
  line-height: 1.5;
}

.section-heading h2 {
  font-family: var(--font-mincho);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
}

.section-heading--light {
  color: #fff;
}

.section-lead {
  position: relative;
  z-index: 1;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}

.worries {
  position: relative;
  padding: 80px 40px 64px;
  overflow: hidden;
  background: #fff;
}

.worries::before {
  position: absolute;
  inset: 0;
  content: "";
  background: url("../images/worries-bg-pc.webp") center / cover no-repeat;
  opacity: .64;
}

.worries::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 460px;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 55%);
}

.worries__content {
  position: relative;
  z-index: 1;
  width: min(800px, 100%);
  margin: 64px auto 0;
}

.worries__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 408;
  object-fit: cover;
}

.worries__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 24px;
}

.worries__list li {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 43px;
  padding: 8px 16px;
  font-size: 18px;
  line-height: 1.5;
  background: #fff;
}

.worries__list img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.worries__note {
  padding-top: 32px;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}

.lead-band {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 144px;
  padding: 24px 20px;
  color: #fff;
  text-align: center;
  background: var(--color-navy);
}

.lead-band p {
  font-family: var(--font-mincho);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
}

.solution {
  position: relative;
  padding: 0 40px 80px;
  overflow: hidden;
  background: #fff;
}

.solution::before {
  position: absolute;
  inset: 0;
  content: "";
  background: url("../images/solution-bg-pc.webp") center / cover no-repeat;
  opacity: .12;
}

.section-notch {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  height: 32px;
}

.section-notch img {
  width: 96px;
  height: 32px;
  transform: scaleY(-1);
}

.solution__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
  padding-top: 48px;
}

.service-panel {
  width: min(1040px, 100%);
  text-align: center;
}

.service-panel__label {
  width: 480px;
  max-width: 100%;
  margin: 0 auto;
  padding: 16px 24px 8px;
  color: var(--color-navy);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  background: var(--color-pale-blue);
  border-radius: 8px 8px 0 0;
}

.service-panel__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  padding: 16px 24px 24px;
  background: var(--color-pale-blue);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.service-list li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  padding: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  background: var(--color-navy);
  border-radius: 8px;
}

.service-list img {
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.service-panel__caption {
  width: 100%;
  font-size: 12px;
  line-height: 1.8;
}

.solution__closing {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: 100%;
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}

.solution__highlight {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  color: #fff;
  font-family: var(--font-mincho);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.8;
  background: var(--color-navy);
}

.features {
  padding: 80px 40px 113px;
  background: #fff;
}

.features__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.features__list {
  display: flex;
  flex-direction: column;
  gap: 88px;
  margin-top: 112px;
}

.feature-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 64px;
  align-items: start;
  padding: 40px 0 56px;
}

.feature-row::before {
  position: absolute;
  top: 116px;
  bottom: -32px;
  left: 50%;
  z-index: 0;
  width: 100vw;
  content: "";
  background: var(--color-gray);
  transform: translateX(-50%);
}

.feature-row > * {
  position: relative;
  z-index: 1;
}

.feature-row--reverse {
  grid-template-columns: 480px minmax(0, 1fr);
}

.feature-row--reverse .feature-row__image {
  grid-column: 1;
  grid-row: 1;
}

.feature-row--reverse .feature-row__text {
  grid-column: 2;
  grid-row: 1;
}

.feature-row__image {
  width: 480px;
  height: 270px;
  object-fit: cover;
}

.feature-row__text {
  color: var(--color-navy);
}

.feature-row__point {
  margin-bottom: -34px;
  color: rgba(214, 169, 78, .14);
  font-family: var(--font-roman);
  font-size: 52px;
  line-height: 1.5;
}

.feature-row h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-mincho);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
}

.feature-row__text p:not(.feature-row__point) {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.5;
}

.about {
  padding: 80px 40px;
  color: #fff;
  background: var(--color-navy);
}

.about__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  width: min(800px, 100%);
  margin: 0 auto;
}

.about__lead {
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}

.about__video {
  overflow: hidden;
  width: 640px;
  max-width: 100%;
  height: 360px;
}

.about__video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.flow,
.faq {
  position: relative;
  padding: 0 40px;
  overflow: hidden;
  background: #fff;
}

.flow::before,
.faq::before {
  position: absolute;
  inset: 0;
  content: "";
  background: url("../images/flow-bg-pc.webp") center / cover repeat;
  opacity: .48;
}

.flow::after,
.faq::after {
  position: absolute;
  inset: 0;
  content: "";
  background: url("../images/flow-bg-overlay-pc.webp") center / cover repeat;
  mix-blend-mode: color-burn;
  pointer-events: none;
}

.flow__panel,
.faq__panel {
  position: relative;
  z-index: 1;
  width: min(var(--narrow-width), 100%);
  margin: 0 auto;
  padding: 80px 64px;
  background: #fff;
}

.flow__steps {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 64px;
}

.flow-step {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.flow-step__image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
}

.flow-step__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding-top: 2px;
}

.flow-step__head {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.flow-step__tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 24px;
  min-height: 24px;
  margin-right: 12px;
  padding: 0 8px 0 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  background: var(--color-navy);
  white-space: nowrap;
}

.flow-step__tag::after {
  position: absolute;
  top: 0;
  left: 100%;
  width: 0;
  height: 0;
  content: "";
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 12px solid var(--color-navy);
}

.flow-step__tag img {
  display: none;
}

.flow-step h3 {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--color-navy);
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.flow-step p {
  font-size: 16px;
  line-height: 1.5;
}

.flow-step__cta {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 2px;
  padding: 12px 24px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  background: var(--color-gold);
  border-radius: 4px;
  box-shadow: 0 4px 0 var(--color-gold-shadow);
}

.flow-step__cta img {
  width: 20px;
  height: 20px;
}

.flow-step__time {
  font-size: 14px;
}

.faq {
  padding-top: 0;
}

.faq__panel {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-item dt {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  color: var(--color-navy);
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  background: var(--color-gray);
}

.faq-item dt span {
  font-family: var(--font-sans);
  font-weight: 600;
}

.faq-item dd {
  padding: 12px 16px 15px;
  font-size: 16px;
  line-height: 1.5;
}

.message {
  padding: 80px 40px;
  background: #fff;
}

.message__inner {
  width: min(var(--narrow-width), 100%);
  margin: 0 auto;
}

.message__content {
  display: grid;
  grid-template-columns: 320px minmax(0, 580px);
  gap: 64px;
  justify-content: center;
  align-items: start;
  margin-top: 48px;
}

.message__profile {
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--color-navy);
}

.message__photo img {
  width: 320px;
  height: 426.66px;
  object-fit: cover;
}

.message__name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 16px;
  line-height: 1.5;
}

.message__name span {
  font-size: 14px;
}

.message__body {
  color: var(--color-navy);
  font-size: 15px;
  line-height: 30px;
}

.message__body p + p {
  margin-top: 15px;
}

.message__emphasis {
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.message__signature {
  font-weight: 600;
}

.message__signature a {
  text-decoration: underline;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px max(40px, calc((100vw - var(--content-width)) / 2)) 16px;
  color: #fff;
  background: var(--color-text);
}

.site-footer__info {
  font-size: 12px;
  line-height: 1.8;
}

.site-footer__office {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.site-footer__office span {
  text-decoration: underline;
}

.site-footer__office img {
  width: 24px;
  height: 24px;
  margin-left: -2px;
}

.site-footer__phone {
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.9;
}

.floating-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  height: 136px;
  color: #fff;
  background: var(--color-navy);
  box-shadow: 0 -8px 24px rgba(35, 35, 31, .18);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(100%);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.floating-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
}

.floating-cta__inner {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.floating-cta__phone {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #fff;
}

.floating-cta__phone img {
  width: 56px;
  height: 93px;
}

.floating-cta__phone-number {
  display: block;
  margin-top: -9px;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.floating-cta__phone p {
  margin-top: -8px;
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}

.consult-modal button,
body.inheritance-active .subpage button,
body.inheritance-active .subpage input,
body.inheritance-active .subpage textarea {
  font: inherit;
  letter-spacing: 0;
}

.consult-modal button,
body.inheritance-active .subpage button {
  cursor: pointer;
}

body.inheritance-active.is-modal-open {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
}

.consult-modal[hidden] {
  display: none;
}

.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
}

.consult-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(35, 35, 31, .56);
}

.consult-modal__panel {
  position: relative;
  z-index: 1;
  width: min(375px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 48px 20px;
  color: var(--color-navy);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 72px rgba(35, 35, 31, .28);
  outline: none;
}

.consult-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 10px;
  background: transparent;
  border: 0;
}

.consult-modal__close img {
  width: 20px;
  height: 20px;
}

.consult-modal .modal-heading,
body.inheritance-active .subpage .modal-heading {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  width: 100%;
  color: var(--color-navy);
  text-align: center;
}

.consult-modal .modal-heading h1,
.consult-modal .modal-heading h2,
body.inheritance-active .subpage .modal-heading h1,
body.inheritance-active .subpage .modal-heading h2 {
  margin: 0;
  font-family: var(--font-mincho);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
}

.consult-modal .modal-heading__line,
body.inheritance-active .subpage .modal-heading__line {
  width: 56px;
  height: 2px;
}

.consult-modal__lead {
  margin-top: 36px;
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}

.consult-modal__lead-break {
  display: none;
}

.consult-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.consult-modal__action-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.consult-modal .choice-button,
body.inheritance-active .subpage .choice-button {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 10px 17px 11px;
  font-weight: 600;
  line-height: 1.5;
  border: 3px solid transparent;
  border-radius: 8px;
  box-shadow: 0 4px 0 #7a631e;
}

.consult-modal .choice-button:active,
body.inheritance-active .subpage .choice-button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #7a631e;
}

.consult-modal .choice-button:focus-visible,
body.inheritance-active .subpage .choice-button:focus-visible,
.consult-modal__close:focus-visible,
body.inheritance-active .subpage .privacy-check input:focus-visible,
body.inheritance-active .subpage .contact-form input:focus-visible,
body.inheritance-active .subpage .contact-form textarea:focus-visible {
  outline: 3px solid rgba(53, 76, 120, .32);
  outline-offset: 3px;
}

.consult-modal .choice-button--gold,
body.inheritance-active .subpage .choice-button--gold {
  color: #fff;
  background: var(--color-gold);
}

.consult-modal .choice-button--outline,
body.inheritance-active .subpage .choice-button--outline {
  color: var(--color-gold);
  background: #fff;
  border-color: var(--color-gold);
}

.consult-modal .choice-button__free,
body.inheritance-active .subpage .choice-button__free {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 42px;
  padding: 0 4px;
  font-size: 20px;
  line-height: 1.5;
  white-space: nowrap;
}

.consult-modal .choice-button--gold .choice-button__free,
body.inheritance-active .subpage .choice-button--gold .choice-button__free {
  color: var(--color-gold);
  background: #fff;
}

.consult-modal .choice-button--outline .choice-button__free,
body.inheritance-active .subpage .choice-button--outline .choice-button__free {
  color: #fff;
  background: var(--color-gold);
}

.consult-modal .choice-button__text,
body.inheritance-active .subpage .choice-button__text {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 20px;
  text-align: center;
  white-space: nowrap;
}

.consult-modal .choice-button__icon,
body.inheritance-active .subpage .choice-button__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.consult-modal__time,
.consult-modal__link {
  color: var(--color-navy);
  font-size: 14px;
  line-height: 1.5;
}

.consult-modal__link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-policy-modal {
  z-index: 1010;
}

.privacy-policy-modal__panel {
  width: min(760px, 100%);
  padding: 48px 40px;
}

.privacy-policy-modal__content {
  margin-top: 32px;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.9;
  text-align: left;
}

.privacy-policy-modal__content h3 {
  margin: 32px 0 12px;
  color: var(--color-navy);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
}

.privacy-policy-modal__content p + p {
  margin-top: 12px;
}

.privacy-policy-trigger--inline {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  .privacy-policy-modal__panel {
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;
  }
}

body.inheritance-active .subpage {
  min-height: 100vh;
  background: #edf8ff url("../images/contact-bg.webp") center top / cover fixed no-repeat;
}

body.inheritance-active .subpage--thanks {
  background-image: url("../images/thanks-bg.webp");
}

body.inheritance-active .subpage .subpage-shell {
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 48px rgba(53, 76, 120, .12);
}

body.inheritance-active .subpage .subpage-header {
  display: flex;
  align-items: center;
  height: 45px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid #cdd4e1;
}

body.inheritance-active .subpage .subpage-header__home {
  display: inline-flex;
  align-items: center;
}

body.inheritance-active .subpage .subpage-header__logo {
  width: 160px;
  height: auto;
  object-fit: contain;
}

body.inheritance-active .subpage .subpage-main {
  flex: 1 0 auto;
  background: #fff;
}

body.inheritance-active .subpage .contact-section,
body.inheritance-active .subpage .thanks-section {
  padding: 48px 20px;
  background: #fff;
}

body.inheritance-active .subpage .subpage-heading h1 {
  color: var(--color-navy);
  font-size: 24px;
}

body.inheritance-active .subpage .contact-intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
  color: var(--color-navy);
  font-size: 16px;
  line-height: 1.8;
}

body.inheritance-active .subpage .contact-form {
  width: 100%;
  margin-top: 28px;
}

body.inheritance-active .subpage .contact-form:not(.contact-form--cf7),
body.inheritance-active .subpage .contact-form--cf7 .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

body.inheritance-active .subpage .contact-form--cf7 .wpcf7,
body.inheritance-active .subpage .contact-form--cf7 .wpcf7-form,
body.inheritance-active .subpage .contact-form--cf7 .wpcf7-form-control-wrap {
  width: 100%;
}

body.inheritance-active .subpage .contact-form--cf7 .wpcf7-form > p {
  margin: 0;
}

body.inheritance-active .subpage .contact-form--cf7 .wpcf7-form > p:empty {
  display: none;
}

body.inheritance-active .subpage .contact-form__notice,
body.inheritance-active .inheritance-contact-page .wpcf7 form .wpcf7-response-output {
  margin-top: 28px;
  padding: 14px 16px;
  color: #b43f2b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  background: #fff7f5;
  border: 1px solid rgba(180, 63, 43, .35);
  border-radius: 4px;
}

body.inheritance-active .inheritance-contact-page .wpcf7 form .wpcf7-response-output {
  margin: 0;
}

body.inheritance-active .inheritance-contact-page .wpcf7 form.sent .wpcf7-response-output {
  color: var(--color-navy);
  background: #f4fbff;
  border-color: rgba(53, 76, 120, .28);
}

body.inheritance-active .subpage .form-field,
body.inheritance-active .inheritance-contact-page .contact-form--cf7 .wpcf7-form > p {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.inheritance-active .subpage .form-label,
body.inheritance-active .inheritance-contact-page .contact-form--cf7 .wpcf7-form > p > label {
  color: #333;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

body.inheritance-active .subpage .form-label__required,
body.inheritance-active .inheritance-contact-page .contact-form--cf7 .form-label__required,
body.inheritance-active .inheritance-contact-page .contact-form--cf7 .required {
  margin-left: 2px;
  color: #b43f2b;
  font-size: 12px;
}

body.inheritance-active .subpage .contact-form input:not([type="checkbox"]):not([type="submit"]):not([type="hidden"]),
body.inheritance-active .subpage .contact-form textarea {
  width: 100%;
  color: var(--color-text);
  background: #fff;
  border: 1px solid #c8cace;
  border-radius: 4px;
}

body.inheritance-active .subpage .contact-form input:not([type="checkbox"]):not([type="submit"]):not([type="hidden"]) {
  height: 40px;
  padding: 0 16px;
}

body.inheritance-active .subpage .contact-form textarea {
  min-height: 106px;
  padding: 13px 16px;
  resize: vertical;
}

body.inheritance-active .subpage .contact-form input::placeholder,
body.inheritance-active .subpage .contact-form textarea::placeholder {
  color: #c8cace;
  font-size: 12px;
  opacity: 1;
}

body.inheritance-active .inheritance-contact-page .contact-form--cf7 .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #b43f2b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}

body.inheritance-active .inheritance-contact-page .contact-form--cf7 .wpcf7-not-valid {
  border-color: rgba(180, 63, 43, .72);
}

body.inheritance-active .subpage .privacy-check,
body.inheritance-active .inheritance-contact-page .contact-form--cf7 .wpcf7-acceptance .wpcf7-list-item label {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  font-size: 14px;
  line-height: 1.8;
}

body.inheritance-active .inheritance-contact-page .contact-form--cf7 .wpcf7-form-control-wrap[data-name="privacy-consent"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

body.inheritance-active .inheritance-contact-page .contact-form--cf7 .wpcf7-acceptance {
  display: flex;
  justify-content: center;
  width: 100%;
}

body.inheritance-active .inheritance-contact-page .contact-form--cf7 .wpcf7-acceptance .wpcf7-list-item {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
}

body.inheritance-active .inheritance-contact-page .contact-form--cf7 .wpcf7-acceptance .wpcf7-list-item label {
  display: inline-flex;
  justify-content: flex-start;
  width: auto;
  text-align: left;
  white-space: nowrap;
}

body.inheritance-active .subpage .privacy-check input,
body.inheritance-active .inheritance-contact-page .contact-form--cf7 .wpcf7-acceptance input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 0;
  accent-color: var(--color-navy);
}

body.inheritance-active .inheritance-contact-page .contact-form--cf7 .wpcf7-form > p:has(.wpcf7-acceptance) {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
  text-align: left;
  white-space: nowrap;
}

body.inheritance-active .inheritance-contact-page .contact-form--cf7 .wpcf7-form > p:has(.wpcf7-acceptance) .wpcf7-form-control-wrap[data-name="privacy-consent"],
body.inheritance-active .inheritance-contact-page .contact-form--cf7 .wpcf7-form > p:has(.wpcf7-acceptance) .wpcf7-acceptance,
body.inheritance-active .inheritance-contact-page .contact-form--cf7 .wpcf7-form > p:has(.wpcf7-acceptance) .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  flex: 0 0 auto;
}

body.inheritance-active .inheritance-contact-page .contact-form--cf7 .wpcf7-form > p:has(.wpcf7-acceptance) .wpcf7-list-item label {
  gap: 8px;
  white-space: nowrap;
}

body.inheritance-active .inheritance-contact-page .contact-form--cf7 .wpcf7-form > p:has(.wpcf7-acceptance) .wpcf7-not-valid-tip {
  width: 100%;
  flex-basis: 100%;
  text-align: center;
  white-space: normal;
}

body.inheritance-active .subpage .contact-form__submit,
body.inheritance-active .inheritance-contact-page .contact-form__submit-row {
  position: relative;
  width: 100%;
  margin-top: 16px;
}

body.inheritance-active .inheritance-contact-page .contact-form--cf7 .wpcf7-form > p:has(input.wpcf7-submit[type="submit"]) {
  position: relative;
  width: 100%;
  margin-top: 16px;
}

body.inheritance-active .inheritance-contact-page .contact-form__submit-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.inheritance-active .inheritance-contact-page .contact-form--cf7 .wpcf7-form > p:has(input.wpcf7-submit[type="submit"]) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 0;
  line-height: 0;
}

body.inheritance-active .inheritance-contact-page .contact-form__submit-row::before {
  position: absolute;
  top: 50%;
  left: 17px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 0 4px;
  color: var(--color-gold);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  content: "無料";
  background: #fff;
  transform: translateY(-50%);
  pointer-events: none;
}

body.inheritance-active .inheritance-contact-page .contact-form--cf7 .wpcf7-form > p:has(input.wpcf7-submit[type="submit"])::before {
  position: absolute;
  top: 50%;
  left: 17px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 0 4px;
  color: var(--color-gold);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  content: "無料";
  background: #fff;
  transform: translateY(-50%);
  pointer-events: none;
}

body.inheritance-active .inheritance-contact-page .contact-form__submit-row::after {
  position: absolute;
  top: 50%;
  right: 17px;
  z-index: 1;
  width: 24px;
  height: 24px;
  content: "";
  background: url("../icons/arrow-circle-white.svg") center / contain no-repeat;
  transform: translateY(-50%);
  pointer-events: none;
}

body.inheritance-active .inheritance-contact-page .contact-form--cf7 .wpcf7-form > p:has(input.wpcf7-submit[type="submit"])::after {
  position: absolute;
  top: 50%;
  right: 17px;
  z-index: 1;
  width: 24px;
  height: 24px;
  content: "";
  background: url("../icons/arrow-circle-white.svg") center / contain no-repeat;
  transform: translateY(-50%);
  pointer-events: none;
}

body.inheritance-active .inheritance-contact-page .contact-form--cf7 input.wpcf7-submit[type="submit"] {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  flex: 1 1 100%;
  padding: 10px 52px 11px 76px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  background: var(--color-gold);
  background-color: var(--color-gold);
  border: 3px solid transparent;
  border-radius: 8px;
  box-shadow: 0 4px 0 #7a631e;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

body.inheritance-active .inheritance-contact-page .contact-form--cf7 input.wpcf7-submit[type="submit"]:disabled {
  opacity: 1;
  cursor: not-allowed;
}

body.inheritance-active .inheritance-contact-page .contact-form--cf7 input.wpcf7-submit[type="submit"]:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #7a631e;
}

body.inheritance-active .inheritance-contact-page .contact-form--cf7 .wpcf7-spinner {
  position: absolute;
  right: 48px;
  bottom: -32px;
  margin: 0;
}

body.inheritance-active .subpage .thanks-message {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
  color: #333;
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}

body.inheritance-active .subpage .site-footer--subpage {
  flex: 0 0 auto;
  gap: 32px;
  padding: 32px 20px 16px;
}

body.inheritance-active .subpage .site-footer--subpage .site-footer__info {
  width: 100%;
  font-size: 12px;
}

body.inheritance-active .subpage .site-footer--subpage .site-footer__office {
  align-items: flex-start;
  max-width: 100%;
  font-size: 14px;
}

body.inheritance-active .subpage .site-footer--subpage .site-footer__office span {
  min-width: 0;
}

body.inheritance-active .subpage .site-footer--subpage .site-footer__bottom {
  gap: 16px;
  color: var(--color-muted);
  font-size: 12px;
}

body.inheritance-active .subpage .site-footer--subpage .site-footer__bottom p:last-child {
  text-align: right;
}

@media (min-width: 768px) and (max-width: 1100px) {
  .fv__copy,
  .fv__tags,
  .fv__badges {
    left: 48px;
  }

  .fv__person {
    left: 52%;
  }

  .fv__phone-area {
    width: min(100%, 900px);
    gap: 18px;
    padding: 0 clamp(24px, 3vw, 32px);
    box-sizing: border-box;
  }

  .fv__phone {
    flex: 0 0 auto;
  }

  .fv__phone img {
    width: clamp(44px, 5.1vw, 56px);
    height: clamp(73px, 8.5vw, 93px);
  }

  .fv__phone-number {
    font-size: clamp(26px, 3.2vw, 34px);
  }

  .fv__phone p {
    font-size: clamp(12px, 1.4vw, 16px);
  }

  .fv__phone-area > .cta--large {
    flex: 1 1 0;
    width: 470px;
    max-width: 470px;
    min-width: 0;
  }

  .fv__phone-area .cta__text {
    min-width: 0;
    font-size: clamp(22px, 2.9vw, 26px);
  }

  .features__list {
    gap: 64px;
    margin-top: 64px;
  }

  .feature-row,
  .feature-row--reverse {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: min(640px, 100%);
    margin: 0 auto;
    padding: 0 0 64px;
  }

  .feature-row::before {
    top: 130px;
    bottom: 0;
  }

  .feature-row__image,
  .feature-row--reverse .feature-row__image {
    order: -1;
    width: 100%;
    height: auto;
    aspect-ratio: 444 / 249.75;
    object-fit: cover;
  }

  .feature-row--reverse .feature-row__text,
  .feature-row--reverse .feature-row__image {
    grid-column: auto;
    grid-row: auto;
  }

  .service-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .service-list li {
    flex: 0 1 calc((100% - 24px) / 3);
  }

  .flow-step {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }

  .flow-step__body {
    width: min(500px, 100%);
    padding-top: 0;
  }

  .flow-step__head {
    justify-content: center;
  }

  .flow-step__cta {
    align-self: center;
  }

  .flow-step__time {
    text-align: center;
  }

  .floating-cta__inner {
    width: min(100%, 900px);
    gap: 18px;
    padding: 0 clamp(24px, 3vw, 32px);
    margin: 0 auto;
  }

  .floating-cta__phone {
    flex: 0 0 auto;
  }

  .floating-cta__phone img {
    width: clamp(44px, 5.1vw, 56px);
    height: clamp(73px, 8.5vw, 93px);
  }

  .floating-cta__phone-number {
    font-size: clamp(26px, 3.2vw, 34px);
  }

  .floating-cta__phone p {
    font-size: clamp(12px, 1.4vw, 16px);
  }

  .floating-cta .cta--large {
    flex: 1 1 0;
    width: 470px;
    max-width: 470px;
    min-width: 0;
  }

  .floating-cta .cta__text {
    min-width: 0;
    font-size: clamp(22px, 2.9vw, 26px);
  }
}

@media (max-width: 767px) {
  .site-header__inner {
    width: 100%;
    padding: 0 20px;
  }

  .site-header__logo {
    width: 239px;
    height: 32px;
  }

  .fv {
    height: 810px;
  }

  .fv__person {
    top: 105px;
    left: 43.15vw;
    width: 407.94px;
    height: 603px;
  }

  .fv__person img {
    transform: translateX(-138px);
  }

  .fv__person-caption {
    top: 629px;
    left: calc(43.15vw + 161.5px);
    font-size: 12px;
  }

  .fv__tags {
    top: 104px;
    left: 20px;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  .fv__copy {
    top: 196px;
    left: 20px;
    width: min(448px, calc(100% - 40px));
  }

  .fv__copy h1 {
    width: 336px;
    max-width: 100%;
    font-size: 36px;
  }

  .fv__copy h1 strong {
    font-size: 36px;
  }

  .fv__badges {
    top: 527px;
    left: 20px;
  }

  .fv__phone-area {
    top: 674px;
    width: calc(100% - 40px);
  }

  .fv__phone {
    display: none;
  }

  .cta--large {
    width: 100%;
    height: 80px;
    padding: 8px 26px;
  }

  .worries {
    padding: 80px 20px 64px;
  }

  .worries::before {
    background-image: url("../images/worries-bg-sp.webp");
  }

  .worries__content {
    width: min(500px, 100%);
  }

  .worries__image img {
    height: auto;
    aspect-ratio: 500 / 397;
  }

  .worries__list li {
    align-items: flex-start;
    font-size: 18px;
  }

  .lead-band p {
    font-size: 32px;
  }

  .solution {
    padding-right: 20px;
    padding-left: 20px;
  }

  .solution::before {
    background-image: url("../images/solution-bg-sp.webp");
  }

  .service-panel__label {
    width: 240px;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .service-list li {
    width: 100%;
  }

  .features {
    padding: 80px 20px 81px;
  }

  .features__inner {
    width: min(500px, 100%);
  }

  .features__list {
    gap: 64px;
    margin-top: 64px;
  }

  .feature-row,
  .feature-row--reverse {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 0 64px;
  }

  .feature-row::before {
    top: 130px;
    bottom: 0;
  }

  .feature-row__image,
  .feature-row--reverse .feature-row__image {
    order: -1;
    width: 100%;
    height: auto;
    aspect-ratio: 444 / 249.75;
    object-fit: cover;
  }

  .feature-row--reverse .feature-row__text,
  .feature-row--reverse .feature-row__image {
    grid-column: auto;
    grid-row: auto;
  }

  .feature-row__point {
    margin-bottom: -34px;
    font-size: 52px;
  }

  .feature-row h3 {
    font-size: 32px;
  }

  .about {
    padding: 80px 20px;
  }

  .about__inner {
    width: min(500px, 100%);
  }

  .about__video {
    width: 100%;
    height: auto;
    aspect-ratio: 500 / 281.25;
  }

  .flow,
  .faq {
    padding: 0 20px;
  }

  .flow::before,
  .faq::before {
    background-image: url("../images/flow-bg-sp.webp");
  }

  .flow::after,
  .faq::after {
    background-image: url("../images/flow-bg-overlay-sp.webp");
  }

  .flow__panel,
  .faq__panel {
    width: min(500px, 100%);
    padding: 80px 20px;
  }

  .flow-step {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }

  .flow-step__body {
    width: 100%;
    padding-top: 0;
  }

  .flow-step__head {
    justify-content: center;
  }

  .flow-step h3 {
    font-size: 20px;
  }

  .flow-step p {
    font-size: 16px;
  }

  .flow-step__cta {
    align-self: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 18px;
    white-space: nowrap;
  }

  .flow-step__time {
    text-align: center;
  }

  .faq__panel {
    gap: 64px;
  }

  .faq-item dt {
    align-items: flex-start;
    font-size: 18px;
  }

  .faq-item dt span {
    flex: 0 0 auto;
  }

  .message {
    padding: 80px 20px;
  }

  .message__inner {
    width: min(500px, 100%);
  }

  .message__content {
    display: flex;
    flex-direction: column;
    gap: 64px;
    margin-top: 48px;
  }

  .message__profile {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .message__photo,
  .message__photo img {
    width: 100%;
  }

  .message__photo img {
    height: auto;
    aspect-ratio: 500 / 281.25;
  }

  .message__body {
    text-align: left;
    line-height: 1.8;
  }

  .message__emphasis {
    line-height: 1.8;
  }

  .site-footer {
    padding: 32px 20px 16px;
  }

  .site-footer__info {
    width: 100%;
  }

  .site-footer__office {
    font-size: 14px;
  }

  .site-footer__bottom {
    flex-wrap: wrap;
  }

  .floating-cta {
    height: calc(88px + env(safe-area-inset-bottom));
  }

  .floating-cta__inner {
    width: min(100%, 540px);
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    margin: 0 auto;
  }

  .floating-cta__phone {
    display: none;
  }

  .floating-cta__phone-number,
  .floating-cta__phone p {
    display: none;
  }

  .floating-cta .cta--large {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    height: 64px;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 0 var(--color-gold-shadow);
  }

  .floating-cta .cta__free {
    padding: 0 6px;
    font-size: 20px;
  }

  .floating-cta .cta__text {
    font-size: 18px;
  }

  .floating-cta .cta__icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
}

@media (max-width: 540px) {
  .pc-line {
    display: none;
  }

  .sp-line {
    display: block;
  }

  .fv__copy .pc-line,
  .fv__copy h1 .pc-line {
    display: none;
  }

  .fv__copy .sp-line,
  .fv__copy h1 .sp-line {
    display: block;
  }

  .site-header {
    height: 55px;
  }

  .site-header__inner {
    padding: 0 14px;
  }

  .site-header__logo {
    width: 180px;
    height: 24px;
  }

  .fv {
    width: 100%;
    height: 744px;
    background: #fff url("../images/fv-sp-visual.webp") top 55px center / 100% auto no-repeat;
  }

  .fv__background,
  .fv__person,
  .fv__person-caption {
    display: none;
  }

  .fv__tags {
    top: 104px;
    left: 20px;
  }

  .fv__copy {
    top: 184px;
    left: 20px;
    width: min(335px, calc(100% - 40px));
  }

  .fv__copy h1 {
    width: 260px;
    font-size: 32px;
    line-height: 1.3;
  }

  .fv__copy h1 strong {
    font-size: 32px;
  }

  .fv__copy p {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.8;
  }

  .fv__badges {
    top: 527px;
    left: 20px;
  }

  .fv__phone-area {
    top: 656px;
    width: 100%;
    height: 88px;
  }

  .fv__phone-area::before {
    width: 100%;
    height: 88px;
  }

  .fv__phone-area > .cta--large {
    width: calc(100% - 32px);
    min-width: 0;
    height: 64px;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 0 var(--color-gold-shadow);
  }

  .fv__phone-area .cta__free {
    flex: 0 0 auto;
    padding: 0 6px;
    font-size: 20px;
    white-space: nowrap;
  }

  .fv__phone-area .cta__text {
    min-width: 0;
    font-size: 18px;
  }

  .fv__phone-area .cta__icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
}

@media (max-width: 430px) {
  .section-heading h2 {
    font-size: 24px;
  }

  .lead-band p {
    font-size: 24px;
  }

  .fv__copy h1,
  .fv__copy h1 strong {
    font-size: 32px;
  }

  .cta--large {
    gap: 10px;
    padding: 8px 16px;
  }

  .cta__free {
    padding: 0 10px;
    font-size: 20px;
  }

  .cta__text {
    font-size: 24px;
  }

  .cta__icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .worries__list li {
    font-size: 16px;
  }

  .service-panel__body {
    padding-right: 12px;
    padding-left: 12px;
  }

  .feature-row h3 {
    font-size: 24px;
  }

  .feature-row__point {
    font-size: 44px;
  }

  .flow__panel,
  .faq__panel {
    padding-right: 14px;
    padding-left: 14px;
  }

  .flow-step__head {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .flow-step h3 {
    font-size: 18px;
  }

  .floating-cta {
    height: calc(84px + env(safe-area-inset-bottom));
  }

  .floating-cta__inner {
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  }

  .floating-cta .cta--large {
    width: 100%;
    height: 62px;
  }

  .fv__phone-area > .cta--large {
    height: 62px;
  }

  .fv__phone-area .cta__text {
    font-size: 18px;
  }

  .floating-cta .cta__text {
    font-size: 18px;
  }
}

@media (min-width: 375px) and (max-width: 430px) {
  .consult-modal {
    padding-right: 14px;
    padding-left: 14px;
  }

  .consult-modal__panel {
    width: min(390px, 100%);
    padding-right: 16px;
    padding-left: 16px;
  }

  .consult-modal__lead {
    font-size: 15px;
    line-height: 1.85;
  }

  .consult-modal__lead-break {
    display: inline;
  }

  .consult-modal__actions {
    gap: 22px;
    margin-top: 36px;
  }

  .consult-modal .choice-button,
  body.inheritance-active .subpage .choice-button {
    gap: 8px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .consult-modal .choice-button__icon,
  body.inheritance-active .subpage .choice-button__icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  body.inheritance-active .inheritance-contact-page .contact-form__submit-row::before,
  body.inheritance-active .inheritance-contact-page .contact-form--cf7 .wpcf7-form > p:has(input.wpcf7-submit[type="submit"])::before {
    left: 12px;
    min-width: 38px;
    font-size: 20px;
  }

  body.inheritance-active .inheritance-contact-page .contact-form__submit-row::after,
  body.inheritance-active .inheritance-contact-page .contact-form--cf7 .wpcf7-form > p:has(input.wpcf7-submit[type="submit"])::after {
    right: 12px;
    width: 22px;
    height: 22px;
  }

  body.inheritance-active .inheritance-contact-page .contact-form--cf7 input.wpcf7-submit[type="submit"] {
    padding-right: 46px;
    padding-left: 68px;
  }

  body.inheritance-active .subpage .contact-section,
  body.inheritance-active .subpage .thanks-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  body.inheritance-active .subpage .site-footer--subpage {
    gap: 24px;
    padding: 28px 16px 16px;
  }

  body.inheritance-active .subpage .site-footer--subpage .site-footer__info p:last-child {
    text-wrap: balance;
  }

  body.inheritance-active .subpage .site-footer--subpage .site-footer__bottom {
    gap: 12px;
  }
}
