@charset "UTF-8";
/* =========================================================
   Studio Common Footer
   File: 09-footer.css
   Purpose:
   - Common footer for studio renewal LPs
   - Supports .iby-studio-footer and legacy .iby-shared-lp-footer
   - Color is controlled by design class / is-* class variables
   ========================================================= */

/* =========================================================
   0. Design color variables
   ========================================================= */

/* Default / A1 */
.iby-studio-footer,
.iby-shared-lp-footer {
  --iby-footer-bg: #5A3F43;
  --iby-footer-text: rgba(255, 255, 255, 0.94);
  --iby-footer-subtext: rgba(255, 255, 255, 0.78);
  --iby-footer-link: rgba(255, 255, 255, 0.94);
  --iby-footer-accent: #F3B3C7;
  --iby-footer-border: rgba(255, 255, 255, 0.17);
  --iby-footer-chip-bg: rgba(255, 255, 255, 0.07);
  --iby-footer-chip-border: rgba(255, 255, 255, 0.22);
  --iby-footer-cta-bg: #ffffff;
  --iby-footer-cta-text: #5A3F43;
}

/* A1：初心者・安心感タイプ */
.iby-studio-footer.is-a1,
.iby-page.iby-design-a1 .iby-studio-footer,
.iby-page.iby-design-a1 .iby-shared-lp-footer {
  --iby-footer-bg: #5A3F43;
  --iby-footer-accent: #F3B3C7;
  --iby-footer-cta-text: #5A3F43;
}

/* A2：インストラクター・地域密着タイプ */
.iby-studio-footer.is-a2,
.iby-page.iby-design-a2 .iby-studio-footer,
.iby-page.iby-design-a2 .iby-shared-lp-footer {
  --iby-footer-bg: #2E3A46;
  --iby-footer-accent: #E8C98C;
  --iby-footer-cta-text: #2E3A46;
}

/* B1：はじめて体験・安心導線タイプ */
.iby-studio-footer.is-b1,
.iby-page.iby-design-b1 .iby-studio-footer,
.iby-page.iby-design-b1 .iby-shared-lp-footer {
  --iby-footer-bg: #51423D;
  --iby-footer-accent: #F2B6A0;
  --iby-footer-cta-text: #51423D;
}

/* B2：健康改善・アクティブタイプ */
.iby-studio-footer.is-b2,
.iby-page.iby-design-b2 .iby-studio-footer,
.iby-page.iby-design-b2 .iby-shared-lp-footer {
  --iby-footer-bg: #5B3424;
  --iby-footer-accent: #F4B36A;
  --iby-footer-cta-text: #5B3424;
}

/* C1：呼吸・瞑想・内面ケアタイプ */
.iby-studio-footer.is-c1,
.iby-page.iby-design-c1 .iby-studio-footer,
.iby-page.iby-design-c1 .iby-shared-lp-footer {
  --iby-footer-bg: #2F4635;
  --iby-footer-accent: #C8D6AA;
  --iby-footer-cta-text: #2F4635;
}

/* C2：お客様の声・変化実感タイプ */
.iby-studio-footer.is-c2,
.iby-page.iby-design-c2 .iby-studio-footer,
.iby-page.iby-design-c2 .iby-shared-lp-footer {
  --iby-footer-bg: #3F4B38;
  --iby-footer-accent: #D8C88B;
  --iby-footer-cta-text: #3F4B38;
}

/* Optional: use only when a light footer is intentionally needed */
.iby-studio-footer.is-light,
.iby-shared-lp-footer.is-light {
  --iby-footer-bg: #fff7f4;
  --iby-footer-text: #4a363a;
  --iby-footer-subtext: #5f4a4e;
  --iby-footer-link: #4a363a;
  --iby-footer-accent: #f2557f;
  --iby-footer-border: rgba(242, 85, 127, 0.22);
  --iby-footer-chip-bg: #ffffff;
  --iby-footer-chip-border: rgba(242, 85, 127, 0.28);
  --iby-footer-cta-bg: #f2557f;
  --iby-footer-cta-text: #ffffff;
}

/* =========================================================
   1. New footer: .iby-studio-footer
   ========================================================= */

.iby-studio-footer {
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 64px calc(50% - 50vw) 0 !important;
  padding: 64px 32px 32px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background: var(--iby-footer-bg) !important;
  color: var(--iby-footer-text) !important;
}

.iby-studio-footer,
.iby-studio-footer * {
  box-sizing: border-box !important;
}

.iby-footer-inner {
  display: grid !important;
  grid-template-columns: minmax(320px, 1.2fr) minmax(180px, 0.6fr) minmax(260px, 0.9fr) !important;
  gap: 42px !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
  align-items: start !important;
}

