/*
 * プライバシー・費用案内
 * 編集先: css/privacy.css（このファイルを直接編集）
 * 読み込み順を保って整理済み。末尾への場当たり的な上書き追加は避け、該当する項目を編集。
 * 詳細: ../../docs/CSS-GUIDE.md
 *
 * 01. 相談案内の写真・CTA
 * 02. 固定フッターのレスポンシブ表示
 * 03. サブページの固定フッター
 * 04. 返金請求の費用・注意書き
 * 05. プライバシーページの本文幅
 * 06. サブページの共通レイアウト
 * 07. プライバシーページの文字サイズ
 */
/* 01. 相談案内の写真・CTA */

.footer_pc_tel {
  display: none;
}

@media only screen and (min-width: 781px) {
  .footer.footer {
    --footer-u: clamp(0.66px, 0.083vw, 1px);
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 20px 0 10px;
    background: #fff;
    border-top: 3px solid #1e50a2;
    box-shadow: 0 -3px 16px rgb(0 39 82 / 12%);
  }
  .footer .footer_pc_bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(8 * var(--footer-u));
    width: 100%;
    max-width: calc(1190 * var(--footer-u));
    min-height: calc(70 * var(--footer-u));
    margin: 0 auto;
    padding-right: calc(94 * var(--footer-u));
    box-sizing: border-box;
  }
  .footer .footer_pc_bar::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -10px;
    width: calc(100 * var(--footer-u));
    height: calc(148 * var(--footer-u));
    background: url("../images/worry/takibuchi-yu-cutout-v1.png") center bottom / contain no-repeat;
    pointer-events: none;
  }
  .footer .footer_pc_logo {
    display: flex;
    align-items: center;
    flex: 0 0 calc(340 * var(--footer-u));
  }
  .footer .footer_pc_logo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(72 * var(--footer-u));
    object-fit: contain;
  }
  .footer .footer_pc_tel {
    display: flex;
    flex: 0 0 calc(220 * var(--footer-u));
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .footer_pc_tel > a {
    display: flex;
    align-items: center;
    gap: calc(6 * var(--footer-u));
    color: #d94b45;
    font-family: "Oswald", "Noto Sans JP", sans-serif;
    font-size: calc(32 * var(--footer-u));
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
  }
  .footer_pc_tel > a span {
    color: inherit;
    font-family: "Noto Sans JP", sans-serif;
    font-size: calc(24 * var(--footer-u));
  }
  .footer_pc_tel ul {
    display: flex;
    gap: calc(6 * var(--footer-u));
    margin: calc(8 * var(--footer-u)) 0 0;
    padding: 0;
    list-style: none;
  }
  .footer_pc_tel li {
    padding: calc(6 * var(--footer-u)) calc(9 * var(--footer-u));
    border-radius: calc(5 * var(--footer-u));
    background: #f3f3f3;
    color: #333;
    font-size: calc(12 * var(--footer-u));
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }
  .footer_pc_tel li:nth-child(2) {
    background: #e64f5a;
    color: #fff;
  }
  body .footer .footer_cta {
    display: flex;
    flex: 1 1 calc(520 * var(--footer-u));
    gap: calc(14 * var(--footer-u));
    min-width: 0;
    max-width: none;
    width: auto;
    margin: 0;
  }
  body .footer .footer_cta_btn {
    flex: 1 1 0;
    flex-direction: row;
    min-height: calc(58 * var(--footer-u));
    padding: calc(10 * var(--footer-u)) calc(14 * var(--footer-u));
    gap: calc(8 * var(--footer-u));
    border: 0;
    border-radius: 999px;
    box-shadow: 0 5px 12px rgb(0 55 100 / 12%);
  }
  body .footer .footer_cta_btn > img {
    width: calc(28 * var(--footer-u));
    height: calc(26 * var(--footer-u));
    margin: 0;
  }
  body .footer .footer_cta_btn > span {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: calc(3 * var(--footer-u));
    white-space: nowrap;
  }
  body .footer .footer_cta_btn span b,
  body .footer .footer_cta_btn span em {
    display: inline;
    color: #fff;
    font-size: calc(18 * var(--footer-u));
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    border: 0;
    margin: 0;
    padding: 0;
  }
  body .footer .footer_cta_btn::after {
    top: calc(-12 * var(--footer-u));
    height: calc(24 * var(--footer-u));
    min-width: calc(145 * var(--footer-u));
    padding: 0 calc(10 * var(--footer-u));
    font-size: calc(12 * var(--footer-u));
    letter-spacing: 0;
    box-shadow: none;
  }
  .footer .footer_cta_mail {
    order: 1;
  }
  .footer .footer_cta_mail::after {
    content: "フォームで簡単入力";
  }
  .footer .footer_cta_line {
    order: 2;
  }
  .footer .footer_cta_line::after {
    content: "LINEでかんたん相談";
  }
  body .footer .footer_cta_tel,
  body .footer .footer_cta_arrow,
  .footer .footer_cta_note {
    display: none;
  }
  .site_footer {
    margin-bottom: clamp(82px, 8.6vw, 104px);
    padding-bottom: 3.3rem;
  }
}

