/* =========================
   サポートページ（topの見た目を踏襲）
   ========================= */

/* 背景（top.cssの #logicView を踏襲） */
#logicView {
  background: url("/static/img/background.png") no-repeat center top;
  background-size: cover;
}

/* ヘッダー背景（topと共通） */
.hero-img--top {
  background-image: url("/static/img/header.png");
}

/* ロゴ（topと共通） */
.logo--top {
  top: 50px;
  width: 240px;
  height: 80px;
  background-image: url("/static/img/logo.png");
}

/* メイン */
.main-content {
  padding: 8px 16px 96px; /* フッターと被らないように下に余白 */
  text-align: center;
}

.support-title {
  margin: 10px 16px 20px;
  font-size: 22px;
  font-weight: 700;
}

/* =========================
   ボタン群
   ========================= */

.support-container {
  margin-top: 6px;
}

.support-button {
  display: block;
  width: 86%;
  max-width: 340px;
  margin: 14px auto;
  padding: 12px 20px;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(45deg, #43e97b, #38f9d7);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.25s, transform 0.15s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.08);
  cursor: pointer;
}

.support-button:hover {
  background: linear-gradient(45deg, #38f9d7, #43e97b);
  transform: translateY(-1px);
}

.support-button--logout {
  background: linear-gradient(180deg, #ff9a9e, #f36);
}

/* =========================
   モーダル（top準拠・スマホ全画面）
   ========================= */

#support-legal-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

#support-legal-modal.hidden { display: none; }

/* デフォルト（PC） */
.legal-modal__content {
  background: #fff;
  width: 90%;
  max-width: 640px;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  text-align: left;
  position: relative;
  overflow-y: auto;
  max-height: 80vh;
}

.legal-modal__title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
  border-bottom: 2px solid #2a7ae4;
  padding-bottom: 8px;
}

/* 右上ボタン（非表示方針・必要時にdisplay:block） */
.legal-modal__back{
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background-color: #6192B5;
  border: 1.5px solid #C7D1DC;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
  cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, background-color .2s ease, filter .2s ease;
  display: none; /* ← 今は見せない */
}

.legal-modal__back:hover { background-color: #1c5dc0; }
.legal-modal__back:active { transform: translateY(1px); }

/* iframe */
#support-legal-iframe {
  width: 100%;
  height: 60vh;
  border: none;
  border-radius: 6px;
}

/* 下部の閉じる（register準拠） */
.modal-footer {
  text-align: center;
  margin-top: 20px;
}

.ok-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 34px;
  min-height: 36px;
  line-height: 1;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;

  color: #fff;
  background-color: #6192B5;
  border: 1.5px solid #C7D1DC;
  border-radius: 999px;

  box-shadow: 0 4px 10px rgba(0,0,0,.08);
  transition: transform .08s ease, box-shadow .2s ease, background-color .2s ease, filter .2s ease;
}

.ok-button:hover { background-color: #1c5dc0; }
.ok-button:active { transform: translateY(1px); }

/* スマホ：ほぼ全画面表示 */
@media (max-width: 600px) {
  .legal-modal__content {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .legal-modal__title {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    font-size: 18px;
  }

  #support-legal-iframe {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    border: none;
  }
}

/* PC拡大（任意） */
@media (min-width: 601px) {
  .legal-modal__content {
    width: min(96vw, 860px);
    max-height: 90vh;
    padding: 20px 24px;
    border-radius: 12px;
  }
  #support-legal-iframe { height: 70vh; }
}

/* フッター（topと同じ選択感） */
.footer a[href="/support.html"] img {
  filter: grayscale(0.1) contrast(1.35) brightness(0.7);
}
