:root {
  color-scheme: light;
  background: #eee9e1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #eee9e1;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, sans-serif;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.56), transparent 28% 72%, rgba(255, 255, 255, 0.56)),
    #eee9e1;
}

.lp {
  width: min(100%, 600px);
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 30px rgba(76, 62, 49, 0.14);
}

.lp__section {
  position: relative;
  margin: 0;
}

.lp__image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.lp__button {
  position: absolute;
  z-index: 2;
  display: block;
  overflow: hidden;
  line-height: 0;
  border-radius: 999px;
  animation:
    buttonPulse 2800ms ease-in-out infinite,
    buttonFloat 3400ms ease-in-out infinite;
  will-change: filter, transform;
  transition:
    filter 160ms ease,
    transform 160ms ease;
}

.lp__button::after {
  position: absolute;
  inset: 0;
  display: block;
  content: "";
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.46) 50%,
    transparent 62%,
    transparent 100%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translateX(-120%);
  animation: buttonShine 3600ms ease-in-out infinite;
}

.lp__button:hover {
  filter: brightness(1.06) saturate(1.04);
  transform: translateY(-1px) scale(1.006);
  animation-play-state: paused;
}

.lp__button:hover::after {
  animation-duration: 1300ms;
}

.lp__button:active {
  filter: brightness(0.98);
  transform: translateY(1px) scale(0.996);
}

.lp__button:focus-visible {
  outline: 3px solid #3f7f9f;
  outline-offset: 3px;
}

.lp__button img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lp__button--visual {
  z-index: 4;
  overflow: visible;
  border-radius: 0;
  animation: none;
  transform: none;
}

.lp__button--visual.lp__button--hitarea::before {
  display: none;
}

.lp__button--hitarea {
  animation:
    ctaAura 2600ms ease-in-out infinite,
    buttonFloat 3400ms ease-in-out infinite;
}

.lp__button--hitarea::before,
.lp__button--hitarea::after {
  position: absolute;
  inset: 0;
  display: block;
  content: "";
  pointer-events: none;
}

.lp__button--hitarea::before {
  opacity: 0.38;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 16px rgba(255, 255, 255, 0.28);
  animation: ctaHalo 2600ms ease-in-out infinite;
}

.lp__button--hitarea::after {
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 36%,
    rgba(255, 255, 255, 0.55) 48%,
    rgba(255, 255, 255, 0.18) 54%,
    transparent 66%,
    transparent 100%
  );
  mix-blend-mode: screen;
  opacity: 0.82;
  transform: translateX(-125%) skewX(-12deg);
  animation: ctaSweep 3400ms ease-in-out infinite;
}

.lp__button--hitarea:hover,
.lp__button--hitarea:active {
  filter: brightness(1.08);
  animation-play-state: running;
  transform: none;
}

.lp__button--hitarea:hover::before {
  opacity: 0.55;
}

.lp__button--hitarea:hover::after {
  animation-duration: 1500ms;
}

.lp__button--visual.lp__button--hitarea {
  animation: none;
  transform: none;
}

.lp__button--visual.lp__button--hitarea::after {
  z-index: 3;
  display: none;
  border-radius: 999px;
}

.lp__button--visual.lp__button--hitarea:hover,
.lp__button--visual.lp__button--hitarea:active {
  transform: none;
}

.lp__button--visual img {
  animation:
    buttonPulse 2800ms ease-in-out infinite,
    buttonFloat 3400ms ease-in-out infinite;
  filter: drop-shadow(0 7px 7px rgba(55, 35, 22, 0.18));
  will-change: filter, transform;
}

.lp__button--visual:hover img {
  animation-play-state: paused;
  filter: brightness(1.06) drop-shadow(0 7px 7px rgba(55, 35, 22, 0.18));
  transform: translateY(-1px) scale(1.006);
}

.lp__button--header {
  top: 0;
  left: 66.6667%;
  width: 33.3333%;
  border-radius: 0;
  animation-delay: 350ms;
}

.lp__button--phone {
  animation-delay: 700ms;
}

.lp__button--line,
.lp__button--phone {
  left: 5.3333%;
  width: 89.3333%;
}

.lp__button--first-line {
  top: 40.6614%;
}

.lp__button--first-phone {
  top: 45.9277%;
}

.lp__button--solve-line {
  top: 84.4458%;
}

.lp__button--plan-line {
  top: 89.6757%;
}

.lp__button--plan-phone {
  top: 94.4054%;
}

.lp__button--access-line {
  top: 88.910%;
}

.lp__button--access-phone {
  top: 94.2974%;
}

.lp__map {
  position: absolute;
  z-index: 3;
  width: 74.6667%;
  height: 8.78%;
  overflow: hidden;
  background: transparent;
  border-radius: 2px;
}

.lp__map--shijo {
  top: 13.46%;
  left: 5.3333%;
}

.lp__map--kyoto {
  top: 46.12%;
  left: 20%;
}

.lp__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lp__map iframe.is-loaded {
  opacity: 1;
  pointer-events: auto;
}

.faq {
  padding: 0 20px 50px;
  background: #fff;
}

.faq__image {
  display: block;
  width: calc(100% + 40px);
  height: auto;
  margin: 0 -20px;
}

.faq__list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.faq__item {
  color: #fff;
  background: #717171;
}

.faq__question {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 13px 48px 13px 36px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.05em;
  cursor: pointer;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::before {
  position: absolute;
  left: 16px;
  width: 11px;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.75);
}