.iby-footer-brand,
.iby-footer-info,
.iby-footer-nav {
  min-width: 0 !important;
}

.iby-footer-name {
  margin: 0 0 18px !important;
  color: var(--iby-footer-text) !important;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", sans-serif !important;
  font-size: 1.28rem !important;
  font-weight: 800 !important;
  line-height: 1.55 !important;
  letter-spacing: 0.04em !important;
  word-break: keep-all !important;
  overflow-wrap: anywhere !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}

.iby-footer-name::before,
.iby-footer-name::after {
  content: none !important;
  display: none !important;
}

.iby-footer-lead {
  max-width: 460px !important;
  margin: 0 !important;
  color: var(--iby-footer-subtext) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  line-height: 2 !important;
  letter-spacing: 0.02em !important;
}

.iby-footer-sns {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 28px !important;
}

.iby-footer-sns a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  padding: 0 16px !important;
  border: 1px solid var(--iby-footer-chip-border) !important;
  border-radius: 999px !important;
  background: var(--iby-footer-chip-bg) !important;
  color: var(--iby-footer-link) !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.iby-footer-sns a:hover {
  border-color: var(--iby-footer-accent) !important;
  background: rgba(255, 255, 255, 0.11) !important;
  color: var(--iby-footer-accent) !important;
}

.iby-footer-nav {
  display: grid !important;
  gap: 14px !important;
}

.iby-footer-nav a,
.iby-studio-footer a {
  color: var(--iby-footer-link) !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  line-height: 1.6 !important;
  text-decoration: none !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}

.iby-footer-nav a:hover,
.iby-studio-footer a:hover {
  color: var(--iby-footer-accent) !important;
}

.iby-footer-info {
  color: var(--iby-footer-subtext) !important;
  font-size: 0.95rem !important;
  line-height: 1.9 !important;
}

.iby-footer-address,
.iby-footer-address span,
.iby-studio-footer address,
.iby-studio-footer address span,
.iby-footer-address-readable,
.iby-footer-address-readable span {
  color: var(--iby-footer-subtext) !important;
  opacity: 1 !important;
  filter: none !important;
}

.iby-footer-address {
  margin: 0 0 18px !important;
  font-style: normal !important;
}

.iby-footer-address span {
  display: block !important;
}

.iby-footer-tel {
  margin: 20px 0 24px !important;
}

.iby-footer-tel span {
  display: block !important;
  margin-bottom: 4px !important;
  color: var(--iby-footer-subtext) !important;
  font-size: 0.85rem !important;
}

.iby-footer-tel a {
  color: var(--iby-footer-link) !important;
  font-size: 1.08rem !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.iby-footer-actions {
  display: grid !important;
  gap: 12px !important;
  max-width: 280px !important;
}

.iby-footer-btn,
.iby-footer-btn:visited {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  padding: 0 20px !important;
  border-radius: 999px !important;
  background: var(--iby-footer-cta-bg) !important;
  color: var(--iby-footer-cta-text) !important;
  font-size: 0.92rem !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.iby-footer-btn:hover {
  color: var(--iby-footer-cta-text) !important;
  opacity: 0.88 !important;
}

.iby-footer-contact,
.iby-footer-contact:visited {
  display: inline-block !important;
  margin-top: 2px !important;
  color: var(--iby-footer-link) !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  line-height: 1.6 !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
}

.iby-footer-contact:hover {
  color: var(--iby-footer-accent) !important;
}

.iby-footer-bottom {
  max-width: 1120px !important;
  margin: 42px auto 0 !important;
  padding-top: 22px !important;
  border-top: 1px solid var(--iby-footer-border) !important;
}

.iby-footer-copy {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 0.78rem !important;
  line-height: 1.7 !important;
  text-align: center !important;
}

/* Light footer copy color */
.iby-studio-footer.is-light .iby-footer-copy,
.iby-shared-lp-footer.is-light .iby-shared-lp-footer__copy {
  color: rgba(74, 54, 58, 0.62) !important;
}

/* =========================================================
   2. Legacy footer compatibility: .iby-shared-lp-footer
   ========================================================= */

.iby-shared-lp-footer {
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0px calc(50% - 50vw) 0 !important;
  padding: 64px 32px 32px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background: var(--iby-footer-bg) !important;
  color: var(--iby-footer-text) !important;
}

.iby-shared-lp-footer,
.iby-shared-lp-footer * {
  box-sizing: border-box !important;
}

.iby-shared-lp-footer__inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.55fr) minmax(240px, 0.75fr) !important;
  gap: 48px !important;
  max-width: 1040px !important;
  margin: 0 auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.iby-shared-lp-footer__name {
  margin: 0 !important;
  color: var(--iby-footer-text) !important;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", sans-serif !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1.55 !important;
  letter-spacing: 0.04em !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}

.iby-shared-lp-footer__name::before,
.iby-shared-lp-footer__name::after {
  content: none !important;
  display: none !important;
}

.iby-shared-lp-footer__text,
.iby-shared-lp-footer__contact p {
  margin: 12px 0 0 !important;
  color: var(--iby-footer-subtext) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.9 !important;
  letter-spacing: 0.02em !important;
}

.iby-shared-lp-footer__links {
  display: grid !important;
  gap: 10px !important;
}

.iby-shared-lp-footer a {
  color: var(--iby-footer-link) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.6 !important;
  text-decoration: none !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}

.iby-shared-lp-footer a:hover {
  color: var(--iby-footer-accent) !important;
}

.iby-shared-lp-footer__sns {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 22px !important;
}

.iby-shared-lp-footer__sns a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  padding: 8px 15px !important;
  border: 1px solid var(--iby-footer-chip-border) !important;
  border-radius: 999px !important;
  background: var(--iby-footer-chip-bg) !important;
  color: var(--iby-footer-link) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
}

