@charset "utf-8";

.contact-page {
  position: relative;
  overflow: hidden;
}

.contact-page::before {
  content: "";
  position: absolute;
  top: calc(-397 / 1440 * 100vw);
  left: calc(-409 / 1440 * 100vw);
  width: calc(1860 / 1440 * 100vw);
  height: calc(1400 / 1440 * 100vw);
  background: url(../images/contact/lace_contact.png);
  background-repeat: no-repeat;
  background-size: contain;
  overflow: hidden;
  pointer-events: none;
  z-index: 100;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.contactpage__inner {
  padding: 8.8% 18.5% ;
  position: relative;
  z-index: 1;
}

/* ======== heading  =========*/
.contact-page__heading {
  display: flex;
  justify-content: center;
}

.contact-page__title img {
  display: block;
  width: calc(486 / 1440 * 100vw);
  height: auto;
}

.contact-page__lead {
  margin-top: calc(80 / 1440 * 100vw);
}

.contact-page__lead-text {
  text-align: center;
  font-size: var(--fz-16);
  letter-spacing: 0.02em;
}

/*　========= 連絡先上部  =========*/
.contact-page__contact-links {
  margin-top: calc(128 / 1440 * 100vw);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 72px;
  column-gap: 32px;
  align-items: start;
}

.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: max(calc(437 / 1440 * 100vw), 360px);
  border: 1px solid var(--primary-dustyPink);
  border-radius: 4px;
  padding: calc(24 / 1440 * 100vw) calc(40 / 1440 * 100vw)
    calc(24 / 1440 * 100vw) calc(32 / 1440 * 100vw);
  min-height: calc(138 / 1440 * 100vw);
}

.contact-card__label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dustyPink);
  text-align: start;
  font-family: "Italiana";
  font-size: var(--fz-24);
  line-height: 1.5;
  letter-spacing: 0.02em;
}


.contact-card__icon {
  position: relative;
}

.icon-white {
  position: absolute;
  opacity: 0;
}

.contact-card__icon img {
  width: min(calc(20 / 1440 * 100vw), 24px);
  height: auto;
  display: block;
}

.icon-mail {
  width: min(calc(20 / 1440 * 100vw), 24px);
  height: auto;
  display: block;
}

.contact-card:hover .icon-mail {
  color: var(--primary-white);
}

.contact-card__icon {
  display: flex;
  align-items: center;
}

.contact-card__link {
  color: var(--primary-dustyPink);
  font-family: "Italiana";
  font-size: var(--fz-32);
  line-height: 1.5;
  letter-spacing: 0.02em;

  width: calc(350 / 1440 * 100vw);
  border-bottom: 1px dotted var(--primary-dustyPink);
  padding-bottom: 1px;
}

