/**
 * Versyne Noir完全準拠 - フッター
 * ネオプラズマ株式会社専用
 *
 * デザインテーマ: Versyne Noir
 * 実装: Versyne Noirのフッター構造を完全再現
 */

/* ============================================
   フッターメインコンテナ
   ============================================ */

.footer-main-container {
  background-color: #fffcf7; /* Versyne Noir背景色（薄いベージュ） */
  border-top: 1px solid #f6f1eb; /* 微妙な区切り線 */
}

/* ============================================
   フッターメイン
   ============================================ */

.footer-main {
  background-color: #ffffff; /* メイン部分は白 */
  width: 100%; /* 左右ぴったり */
  margin: 0;
  padding: 0;
}

/* ============================================
   フッターコンテンツ（フレックスレイアウト）
   ============================================ */

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 1024px) {
  .footer-content {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ============================================
   フッターセクション（共通）
   ============================================ */

.footer-section {
  padding: 24px 24px; /* 左右余白を増やす */
  border-bottom: 1px solid #f6f1eb; /* セクション間の区切り線 */
}

@media (min-width: 768px) {
  .footer-section {
    padding: 32px 48px; /* タブレット: より広く */
  }
}

@media (min-width: 1024px) {
  .footer-section {
    padding: 32px 48px; /* デスクトップ: 48px */
    border-bottom: none;
    border-right: 1px solid #f6f1eb; /* デスクトップは縦区切り */
    flex: 1 1 0%;
  }

  .footer-section:last-child {
    border-right: none;
  }
}

@media (min-width: 1440px) {
  .footer-section {
    padding: 32px 64px; /* 大画面: さらに広く */
  }
}

/* ============================================
   フッターセクション - Help
   ============================================ */

.footer-help {
  flex: 1 1 auto;
}

/* ============================================
   フッターセクション - ニュースレター
   ============================================ */

.footer-newsletter {
  flex: 0 0 340px;
}

@media (min-width: 1440px) {
  .footer-newsletter {
    flex: 0 0 440px;
  }
}

/* ============================================
   フッターセクション - SNS
   ============================================ */

.footer-social {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

@media (min-width: 1024px) {
  .footer-social {
    align-items: flex-end; /* 右寄せ */
  }
}

/* ============================================
   フッターセクションタイトル
   ============================================ */

.footer-section-title {
  font-size: 13px;
  font-weight: 600; /* Versyne Noir: セクションタイトルは太め */
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #444444;
  font-family: 'Helvetica Neue', Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
}

@media (min-width: 768px) {
  .footer-section-title {
    font-size: 14px;
    margin-bottom: 24px;
  }
}

/* ============================================
   フッターリンクリスト
   ============================================ */

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link-item {
  margin-bottom: 12px;
}

.footer-link-item:last-child {
  margin-bottom: 0;
}

.footer-link {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: #666666;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  position: relative;
}

.footer-link:hover {
  color: #222222;
}

@media (min-width: 768px) {
  .footer-link {
    font-size: 14px;
  }
}

/* ============================================
   ニュースレター登録フォーム
   ============================================ */

.newsletter-description {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .newsletter-description {
    font-size: 14px;
  }
}

.newsletter-form {
  display: flex;
  flex-direction: column; /* 縦積みに変更 */
  gap: 16px; /* スペースを広げる */
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .newsletter-form {
    flex-direction: row; /* タブレット以上は横並び */
    gap: 12px;
  }
}

.newsletter-input {
  flex: 1;
  padding: 14px 18px; /* パディングを増やす */
  border: 1px solid #e2d8ce;
  background-color: #ffffff;
  font-size: 14px; /* フォントサイズを少し大きく */
  font-family: 'Helvetica Neue', Arial, 'Hiragino Sans', sans-serif;
  color: #444444;
  transition: border-color 0.2s ease;
  min-height: 48px; /* 最小高さを確保 */
}

.newsletter-input:focus {
  outline: none;
  border-color: #444444;
}

.newsletter-input::placeholder {
  color: #999999;
}

.newsletter-submit {
  padding: 14px 32px; /* パディングを増やす */
  background-color: #444444;
  color: #ffffff;
  border: 1px solid #444444;
  font-size: 14px; /* フォントサイズを少し大きく */
  font-weight: 400;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap; /* テキストを折り返さない */
  min-height: 48px; /* 最小高さを確保 */
}

.newsletter-submit:hover {
  background-color: #ff8c00;
  border-color: #ff8c00;
}

.newsletter-privacy {
  font-size: 11px;
  color: #999999;
  line-height: 1.5;
}

.newsletter-privacy a {
  color: #666666;
  text-decoration: underline;
}

.newsletter-privacy a:hover {
  color: #222222;
}

/* ============================================
   SNSアイコン
   ============================================ */

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

@media (min-width: 1024px) {
  .social-links {
    justify-content: flex-end;
  }
}

.social-link {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444444;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  color: #ff8c00;
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   フッターリンクグリッド（複数カラム）
   ============================================ */

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 24px 24px; /* 左右余白を増やす */
  background-color: #ffffff;
}

@media (min-width: 768px) {
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 32px 48px; /* タブレット: より広く */
  }
}

@media (min-width: 1024px) {
  .footer-links-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    padding: 48px 48px; /* デスクトップ: 48px */
  }
}

@media (min-width: 1440px) {
  .footer-links-grid {
    padding: 48px 64px; /* 大画面: さらに広く */
  }
}

/* ============================================
   フッター下部（コピーライト・支払い方法）
   ============================================ */

.footer-bottom {
  background-color: #fffcf7;
  padding: 24px 24px; /* 左右余白を増やす */
  border-top: 1px solid #f6f1eb;
}

@media (min-width: 768px) {
  .footer-bottom {
    padding: 32px 48px; /* タブレット: より広く */
  }
}

@media (min-width: 1024px) {
  .footer-bottom {
    padding: 32px 48px; /* デスクトップ: 48px */
  }
}

@media (min-width: 1440px) {
  .footer-bottom {
    padding: 32px 64px; /* 大画面: さらに広く */
  }
}

.footer-bottom-content {
  width: 100%; /* 左右ぴったり */
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 1024px) {
  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* コピーライト */
.footer-copyright {
  font-size: 12px;
  color: #999999;
  font-weight: 300;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .footer-copyright {
    font-size: 13px;
  }
}

/* 法的リンク */
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-legal-link {
  font-size: 12px;
  color: #666666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-link:hover {
  color: #222222;
}

@media (min-width: 768px) {
  .footer-legal-link {
    font-size: 13px;
  }
}

/* 支払い方法アイコン */
.footer-payment-methods {
  display: flex;
  gap: 12px;
  align-items: center;
}

.payment-icon {
  height: 24px;
  width: auto;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.payment-icon:hover {
  opacity: 1;
}

/* ============================================
   国/言語選択（オプション）
   ============================================ */

.footer-region {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666666;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-region:hover {
  color: #222222;
}

.footer-region svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   アクセシビリティ
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .social-link,
  .footer-link,
  .newsletter-submit {
    transition: none;
  }

  .social-link:hover {
    transform: none;
  }
}