.iby-shared-lp-footer__sns a:hover {
  border-color: var(--iby-footer-accent) !important;
  background: rgba(255, 255, 255, 0.11) !important;
  color: var(--iby-footer-accent) !important;
}

.iby-shared-lp-footer__contact .wp-block-button__link,
.iby-shared-lp-footer__contact .iby-footer-btn,
.iby-shared-lp-footer__contact .iby-shared-lp-footer__btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  min-width: 220px !important;
  padding: 0 22px !important;
  border-radius: 999px !important;
  background: var(--iby-footer-cta-bg) !important;
  color: var(--iby-footer-cta-text) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.iby-shared-lp-footer__copy {
  max-width: 1040px !important;
  margin: 42px auto 0 !important;
  padding: 20px 24px 0 !important;
  border-top: 1px solid var(--iby-footer-border) !important;
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.7 !important;
  text-align: center !important;
}

/* =========================================================
   3. Tablet
   ========================================================= */

@media screen and (max-width: 991px) {
  .iby-footer-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
  }

  .iby-footer-info {
    grid-column: 1 / -1 !important;
  }

  .iby-shared-lp-footer__inner {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
    text-align: center !important;
  }

  .iby-shared-lp-footer__links {
    justify-items: center !important;
  }

  .iby-shared-lp-footer__sns {
    justify-content: center !important;
  }
}

/* =========================================================
   4. Smartphone
   ========================================================= */

@media screen and (max-width: 767px) {
  .iby-studio-footer,
  .iby-shared-lp-footer {
    margin-top: 0px !important;
    padding: 44px 24px 54px !important;
  }

  .iby-footer-inner,
  .iby-shared-lp-footer__inner {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
  }

  .iby-footer-brand,
  .iby-footer-info,
  .iby-footer-nav {
    width: 100% !important;
    max-width: 100% !important;
  }

  .iby-footer-name,
  .iby-shared-lp-footer__name {
    font-size: 1.12rem !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
  }

  .iby-footer-lead,
  .iby-shared-lp-footer__text,
  .iby-shared-lp-footer__contact p {
    max-width: 100% !important;
    font-size: 0.9rem !important;
    line-height: 1.9 !important;
    text-align: center !important;
  }

  .iby-footer-sns,
  .iby-shared-lp-footer__sns {
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 26px !important;
    margin-bottom: 4px !important;
  }

  .iby-footer-sns a,
  .iby-shared-lp-footer__sns a {
    min-width: 92px !important;
    min-height: 36px !important;
    padding: 0 12px !important;
    font-size: 0.78rem !important;
  }

  .iby-footer-nav,
  .iby-shared-lp-footer__links {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px 18px !important;
    justify-items: center !important;
  }

  .iby-footer-nav a,
  .iby-shared-lp-footer__links a {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }

  .iby-footer-info {
    font-size: 0.9rem !important;
    line-height: 1.9 !important;
    margin-top: 2px !important;
    text-align: center !important;
  }

  .iby-footer-tel {
    margin-top: 24px !important;
    margin-bottom: 20px !important;
  }

  .iby-footer-actions {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
  }

  .iby-footer-btn,
  .iby-shared-lp-footer__contact .wp-block-button__link,
  .iby-shared-lp-footer__contact .iby-footer-btn,
  .iby-shared-lp-footer__contact .iby-shared-lp-footer__btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 46px !important;
    padding: 0 18px !important;
    white-space: normal !important;
  }

  .iby-footer-contact {
    display: block !important;
    margin-top: 12px !important;
    text-align: center !important;
  }

  .iby-footer-bottom,
  .iby-shared-lp-footer__copy {
    margin-top: 44px !important;
    padding-top: 26px !important;
  }

  .iby-footer-copy,
  .iby-shared-lp-footer__copy {
    max-width: 280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: 0.72rem !important;
    line-height: 1.9 !important;
  }
}

