/* ==========================================================
   KISOCARE 10th Anniversary - Footer
   Prefix: m2ft- (全クラス固有、他ページ・要素に影響なし)
   ========================================================== */

/* ベース */
.m2ft {
  background: #111;
  color: #fff;
  padding: 0;
  font-family: 'M PLUS 1', 'Noto Sans JP', sans-serif;
  position: relative;
  overflow: hidden;
}

/* 上段：ロゴ左 + ナビ&SNS右 */
.m2ft-main {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px 48px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
}

/* 左側：ロゴ + メッセージ + 画像 */
.m2ft-left {
  flex: 0 1 420px;
  min-width: 0;
}
.m2ft-left img {
  max-width: 180px;
  height: auto;
  display: block;
  margin-bottom: 20px;
}
.m2ft-left p {
  font-size: 16px;
  line-height: 2;
  color: #fff;
  margin: 0 0 20px;
}
.m2ft-left-img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 5/3;
  object-fit: cover;
  display: block;
  margin-bottom: 0;
}

/* 公式ショップウィジェット（PC） */
.m2ft .footer__widget-4,
.m2ft .footer__widget-4.footer__widget-4 {
  padding: 48px 24px 20px !important;
  margin: -56px -48px 0 0 !important;
  align-self: stretch;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  grid-column: auto !important;
  grid-row: auto !important;
  margin-left: 0 !important;
}
.m2ft .footer__widget-4 .project-title {
  font-size: 24px !important;
  padding-bottom: 12px !important;
  margin: 0 !important;
}
.m2ft .footer__widget-4 .btn_wrapper {
  margin: 0 !important;
  padding: 0 !important;
}
.m2ft .footer__widget-4 a.wc-btn-primary,
.m2ft .footer__widget-4 .wc-btn-primary.btn-hover.btn-item {
  margin: 0 !important;
  padding-bottom: 0 !important;
}
.m2ft .footer__widget-4 .btn_wrapper a {
  margin-bottom: 0 !important;
}

/* 右側：ナビ + SNS */
.m2ft-right {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  gap: 64px;
}

/* ナビグループ */
.m2ft-navgroup {
  min-width: 0;
}
.m2ft-navgroup-title {
  font-family: 'Kanit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #d04d85;
  margin: 0 0 20px;
}
.m2ft-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.m2ft-nav li {
  margin-bottom: 10px;
}
.m2ft-nav li a {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.m2ft-nav li a:hover {
  color: #fff;
}

/* 連絡先 */
.m2ft-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.m2ft-contact li {
  font-size: 15px;
  line-height: 2;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
}
.m2ft-contact li a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.3s;
}
.m2ft-contact li a:hover {
  color: #d04d85;
}

/* SNS */
.m2ft-social {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  gap: 12px;
}
.m2ft-social li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s;
}
.m2ft-social li a:hover {
  background: #d04d85;
  border-color: #d04d85;
  color: #111;
}

/* スマホ・タブレット用ショップリンク（PC非表示） */
.m2ft-sp-shop {
  display: none;
}
.m2ft-sp-shop a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 0;
  background: #d04d85;
  color: #fff;
  font-family: 'Kanit', 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-decoration: none;
  transition: opacity 0.3s;
}
.m2ft-sp-shop a:hover {
  opacity: 0.85;
}
.m2ft-sp-shop a i {
  font-size: 13px;
}

/* 下段バー */
.m2ft-bottom {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 48px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.m2ft-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin: 0;
}
.m2ft-copy a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.3s;
}
.m2ft-copy a:hover {
  color: #d04d85;
}
.m2ft-anniversary {
  font-family: 'Kanit', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}


/* ==========================================================
   タブレット（タッチデバイス1199px以下 + 全デバイス991px以下）
   ========================================================== */
@media only screen and (min-width: 768px) and (max-width: 1199px) and (pointer: coarse), only screen and (min-width: 768px) and (max-width: 1199px) {
  .m2ft-main { padding: 48px 32px 40px; gap: 32px; }
  .m2ft-left { flex: 0 0 auto; min-width: 0; }
  .m2ft-left-img { max-width: 160px !important; }
  .m2ft-right { flex: 1 1 auto; justify-content: flex-end; gap: 40px; }
  .m2ft .footer__widget-4,
  .m2ft .footer__widget-4.footer__widget-4,
  .m2ft .m2ft-right .footer__widget-4 { display: none !important; }
  .m2ft-sp-shop {
    display: block;
    text-align: center;
    padding: 0 32px 32px;
    position: relative;
    z-index: 1;
  }
  .m2ft-bottom { padding: 20px 32px; }
}

/* ==========================================================
   スマホ
   ========================================================== */
@media only screen and (max-width: 767px) {
  .m2ft-main {
    flex-direction: column;
    padding: 40px 24px 16px;
    gap: 16px;
  }
  .m2ft-left { flex: none; width: 100%; display: flex; flex-direction: column; }
  .m2ft-left p br { display: inline !important; }
  .m2ft-left-img {
    order: -1;
    max-width: none !important;
    aspect-ratio: 16/9 !important;
    margin: -40px -24px 40px !important;
    width: calc(100% + 48px) !important;
  }
  .m2ft-right {
    flex-direction: column;
    gap: 28px;
    width: 100%;
    justify-content: flex-start;
  }
  .m2ft-navgroup-title {
    font-size: 14px;
    margin-bottom: 16px;
  }
  .m2ft-nav li a {
    font-size: 16px;
  }
  .m2ft-contact li {
    font-size: 15px;
  }
  .m2ft .footer__widget-4,
  .m2ft .footer__widget-4.footer__widget-4,
  .m2ft .m2ft-right .footer__widget-4 { display: none !important; }
  .m2ft-sp-shop {
    display: block;
    text-align: center;
    padding: 0 24px 32px;
    margin-top: 24px;
    position: relative;
    z-index: 1;
  }
  .m2ft-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 20px 24px;
  }
}
