/* ========================================
   custom properties
   ======================================== */

:root {
  /* colors */
  --color-primary: #ff9b89;
  --color-white: #fff;
  --color-text: #4e4e4e;
  --color-gray: #777676;
  --color-lightorange: #fdf6e8;
  --color-accent01: #4351a0;
  --color-line: #06c755;
  --color-dot: #d9d9d9;

  /* shadows */
  --shadow-200: drop-shadow(0px 1px 4px rgba(12, 12, 13, 0.1))
    drop-shadow(0px 1px 4px rgba(12, 12, 13, 0.05));
}

/* ========================================
   base
   ======================================== */

body {
  background: url("../img/line-entry/pc/bg-pc.jpg") center / cover no-repeat;
  background-attachment: fixed;
}

a {
  transition: opacity 0.2s;
}

@media (any-hover: hover) {
  a:hover {
    opacity: 0.5;
  }
}

/* ========================================
   layout
   ======================================== */

/* container */
.l-container {
  background-color: var(--color-lightorange);
  margin-inline: auto;
  position: relative;
  z-index: 998;
  overflow: hidden;
  /* bodyに書いても読み込み順で勝てないのでこちらで指定 */
  color: var(--color-text);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

@media only screen and (max-width: 767px) {
  .l-container {
    max-width: 500px;
  }
}

@media only screen and (min-width: 768px) {
  .l-container {
    max-width: 375px;
    position: relative;
  }
}

.l-section {
  padding-block: 64px;
}

.l-section--parallax {
  padding-block: 200px;
}

/* inner */
.l-inner {
  margin-inline: auto;
  padding-inline: 16px;
}

.l-inner--narrow {
  margin-inline: auto;
  padding-inline: 28px;
}

/* opening */
.l-opening {
  background-color: var(--color-white);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  z-index: 999;
  animation: fadeOut 1s 2s forwards;
}

@media only screen and (max-width: 767px) {
  .l-opening {
    background: url("../img/line-entry/opening/opening-smp.jpg") top center /
      cover no-repeat;
  }
}

@media only screen and (min-width: 768px) {
  .l-opening {
    background: url("../img/line-entry/opening/opening.jpg") top center / cover
      no-repeat;
  }
}

.l-opening__main {
  display: grid;
  text-align: center;
  position: absolute;
}

@media only screen and (max-width: 767px) {
  .l-opening__main {
    row-gap: calc(18 / 375 * 100vw);
    left: 50%;
    translate: -50% 0;
    bottom: 86px;
    width: 100%;
  }
}

@media only screen and (min-width: 768px) {
  .l-opening__main {
    row-gap: calc(24 / 1280 * 100vw);
    left: calc(120 / 1280 * 100%);
    top: 50%;
    translate: 0 -50%;
  }
}

@media only screen and (max-width: 768px) {
  .l-opening__title > img {
    width: calc(279 / 375 * 100vw);
  }
}

@media only screen and (min-width: 767px) {
  .l-opening__title > img {
    width: calc(526 / 1280 * 100vw);
  }
}

.l-opening__text {
  line-height: 1.9;
  color: var(--color-text);
}

@media only screen and (max-width: 767px) {
  .l-opening__text {
    font-size: calc(14 / 375 * 100vw);
  }
}

@media only screen and (min-width: 768px) {
  .l-opening__text {
    font-size: calc(22 / 1280 * 100vw);
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.l-parallax {
  position: relative;
}

.l-parallax::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s;
  z-index: -1;
  left: 50%;
  transform: translateX(-50%);
}

.l-parallax.is-active::before {
  opacity: 1;
}

@media only screen and (max-width: 767px) {
  .l-parallax::before {
    max-width: 500px;
  }
}

@media only screen and (min-width: 768px) {
  .l-parallax::before {
    max-width: 375px;
  }
}

/* footer */
.l-footer {
  background-color: var(--color-accent01);
  padding-block: 24px;
}

.l-footer__item {
  display: grid;
  row-gap: 24px;
}

.l-footer__logo {
  text-align: center;
}

.l-footer__logo > img {
  width: 173px;
}

.l-footer__copyright {
  text-align: center;
  font-size: 10px;
  color: var(--color-white);
}

/* ========================================
   component
   ======================================== */

/* 画像テキスト */
.c-img-text {
  text-align: center;
}

.c-img-text > img {
  width: auto;
}

/* button */
.c-button--primary,
.c-button--contact {
  display: grid;
  place-items: center;
  max-width: 311px;
  height: 56px;
  border-radius: 999px;
  text-align: center;
  margin-inline: auto;
  width: 100%;
  position: relative;
  font-size: 20px;
  color: var(--color-white);
}

.c-button--primary::after,
.c-button--contact::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  translate: 0 -50%;
  width: 16px;
  height: 16px;
  background: url("../img/line-entry/icon/icon-chevron-right.svg") center /
    cover no-repeat;
}

.c-button--primary {
  background: linear-gradient(88deg, #ff654a 0%, #ffb050 99.58%);
  filter: var(--shadow-200);
}

.c-button--contact {
  background-color: var(--color-line);
  filter: var(--shadow-200);
}

/* navigation */
.navigation-wrapper {
  position: relative;
}

/* dots */
.c-dots {
  display: flex;
  column-gap: 12px;
  justify-content: center;
}

/* dot */
.c-dot {
  background-color: var(--color-dot);
  border-radius: 50%;
  height: 8px;
  width: 8px;

  &.is-active {
    background-color: var(--color-primary);
  }
}

/* ========================================
   project
   ======================================== */

/* drawer */
.p-drawer {
  align-items: center;
  display: grid;
  height: 0;
  left: 50%;
  position: fixed;
  top: 0;
  transform: translateX(-50%);
  width: 100%;
  z-index: 999;
}

@media only screen and (max-width: 767px) {
  .p-drawer {
    max-width: 500px;
  }
}

@media only screen and (min-width: 768px) {
  .p-drawer {
    max-width: 375px;
  }
}

@media only screen and (min-width: 992px) {
  .p-drawer {
    display: none;
  }
}

.p-drawer__button {
  background-color: var(--color-white);
  height: 40px;
  position: fixed;
  right: 16px;
  top: 12px;
  width: 40px;
  z-index: 999;
  border-radius: 50%;
  border: none;
}

.p-drawer__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 16px;
  padding-right: 16px;
  transition: transform 0.3s;
  transform: translateY(-100%);
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.p-drawer__list {
  margin-bottom: 60px;
}

.p-drawer__list-item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 155, 137, 0.3);
  margin-bottom: 24px;
  padding-bottom: 24px;
}

