/* =========================================================
   PRIVACY POLICY PAGE
   個人情報保護方針
========================================================= */

/* ------------------------------
   ページ全体
------------------------------ */

.contact:has(.privacy_mv) {
  width: 100%;
  max-width: none;
  margin: 0;
  background-color: #fff;
  color: #555;
  overflow: hidden;
}

.contact:has(.privacy_mv) *,
.contact:has(.privacy_mv) *::before,
.contact:has(.privacy_mv) *::after {
  box-sizing: border-box;
}


/* =========================================================
   メインビジュアル
========================================================= */

.contact .privacy_mv {
  position: relative;
  width: 100vw;
  height: 500px;
  margin-left: calc(50% - 50vw);
  overflow: hidden;

background-image: linear-gradient(90deg, rgba(235, 248, 255, 0.98) 0%, rgba(235, 248, 255, 0.92) 24%, rgba(235, 248, 255, 0.58) 48%, rgba(235, 248, 255, 0.08) 78%, rgba(235, 248, 255, 0) 100%), url(../img/privacy_mv.jpeg);
background-position: 50% 40%;
    background-size: 100%;
background-repeat: no-repeat;

}

/* 下部の波 */
.contact .privacy_mv::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  z-index: 1;

  width: 120%;
  height: 120px;

  background-color: #fff;

  transform: translateX(-50%);

clip-path: polygon(0% 18%, 5% 23%, 10% 30%, 15% 38%, 20% 48%, 25% 58%, 30% 68%, 35% 76%, 40% 82%, 45% 84%, 50% 80%, 55% 72%, 60% 60%, 65% 46%, 70% 32%, 75% 22%, 80% 16%, 85% 14%, 90% 18%, 95% 28%, 100% 40%, 100% 100%, 0% 100%);
}

/* タイトルを配置する共通幅 */
.contact .privacy_mv .contact_mv_inner {
  position: relative;
  z-index: 2;

  width: calc(100% - 40px);
  max-width: 760px;
  height: 100%;

  margin: 0 auto;
  padding-top: 92px;
}

/* 日本語タイトル */
.contact .privacy_mv .contact_mv_title {
  margin: 0;

  color: #555;
  font-family:
    source-han-sans-cjk-ja,
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif !important;

  font-size: 31px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.08em;
}

/* 英語タイトル */
.contact .privacy_mv .contact_mv_en {
  margin: 7px 0 0;

  color: #006eff;
  font-family:
    Arial,
    Helvetica,
    sans-serif !important;

  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}


/* =========================================================
   本文エリア
========================================================= */

.contact .contact_inner {
  width: calc(100% - 40px);
  max-width: 920px;

  margin: 30px auto 80px;
  padding: 34px 34px 28px;

  background-color: #fff;
  border-radius: 5px;
}

/* WordPressが生成する段落 */
.contact .contact_inner > .wp-block-paragraph {
  margin: 0;

  color: #555;
  font-family:
    source-han-sans-cjk-ja,
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif !important;

  font-size: 1rem;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.035em;
}

/* 最初の説明文 */
.contact .contact_inner > .wp-block-paragraph:first-child {
  margin-bottom: 34px;
}


/* =========================================================
   見出し
========================================================= */

.contact .contact_inner > .wp-block-heading {
  position: relative;

  margin: 30px 0 10px;

  color: #006eff;
  font-family:
    source-han-sans-cjk-ja,
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif !important;

  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.035em;
}

/* 青い短い下線 */
/* .contact .contact_inner > .wp-block-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 36px;
  height: 2px;

  background-color: #006eff;
} */

/* 最初の見出しだけ上余白を少し調整 */
.contact .contact_inner > .wp-block-paragraph:first-child
  + .wp-block-heading {
  margin-top: 0;
}

/* 見出し直後の文章 */
.contact .contact_inner > .wp-block-heading
  + .wp-block-paragraph {
  margin-top: 0;
  margin-bottom: 16px;
}


/* =========================================================
   お問い合わせ窓口
========================================================= */

/*
  最後の段落はHTML上、
  ・お問い合わせ説明
  ・社名
  ・住所
  ・メールアドレス
  が1つのpタグ内に入っています。

  HTMLを変更せず、背景の上部だけ透明にすることで、
  説明文の下に水色の情報ボックスがあるように見せています。
*/

.contact .contact_inner > .wp-block-paragraph:last-child {
  margin-top: 0;
  margin-bottom: 0;
  padding: 22px 18px;

  border-radius: 6px;

  background-color: #eef6ff;

  line-height: 2.15;
}

/* WordPress側のbrに余計な高さを持たせない */
.contact .contact_inner > .wp-block-paragraph br {
  line-height: inherit;
}


/* =========================================================
   ホームに戻る固定ボタン
========================================================= */

.contact .fixed_home_btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99;

  width: 114px;
  height: 74px;

  border: 4px solid #fff;
  border-radius: 9999px;

  background-color: #0071e8;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;

  color: #fff;
  text-decoration: none;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.contact .fixed_home_btn:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* 家アイコン */