.faq__question::after {
  position: absolute;
  right: 18px;
  content: "+";
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
  transition: transform 160ms ease;
}

.faq__item[open] .faq__question::after {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 16px 18px 22px;
  color: #202020;
  background: #fff;
  border-right: 1px solid #717171;
  border-bottom: 1px solid #717171;
  border-left: 1px solid #717171;
}

.faq__answer p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.faq__question:focus-visible {
  outline: 3px solid #3f7f9f;
  outline-offset: -3px;
}

.instructor-carousel {
  position: relative;
  z-index: 1;
  padding: 0;
  overflow: visible;
  color: #202020;
  background: #f7f7f8;
}

.instructor-carousel::before,
.instructor-carousel::after {
  position: absolute;
  right: 20px;
  bottom: 40px;
  left: 20px;
  z-index: 2;
  height: 5px;
  content: "";
  display: none;
  pointer-events: none;
}

.instructor-carousel::before {
  background: #e2e2e2;
}

.instructor-carousel::after {
  right: auto;
  width: 106px;
  background: #b2b2b2;
}

.instructor-carousel__track {
  display: flex;
  gap: 24px;
  padding: 0 20px 24px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 20px;
  scroll-snap-type: x mandatory;
  scrollbar-color: #a9a9a9 #e4e4e4;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.instructor-carousel__track::-webkit-scrollbar {
  height: 6px;
}

.instructor-carousel__track::-webkit-scrollbar-track {
  background: #e4e4e4;
  border-radius: 999px;
}

.instructor-carousel__track::-webkit-scrollbar-thumb {
  background: #a9a9a9;
  border-radius: 999px;
}

.instructor-carousel__track:focus-visible {
  outline: 3px solid #3f7f9f;
  outline-offset: -3px;
}

.instructor-card {
  flex: 0 0 181px;
  min-width: 0;
  padding-bottom: 10px;
  scroll-snap-align: start;
}

.instructor-card__photo {
  display: block;
  width: 100%;
  height: 241px;
  object-fit: cover;
  background: #ddd;
  border-radius: 6px;
}

.instructor-card__name {
  margin: 20px 0 12px;
  font-family: "Times New Roman", "Hiragino Mincho ProN", "Yu Mincho",
    serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.instructor-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 25px;
  margin-bottom: 12px;
  padding-top: 12px;
  border-top: 1px solid #b98c45;
}

.instructor-card__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 9px 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  background: #b98c45;
  border-radius: 999px;
}

.instructor-card__text {
  min-height: 118px;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.75;
}

.instructor-card__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  background: #7a5d35;
  border-radius: 999px;
  box-shadow: 0 5px 10px rgba(72, 50, 25, 0.2);
  animation: buttonFloat 3200ms ease-in-out infinite;
  will-change: transform, filter;
  transition:
    filter 160ms ease,
    transform 160ms ease;
}

.instructor-card__button::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.38) 50%,
    transparent 62%,
    transparent 100%
  );
  pointer-events: none;
  transform: translateX(-120%) skewX(-12deg);
  animation: ctaSweep 3400ms ease-in-out infinite;
}

.instructor-card__button:hover {
  animation: none;
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.instructor-card__button:active {
  transform: translateY(1px);
}

.instructor-card__button:focus-visible {
  outline: 3px solid #3f7f9f;
  outline-offset: 3px;
}

.footer {
  padding: 42px 20px 34px;
  color: #fff;
  text-align: center;
  background: #6f6f6f;
}

.footer__brand {
  margin: 0;
  font-family: "Times New Roman", "Hiragino Mincho ProN", "Yu Mincho",
    serif;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer__nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.footer__nav a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__nav a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.footer__note {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

.footer__copy {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.lp__button--psd01-header {
  top: 0;
  height: 0.92%;
}

.lp__button--psd01-line {
  top: 13.55%;
  height: 1.52%;
}

.lp__button--psd01-phone {
  top: 15.3%;
  height: 1.27%;
}

.lp__button--psd01-solve {
  top: 27.55%;
  left: 4%;
  width: 93.3333%;
  height: 2.12%;
}

.lp__button--psd02-line {
  top: 87.03%;
  height: 5.34%;
}

.lp__button--psd02-phone {
  top: 93.15%;
  height: 4.44%;
}

.lp__button--psd03-line {
  top: 91.18%;
  height: 3.13%;
}

.lp__button--psd03-phone {
  top: 94.96%;
  height: 2.6%;
}

@keyframes buttonPulse {
  0%,
  100% {
    filter: brightness(1);
    transform: scale(1);
  }

  50% {
    filter: brightness(1.045) saturate(1.03);
    transform: scale(1.004);
  }
}

@keyframes buttonShine {
  0%,
  52% {
    transform: translateX(-120%);
  }

  78%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes ctaAura {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.08);
  }
}

@keyframes ctaHalo {
  0%,
  100% {
    opacity: 0.24;
  }

  50% {
    opacity: 0.52;
  }
}

@keyframes ctaSweep {
  0%,
  48% {
    transform: translateX(-125%) skewX(-12deg);
  }

  76%,
  100% {
    transform: translateX(125%) skewX(-12deg);
  }
}

@keyframes buttonFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp__button,
  .lp__button::before,
  .lp__button::after,
  .lp__button--visual img,
  .instructor-card__button,
  .instructor-card__button::after {
    animation: none;
    transition: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 374px) {
  .lp {
    box-shadow: none;
  }
}