.p-drawer__link {
  padding-left: 56px;
  position: relative;
  font-size: 16px;
  color: var(--color-primary);
}

.p-drawer__link::before {
  content: "";
  border-bottom: 1px solid var(--color-primary);
  border-right: 1px solid var(--color-primary);
  width: 6px;
  height: 6px;
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.p-drawer__link > img {
  width: auto;
}

.p-drawer__arrow {
  display: grid;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
}

.p-drawer__button-inner {
  transform: translate(-50%, -50%);
  left: 50%;
  position: absolute;
  top: 50%;
  line-height: 0;
}

.p-drawer__cross {
  position: relative;
  width: 26px;
  height: 12px;
}

.p-drawer__cross > span {
  background-color: var(--color-gray);
  height: 1px;
  transition: transform 0.3s;
  width: 20px;
  display: inline-block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.p-drawer__menu {
  text-align: center;
  margin-top: 8px;
}

.p-drawer__menu > img {
  width: auto;
}

.p-drawer__cta {
  margin-top: 48px;
  display: grid;
  row-gap: 24px;
}

.p-drawer__cross > span:first-child {
  top: calc(50% - 3px);
}

.p-drawer__cross > span:last-child {
  top: calc(50% + 3px);
}

.p-drawer.is-open {
  height: 100vh;
}

.p-drawer.is-open .p-drawer__button {
  background-color: transparent;
}

.p-drawer.is-open .p-drawer__cross > span:first-child,
.p-drawer.is-open .p-drawer__cross > span:last-child {
  top: 50%;
}

.p-drawer.is-open .p-drawer__cross > span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.p-drawer.is-open .p-drawer__cross > span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.p-drawer.is-open .p-drawer__content {
  transform: translateY(0);
  padding-top: 95px;
  padding-bottom: 48px;
  background-color: rgba(255, 255, 255, 0.95);
  justify-content: flex-start;
}

/* mv */
.p-mv {
  position: relative;
}

.p-mv__main {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
}

.p-mv__text {
  margin-top: 24px;
}

@media only screen and (max-width: 767px) {
  .p-mv__logo > img {
    width: min(295px, calc(221 / 375 * 100vw));
  }

  .p-mv__text > img {
    width: min(350px, calc(262 / 375 * 100vw));
  }
}

@media only screen and (min-width: 768px) {
  .p-mv__logo > img {
    width: 221px;
  }

  .p-mv__text > img {
    width: auto;
  }
}

/* introduction */
.p-introduction::before {
  background: url("../img/line-entry/parallax/section1.jpg") center / cover
    no-repeat;
}

/* experience */
.p-experience::before {
  background: url("../img/line-entry/parallax/section2.jpg") center / cover
    no-repeat;
}

/* turning */
.p-turning::before {
  background: url("../img/line-entry/parallax/section3.jpg") center / cover
    no-repeat;
}

/* program */
.p-program {
  background-color: var(--color-lightorange);
}

.p-program__intro {
  position: relative;
  z-index: 1;
}

.p-program__intro-text {
  margin-top: 38px;
}

.p-program__text {
  margin-top: 24px;
}

.p-program__img-gradation {
  position: relative;
}

.p-program__img-gradation::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 0;
  width: 100%;
  height: 330px;
  background: linear-gradient(
    180deg,
    var(--color-lightorange) 62.98%,
    rgba(253, 246, 232, 0) 91.83%
  );
}

.p-program__items {
  display: grid;
  row-gap: 32px;
}

.p-program__item-img {
  filter: var(--shadow-200);
}

.p-program__item-title {
  margin-top: 16px;
}

.p-program__item-text {
  margin-top: 12px;
}

/* feature */
.p-feature {
  background-color: var(--color-white);
  padding-block: 64px;
}

.p-feature::before {
  /* 本来Priceセクションの画像だが、切り替えの瞬間を視認させないために、一つ前のセクションで実行 */
  background: url("../img/line-entry/parallax/section4.jpg") center / cover
    no-repeat;
}

.p-feature__text {
  margin-top: 16px;
}

.p-feature__item {
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--color-primary);
}