.contact .fixed_home_icon {
  position: relative;
  display: block;

  width: 25px;
  height: 22px;
  flex-shrink: 0;
}

.contact .fixed_home_icon::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 50%;

  width: 16px;
  height: 16px;

  border-top: 3px solid #fff;
  border-left: 3px solid #fff;

  transform: translateX(-50%) rotate(45deg);
}

.contact .fixed_home_icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;

  width: 15px;
  height: 12px;

  border: 3px solid #fff;
  border-top: none;

  transform: translateX(-50%);
}

.contact .fixed_home_text {
  display: block;

  margin: 0;

  color: #fff;
  font-family:
    source-han-sans-cjk-ja,
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif !important;

  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
}


/* =========================================================
   タブレット
========================================================= */

@media screen and (max-width: 768px) {

  .contact .privacy_mv {
    height: 300px;
    background-position: 60% center;
  }

  .contact .privacy_mv::after {
    width: 120%;
    height: 52px;

    clip-path: polygon(
      0 28%,
      10% 37%,
      20% 48%,
      30% 59%,
      40% 67%,
      50% 69%,
      60% 64%,
      70% 53%,
      80% 41%,
      90% 35%,
      100% 40%,
      100% 100%,
      0 100%
    );
  }

  .contact .privacy_mv .contact_mv_inner {
    width: calc(100% - 40px);
    padding-top: 70px;
  }

  .contact .privacy_mv .contact_mv_title {
    font-size: 27px;
  }

  .contact .privacy_mv .contact_mv_en {
    margin-top: 5px;
    font-size: 14px;
  }

  .contact .contact_inner {
    width: calc(100% - 40px);
    margin-top: 24px;
    margin-bottom: 70px;
    padding: 30px 28px 25px;
  }

  .contact .contact_inner > .wp-block-paragraph {
    font-size: 13px;
    line-height: 1.95;
  }

  .contact .contact_inner > .wp-block-heading {
    margin-top: 27px;
    font-size: 15px;
  }

  .contact .contact_inner > .wp-block-paragraph:first-child {
    margin-bottom: 30px;
  }

  .contact .contact_inner > .wp-block-paragraph:last-child {
    padding-right: 18px;
    padding-left: 18px;

    background:
      linear-gradient(
        to bottom,
        transparent 0,
        transparent 51px,
        #eef6ff 51px,
        #eef6ff 100%
      );
  }

  .contact .fixed_home_btn {
    right: 12px;
    bottom: 12px;

    width: 86px;
    height: 70px;

    border-width: 4px;
  }

  .contact .fixed_home_text {
    font-size: 11px;
  }
}


/* =========================================================
   スマートフォン
========================================================= */

@media screen and (max-width: 480px) {

  .contact .privacy_mv {
    height: 220px;
    background-position: 63% center;
  }

  .contact .privacy_mv::after {
    height: 42px;
  }

  .contact .privacy_mv .contact_mv_inner {
    width: calc(100% - 32px);
    padding-top: 55px;
  }

  .contact .privacy_mv .contact_mv_title {
    font-size: 22px;
    line-height: 1.5;
    letter-spacing: 0.06em;
  }

  .contact .privacy_mv .contact_mv_en {
    margin-top: 3px;
    font-size: 12px;
  }

  .contact .contact_inner {
    width: calc(100% - 28px);

    margin-top: 18px;
    margin-bottom: 60px;
    padding: 26px 20px 22px;

    border-radius: 4px;
  }

  .contact .contact_inner > .wp-block-paragraph {
    font-size: 12px;
    line-height: 1.9;
    letter-spacing: 0.025em;
  }

  .contact .contact_inner > .wp-block-paragraph:first-child {
    margin-bottom: 26px;
  }

  .contact .contact_inner > .wp-block-heading {
    margin-top: 25px;
    margin-bottom: 9px;
    padding-bottom: 9px;

    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 0.025em;
  }

  .contact .contact_inner > .wp-block-heading::after {
    width: 32px;
  }

  .contact .contact_inner > .wp-block-paragraph:last-child {
    margin-right: -6px;
    margin-left: -6px;
    padding-right: 14px;
    padding-bottom: 16px;
    padding-left: 14px;

    background:
      linear-gradient(
        to bottom,
        transparent 0,
        transparent 47px,
        #eef6ff 47px,
        #eef6ff 100%
      );

    font-size: 11px;
    line-height: 2;
  }

  .contact .fixed_home_btn {
    right: 9px;
    bottom: 9px;

    width: 74px;
    height: 64px;
  }

  .contact .fixed_home_icon {
    width: 22px;
    height: 19px;
  }

  .contact .fixed_home_icon::before {
    width: 14px;
    height: 14px;
    border-top-width: 2px;
    border-left-width: 2px;
  }

  .contact .fixed_home_icon::after {
    width: 13px;
    height: 10px;
    border-width: 2px;
    border-top: none;
  }

  .contact .fixed_home_text {
    font-size: 10px;
    line-height: 1.2;
  }
}