.contact-card__text {
  font-size: var(--fz-16);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.contact-card__link--arrow {
  display: inline-flex;
  position: relative;
  align-items: center;
  margin-top: 12px;
  width: fit-content;
}

.contact-card__link--arrow::after {
  content: "";
  display: inline-block;
  width: calc(32 / 1440 * 100vw);
  height: calc(19 / 1440 * 100vw);
  margin-left: calc(16/ 1440 * 100vw);
  background: url(../images/contact/arrow_contact.svg);
  background-repeat: no-repeat;
  background-size: contain;
}

/* ローズ・パール */
.contact-card--mail::before,
.contact-card--skeb::before,
.contact-card--mail::after,
.contact-card--skeb::after {
  content: "";
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
}

/* メール */
.contact-card--mail::before {
  width: max(100px, calc(130 / 1440 * 100vw));
  aspect-ratio: 130 / 80;
  top: calc(-40 / 1440 * 100vw);
  right: calc(26 / 1440 * 100vw);
  background-image: url(../images/contact/roseBtn_red.png);
}

.contact-card--mail::after {
  width: min(calc(55 / 1440 * 100vw), 85px);
  aspect-ratio: 55 / 32;
  bottom: calc(-19 / 1440 * 100vw);
  left: calc(18 / 1440 * 100vw);
  background-image: url(../images/contact/pearlBtn_mail.png);
}

/* skeb */
.contact-card--skeb::before {
  width: max(100px, calc(123 / 1440 * 100vw));
  aspect-ratio: 123 / 90;
  top: calc(-57 / 1440 * 100vw);
  right: calc(26 / 1440 * 100vw);
  background-image: url(../images/contact/rosebtn_pink.png);
}

.contact-card--skeb::after {
  width: min(calc(60 / 1440 * 100vw), 80px);
  aspect-ratio: 60 / 38;
  bottom: calc(-19 / 1440 * 100vw);
  left: calc(18 / 1440 * 100vw);
  background-image: url(../images/contact/pearlBtn_skeb.png);
}

/* ホバーアニメーション */
.contact-card {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-card:hover {
  background-color: var(--primary-dustyPink);
} 

.contact-card:hover .contact-card__label,
.contact-card:hover .contact-card__link,
.contact-card:hover .contact-card__text{
  color: var(--primary-white);
}

.contact-card:hover .contact-card__link  {
  border-bottom: 1px dotted var(--primary-white);
}

.contact-card:hover .icon-white {
  opacity: 1;
}

.contact-card:hover .contact-card__link--arrow::after{
  background-image: url(../images/contact/arrow_contactWhite.svg);
}


/* ============= */

/* ======= 注意事項 ========= */
.contact-page__notes {
  margin-top: calc(72 / 1440 * 100vw);
}

.notes-contact__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dustyPink);
  font-size: var(--fz-24);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.notes-contact__title::before {
  content: "";
  display: inline-block;
  width: min(calc(24 / 1440 * 100vw), 32px);
  height: min(calc(24 / 1440 * 100vw), 32px);
  aspect-ratio: 1 / 1;
  background: url(../images/contact/Precautions_Icon.svg);
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
  transform: translateY(1px);
}

.notes-contact__list {
  margin-top: calc(8 / 1440 * 100vw);
  list-style: none;
  padding-left: 0;
}

.notes-contact__item {
  font-size: var(--fz-16);
  letter-spacing: 0.02em;

  position: relative;
  padding-left: 1.2em;
}

.notes-contact__item::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
}

/* ======= flow ========== */
.contact-flow {
  margin-top: calc(72 / 1440 * 100vw);
  position: relative;
}

.contact-flow__heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.contact-flow__title {
  color: var(--primary-dustyPink);
  font-family: "Italiana";
  font-size: var(--fz-32);
  letter-spacing: -0.02em;
}

.contact-flow__subtitle {
  color: var(--primary-dustyPink);
  font-size: var(--fz-16);
  letter-spacing: 0.02em;
}

.contact-flow__list {
  margin-top: 80px;
}

.contact-flow__item {
  display: grid;
  grid-template-columns: calc(340 / 1440 * 100vw) 1fr;
  column-gap: calc(24 / 1440 * 100vw);
  align-items: start;
  position: relative;
}

.contact-flow__item + .contact-flow__item {
  margin-top: calc(72 / 1440 * 100vw);
}

.contact-flow__step {
  position: relative;
}

.contact-flow__step-label {
  color: var(--primary-dustyPink);
  line-height: 1;
  letter-spacing: -0.02em;
}

.contact-flow__step-text {
  font-family: "Italiana";
  font-size: var(--fz-16);
}

.contact-flow__step-num {
  font-family: "Bodoni Moda SC";
  font-size: var(--fz-16);
}