.p-feature__item > img {
  filter: var(--shadow-200);
}

.p-feature__item:last-child {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-primary);
}

.p-feature__item-title {
  margin-top: 24px;
}

.p-feature__item-text {
  margin-top: 12px;
}

/* event */
.p-event {
  background-color: #fff;
  padding-top: 32px;
}

.p-event__box {
  border-radius: 12px;
  background: linear-gradient(
    52deg,
    rgba(255, 138, 118, 0.8) 58.14%,
    rgba(255, 225, 182, 0.8) 98.42%
  );
  filter: drop-shadow(0px 1px 4px rgba(12, 12, 13, 0.1))
    drop-shadow(0px 1px 4px rgba(12, 12, 13, 0.05));
  padding: 24px 24px 32px;
}

.p-event__img {
  margin-top: 16px;
}

.p-event__text {
  color: #fff;
  margin-top: 16px;
}

/* price */
.p-price {
  background-color: var(--color-lightorange);
}

.p-price__img01 {
  margin-top: 32px;
}

.p-price__parallax {
  padding-bottom: 670px;
}

/* sorry */
.p-sorry {
  padding-top: 32px;
}

.p-sorry__title {
  text-align: center;
  font-size: 20px;
}

.p-sorry__img {
  margin-top: 6px;
  text-align: center;
}

.p-sorry__img > img {
  width: 210px;
}

.p-sorry__box {
  padding: 24px 16px;
  background-color: var(--color-white);
  border-radius: 12px;
  filter: var(--shadow-200);
  margin-top: 22px;
  position: relative;
  text-align: center;

  &::before {
    width: 16px;
    height: 16px;
    background-color: var(--color-white);
    position: absolute;
    top: -15px;
    left: 50%;
    translate: -50% 0;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    content: "";
  }
}

