/* ==========================================================================
   SEO Extended Footer Styles
   --------------------------------------------------------------------------
   Purpose:
   - Styles specifically for the SEO-optimized footer used in Organizer Central
     and other SEO-focused pages.
   - Extends the default footer with additional structured content to improve
     SEO and user navigation.
   - Includes mobile accordion view and desktop multi-column layout.

   Notes:
   - Works with `footer-ja-seo.php` template.
   - Do NOT apply these styles to the standard footer without review.
   ========================================================================== */

 /* === Basic Footer Styles === */
.site-footer {
  background-color: #F9F9FE;
  color: #353538;
  font-size: 14px;
  line-height: 1.5;
  padding: 64px 16px;
  font-weight: 400;
}

.footer-top {
  max-width: 1216px;
  margin: 0 auto 48px;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-column {
  min-width: 200px;
}

.footer-column h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #222;
  text-align: left;
  padding: 0;
  background-color: transparent;
}
.footer-column h2 + ul + h2 {
  margin-top: 32px;
}
.footer-column h2  span {
  font-size: 14px;
  font-weight: 300;
  text-align: left;
}

.footer-column ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: #353538;
  text-decoration: none;
  font-size: 14px;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}

  .footer-column ul li a span {
  font-size: 12px;
}
  .footer-columns-mobile {
  display: none;
}

/* Sub Footer Area */
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 40px;
  font-size: 14px;
}

.footer-meta,
.footer-help,
.footer-social,
.footer-copy {
  max-width: 1216px;  /* 最大幅を固定 */
  width: 100%;        /* 親幅にフィット */
  margin: 0 auto;     /* 中央寄せ */
  padding: 0;
}

.footer-meta, .footer-social {
  display: grid;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  word-break: break-word;
  gap: 16px;
  list-style: none;
  padding-left: 0 !important;
  margin: 0;
}

.footer-links li a {
  color: #353538;
  text-decoration: none;
}

.footer-links li a:hover {
  text-decoration: underline;
}

.footer-help .footer-links span {
  color: #222;
}

.footer-social .social-icons {
  display: flex;
  gap: 16px;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-social .social-icons li a {
  color: #65646A;
  text-decoration: none;
}

.footer-social .social-icons li a:hover {
  text-decoration: underline;
}

.footer-copy {
  color: #65646A;
  font-size: 12px;
}

/* Peatix footer logo (mobileも表示) */
.footer-logo {
    max-width: 1216px;
    margin: 0 auto 24px;   /* PC/SP共通: 下余白 */
    text-align: center;    /* モバイルは中央寄せ */
    }

    .footer-logo a { display: inline-block; }

    .footer-logo img {
    height: 40px;          /* モバイル: h-10 */
    width: auto;
    }

    @media (min-width: 768px) {
    .footer-logo { 
        text-align: left;    /* PCは左寄せ */
        margin-bottom: 32px; 
    }
    .footer-logo img { 
        height: 48px;        /* PC: h-12 */
    }
}

@media (min-width: 768px) {
.footer-columns-desktop { display: block; }
}
/* モバイル用アコーディオン切り替え */
@media (max-width: 767px) {
  .site-footer {
    padding: 56px 16px;
  } 
  body.page-id-18348  .site-footer {
    padding-bottom: 146px;
  }
  .footer-columns {
    flex-direction: column;
    gap: 24px;
  }

  /* デスクトップ表示を非表示 */
  .footer-columns-desktop {
    display: none;
  }

  /* モバイル表示を有効化 */
  .footer-columns-mobile {
    display: block;
    margin-bottom: 48px;
  }

  .footer-columns-mobile .footer-column {
    width: 100%;
  }

  .footer-columns-mobile details {
    margin-bottom: 0;
    border: none;
    background: transparent;
    padding: 16px 0;
    border-bottom: 1px solid #E8E8EF;
  }
  .footer-columns-mobile details:last-of-type {
  margin-bottom: 0;
  }

  .footer-columns-mobile summary {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    position: relative;
    text-align: left;
    position: relative;
    padding-right: 32px; /* アイコン用スペース */
    cursor: pointer;
  }
  /* summary のデフォルトの ▶︎ を非表示 */
  .footer-columns-mobile summary {
    list-style: none;          /* Safari 対策 */
  }

  .footer-columns-mobile summary::-webkit-details-marker {
    display: none;             /* Chrome / Safari */
  }

  .footer-columns-mobile summary::marker {
    content: none;             /* Firefox */
  }

  .footer-columns-mobile summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 20px;
    height: 20px;
    background-image: url('https://learning.peatix.com/ja/wp-content/uploads/2025/08/Arrow-Down.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(-50%);
    opacity: 1;
    transition: background-image 0.2s ease, opacity 0.2s ease;
  }

  .footer-columns-mobile details[open] summary::after {
    background-image: url('https://learning.peatix.com/ja/wp-content/uploads/2025/08/Arrow-Up.svg');
    opacity: 1;
  }
  .footer-columns-mobile summary::after,
  .footer-columns-mobile details[open] summary::after {
    will-change: opacity;
  }

  .footer-columns-mobile ul {
    margin-top: 16px;
    padding-left: 0;
    list-style: none;
  }
  .footer-column ul li {
    margin-bottom: 12px;
  }
  .footer-column ul li:last-of-type {
    margin-bottom: 0;
  }

  /* summary 内の span 用スタイル */
  .footer-columns-mobile summary span {
    font-size: 14px;
    font-weight: 300;
    display: inline-block;
    margin-right: 4px;
  }

  .footer-columns-mobile ul li a span {
    font-size: 12px;
    font-weight: 400;
  }

  .footer-meta {
    gap: 24px;
  }
  .footer-meta .footer-links {
    gap: 16px
  }
}