.contact-flow__item-title {
  color: var(--primary-dustyPink);
  font-size: var(--fz-24);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.contact-flow__text {
  font-size: var(--fz-16);
  letter-spacing: 0.02em;
  margin-top: 24px;
}

.contact-flow__text-wrapper {
  margin-top: 24px;
}

/* =======テンプレート========= */

.contact-template {
  display: inline-block;
  margin-top: 32px;
  width: 100%;
  background-color: var(--primary-white);
  position: relative;
}

.contact-template__inner::before {
  content: '';
  position: absolute;
  width: calc(251 / 1440 * 100vw);
  aspect-ratio: 251 / 93;
  top: 0;
  right: 0;
  background: url(../images/contact/wrapPinkrbn_top.png);
  background-repeat: no-repeat;
  background-size: contain;
}

.contact-template__inner::after {
  content: '';
  position: absolute;
  width: calc(137/ 1440 * 100vw);
  aspect-ratio: 137 / 50;
  bottom: 0;
  left: 0;
  background: url(../images/contact/wrapPinkrbn_bottom.png);
  background-repeat: no-repeat;
  background-size: contain;
}

.contact-template__inner {
  padding: 4.3% 3.27%;
}

.contact-template__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fz-16);
  letter-spacing: 0.02em;
}

.contact-template__title::before {
  content: '';
  width: min(calc(15 / 1440 * 100vw), 24px);
  height: min(calc(12 / 1440 * 100vw), 24px);
  aspect-ratio: 1 / 1;
  background: url(../images/contact/note_icon.svg);
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
}

.contact-template__list {
  margin-top: 8px;
}

.contact-template__item {
  font-size: var(--fz-16);
  letter-spacing: 0.02em;

  position: relative;
  counter-increment: item;
  padding-left: 2.4em;
}

.contact-template__item::before {
  content: " （" counter(item) "） ";
  position: absolute;
  left: 0;
}

.contact-template__copy-button {
  margin-top: calc(4 / 1440 * 100vw);
  margin-left: auto;
  display: block;
  border: none;
  background: transparent;
  font-size: var(--fz-16);
  color: var(--primary-dustyPink);
  text-decoration: underline;
  cursor: pointer;
}

.contact-template__copy-button {
  transition: all 0.3s ease;
}

.contact-template__copy-button.is-copied {
  color: var(--primary-white);
  background-color: var(--primary-dustyPink);
  border-radius: 999px;
  padding: 2px 12px;
}


/* ========== フローチャートアニメーション==================== */

/* =========================
flow animation
========================= */

/* 各stepの初期状態 */
.contact-flow__item {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s ease,
    transform 0.6s ease;
}

/* 表示後 */
.contact-flow__item.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* 左側のstepエリア */
.contact-flow__step {
  position: relative;
  min-height: 40px;
  align-items: center;
  display: flex;
  gap: 8px;
} 

/* dot */
.contact-flow__dot {
  position: static;
  flex-shrink: 0;
  top: 0;
  left: 0;
  right: calc(44 / 1440 * 100vw);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--primary-dustyPink);

  opacity: 0;
  transform: scale(0.3);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