/* =========================================================
   5. Hide Lightning default footer parts only on pages
      that actually contain a custom footer
   ========================================================= */

body:has(.iby-studio-footer) .siteFooter,
body:has(.iby-shared-lp-footer) .siteFooter {
  border-top: none !important;
}

body:has(.iby-studio-footer) .siteFooter::before,
body:has(.iby-studio-footer) .siteFooter::after,
body:has(.iby-shared-lp-footer) .siteFooter::before,
body:has(.iby-shared-lp-footer) .siteFooter::after {
  content: none !important;
  display: none !important;
}

body:has(.iby-studio-footer) .siteFooter-copyright,
body:has(.iby-studio-footer) .siteFooter .siteFooter-copyright,
body:has(.iby-studio-footer) .site-footer-copyright,
body:has(.iby-studio-footer) .footer-copyright,
body:has(.iby-studio-footer) .copySection,
body:has(.iby-studio-footer) .siteFooter .copySection,
body:has(.iby-studio-footer) .siteFooter .copySection p,
body:has(.iby-studio-footer) .siteFooter .copySection a,
body:has(.iby-shared-lp-footer) .siteFooter-copyright,
body:has(.iby-shared-lp-footer) .siteFooter .siteFooter-copyright,
body:has(.iby-shared-lp-footer) .site-footer-copyright,
body:has(.iby-shared-lp-footer) .footer-copyright,
body:has(.iby-shared-lp-footer) .copySection,
body:has(.iby-shared-lp-footer) .siteFooter .copySection,
body:has(.iby-shared-lp-footer) .siteFooter .copySection p,
body:has(.iby-shared-lp-footer) .siteFooter .copySection a {
  display: none !important;
}

/* =========================================================
   Footer PC Button Text Visibility Fix
   2026-06-26
   ========================================================= */

/* フッター内のWPボタンは、共通リンク指定より後ろで再上書きする */
.iby-studio-footer .wp-block-button__link,
.iby-studio-footer .wp-block-button__link:visited,
.iby-studio-footer .iby-footer-btn,
.iby-studio-footer .iby-footer-btn:visited,
.iby-shared-lp-footer .wp-block-button__link,
.iby-shared-lp-footer .wp-block-button__link:visited,
.iby-shared-lp-footer .iby-footer-btn,
.iby-shared-lp-footer .iby-footer-btn:visited,
.iby-shared-lp-footer .iby-shared-lp-footer__btn,
.iby-shared-lp-footer .iby-shared-lp-footer__btn:visited {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  min-width: 220px !important;
  padding: 0 22px !important;
  border-radius: 999px !important;
  background: var(--iby-footer-cta-bg) !important;
  color: var(--iby-footer-cta-text) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
  text-align: center !important;
  text-decoration: none !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ボタン内に span / strong が入っていても文字色を維持 */
.iby-studio-footer .wp-block-button__link *,
.iby-studio-footer .iby-footer-btn *,
.iby-shared-lp-footer .wp-block-button__link *,
.iby-shared-lp-footer .iby-footer-btn *,
.iby-shared-lp-footer .iby-shared-lp-footer__btn * {
  color: var(--iby-footer-cta-text) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.iby-studio-footer .wp-block-button__link:hover,
.iby-studio-footer .iby-footer-btn:hover,
.iby-shared-lp-footer .wp-block-button__link:hover,
.iby-shared-lp-footer .iby-footer-btn:hover,
.iby-shared-lp-footer .iby-shared-lp-footer__btn:hover {
  color: var(--iby-footer-cta-text) !important;
  opacity: 0.9 !important;
}

/* PCのみ：右カラムのボタンとテキストリンクの間隔を安定 */
@media (min-width: 768px) {
  .iby-studio-footer .iby-footer-actions,
  .iby-shared-lp-footer .iby-footer-actions,
  .iby-shared-lp-footer__contact {
    display: grid !important;
    gap: 12px !important;
    align-items: start !important;
    justify-items: start !important;
  }
}
