.footer {
  padding-block: 3rem 2rem;
  background-color: #c0b1a3;
  color: #fff;
  font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.000625rem;
  font-weight: 400;
  line-height: 1.875625rem;
  letter-spacing: 0.025em;
  text-align: left;

  @media screen and (min-width: 769px) {
    padding-block: 4rem 3rem;
  }
}


.footer__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 78.125rem;
  margin-inline: auto;
  padding-inline: 20px;

  @media screen and (min-width: 769px) {
    padding-inline: 1.5625rem;
  }
}

.footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem;

  @media screen and (min-width: 1024px) {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 6.25rem;
  }
}

.footer__info {
  min-width: 0;
}


.footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem;

  @media screen and (min-width: 769px) {
    gap: 3.25rem;
  }
}

/* ロゴリンク */
.footer__logo-link {
  display: block;
  width: 16.25rem;
  max-width: 100%;
  color: inherit;
  text-decoration: none;

  @media screen and (min-width: 769px) {
    width: 20.625rem;
  }
}

/* ロゴ画像 */
.footer__logo-link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 361 / 69;
}

/* ロゴ名 */
.footer__logo-name {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.08em;

  @media screen and (min-width: 769px) {
    font-size: 2.375rem;
  }
}

/* ロゴキャプション */
.footer__logo-caption {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: 0.1em;

  @media screen and (min-width: 769px) {
    font-size: 1rem;
  }
}



.footer__social {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.25rem;
}

/* SNSリンク */
.footer__social-link {
  display: block;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  color: inherit;
  text-decoration: none;
}

/* Instagram */
.footer__social-link--instagram {
  background-image: url("/system_panel/uploads/images/insta.png");
}

/* LINE */
.footer__social-link--line {
  background-image: url("/system_panel/uploads/images/icon_line.png");
}

/* SNSアイコン */
.footer__social-icon {
  display: block;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

/* SNSプレースホルダー */
.footer__social-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  background-color: #fff;
  color: #c0b1a3;
  font-family: sans-serif;
  font-size: 0.5625rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}
.footer__address {
  margin: 1.75rem 0 0;
  font: inherit;
  overflow-wrap: anywhere;
  
}

.footer__address-text {
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
}

.footer__tel {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: none;
}



.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.25rem;

  @media screen and (min-width: 769px) {
    gap: 2rem;
  }

  @media screen and (min-width: 1024px) {
    grid-template-columns: repeat(3, max-content);
    gap: 3rem;
  }
}

/* ナビリスト */
.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 0;
  padding: 0;
}

/* ナビリンク */
.footer__nav-link {
  display: block;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: 1.5;
  text-decoration: none;

  /* Smoooothの自動生成タグ対策 */
  p {
    margin: 0;
    padding: 0;
  }

  br {
    display: none;
  }
}

/* ナビテキスト */
.footer__nav-text {
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-wrap: initial;
}

/* HOMEナビ */
.footer__nav-home {
  grid-column: 1 / -1;

  @media screen and (min-width: 1024px) {
    grid-column: auto;
  }
}

/* ========================================
   Copyright
======================================== */

.footer__copy {
  margin: 2rem 0 0;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.313125rem;
  letter-spacing: 0.05em;
  text-align: right;
}

@media (hover: hover) {
  .footer a:hover {
    opacity: 0.75;
  }
}

.footer a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
/* フッターの電話番号 */
.footer__tel {
  color: inherit;
  text-decoration: none;
}

/* PCでは電話リンクを無効化 */
@media screen and (min-width: 1024px) {
  .footer__tel {
    pointer-events: none;
    cursor: default;
  }

  .footer__tel:hover {
    color: inherit;
    text-decoration: none;
    opacity: 1;
  }
}
/* ========================================
   SP・タブレット：ナビを非表示、固定ボタン用の余白をフッター内に確保
======================================== */

@media screen and (max-width: 1023px) {
  .footer {
    padding-bottom: calc(2rem + 70px + env(safe-area-inset-bottom));
  }

  .footer__nav {
    display: none;
  }

  .footer__info {
    text-align: center;
  }

  .footer__brand {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
  }

  .footer__logo-link {
    flex: 0 1 auto;
    min-width: 0;
  }

  .footer__social {
    flex-shrink: 0;
    justify-content: center;
    gap: 24px;
    padding-top: 0;
  }

  .footer__address-text {
    white-space: normal;
  }

  .footer__copy {
    text-align: center;
  }
}

@media screen and (min-width: 769px) and (max-width: 1023px) {
  .footer {
    padding-bottom: calc(3rem + 70px + env(safe-area-inset-bottom));
  }
}
