@charset "utf-8";
/* =========================================================
   modal.css — モーダル・オーバーレイコンポーネント（mensサイト共通）

   レディース版との差異: ブランドカラーが青みグレー系（#638183）。

   クラス早見表:
     .overlay               ← 画面全体を覆う半透明オーバーレイ（お知らせモーダル用）
     .btn_area              ← お知らせ・警告モーダルのコンテンツ領域（レガシー）
     .my_modal_close        ← モーダルの閉じるボタン（絶対配置）
     .my_modal_close_icon   ← 閉じるボタンの × アイコン
     .ka-modal-overlay      ← モダンなカスタムモーダル背景
     .ka-modal-dialog       ← モダンなカスタムモーダル本体
     .ka-modal-btn-primary  ← モーダル内メインボタン（mensブランドカラー）
     .ka-modal-btn-secondary← モーダル内キャンセルボタン
   ========================================================= */

/* ── .overlay ── 全画面オーバーレイ ──────────────────────
   お知らせ等のモーダル表示時に画面全体を覆う背景。
   JSで display: block に切り替えて使用する。
   ─────────────────────────────────────────────────────── */
.overlay {
  display: none;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  position: fixed;
  z-index: 1;
}

/* ── .btn_area ── お知らせ・警告モーダル（レガシー） ─────
   お知らせ表示用の旧来モーダル。新規実装では .ka-modal-* を使うこと。
   ─────────────────────────────────────────────────────── */
.btn_area {
  width: 90%;
  position: absolute;
  top: 30%;
  left: 50%;
  margin-top: -75px;
  margin-left: -45%;
  background-color: #fff;
  z-index: 2;
  overflow-y: auto;
}

.btn_area ul {
  margin: 0;
  padding: 0px 10px 10px 30px;
}

.btn_area li {
  display: block;
  color: #e74c3c;
  font-weight: bold;
  font-size: 14px;
  margin: 10px 10px 0 0;
  background-color: #ffffcc;
  font-family: var(--font-ja);
}

.btn_area p {
  padding: 9px 13px;
  margin: 0px;
  font-size: 14px;
  font-family: var(--font-ja);
  color: #000000;
  line-height: 1.7;
}
.btn_area button {
  display: block;
  margin: 24px auto 30px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
  padding: 12px 36px;
  height: auto;
  width: auto;
  background: #638183;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.btn_area button:hover { background: #4e6b6e; opacity: 0.92; }

.btn_area p.title {
  font-weight: bold;
  text-align: center;
  margin: 10px;
  font-size: 18px;
  padding: 0.5em;
  background: #f0f4f4;
  border-left: solid 5px #638183;
  letter-spacing: 0.1em;
}

.btn_area p.headTit {
  margin: 5px;
  font-size: 13px;
  color: #000000;
}

/* ── .my_modal_close ── 閉じるボタン ────────────────────
   モーダル右上の × ボタン。絶対配置で配置する。
   ─────────────────────────────────────────────────────── */
.my_modal_close {
  position: absolute;
  width: 25px;
  height: 25px;
  top: 25px;
  right: 10px;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  cursor: pointer;
}
.my_modal_close_icon {
  display: inline-block;
  width: 25px;
  height: 25px;
  position: relative;
  cursor: pointer;
}
.my_modal_close_icon span::before,
.my_modal_close_icon span::after {
  display: block;
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84%;
  height: 16%;
  margin: -8% 0 0 -42%;
  background: #727171;
}
.my_modal_close_icon span::before {
  transform: rotate(-45deg);
}
.my_modal_close_icon span::after {
  transform: rotate(45deg);
}

/* .btn_area のレスポンシブ対応 */
@media only screen and (min-width: 481px) {
  .btn_area {
    width: 400px;
    position: absolute;
    top: 40%;
    left: 50%;
    margin-top: -75px;
    margin-left: -200px;
    background-color: #fff;
    z-index: 2;
    overflow-y: auto;
  }
}

@media only screen and (min-width: 769px) {
  .btn_area {
    width: 490px;
    position: absolute;
    top: 40%;
    left: 50%;
    margin-top: -75px;
    margin-left: -245px;
    background-color: #fff;
    z-index: 2;
    overflow-y: auto;
  }
}

/* =========================================================
   カスタムモーダル — .ka-modal-*
   新規実装はこちらを使う。アクセシブルな hidden 属性制御対応。
   ========================================================= */
.ka-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.ka-modal-overlay[hidden] { display: none; }

.ka-modal-dialog {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.ka-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e2d30;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}

.ka-modal-body {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin: 0 0 20px;
}

.ka-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── モーダル内ボタン ────────────────────────────────────
   .ka-modal-btn-primary  : メインアクション（mensブランドカラー）
   .ka-modal-btn-secondary: キャンセル・閉じる
   ─────────────────────────────────────────────────────── */
.ka-modal-btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
  padding: 13px 20px;
  border-radius: 999px;
  background: #638183;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.ka-modal-btn-primary:link,
.ka-modal-btn-primary:visited { color: #fff; }
.ka-modal-btn-primary:hover   { background: #4e6b6e; color: #fff; }

.ka-modal-btn-secondary {
  display: block;
  width: 100%;
  font-size: 13px;
  color: #888;
  padding: 10px 20px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.ka-modal-btn-secondary:hover { border-color: #aaa; color: #555; }
