.raiten-page { background: #fff; color: #222; min-width: 0; }
.raiten-page *, .raiten-page *::before, .raiten-page *::after { box-sizing: border-box; }
.main-contact.raiten-main { max-width: 960px; padding: 32px 20px; margin: 0 auto; }
.raiten-main .formInner { width: 100%; margin: 24px 0; }
.raiten-main .formInner table { width: 100%; table-layout: fixed; }
.raiten-main input:not([type=checkbox]):not([type=hidden]):not([type=submit]), .raiten-main select, .raiten-main textarea { box-sizing: border-box; min-width: 0; max-width: 100%; width: 100%; padding: 12px; font-size: 16px; border: 1px solid #999; border-radius: 0; }
.raiten-main input[type=checkbox] { width: 20px; height: 20px; vertical-align: middle; }
.raiten-main a { text-decoration: underline; }
.raiten-main .raiten-birth { display: flex; gap: 10px; }
.raiten-birth label { display: flex; align-items: center; gap: 4px; min-width: 0; }
.raiten-birth label:first-child { flex: 2; }
.raiten-birth label { flex: 1; }
.raiten-main .btn { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.raiten-main button { padding: 12px 12px; font-size: 16px; border: 0; background: #222; color: white; cursor: pointer; width: auto; }
.raiten-main button.return { background: #fff; color: #222; border: 1px solid #222; }
/* 入力画面の同意欄と確認ボタンはstyle-contact.cssのcontact共通デザインを使用。 */
.raiten-main button.submit {
        background: url(../img/contact/ico_arrow_btn_off.svg) right 1rem center no-repeat #e48900;
        -webkit-appearance: none;
        -moz-appearance: none;
        color: #fff;
        width: 8rem;
        transition: opacity .2s;
        -webkit-transition: opacity .2s;
        -moz-transition: opacity .2s;
        -o-transition: opacity .2s;  }
.raiten-main button:disabled { background: #ddd; color: #555; cursor: default; }
.raiten-message { padding: 16px; margin: 20px 0; border: 1px solid #b22; background: #fff6f6; }
.raiten-message ul { padding-left: 20px; }
.raiten-age { margin: 24px 0; }
.raiten-main .raiten-steps { display: flex; width: 100%; max-width: 600px; margin: 28px auto 32px; padding: 0; list-style: none; }
.raiten-steps .raiten-step { position: relative; flex: 1; min-width: 0; padding: 0 4px; text-align: center; color: #666; font-size: 15px; font-weight: bold; }
.raiten-step::before { content: ''; position: absolute; top: 19px; left: -50%; width: 100%; height: 2px; background: #ddd; }
.raiten-step:first-child::before { display: none; }
.raiten-step .raiten-step-number { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 auto 10px; border: 2px solid #ddd; border-radius: 50%; background: #fff; color: #666; font-size: 18px; }
.raiten-step .raiten-step-label { display: inline-block; padding-bottom: 6px; border-bottom: 3px solid transparent; }
.raiten-steps .raiten-step.is-current { color: #854a00; }
.raiten-step.is-current .raiten-step-number { background: #e48900; border-color: #e48900; color: #222; }
.raiten-step.is-current .raiten-step-label { border-bottom-color: #e48900; }
.raiten-step.is-done .raiten-step-number { background: #fff5e5; border-color: #e48900; color: #854a00; }
.raiten-step.is-done::before, .raiten-step.is-current::before { background: #e48900; }
.raiten-multiline { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 640px) {
  .raiten-main .raiten-steps { margin: 24px auto; }
  .raiten-steps .raiten-step { font-size: 13px; }
  .raiten-main .formInner table, .raiten-main .formInner tbody, .raiten-main .formInner tr, .raiten-main .formInner th, .raiten-main .formInner td { display: block; width: auto; box-sizing: border-box; }
  .raiten-main .formInner th, .raiten-main .formInner td { padding: 14px; }
  .raiten-main .formInner th { text-align: left; }
  .raiten-main .formInner td { margin-bottom: 12px; }
}

.raiten-message.raiten-success { border-color: #387044; background: #f3faf4; }

/* 体験予約と同じ共通ヘッダー・フッターはstyle.cssを使用する。 */
.raiten-page .raiten-main { scroll-margin-top: 180px; }
.raiten-main input::placeholder, .raiten-main textarea::placeholder { color: #737373; opacity: 1; }
.raiten-main input[type=submit]:disabled, .raiten-main button:disabled { opacity: .65; cursor: wait; }
.raiten-loading[hidden] { display: none !important; }
.raiten-loading { position: fixed; inset: 0; z-index: 10000; display: flex; justify-content: center; align-items: center; padding: 24px; background: rgba(0,0,0,.55); }
.raiten-loading-panel { width: 100%; max-width: 360px; padding: 32px 20px; background: #fff; text-align: center; border-radius: 4px; color: #222; }
.raiten-loading-panel p { margin: 12px 0 0; }
.raiten-spinner { display: inline-block; width: 40px; height: 40px; border: 4px solid #ddd; border-top-color: #222; border-radius: 50%; animation: raiten-spin .8s linear infinite; }
@keyframes raiten-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .raiten-spinner { animation: none; } }
@media (max-width: 640px) { .raiten-page .raiten-main { scroll-margin-top: 100px; } }
