/* STUDIO から移行した際に追加したスタイル */

/* スマホ・タブレット用メニュー（STUDIO の切り替え幅 840px に合わせる） */
@media screen and (max-width: 840px) {
  header.is-menu-open > div:nth-of-type(1) {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    width: auto !important;
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
    z-index: 100;
  }
  header.is-menu-open > div:nth-of-type(1) > div {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: auto !important;
  }
  header.is-menu-open > div:nth-of-type(1) > a {
    align-self: stretch;
    justify-content: center;
  }
}

/* フォーム送信結果のメッセージ */
.form-message:empty { display: none; }
.form-message {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
.form-message[data-state="ok"] { color: #1a7f37; }
.form-message[data-state="error"] { color: #d1242f; }

/* スパム対策の隠し欄（人には見せない。入力があった送信は API が破棄する） */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
