  /* ====================================
   * 変数定義（サイト全体の設計に合わせて調整可）
   * ==================================== */
  :root {
    --wan-bg: #fdfaf4;       /* 背景色：優しいオフホワイト */
    --wan-text: #333333;     /* 文字色：濃いグレー */
    --wan-line: #e5e5e5;     /* 境界線：薄いグレー */
    --wan-muted: #888888;    /* 控えめな文字色 */
    --wan-accent: #f3981d;   /* アクセント：オレンジ */
  }

  /* ====================================
   * フッター全体
   * ==================================== */
  .wan-footer {
    background: var(--wan-bg);
    color: var(--wan-text);
    border-top: 4px solid var(--wan-accent); /* アクセントラインを強調 */
    font-size: 14px;
    line-height: 1.7;
    padding: 0; /* SWELLのデフォルト余白をリセット */
  }

  /* グリッドレイアウト（PC） */
  .wan-footer__top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    gap: 32px;
    /* 左から: ブランド(広め) + 5つのリンクグループ */
    grid-template-columns: 1.4fr repeat(5, 1fr);
  }

  /* コピーライトエリア */
  .wan-footer__bottom {
    border-top: 1px solid var(--wan-line);
    padding: 20px;
    text-align: center;
    color: var(--wan-muted);
    font-size: 11px;
    background: #fff; /* 下部だけ白くして引き締め */
  }

  /* ====================================
   * ブランドエリア（ロゴ・CTA・SNS）
   * ==================================== */
  .wan-footer__brand {
    padding-right: 20px;
    min-width: 0;
  }

  .wan-footer__logo img {
    height: 40px;
    width: auto;
    display: block;
    margin-bottom: 15px;
  }

  .wan-footer__tagline {
    margin: 0 0 20px;
    font-size: 12px;
    color: var(--wan-muted);
  }

  /* CTAボタン群 */
  .wan-footer__cta {
    display: flex;
    flex-direction: column; /* スマホ・PC共に縦並びで安定させる */
    gap: 10px;
    margin-bottom: 24px;
  }

  .wan-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 9999px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    border: 1px solid var(--wan-accent);
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }

  .wan-btn--primary {
    background: var(--wan-accent);
    color: #fff;
    border-color: var(--wan-accent);
  }
  .wan-btn--primary:hover {
    background: #e0860c; /* ホバー時は少し濃く */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(243, 152, 29, 0.3);
  }

  .wan-btn--ghost {
    background: #fff;
    color: var(--wan-accent);
  }
  .wan-btn--ghost:hover {
    background: #fffaf0;
    transform: translateY(-2px);
  }

  .wan-btn:active {
    transform: translateY(0);
  }

  /* SNSアイコン */
  .wan-footer__sns {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    list-style: none;
    padding: 0;
  }
  .wan-footer__sns a {
    text-decoration: none;
    color: var(--wan-muted);
    font-weight: bold;
    font-size: 12px;
    transition: color 0.2s;
  }
  .wan-footer__sns a:hover {
    color: var(--wan-accent);
  }

  /* ====================================
   * リンクグループ・アコーディオン
   * ==================================== */
  .wan-footer__group {
    min-width: 0;
  }

  .wan-footer__hd {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 700;
    color: var(--wan-text);
  }

  /* トグルボタン（PCでは無効化、SPで有効化） */
  .wan-footer__toggle {
    all: unset; /* ボタンのスタイルリセット */
    cursor: default;
    font-weight: inherit;
    color: inherit;
    width: 100%;
    display: block;
  }

  /* リンク一覧 */
  .wan-footer__links ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .wan-footer__links li {
    margin: 8px 0;
  }
  .wan-footer__links a {
    color: var(--wan-text);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
    display: inline-block;
  }
  .wan-footer__links a:hover {
    color: var(--wan-accent);
    text-decoration: underline;
  }

  /* 人気のキーワード（タグクラウド風） */
  .wan-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .wan-tags a {
    border: 1px solid var(--wan-line);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    background: #fff;
    color: var(--wan-muted);
  }
  .wan-tags a:hover {
    border-color: var(--wan-accent);
    color: var(--wan-accent);
    background: #fffaf0;
    text-decoration: none;
  }

  /* ====================================
   * レスポンシブ対応 (Media Queries)
   * ==================================== */

  /* タブレットサイズ (〜1200px) */
  @media (max-width: 1200px) {
    .wan-footer__top {
      /* カラム数を減らす */
      grid-template-columns: repeat(4, 1fr); 
      padding: 40px 20px;
    }
    /* ブランドエリアを全幅にして上部に配置 */
    .wan-footer__brand {
      grid-column: 1 / -1;
      border-bottom: 1px solid var(--wan-line);
      padding-bottom: 30px;
      margin-bottom: 10px;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
    }
    .wan-footer__cta {
      flex-direction: row; /* 横並びに変更 */
      margin-bottom: 0;
    }
    .wan-footer__tagline {
      width: 100%; /* 改行させる */
    }
  }

  /* スマホサイズ (〜960px) */
  @media (max-width: 960px) {
    .wan-footer__top {
      display: block; /* グリッド解除 */
      padding: 0;
    }

    /* ブランドエリア（スマホ） */
    .wan-footer__brand {
      display: block; /* 縦並びに戻す */
      padding: 40px 20px;
      text-align: center;
      border-bottom: none;
      margin-bottom: 0;
      background: #fff; /* 背景白にして少し目立たせる */
    }
    .wan-footer__logo img {
      margin: 0 auto 15px;
    }
    .wan-footer__cta {
      flex-direction: column; /* ボタン縦積み */
      gap: 12px;
    }
    .wan-footer__sns {
      justify-content: center;
    }

    /* アコーディオン部分のスタイル */
    .wan-footer__group {
      border-top: 1px solid var(--wan-line);
    }
    .wan-footer__hd {
      margin: 0;
    }

    /* トグルボタン（スマホのみクリック可能に） */
    .wan-footer__toggle {
      cursor: pointer;
      padding: 16px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: relative;
    }
    
    /* 矢印アイコン */
    .wan-footer__toggle::after {
      content: "";
      display: inline-block;
      width: 8px;
      height: 8px;
      border-right: 2px solid var(--wan-accent);
      border-bottom: 2px solid var(--wan-accent);
      transform: rotate(45deg);
      transition: transform 0.3s ease;
      margin-left: 10px;
    }

    /* 開いている時の矢印 */
    .wan-footer__toggle[aria-expanded="true"]::after {
      transform: rotate(225deg); /* 上向き */
    }

    /* アコーディオンの中身（開閉アニメーション） */
    .wan-footer__links {
      height: 0;
      overflow: hidden;
      opacity: 0;
      transition: height 0.3s ease, opacity 0.3s ease;
      background: #fdfaf4;
      padding: 0 20px;
    }

    /* JSで .is-open クラスがついた時 */
    .wan-footer__group.is-open .wan-footer__links {
      height: auto;
      opacity: 1;
      padding-bottom: 20px;
      /* ※厳密なアニメーションにはmax-height推奨だが、リンク数可変のためautoで簡易対応 */
    }
    .wan-footer__group.is-open .wan-footer__toggle {
      color: var(--wan-accent);
    }
  }

  /* 視差効果軽減 */
  @media (prefers-reduced-motion: reduce) {
    .wan-footer__links,
    .wan-footer__toggle::after,
    .wan-btn {
      transition: none !important;
    }
  }