.p-sorry__arrow {
  line-height: 0;
  margin-block: 24px;
}

.p-sorry__present {
  padding: 48px 32px;
  background: linear-gradient(46.03deg, #ff654a 27.76%, #ffb050 79.19%);
  filter: var(--shadow-200);
  border-radius: 12px;
}

.p-sorry__present-balloon {
  background-color: var(--color-white);
  border-radius: 16px;
  padding: 2px 10px;
}

.p-sorry__present-title {
  font-size: 16px;
  text-align: center;
  background: linear-gradient(88deg, #ff654a 0%, #ffb050 99.58%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.p-sorry__present-text {
  margin-top: 8px;
  text-align: center;
  color: var(--color-white);
  font-size: 20px;
}

.p-sorry__present-img {
  margin-top: 24px;
}

/* record */
.p-record {
  background-color: var(--color-primary);
}

.p-record__items {
  margin-top: 48px;
}

.p-record__item {
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--color-white);
}

.p-record__item-img {
  filter: var(--shadow-200);
  margin-bottom: 24px;
}

.p-record__item-text {
  margin-top: 12px;
  color: var(--color-white);
}

/* voice */
.p-voice {
  background: url("../img/line-entry/voice/bg-voice.png") center / cover
    no-repeat;
}

.p-voice__items {
  margin-top: 48px;
}

.p-voice__item {
  padding-inline: 16px;
  padding-bottom: 32px;
}

.p-voice__box {
  padding: 30px 24px 24px;
  margin-top: 24px;
  background-color: var(--color-white);
  filter: var(--shadow-200);
  border-radius: 12px;
}

.p-voice__problem {
  background-color: var(--color-accent01);
  width: 168px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-inline: auto;
  margin-bottom: 8px;
}

.p-voice__problem-text {
  color: var(--color-white);
  font-size: 14px;
  text-align: center;
}

.p-voice__item-text {
  margin-top: 16px;
}

/* message */
.p-message {
  position: relative;
}

.p-message__main {
  position: absolute;
  top: 70px;
  left: 50%;
  translate: -50% 0;
  width: 100%;
  text-align: center;
}

.p-message__title {
  text-align: center;
  color: var(--color-primary);
  font-size: 22px;
  line-height: 1.6;
}

.p-message__text {
  margin-top: 24px;
  text-align: center;
  color: var(--color-text);
  font-size: 16px;
  line-height: 2.6;
}

/* faq */
.p-faq {
  background-color: var(--color-white);
}

.p-faq__items {
  row-gap: 16px;
  margin-top: 48px;
  display: grid;
}

.p-faq__item {
  border-radius: 12px;
  background-color: var(--color-lightorange);
  filter: var(--shadow-200);
}

.p-faq__question {
  position: relative;
  padding: 26px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.p-faq__question:hover,
.p-faq__question.is-open {
  color: var(--color-primary);
}

.p-faq__question:hover {
  cursor: pointer;
}

.p-faq__question::before,
.p-faq__question::after {
  content: "";
  display: inline-block;
}

.p-faq__question::before {
  content: "Q";
  font-size: 20px;
}

.p-faq__question::after {
  background: url("../img/line-entry/icon/icon-chevron-down-black.svg") center /
    cover no-repeat;
  width: 16px;
  height: 16px;
  transition: rotate 0.3s;
}

.p-faq__question:hover::after,
.p-faq__question.is-open::after {
  background: url("../img/line-entry/icon/icon-chevron-down-red.svg") center /
    cover no-repeat;
}

.p-faq__question.is-open::after {
  rotate: 180deg;
}

.p-faq__answer {
  display: none;
}

.p-faq__answer-text {
  padding: 16px;
  background-color: var(--color-primary);
  color: var(--color-white);
  display: grid;
  grid-template-columns: 15px 1fr;
  column-gap: 24px;
  align-items: center;
  border-radius: 0 0 12px 12px;
}

.p-faq__answer-text::before {
  content: "A";
  display: inline-block;
  font-size: 20px;
  font-family: "Shippori Mincho", serif;
}

.p-faq__cta-area {
  margin-top: 48px;
  display: grid;
  row-gap: 6px;
}

.p-faq__other-questions {
  text-align: center;
  font-size: 12px;
  color: var(--color-text);
}

/* floating */
.p-floating,
.p-floating--entry {
  position: fixed;
  bottom: 0px;
  left: 50%;
  translate: -50% 0;
  z-index: 997;
  background: linear-gradient(88deg, #ff654a 0%, #ffb050 99.58%);
  opacity: 0.94;
  border-radius: 20px 20px 0px 0px;
  width: 100%;
  padding-block: 11px;
}

@media only screen and (max-width: 767px) {
  .p-floating,
  .p-floating--entry {
    max-width: 500px;
  }
}

@media only screen and (min-width: 768px) {
  .p-floating {
    max-width: 375px;
  }

  .p-floating--entry {
    display: none !important;
  }
}

.p-floating__button {
  text-align: center;
  color: var(--color-white);
  font-size: min(20px, calc(20 / 375 * 100vw));
  position: relative;
}

.p-floating__button::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  translate: 0 -50%;
  width: 16px;
  height: 16px;
  background: url("../img/line-entry/icon/icon-chevron-right.svg") center /
    cover no-repeat;
}

.p-floating__balloon {
  background-color: rgba(255, 255, 255, 0.9);
  position: absolute;
  top: -26px;
  left: 50%;
  translate: -50% 0;
  width: min(355px, 100%);
  border-radius: 20px;
  padding-block: 3px;
}

.p-floating__balloon-text {
  background: linear-gradient(88deg, #ff654a 0%, #ffb050 99.58%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: min(16px, calc(16 / 375 * 100vw));
  text-align: center;
}

/* pc */
.p-pc {
  display: none;
}

@media only screen and (min-width: 992px) {
  .p-pc {
    display: block;
  }

  .p-pc__title {
    position: fixed;
    top: 50%;
    translate: 0 -50%;
    left: 40px;
    z-index: 998;
    width: calc(290 / 1280 * 100vw);
    text-align: center;
  }
}

@media only screen and (min-width: 1280px) {
  .p-pc__title {
    left: calc(80 / 1280 * 100%);
  }
}

/* toc */
.p-toc {
  display: none;
}

@media only screen and (min-width: 992px) {
  .p-toc {
    display: block;
    position: fixed;
    top: 50%;
    right: 40px;
    z-index: 998;
    width: calc(300 / 1280 * 100vw);
    transform: translateY(-50%);
  }

  .p-toc__list {
    display: grid;
    row-gap: calc(24 / 1280 * 100vw);
  }

  .p-toc__link {
    display: block;
    padding-left: calc(27 / 1280 * 100vw);
    position: relative;
    font-size: calc(16 / 1280 * 100vw);
    color: var(--color-gray);
  }

  .p-toc__link > img {
    width: auto;
    height: calc(16 / 1280 * 100vw);
  }

  .p-toc__link:hover,
  .p-toc__link.is-active {
    background: linear-gradient(88deg, #ff654a 0%, #ffb050 99.58%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .p-toc__link.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: calc(16 / 1280 * 100vw);
    height: calc(16 / 1280 * 100vw);
    background: url("../img/line-entry/icon/icon-chevron-right-cta.svg") center /
      cover no-repeat;
  }

  .p-toc__cta {
    margin-top: 94px;
    display: grid;
    row-gap: 20px;
  }

  .p-toc .c-button--primary,
  .p-toc .c-button--contact {
    width: calc(260 / 1280 * 100vw);
    height: calc(48 / 1280 * 100vw);
    max-width: 100%;
    font-size: calc(16 / 1280 * 100vw);
  }
}

@media only screen and (min-width: 1280px) {
  .p-toc {
    right: calc(86 / 1280 * 100%);
  }
}

@media (any-hover: hover) {
  .p-toc__link:hover {
    opacity: 1;
  }

  .p-toc__link:hover::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: calc(16 / 1280 * 100vw);
    height: calc(16 / 1280 * 100vw);
    background: url("../img/line-entry/icon/icon-chevron-right-cta.svg") center /
      cover no-repeat;
  }
}

/* ========================================
   utility
   ======================================== */

/* Font: Shippori Mincho */
.u-shippori-mincho {
  font-family: "Shippori Mincho", serif;
}
