@charset "UTF-8";

.bottom-nav,
.drawer-menu,
.menu-overlay {
    display: none;
}

body.is-hide {
  overflow: hidden !important; /*!importantを付けてテーマのCSSに強制的に勝たせます */
  height: 100% !important;
}

/* htmlタグも同時にロックしてバウンス（引っ張り）を防止 */
html:has(body.is-hide) {
  overflow: hidden !important;
  height: 100% !important;
}

/* TOPページの元凶であるラッパー要素のスクロールも強制停止 */
body.is-hide #wrapper {
  overflow: hidden !important;
  height: 100vh !important; /* 画面の高さに固定 */
}

@media screen and (max-width: 680px) {
    /* --- ボトムナビゲーションのベース --- */
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px; /* アイコンと文字が入るよう少し高さを確保 */
    background-color: #fff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    padding-bottom: env(safe-area-inset-bottom); /* iPhone等のホームバー対策 */
  }

  /* 各メニューのスタイル（aタグ・button共通） */
  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #333333; /* 文字色（画像の青にしたい場合は #2b44ff 等に変更してください） */
    text-decoration: none;
    cursor: pointer;
    flex: 1;
    height: 100%;
    padding: 4px 0;
    font-family: inherit;
  }

  /* アイコン部分の調整 */
  .nav-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 26px;  /* 💡アイコン全体の横幅を固定 */
    height: 26px; /* 💡アイコン全体の縦幅を固定 */
    margin-bottom: 2px;
  }

  /* <span> の中に入れた <img> タグのサイズを枠に最適化する */
  .nav-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 💡画像の縦横比を保ったまま綺麗に収める */
    display: block;
  }

  /* テキスト部分の調整 */
  .nav-label {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: -0.5px;
  }

  /* --- 下層メニュー（スライド＆フェード） --- */
  .drawer-menu,
  .drawer-menu * {
    box-sizing: border-box !important;
  }

  .drawer-menu {
    display: block !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fafaf9;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 1002;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);

    /* 初期状態：下側に隠し、透明度を0にする */
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;

    /* スマホの底部のセーフエリアの余白を考慮 */
    padding-bottom: env(safe-area-inset-bottom); 
  }

  /* アクティブ時：元の位置に戻り、100%表示 */
  .drawer-menu.is-active {
    transform: translateY(0);
    opacity: 1;
  }

  /* 内包するパーツの調整 */
  .drawer-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 18px 20px 0;
  }

  .close-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #94a3b8;
    padding: 0;
    line-height: 1;
  }

  .sub-contents {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 10px 20px 30px 20px;
  }

  .lead-text {
    font-size: 15px;
    color: #555555;
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 500;
  }

  .main-title {
    font-size: 16px;
    color: #4682b4;
    font-weight: bold;
    text-decoration: underline;
    margin-bottom: 25px;
  }
  
  .bank-options {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
    width: 100;
  }

  .bank-card {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .bank-logo-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    margin-bottom: 10px;
    padding: 15px;
  }

  .bank-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .btn-detail {
    /*
    display: flex;
    align-items: center;
    width: 100%;
    background-color: #4c546c;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    padding: 12px 20px 12px;
    border-radius: 16px;
    position: relative;
    */
    padding: 10px 0 8px;
    padding-right: 10px;
    width: 100%;
    display: inline-block;
    position: relative;
    background-color: #435574;
    border-bottom: solid 4px #3a4b67;
    border-radius: 12px;
    text-align: center;
    color: #fff;
    font-weight: bold;
    font-size: 3.8vw;
  }

  .btn-detail::after {
    /*
    content: '>';
    position: absolute;
    right: 15px;
    font-family: monospace;
    font-size: 16px;
    */
    content: "";
    width: 8px;
    height: 8px;
    border-top: solid 2px #fff;
    border-right: solid 2px #fff;
    position: absolute;
    right: 10%;
    top: 37%;
    transform: rotate(45deg);
  }

  .footer-note {
    font-size: 12px;
    color: #555555;
    text-align: left;
    line-height: 1.6;
    margin-top: 20px;
  }

  /* --- 背景オーバーレイ（黒マスク） --- */
  .menu-overlay {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .menu-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
  }

    /* WordPress管理バー表示中の位置調整 */
  .logged-in .bottom-nav,
  .logged-in .drawer-menu {
    bottom: 46px;
  }
  
}