/**
 * CSS File: footer.css
 * 2026-06-08 | Luxury Dark & Gold Style Optimization with Image Visibility Fix
 * 2026-07-03 | HTML structure synced (policy & layout fix)
 * 2026-07-15 | Logo left-aligned & all nav groups unified with rounded boxes on mobile
 * 2026-07-16 | Balanced grid columns & anti-wrap optimization for navigation
 */

/* ==========================================================================
   1. ベース・スマホ縦想定スタイル（すべて共通の土台・モバイル優先）
   ========================================================================== */
.p-footer {
  position: relative;
  background-color: #2c2c2c;
  color: #dfdfdf;
  padding: 40px 0;
  font-size: 0.975rem;
  margin-top: -1px;
  opacity: 1;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.6));
  z-index: var(--z_0-base);
}

.p-footer__inner {
  width: 100%;
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.p-footer__nav-group {
  text-align: center;
}

.p-footer__grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: left;
}

.p-footer__logo img {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 0 15px; /* 💡 中央寄せ(auto)から左寄せに修正 */
  display: block;
}

.p-footer__desc {
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: left;
  padding: 0; /* 💡 ロゴの左端とピッタリ合わせるためにパディングをリセット */
}

.p-footer__address p {
  display: grid;
  grid-template-columns: 30px 1fr;
  margin-bottom: 8px;
}

.p-footer__address p:last-child {
  margin-bottom: 0;
}

.p-footer__label {
  font-family: monospace;
  font-weight: bold;
}

.p-footer__title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  display: inline-block;
  padding-bottom: 5px;
}

.p-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* --- 枠線と中央寄せのための共通スタイル（スマホ優先ポリシーに統合） --- */
.p-footer__nav-group .p-footer__list-box {
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
  text-align: center; /* 💡 枠内のテキストを中央寄せにして美しく統一 */
  background-color: rgba(255, 255, 255, 0.05); /* ダーク背景に馴染む薄い白 */
  box-sizing: border-box;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.p-footer__list li {
  margin-bottom: 10px;
}

.p-footer__list li:last-child {
  margin-bottom: 0;
}

.p-footer__sub-item {
  padding-left: 0.5em;
}

.p-footer__list a {
  color: #dfdfdf;
  text-decoration: none;
  opacity: 0.85;
  position: relative;
  display: inline-block;
  transition:
    opacity 0.3s ease,
    color 0.3s ease;
}

.p-footer__list a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #d4af37;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.p-footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  text-align: center;
}

.p-footer__copyright {
  font-size: 0.7875rem;
  opacity: 0.7;
}

.p-footer__sns {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 30px;
}

.c-footer-sns__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(184, 134, 11, 0.4);
  border-radius: 20%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.c-footer-sns__item img {
  width: 32px;
  height: auto;
  opacity: 0.9;
  transition: all 0.3s ease;
  filter: invert(1) brightness(1.5);
}

/* 郵便番号の行だけ2列に分けないで、1行で横いっぱいに表示させる */
.p-footer__address p:first-child {
  display: block;
}

/* ==========================================================================
   2. スマホ横向き限定レイアウト（高さを500px以下に制限、潰れ・見切れ防止）
   ========================================================================== */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .p-footer {
    padding: 30px 0;
  }
  /* 列数を今回のHTML（各種情報が増えた4列構造）に合わせて最適化 */
  .p-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
  }
  .p-footer__logo img {
    margin: 0 0 10px 0;
  }
  .p-footer__desc {
    padding: 0;
  }
  .p-footer__sns {
    margin-bottom: 0;
  }
}

/* ==========================================================================
   3. タブレットサイズ (768px以上) ＆ 高さが501px以上あること（PC防衛線）
   ========================================================================== */
@media screen and (min-width: 768px) and (min-height: 501px) {
  .p-footer {
    padding: 60px 0 40px;
  }

  .p-footer__inner {
    padding: 0 40px;
  }

  /* 💡 サービスメニュー幅を確保するため、列幅比率を 1.8fr → 「1.4fr 1.6fr 1fr 1fr」に調整 */
  .p-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1.6fr 1fr 1fr;
    text-align: left;
    gap: 30px; /* 列幅拡大に伴いgapを少し詰めて50pxから30pxへ変更 */
  }

  .p-footer__nav-group {
    text-align: left;
  }

  /* PC・タブレット版：スマホ用の限定枠線スタイルを適切に解放・クリーン化 */
  .p-footer__nav-group .p-footer__list-box {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    text-align: left; /* 💡 PC・タブレット環境では左寄せに戻して馴染ませる */
  }

  /* 💡 改行を抑止するため、リンク文字の設定をスリムに微調整 */
  .p-footer__list a {
    font-size: 0.9rem; /* ほんの少しフォントサイズを縮小して入りやすく */
    line-height: 1.5;
    letter-spacing: -0.02em; /* わずかに文字間を詰め、改行を防ぐプロテクタ */
    white-space: nowrap; /* 極力1行で収める設定 */
  }

  .p-footer__logo img {
    margin: 0 0 20px 0;
  }

  .p-footer__desc {
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .p-footer__title {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 20px;
  }

  .p-footer__copyright {
    font-size: 0.85rem;
  }

  .p-footer__sns {
    margin-bottom: 0;
  }

  /* ホバーアニメーション */
  .p-footer__list a:hover {
    opacity: 1;
    color: #d4af37;
  }

  .p-footer__list a:hover::after {
    transform: scaleX(1);
  }

  .c-footer-sns__item:hover {
    background-color: rgba(212, 175, 55, 0.05);
    border-color: #d4af37;
  }

  .c-footer-sns__item:hover img {
    opacity: 1;
    transform: scale(1.05);
    filter: invert(1) brightness(2);
  }
}

/* ==========================================================================
   4. PC大画面サイズ (1024px以上)
   ========================================================================== */
@media screen and (min-width: 1024px) and (min-height: 501px) {
  .p-footer__inner {
    padding: 0 60px;
  }

  .p-footer__grid {
    grid-template-columns: 1.5fr 1.5fr 1fr 1fr; /* 横幅に余裕ができるため、さらにサービス幅を安定化 */
    gap: 40px;
  }

  .p-footer__list a {
    font-size: 0.95rem; /* 大画面では読みやすさを損なわない通常サイズに */
    letter-spacing: normal;
  }
}





.c-footer-sns__item img[alt="Instagram"] {
    filter: none;
}