/**
 * CSS File: footer.css
 * 2026-06-25 | Final checked
 * 2026-07-14 | Address structure updated & Logo alignment fixed for mobile
 */

/* ==========================================================================
   1. Base Components (Smartphone Vertical)
   ========================================================================== */
.p-footer {
  position: relative;
  background-color: #142f40;
  color: #eeeeee;
  padding: 40px 0 40px;
  font-size: 0.975rem;
  margin-top: -1px;
  opacity: 1;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
  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__grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: left;
}

/* スマホ時は他の要素と揃えるために左寄せ（margin-leftを0に） */
.p-footer__logo img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 0 15px 0;
}

.p-footer__desc {
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: left;
  padding: 0 10px;
}

/* 郵便番号一体化＆スペース保持のための柔軟なレイアウト設定 */
.p-footer__address p {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
  line-height: 1.6;
  white-space: pre-wrap; /* スペースや改行をブラウザ側で確実に保持する */
}

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

/* TELやFAXのラベル幅を固定して、右側の番号と綺麗に揃える */
.p-footer__label {
  display: inline-block;
  width: 35px;
  flex-shrink: 0; /* ラベルが画面幅で潰れないように固定 */
  font-family: monospace;
  font-weight: bold;
}

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

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

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

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

.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 #777777;
  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;
}

.c-footer-sns__item:hover {
  opacity: 0.8;
  border-color: #ffffff;
}

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

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

/* ==========================================================================
   2. Media Queries
   ========================================================================== */

/* スマホ横向き */
@media screen and (max-height: 500px) and (orientation: landscape) {
  /* 必要に応じて記述 */
}

/* タブレット・PC */
@media screen and (min-width: 768px) and (min-height: 501px) {
  .p-footer {
    padding: 60px 0 40px;
  }

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

  .p-footer__grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    text-align: left;
    gap: 40px;
  }

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

  .p-footer__desc {
    padding: 0;
  }

  .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;
  }

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

  .c-footer-sns__item:hover {
    background-color: rgba(231, 222, 205, 0.1);
    border-color: #ffffff;
  }

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

/* 大型モニター */
@media screen and (min-width: 1024px) and (min-height: 501px) {
  .p-footer__inner {
    padding: 0 60px;
  }

  .p-footer__grid {
    gap: 50px;
  }
}

/* ==========================================================================
   3. Custom Company Link Styles (Marunto & Coliend Adjustments)
   ========================================================================== */

/* リンクと説明文を縦並びにしてスッキリ見せる */
.p-footer__link-block {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}

/* 補足説明テキスト（（障がい者応援サイト）など） */
.p-footer__link-desc {
  font-size: 0.8rem;
  opacity: 0.65;
  margin-top: 2px;
  font-weight: normal;
  transition: opacity 0.3s ease;
}

/* ホバー時に説明文も一緒に少し明るくする制御 */
.p-footer__link-block:hover .p-footer__link-desc {
  opacity: 0.9;
}

/* 子会社の注記テキスト（※株式会社ティービーエス...） */
.p-footer__link-note {
  font-size: 0.735rem;
  line-height: 1.5;
  color: #cccccc;
  opacity: 0.55;
  margin-top: 4px;
  margin-bottom: 12px;
  padding-left: 2px;
  font-weight: normal;
}

/* リストアイテム間のゆとりを少し持たせる調整 */
.p-footer__list li {
  margin-bottom: 14px; /* 10pxから少し広げて視認性確保 */
}