/* 02. 固定フッターのレスポンシブ表示 */

@media (width <= 780px) {
  body[data-cta-count="3"] :is(.footer.footer, .ref_footer.ref_footer) {
    --footer-u: min(0.15625vw, 1.21875px);
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw;
    margin: 0 auto;
    padding: calc(39 * var(--footer-u)) calc(6 * var(--footer-u))
      max(calc(14 * var(--footer-u)), env(safe-area-inset-bottom, 0px));
    background-color: #fff6bd;
    border-top: 0;
    box-shadow: 0 calc(-4 * var(--footer-u)) calc(12 * var(--footer-u))
      rgba(31, 114, 45, 0.14);
    letter-spacing: normal;
  }
  body[data-cta-count="3"] :is(.footer, .ref_footer)
    :is(.footer_pc_logo, .footer_pc_tel, .ref_footer_pc_logo, .ref_footer_pc_tel) {
    display: none;
  }
  body[data-cta-count="3"] :is(.footer_cta, .ref_footer_cta) {
    display: grid;
    grid-template-columns: repeat(var(--footer-cta-columns, 3), minmax(0, 1fr));
    gap: calc(6 * var(--footer-u));
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  body[data-cta-count="3"] :is(.footer_cta_btn, .ref_footer_cta_btn) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: calc(4 * var(--footer-u));
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: calc(132 * var(--footer-u));
    padding: calc(20 * var(--footer-u)) calc(3 * var(--footer-u)) calc(10 * var(--footer-u));
    border: calc(3 * var(--footer-u)) solid rgba(255, 255, 255, 0.86);
    border-radius: calc(14 * var(--footer-u));
    box-shadow: inset 0 calc(-3 * var(--footer-u)) 0 rgba(0, 0, 0, 0.12),
      0 calc(5 * var(--footer-u)) calc(12 * var(--footer-u)) rgba(30, 80, 162, 0.2);
    font-size: calc(24 * var(--footer-u));
    font-weight: 500;
    line-height: 1.2;
  }
  body[data-cta-count="3"] :is(.footer_cta_btn, .ref_footer_cta_btn)::before {
    display: none;
  }
  body[data-cta-count="3"] .footer_cta_btn::after {
    left: calc(3 * var(--footer-u));
    right: calc(3 * var(--footer-u));
    top: calc(-26 * var(--footer-u));
    width: auto;
    max-width: none;
    min-width: 0;
    height: calc(42 * var(--footer-u));
    padding: 0 calc(4 * var(--footer-u));
    box-shadow: 0 calc(2 * var(--footer-u)) calc(4 * var(--footer-u)) rgba(0, 0, 0, 0.18);
    font-size: calc(17 * var(--footer-u));
    font-weight: 700;
    letter-spacing: calc(1 * var(--footer-u));
    transform: none;
  }
  body[data-cta-count="3"] :is(.footer_cta_btn, .ref_footer_cta_btn) > img {
    width: calc(39 * var(--footer-u));
    height: calc(34 * var(--footer-u));
    margin: 0;
  }
  body[data-cta-count="3"] :is(.footer_cta_line, .ref_footer_cta_line) > img {
    width: calc(52 * var(--footer-u));
    height: calc(46 * var(--footer-u));
  }
  body[data-cta-count="3"] :is(.footer_cta_btn, .ref_footer_cta_btn)
    > span:not(.ref_footer_cta_ribbon) {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: calc(2 * var(--footer-u));
    min-width: 0;
    line-height: 1.05;
    white-space: normal;
  }
  body[data-cta-count="3"] :is(.footer_cta_btn, .ref_footer_cta_btn) span b {
    display: block;
    font-size: calc(19 * var(--footer-u));
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.05;
  }
  body[data-cta-count="3"] :is(.footer_cta_btn, .ref_footer_cta_btn) span em {
    display: block;
    border-top: calc(2 * var(--footer-u)) dotted rgba(255, 255, 255, 0.82);
    margin-top: calc(4 * var(--footer-u));
    padding-top: calc(5 * var(--footer-u));
    font-size: calc(21 * var(--footer-u));
    font-weight: 600;
    line-height: 1.08;
    white-space: nowrap;
  }
  body[data-cta-count="3"] :is(.footer_cta_line, .ref_footer_cta_line) {
    order: 1;
  }
  body[data-cta-count="3"] :is(.footer_cta_tel, .ref_footer_cta_tel) {
    order: 2;
  }
  body[data-cta-count="3"] :is(.footer_cta_mail, .ref_footer_cta_mail) {
    order: 3;
  }
  body[data-cta-count="3"] :is(.footer, .ref_footer) :is(.footer_cta_line, .ref_footer_cta_line) {
    background: linear-gradient(135deg, #05a94f 0%, #06c755 58%, #39d879 100%);
  }
  body[data-cta-count="3"] :is(.footer, .ref_footer) :is(.footer_cta_tel, .ref_footer_cta_tel) {
    background: linear-gradient(135deg, #ed642c 0%, #f26522 58%, #ff9a5d 100%);
  }
  body[data-cta-count="3"] :is(.footer, .ref_footer) :is(.footer_cta_mail, .ref_footer_cta_mail) {
    background: linear-gradient(135deg, #2f79bd 0%, #2f79bd 58%, #178bd8 100%);
  }
  body[data-cta-count="3"] :is(.footer_cta_note, .ref_footer_cta_note) {
    display: block;
    font-size: calc(22 * var(--footer-u));
    font-weight: 500;
    line-height: 1.35;
    margin: calc(12 * var(--footer-u)) auto 0;
    padding: calc(8 * var(--footer-u)) calc(10 * var(--footer-u));
  }
}

/* 03. サブページの固定フッター */

@media (min-width: 781px) {
  body:is(.privacy_page, .thanks_page) .footer {
    --footer-u: clamp(0.56px, 0.074vw, 1px);
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    padding: calc(18 * var(--footer-u)) calc(24 * var(--footer-u))
      calc(9 * var(--footer-u));
    border-top: calc(3 * var(--footer-u)) solid #006fae;
    box-shadow: 0 calc(-3 * var(--footer-u)) calc(16 * var(--footer-u))
      rgba(0, 39, 82, 0.12);
    font-family: "Noto Sans JP", sans-serif;
    letter-spacing: normal;
  }
  body:is(.privacy_page, .thanks_page) .footer .footer_pc_bar {
    position: relative;
    gap: calc(16 * var(--footer-u));
    max-width: calc(1320 * var(--footer-u));
    min-height: calc(70 * var(--footer-u));
    padding-right: calc(130 * var(--footer-u));
  }
  body:is(.privacy_page, .thanks_page) .footer .footer_pc_bar::after {
    bottom: calc(-9 * var(--footer-u));
    width: calc(115 * var(--footer-u));
    height: calc(150 * var(--footer-u));
  }
  body:is(.privacy_page, .thanks_page) .footer .footer_pc_logo {
    flex: 0 1 calc(240 * var(--footer-u));
    min-width: 0;
    justify-content: center;
  }
  body:is(.privacy_page, .thanks_page) .footer .footer_pc_logo img {
    width: calc(252 * var(--footer-u));
    max-width: 100%;
    max-height: calc(54 * var(--footer-u));
  }
  body:is(.privacy_page, .thanks_page) .footer .footer_pc_tel {
    flex: 0 0 calc(250 * var(--footer-u));
  }
  body:is(.privacy_page, .thanks_page) .footer .footer_pc_tel > a {
    font-family: "Oswald", "Noto Sans JP", sans-serif;
    font-size: calc(33 * var(--footer-u));
    font-weight: 700;
    letter-spacing: 0;
  }
  body:is(.privacy_page, .thanks_page) .footer .footer_pc_tel > a span {
    font-size: calc(24 * var(--footer-u));
  }
  body:is(.privacy_page, .thanks_page) .footer .footer_pc_tel ul {
    align-items: center;
  }
  body:is(.privacy_page, .thanks_page) .footer .footer_pc_tel li {
    padding: calc(6 * var(--footer-u)) calc(10 * var(--footer-u));
    font-size: calc(13 * var(--footer-u));
  }
  body:is(.privacy_page, .thanks_page) .footer .footer_cta {
    flex: 0 0 calc(620 * var(--footer-u));
    min-width: 0;
    gap: calc(14 * var(--footer-u));
  }
  body:is(.privacy_page, .thanks_page) .footer .footer_cta_btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: calc(58 * var(--footer-u));
    padding: calc(10 * var(--footer-u)) calc(20 * var(--footer-u));
    gap: calc(10 * var(--footer-u));
    border-radius: calc(999 * var(--footer-u));
    box-shadow: 0 calc(5 * var(--footer-u)) calc(12 * var(--footer-u))
      rgba(0, 55, 100, 0.12);
  }
  body:is(.privacy_page, .thanks_page) .footer .footer_cta_btn > img {
    width: calc(31 * var(--footer-u));
    height: calc(25 * var(--footer-u));
    flex: 0 0 auto;
  }
  body:is(.privacy_page, .thanks_page) .footer .footer_cta_btn > span {
    flex: 0 0 auto;
    gap: calc(4 * var(--footer-u));
    line-height: 1.05;
  }
  body:is(.privacy_page, .thanks_page) .footer .footer_cta_btn span b,
  body:is(.privacy_page, .thanks_page) .footer .footer_cta_btn span em {
    font-size: calc(20 * var(--footer-u));
    font-weight: 600;
    font-style: normal;
    line-height: 1.05;
  }
  body:is(.privacy_page, .thanks_page) .footer .footer_cta_btn::after {
    left: 50%;
    right: auto;
    top: calc(-12 * var(--footer-u));
    height: calc(24 * var(--footer-u));
    min-width: calc(145 * var(--footer-u));
    font-size: calc(12 * var(--footer-u));
    transform: translateX(-50%);
  }
}

/* 04. 返金請求の費用・注意書き */

body.privacy_page #fees .privacy_refund_fee_description {
  margin: 14px 0 0;
  padding: 0;
  color: #2f3540;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.8;
  text-align: left;
}

body.privacy_page #fees .privacy_refund_fee_description > strong {
  color: #f26522;
}

