@font-face {
  font-family: 'Kaisei Opti';
  src: url('fonts/KaiseiOpti-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
    background-color: #1e2b50;
    color: #f0e1b1;
    font-family: "Kaisei Opti", "メイリオ", sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
}

.header-container {
    width: 100%;
    background-color: #1e2b50;
    padding-top: 1em;
}

.header-image {
    max-width: 100%;
    height: auto;
}

.form-container {
    margin: 2em auto;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2em;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 20px rgba(240, 225, 177, 0.3);
}

ul, .desc {
  text-align: left;
}

.list-topic {
  margin-bottom: 1em;
}

button {
    background-color: #eacb4e;
    border: none;
    color: #1e2b50;
    padding: 0.5em 1.5em;
    border-radius: 5px;
    margin-top: 1em;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background-color: #f5dc7e;
}

.result {
    margin-top: 1em;
    font-size: 1.1em;
    color: #fff8d6;
}

.mail-form {
    display: none;
    margin-top: 2em;
    color: #fff8d6;
}

.mail-icon {
  max-width: 30%;
  height: auto;
}

.magic-card-text {
  text-align: left;
}

.magic-card-cta {
  color: #f5dc7e;
}

.magic-card-img {
  max-width: 100%;
  height: auto;
}

.result-paper-img {
  max-width: 60%;
  height: auto;
}

@media (max-width: 600px) {
  .result-paper-img {
    max-width: 100%;
  }
}

.big-font {
  font-size: 1.2em;
}

.small-font {
  font-size: 0.8em;
}

.margin-btm {
  margin-bottom: 0.5em;
}

.text-center {
  text-align: center;
  color: #000000;
}

/* Fullscreen overlay */
#modal, #mail_policy {
  position: fixed;            /* スクロール位置に依らず全画面 */
  top: 0; left: 0; right: 0; bottom: 0;
  display: none;              /* 切り替えは display で */
  z-index: 100;               /* 指定の z-index */
  background: rgba(0,0,0,0.3);/* うっすら暗く（不要なら削除OK） */
  align-items: center;        /* Flexで中央寄せ */
  justify-content: center;
}

/* 中央のボックス*/
#modal .modal__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 80vh;
  background-color: #ffffff;
  padding: 1em;
}

/* 画像サイズはお好みで */
#modal img {
  max-width: 160px;  /* 例: 160px。大きければ調整してください */
  height: auto;
}

/* メールポリシーのボックス*/
#mail_policy .mail-policy-text {
  color: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding: 1em;
}

.policy-font {
  margin-top: 0.5em;
  color: #b9d2f0;
  cursor: pointer;
}

.mail-input {
  max-width: 100%;
}