/* step */
.contact-flow__step-label {
  position: relative;
  align-items: baseline;
  gap: 2px;

  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

/* 本文タイトル */
.contact-flow__item-title {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

/* 本文 */
.contact-flow__text {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

/* テンプレート */
.contact-template {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

/* 表示後の順番制御 */
.contact-flow__item.is-show .contact-flow__dot {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.1s;
}

.contact-flow__item.is-show .contact-flow__step-label {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.contact-flow__item.is-show .contact-flow__item-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.contact-flow__item.is-show .contact-flow__text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.contact-flow__item.is-show .contact-template {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}



/* 縦線 */
.contact-flow__item::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 7px;
  width: 1px;
  height: calc(100% + calc(72 / 1440 * 100vw));
  background-color: var(--primary-dustyPink);
  
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.6s ease;
}

.contact-flow__item:nth-last-of-type(1):before {
  display: none;
  content: none;
}

.contact-flow__item.is-show::before {
  transform: scaleY(1);
}

/* ==========================*/


/* ======= bottom ========= */
.contact-page__bottom {
  margin-top: calc(88 / 1440 * 100vw);
  margin-bottom: calc(160 / 1440 * 100vw);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: calc(42 / 1440 * 100vw);
}

.contact-page__bottom-visual {
  width: calc(322 / 1440 * 100vw);
  flex-shrink: 0;
}

.contact-page__bottom-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-page__bottom-message {
  position: relative;
  padding: 12% 0;
}

.contact-page__bottom-message::before {
  position: absolute;
  content: "";
  display: block;
  width: calc(64 / 1440 * 100vw);
  height: calc(49 / 1440 * 100vw);
  top: calc(69 / 1440 * 100vw);
  right: calc(-14 / 1440 * 100vw);
  background: url(../images/contact/ribbon01_contact.png);
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 2;
}

.contact-page__bottom-message::after {
  position: absolute;
  content: "";
  display: block;
  width: calc(32 / 1440 * 100vw);
  height: calc(29 / 1440 * 100vw);
  top: calc(42 / 1440 * 100vw);
  right: calc(-10 / 1440 * 100vw);
  background: url(../images/contact/ribbon02_contact.png);
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 2;
}

.contact-page__thanks {
  color: var(--primary-dustyPink);
  font-family: "Ballet";
  font-size: var(--fz-24);
  letter-spacing: 0.02%;
}


/* SP切替 */
@media screen and (max-width: 768px) {
  .contactpage__inner {
    padding: 86px 6.4%;
  }

  .contact-page::before {
    top: calc(-101 / 375 * 100vw);
    left: calc(-100 / 375 * 100vw);
    width: calc(497 / 375 * 100vw);
    height: calc(413 / 375 * 100vw);
  }

  .contact-page__title img {
    width: calc(180 / 375 * 100vw);
  }

  .contact-page__lead {
    margin: calc(48 / 375 * 100vw) auto calc(56 / 375 * 100vw);
    width: calc(245 / 375 * 100vw);
  }

  .contact-page__lead-text {
    font-size: var(--fz-14sp);
  }

  /* 連絡先 */

  .contact-page__contact-links {
    margin-top: calc(56 / 375 * 100vw);
    row-gap: 40px;
  }

  .contact-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: calc(245 / 375 * 100vw);
      padding: 16px 13px;
    min-height: calc(88 / 375 * 100vw);
    justify-content: center;
    margin: auto;
  }

  .contact-card__label {
    gap: 4px;
    font-size: var(--fz-14sp);
  }

  .contact-card__icon img {
    width: calc(16 / 375 * 100vw);
  }

  .contact-card__link {
    font-size: var(--fz-20sp);
    width: fit-content;
  }

  .contact-card__link--arrow {
    margin-top: 2px;
  }

.contact-card__link--arrow::after {
    width: calc(24 / 375 * 100vw);
    height: calc(14 / 375 * 100vw);
    margin-left: calc(8 / 375 * 100vw);
  }

  /* ローズ・パール装飾 */
  /* メール */
  .contact-card--mail::before {
    width: calc(64 / 375 * 100vw);
    aspect-ratio: 64 / 38;
    top: calc(-20 / 375 * 100vw);
    right: calc(23 / 375 * 100vw);
  }

  .contact-card--mail::after {
    width: calc(32 / 375 * 100vw);
    aspect-ratio: 32 / 18;
    bottom: calc(-10 / 375 * 100vw);
    left: calc(18 / 375 * 100vw);
  }

  /* skeb */
  .contact-card--skeb::before {
    width: calc(64 / 375 * 100vw);
    aspect-ratio: 64 / 46;
    top: calc(-27 / 375 * 100vw);
    right: calc(25 / 375 * 100vw);
  }

  .contact-card--skeb::after {
    width: calc(32 / 375 * 100vw);
    aspect-ratio: 32 / 21;
    bottom: calc(-10 / 375 * 100vw);
    left: calc(18 / 375 * 100vw);
  }


  /* ========= ホバーアニメーション =========== */
  .contact-card:hover {
    background-color: transparent;
  }

  .contact-card:hover .contact-card__label,
  .contact-card:hover .contact-card__link,
  .contact-card:hover .contact-card__text {
    color: var(--primary-dustyPink);
  }

  .contact-card:hover .contact-card__link {
    border-bottom: 1px dotted var(--primary-dustyPink);
  }

  .contact-card:hover .icon-white {
    opacity: 0;
  }

  .contact-card:hover .contact-card__link--arrow::after{
    background-image: url(../images/contact/arrow_contact.svg);
    width: calc(24 / 375 * 100vw);
    height: calc(14 / 375 * 100vw);
    margin-left: 8px;
  }

  /* ======================== */


  /* ========= 注意事項　============ */
  .contact-page__notes {
    margin-top: calc(56 / 375 * 100vw);
  }

  .notes-contact__title {
    font-size: var(--fz-16sp);
  }

  .notes-contact__title::before {
    width: calc(16 / 375 * 100vw);
    max-width: 24px;
    height: calc(16 / 375 * 100vw);
    height: 24px;
    transform: translateY(6px);
  }

  .notes-contact__list {
    margin-top: calc(8 / 375 * 100vw);
  }

  .notes-contact__item {
    font-size: var(--fz-14sp);
    letter-spacing: 0.02em;

    padding-left: 1.0em;
  }

  /* ======================== */

  /* flow */
  .contact-flow {
    margin-top: calc(72 / 375 * 100vw);
  }

  .contact-flow__heading {
    gap: 4px;
  }

  .contact-flow__title {
    font-size: var(--fz-24sp);
    letter-spacing: -0.02em;
  }

  .contact-flow__subtitle {
    font-size: var(--fz-12sp);
    letter-spacing: 0.02em;
  }

  .contact-flow__list {
    margin-top: 32px;
  }

  .contact-flow__item {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: calc(24 / 375 * 100vw);
    align-items: start;
    position: relative;
  }

  .contact-flow__item::before {
    display: none;
  }

  .contact-flow__dot {
    display: none;
  }

  .contact-flow__item + .contact-flow__item {
    margin-top: calc(56 / 375 * 100vw);
  }

  .contact-flow__step-text {
    font-size: var(--fz-12sp);
  }

  .contact-flow__step-num {
    font-size: var(--fz-12sp);
  }

  .contact-flow__item-title {
    font-size: var(--fz-16sp);
  }

  .contact-flow__text {
    font-size: var(--fz-14sp);
    letter-spacing: 0.02em;
    margin-top: 16px;
  }

  .contact-flow__text-wrapper {
    margin-top: 24px;
  }

  /* =================== */

  /*============== テンプレート ==============*/
  .contact-template {
    width: calc(277 / 375 * 100vw);
  }

  .contact-template__inner::before {
    width: calc(126 / 375 * 100vw);
    aspect-ratio: 126 / 47;
  }

  .contact-template__inner::after {
    width: calc(92 / 375 * 100vw);
    aspect-ratio: 92 / 34;
  }

  .contact-template__inner {
    padding: 4.26% 3.7%;
  }

    .contact-template__title {
    gap: 4px;
    font-size: var(--fz-12sp);
  }

  .contact-template__title::before {
    width: max(10px, calc(10 / 375 * 100vw));
    height: max(12px, calc(12 / 375 * 100vw));
  }

  .contact-template__item {
    font-size: var(--fz-12sp);
  }

  .contact-template__copy-button {
    margin-top: calc(8 / 375 * 100vw);
    font-size: clamp(10px, calc(10 / 1440 * 100vw), 12px);
  }

  /* ====================== */


/* ============== bottom =============== */
  .contact-page__bottom {
    flex-direction: column;
    margin-top: calc(44 / 375 * 100vw);
    margin-bottom: calc(64 / 375 * 100vw);
    gap: 2px;
  }

  .contact-page__bottom-visual {
    width: calc(201 / 375 * 100vw);
  }

  .contact-page__bottom-message {
    padding: 4% 0;
  }

  .contact-page__bottom-message::before {
    width: calc(40 / 375 * 100vw);
    height: calc(30 / 375 * 100vw);
    top: calc(-2 / 375 * 100vw);
    right: calc(-14 / 375 * 100vw);
  }

  .contact-page__bottom-message::after {
    width: calc(20 / 375 * 100vw);
    height: calc(16 / 375 * 100vw);
    top: calc(-16 / 375 * 100vw);
    right: calc(-10 / 375 * 100vw);
  }

  .contact-page__thanks {
    font-size: var(--fz-16sp);
    letter-spacing: 0.02em;
  }

}