body.privacy_page #fees .privacy_fee_card_refund .privacy_fee_table_wrap {
  padding: 0 0 2.4rem;
}

body.privacy_page #fees .privacy_fee_card_refund .privacy_refund_fee_description {
  margin-inline: 2.4rem;
}

body.privacy_page #fees .privacy_fee_card_refund .privacy_fee_table tr > :first-child {
  border-left: 0;
}

body.privacy_page #fees .privacy_fee_card_refund .privacy_fee_table tr > :last-child {
  border-right: 0;
}

body.privacy_page #fees .privacy_fee_card_refund .privacy_fee_table tr:first-child > * {
  border-top: 0;
}

@media (width <= 780px) {
  body.privacy_page #fees .privacy_fee_card_refund .privacy_fee_table_wrap {
    padding-bottom: 3vw;
  }
  body.privacy_page #fees .privacy_fee_card_refund .privacy_refund_fee_description {
    margin-inline: 3vw;
    font-size: 3.2vw;
  }
}

body.privacy_page #fees .privacy_fee_card_niniseiri {
  border: 0.1rem solid #d8e5f3;
}

body.privacy_page #fees .privacy_fee_simple_price {
  margin: 0;
  padding: 18px 12px;
  color: #f26522;
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

body.privacy_page #fees .privacy_fee_legal_list > div {
  flex-direction: row;
  align-items: baseline;
  gap: 0.8rem;
  min-height: 0;
  white-space: nowrap;
}

