@charset "UTF-8";

/* =========================================================
   MIKAGE / A2 STUDIO COMMON FOOTER
   File: 09-footer.css
   Design: A2
   Scope:
   - .iby-studio-footer が設置されたページだけに作用
   - Lightning Footer Widget 1対応
========================================================= */

/* =========================================================
   0. A2 color variables
========================================================= */

.iby-studio-footer.is-a2,
.iby-studio-footer.is-b2.is-mikage {
  --iby-footer-bg: var(--ilchi-a2-footer-bg, #5B3424);
  --iby-footer-text: var(--ilchi-a2-footer-text, rgba(255, 255, 255, 0.95));
  --iby-footer-subtext: var(--ilchi-a2-footer-subtext, rgba(255, 255, 255, 0.78));
  --iby-footer-link: var(--ilchi-a2-footer-link, rgba(255, 255, 255, 0.95));
  --iby-footer-accent: var(--ilchi-a2-footer-accent, #F4B36A);
  --iby-footer-border: var(--ilchi-a2-footer-border, rgba(255, 255, 255, 0.18));
  --iby-footer-chip-bg: var(--ilchi-a2-footer-chip-bg, rgba(255, 255, 255, 0.07));
  --iby-footer-chip-border: var(--ilchi-a2-footer-chip-border, rgba(255, 255, 255, 0.24));
  --iby-footer-cta-bg: var(--ilchi-a2-footer-cta-bg, #ffffff);
  --iby-footer-cta-text: var(--ilchi-a2-footer-cta-text, #5B3424);
}

/* =========================================================
   1. Lightning footer wrapper reset
   新フッターが存在するページだけ旧フッター部品を整理
========================================================= */

body:has(.iby-studio-footer) .siteFooter,
body:has(.iby-studio-footer) footer.siteFooter,
body:has(.iby-studio-footer) .siteFooter .container,
body:has(.iby-studio-footer) .siteFooter .container-fluid,
body:has(.iby-studio-footer) .siteFooter .site-footer-content,
body:has(.iby-studio-footer) .siteFooter .site-footer-content .container,
body:has(.iby-studio-footer) .siteFooter .row,
body:has(.iby-studio-footer) .siteFooter .widget,
body:has(.iby-studio-footer) .siteFooter .widget_custom_html,
body:has(.iby-studio-footer) .siteFooter .textwidget {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body:has(.iby-studio-footer) .siteFooter {
  border: 0 !important;
  background: transparent !important;
}

/* Footer Widgetのカラム幅を解除 */
body:has(.iby-studio-footer) .siteFooter [class*="col-"] {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 新フッター以外の旧フッターウィジェットを非表示 */
body:has(.iby-studio-footer) .siteFooter .widget:not(:has(.iby-studio-footer)) {
  display: none !important;
}

/* Lightning標準コピーライトを非表示 */
body:has(.iby-studio-footer) .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 {
  display: none !important;
}

/* =========================================================
   2. Footer body
========================================================= */

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

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

.iby-footer-inner {
  display: grid !important;
  grid-template-columns:
    minmax(300px, 1.15fr)
    minmax(190px, 0.65fr)
    minmax(270px, 0.9fr) !important;
  gap: 42px !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
}

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

/* =========================================================
   3. Brand / SNS
========================================================= */

.iby-footer-name {
  margin: 0 0 18px !important;
  padding: 0 !important;
  color: var(--iby-footer-text) !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !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.03em !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.94rem !important;
  line-height: 1.95 !important;
}

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

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

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

/* =========================================================
   4. Navigation
========================================================= */

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

.iby-footer-nav a,
.iby-footer-nav a:visited {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--iby-footer-link) !important;
  background: none !important;
  border: 0 !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  line-height: 1.6 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

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

/* =========================================================
   5. Information / CTA
========================================================= */

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

.iby-footer-address {
  margin: 0 0 18px !important;
  color: var(--iby-footer-subtext) !important;
  font-style: normal !important;
}

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

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

.iby-footer-tel > span {
  display: block !important;
  margin: 0 0 5px !important;
  color: var(--iby-footer-subtext) !important;
  font-size: 0.83rem !important;
  line-height: 1.7 !important;
}

.iby-footer-tel a,
.iby-footer-tel a:visited {
  display: inline-block !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: var(--iby-footer-link) !important;
  background: none !important;
  border: 0 !important;
  font-size: 1.08rem !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
}

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

.iby-footer-btn,
.iby-footer-btn:visited {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  background: var(--iby-footer-cta-bg) !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  color: var(--iby-footer-cta-text) !important;
  font-size: 0.9rem !important;
  font-weight: 900 !important;
  line-height: 1 !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.9 !important;
}

.iby-footer-contact,
.iby-footer-contact:visited {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--iby-footer-link) !important;
  background: none !important;
  border: 0 !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  line-height: 1.6 !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
  box-shadow: none !important;
}

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

/* =========================================================
   6. Copyright
========================================================= */

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

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

/* =========================================================
   7. Tablet
========================================================= */

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

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

  .iby-footer-actions {
    max-width: 360px !important;
  }
}

/* =========================================================
   8. Smartphone
========================================================= */

@media screen and (max-width: 767px) {
  .iby-studio-footer {
    padding: 44px 24px 50px !important;
  }

  .iby-footer-inner {
    grid-template-columns: 1fr !important;
    gap: 34px !important;
    max-width: 100% !important;
    text-align: center !important;
  }

  .iby-footer-name {
    margin-bottom: 18px !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    text-align: center !important;
  }

  .iby-footer-lead {
    max-width: 100% !important;
    font-size: 0.88rem !important;
    line-height: 1.9 !important;
    text-align: center !important;
  }

  .iby-footer-sns {
    justify-content: center !important;
    margin-top: 24px !important;
  }

  .iby-footer-sns a {
    min-width: 84px !important;
    padding: 0 11px !important;
    font-size: 0.76rem !important;
  }

  .iby-footer-nav {
    grid-template-columns: 1fr 1fr !important;
    gap: 13px 16px !important;
    justify-items: center !important;
  }

  .iby-footer-nav a {
    font-size: 0.86rem !important;
    line-height: 1.5 !important;
  }

  .iby-footer-info {
    grid-column: auto !important;
    font-size: 0.88rem !important;
    text-align: center !important;
  }

  .iby-footer-actions {
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  .iby-footer-btn {
    width: 100% !important;
    min-height: 48px !important;
    padding: 0 18px !important;
    white-space: normal !important;
  }

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

  .iby-footer-bottom {
    margin-top: 40px !important;
    padding-top: 24px !important;
  }

  .iby-footer-copy {
    max-width: 280px !important;
    margin: 0 auto !important;
    font-size: 0.7rem !important;
    line-height: 1.9 !important;
  }
}
/* =========================================================
   MIKAGE A2 / OLD FOOTER PARTS REMOVE
   新フッター設置時だけLightning旧フッター部品を非表示
========================================================= */

body:has(.iby-studio-footer) .footerMenu,
body:has(.iby-studio-footer) .footer-menu,
body:has(.iby-studio-footer) .siteFooter_nav,
body:has(.iby-studio-footer) .site-footer-nav,
body:has(.iby-studio-footer) .menu-footer-container,
body:has(.iby-studio-footer) .siteFooter-copyright,
body:has(.iby-studio-footer) .site-footer-copyright,
body:has(.iby-studio-footer) .footer-copyright,
body:has(.iby-studio-footer) .copySection {
  display: none !important;
}

/* 旧フッター由来の境界線・余白を解除 */
body:has(.iby-studio-footer) .siteFooter,
body:has(.iby-studio-footer) footer.siteFooter {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* 新フッター直前の不要なウィジェット余白を解除 */
body:has(.iby-studio-footer) .siteFooter .widget:has(.iby-studio-footer),
body:has(.iby-studio-footer) .siteFooter .widget_custom_html:has(.iby-studio-footer),
body:has(.iby-studio-footer) .siteFooter .textwidget:has(.iby-studio-footer) {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
/* =========================================================
   MIKAGE / FOOTER FULL WIDTH FINAL
   Lightningのフッターカラム幅を解除
========================================================= */

/* フッター外枠 */
body:has(.iby-studio-footer) .siteFooter,
body:has(.iby-studio-footer) footer.siteFooter,
body:has(.iby-studio-footer) .site-footer,
body:has(.iby-studio-footer) footer.site-footer,
body:has(.iby-studio-footer) .site-footer-content {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

/* Lightningのcontainer制限を解除 */
body:has(.iby-studio-footer) .siteFooter > .container,
body:has(.iby-studio-footer) .siteFooter .container,
body:has(.iby-studio-footer) .siteFooter .container-fluid,
body:has(.iby-studio-footer) .site-footer > .container,
body:has(.iby-studio-footer) .site-footer .container,
body:has(.iby-studio-footer) .site-footer-content > .container,
body:has(.iby-studio-footer) .site-footer-content .container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* rowを1列へ戻す */
body:has(.iby-studio-footer) .siteFooter .row,
body:has(.iby-studio-footer) .site-footer .row,
body:has(.iby-studio-footer) .site-footer-content .row {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* フッターのBootstrapカラム幅を解除 */
body:has(.iby-studio-footer) .siteFooter [class*="col-"],
body:has(.iby-studio-footer) .site-footer [class*="col-"],
body:has(.iby-studio-footer) .site-footer-content [class*="col-"],
body:has(.iby-studio-footer) .footerWidget,
body:has(.iby-studio-footer) .footer-widget,
body:has(.iby-studio-footer) .widget-area {
  display: block !important;
  float: none !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* カスタムHTML周辺の余白を解除 */
body:has(.iby-studio-footer) .widget:has(.iby-studio-footer),
body:has(.iby-studio-footer) .widget_custom_html:has(.iby-studio-footer),
body:has(.iby-studio-footer) .textwidget:has(.iby-studio-footer),
body:has(.iby-studio-footer) .custom-html-widget:has(.iby-studio-footer) {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/*
 * これまでの100vw＋負のmarginを解除。
 * 親要素を全幅化したため、フッター本体は100%でよい。
 */
body:has(.iby-studio-footer) .iby-studio-footer {
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}