/*大会参加ボタン*/
/* 申込み導線ブロック（免責ページへ誘導） */
.apply-area {
  margin: 2em 0;
  padding: 1.2em 1.2em 1.4em;
  background: #f7f7f7;
  border-left: 4px solid var(--color-accent);
  text-align: left;
  /* 右寄り感を出さない */
}

/* 補足文 */
.apply-note {
  margin: 0 0 0.9em;
  font-size: 1em;
  /* 少しだけ上げる */
  line-height: 1.7;
}

/* ボタン本体 */
.apply-btn {
  display: inline-flex;
  /* 横並びのまま */
  align-items: center;
  justify-content: center;
  gap: 0.5em;

  padding: 0.95em 1.4em;
  /* 少し大きくして押しやすく */
  font-size: 1.05em;
  /* ほんの少しだけ大きく */
  font-weight: 700;

  color: #fff;
  text-decoration: none;
  border-radius: 6px;

  background: var(--color-accent);
  /* フォールバック */
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);

  line-height: 1.2;
  white-space: normal;
  max-width: 100%;
}

/* var(--color-accent) を“自動で少し濃く”できるブラウザでは濃くする
   → 白文字とのコントラスト改善（対応ブラウザは増えてる） */
@supports (color: color-mix(in srgb, #000 10%, #fff)) {
  .apply-btn {
    background: color-mix(in srgb, var(--color-accent) 82%, #000);
  }
}

/* hover / focus */
.apply-btn:hover {
  filter: brightness(0.95);
}

.apply-btn,
.apply-btn:visited,
.apply-btn:hover,
.apply-btn:focus,
.apply-btn:active {
  color: #fff;
}

.apply-btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-accent) 60%, #fff);
  outline-offset: 3px;
}

/* スマホ最適化：幅いっぱい＆押しやすく */
@media (max-width: 600px) {
  .apply-btn {
    width: 100%;
  }
}

/*免責ページ　disclaimer.php*/
.disclaimer h2 {
  font-size: 2rem;
  text-align: center;
}

.disclaimer .a_cnt h3,
.disclaimer .a_cnt h4 {
  margin-top: 2em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #ddd;
}

.disclaimer .a_cnt li {
  line-height: 1.6em;
}

.disclaimer .registration .a_cnt li {
  margin-bottom: 0.4em;
  margin-top: 0.4em;
}

.disclaimer .a_cnt ul ul > li::before {
  border-radius: 50%;
  width: 5px;
  height: 5px;
  display: block;
  position: absolute;
  left: -1em;
  top: 0.7em;
  content: "";
  background: #222;
  border: none;
}

.disclaimer-agree {
  margin: 2em 0 1em;
  font-size: 0.95em;
}

.disclaimer-agree input {
  margin-right: 0.5em;
}

.apply-button {
  display: inline-block;
  padding: 0.6em 1.5em;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 120%;
}

.apply-button.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.disclaimer-note {
  margin-top: 2em;
  font-size: 0.95em;
}

/*bento.php*/
/* ===== PC / タブレット：普通にテーブル ===== */
.bento {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.bento th,
.bento td {
  border: 1px solid #cfcfcf;
  padding: 10px 12px;
  vertical-align: top;
}

.bento th {
  background: #f3f3f3;
  font-weight: 700;
}

.bento td:nth-child(2) {
  white-space: nowrap;
  /* 金額を折らない */
  width: 9ch;
  text-align: center;
}

.registration table.bento {
  margin-bottom: 0;
}

.registration table.bento th:last-child,
.registration table.bento td:last-child {
  border: 1px solid #cfcfcf;
}

.bento {
  table-layout: fixed;
}

.bento .col-menu {
  width: 30%;
}

.bento .col-price {
  width: 20%;
}

/* 注意書き */
.bento-note {
  margin-top: 1em;
  font-size: 0.95em;
}

/* ===== スマホ：テーブルを「文字列表示」に変形 ===== */
@media (max-width: 767px) {
  /* テーブル構造を視覚的に無効化して縦並びにする */
  .bento,
  .bento thead,
  .bento tbody,
  .bento tr,
  .bento th,
  .bento td {
    display: block;
  }

  /* 見出し行は隠す（代わりに data-label を表示） */
  .bento thead {
    display: none;
  }

  /* 1件ごとにカード風のまとまり */
  .bento tr {
    border: 1px solid #cfcfcf;
    padding: 12px;
    margin: 0 0 12px;
    border-radius: 10px;
    background: #fff;
  }

  /* 各項目を「ラベル：内容」の文字列表示に */
  .bento td {
    border: 0;
    padding: 6px 0;
  }

  .bento td::before {
    content: attr(data-label) "：";
    font-weight: 700;
    display: inline;
    margin-right: 6px;
  }

  /* 内容だけは読みやすく改行を活かす */
  .bento td[data-label="内容"] {
    margin-top: 4px;
  }

  /* 金額はちょい強調したいなら（不要なら消してOK） */
  .bento td[data-label="金額"] {
    white-space: nowrap;
  }

  .bento,
  .bento tr,
  .bento td {
    border: none !important;
  }

  /* カード外枠だけは改めて付け直す */
  .bento tr {
    border: 1px solid #cfcfcf !important;
  }

  .bento th,
  .bento td {
    padding: 0.2em 1.5em !important;
  }
}