body.privacy_page #fees .privacy_fee_legal_list dd {
  margin: 0;
}

@media (width <= 780px) {
  body.privacy_page #fees .privacy_fee_legal_list {
    grid-template-columns: 1fr;
  }
  body.privacy_page #fees .privacy_fee_legal_list > div + div {
    border-left: 0;
    border-top: 0.1rem solid #d8e5f3;
  }
}

/* 05. プライバシーページの本文幅 */

body.privacy_page > header,
body.privacy_page > .privacy_page_hero,
body.privacy_page > .privacy_page_main,
body.privacy_page > .site_footer {
  width: min(100%, 640px);
}

/* 06. サブページの共通レイアウト */

body:is(.privacy_page, .thanks_page) {
  margin: 0;
  min-height: 100vh;
  background: #eef2f5;
}

body:is(.privacy_page, .thanks_page) > :is(header, main, .privacy_page_hero, .site_footer) {
  width: min(100%, 640px);
  margin-left: auto;
  margin-right: auto;
}

body:is(.privacy_page, .thanks_page) > :is(header, main) {
  background: #fff;
}

body.privacy_page > main,
body.thanks_page > main {
  box-shadow: 0 0 48px #003f8818 !important;
}

body:is(.privacy_page, .thanks_page) > .site_footer {
  flex: 0 0 auto;
  margin-bottom: 0;
  padding: 25px 20px
    calc(25px + var(--fixed-footer-height, 104px) + env(safe-area-inset-bottom, 0px));
  background: #123b68;
  text-align: center;
}

body:is(.privacy_page, .thanks_page) .site_footer_inner {
  max-width: 542px;
}

body:is(.privacy_page, .thanks_page) .site_footer_nav {
  gap: 15px;
}

body:is(.privacy_page, .thanks_page) .site_footer_nav a {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

body:is(.privacy_page, .thanks_page) .site_footer_nav a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  padding-left: 15px;
}

body:is(.privacy_page, .thanks_page) .site_footer_copy {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 18px;
}

@media (width >= 781px) {
  body:is(.privacy_page, .thanks_page) .site_footer_nav a {
    font-size: 21px;
    line-height: 1.6;
  }
  body:is(.privacy_page, .thanks_page) .site_footer_copy {
    font-size: 16px;
  }
}

@media (width <= 780px) {
  body:is(.privacy_page, .thanks_page) {
    --fixed-footer-height: calc(280 * min(0.15625vw, 1.21875px));
  }
}

/* 07. プライバシーページの文字サイズ */

@media (width >= 781px) {
  html:has(> body.privacy_page) {
    font-size: 8.205128px;
  }
  body.privacy_page {
    font-size: inherit;
  }
  body.privacy_page #fees .privacy_fee_legal_list > div {
    padding-inline: 12px;
  }
}
