@charset "UTF-8";

:root
{
  --primary: #E74909;
  --primary-dark: #D54207;
  --bg: #FBFDEF;
  --card: #ffffff;
  --border: #d9dde3;
  --text: #333333;
  --text-sub: #798489;
  --danger: #c0392b;
  --success: #15B6C6;
}

*
{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body
{
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header
{
  text-align: center;
}

header .inner
{
  max-width: 528px;
  margin: 0 auto;
}

header .inner img
{
  width: 100%;
}

main
{
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* ステップ表示 */
.steps
{
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  counter-reset: step;
}

.step
{
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--text-sub);
  position: relative;
}

.step::before
{
  counter-increment: step;
  content: counter(step);
  display: block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  border-radius: 50%;
  background: #cfd6de;
  color: #fff;
  font-weight: 700;
  margin: 0 auto 6px;
}

.step:not(:first-child)::after
{
  content: "";
  position: absolute;
  top: 14px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: #cfd6de;
  z-index: -1;
}

.step.active::before
{
  background: var(--primary);
}

.step.active
{
  color: var(--primary);
  font-weight: 700;
}

.step.done::before
{
  background: var(--success);
  content: "✓";
}

.txt-box
{
  max-width: 90vw;
  margin: 0 auto;
  font-size: 13px;
}

.card
{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
}

.card h2
{
  font-size: 20px;
  text-align: center;
  margin-top: 30px;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.card .sub
{
  font-size: 12px;
  text-align: center;
  color: var(--text-sub);
  margin-bottom: 20px;
}

p.small
{
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-sub);
}

.screen
{
  display: none;
}

.screen.visible
{
  display: block;
  animation: fade .3s ease;
}

@keyframes fade
{
  from
  {
    opacity: 0;
    transform: translateY(6px);
  }

  to
  {
    opacity: 1;
    transform: none;
  }
}

/* ボタン */
.btn
{
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  transition: background .15s;
}

.btn:hover
{
  background: var(--primary-dark);
}

.btn:disabled
{
  background: #c3cbd4;
  cursor: not-allowed;
}

.btn-outline
{
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover
{
  background: #eef3f8;
}

.btn-row
{
  display: flex;
  gap: 12px;
  margin: 20px 0;
}

/* フォーム注意事項 */
.scroll
{
  width: 100%;
  height: 200px;
  overflow-y: scroll;
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  padding: 5px
}

.scroll ul
{
  padding-left: 15px;
}

.scroll ul li
{}

label.field-label
{
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 18px 0 6px;
}

.required::after
{
  content: "必須";
  font-size: 10px;
  color: #fff;
  background: var(--danger);
  border-radius: 3px;
  padding: 1px 6px;
  margin-left: 8px;
  font-weight: 700;
  vertical-align: 1px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select
{
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  background: #fff;
}

input:focus,
select:focus
{
  outline: 2px solid var(--primary);
  border-color: transparent;
}

/* アップロード枠 */
.upload-box
{
  border: 2px dashed var(--border);
  border-radius: 8px;
  margin-top: 20px;
  padding: 28px 16px;
  text-align: center;
  color: var(--text-sub);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.upload-box:hover
{
  border-color: var(--primary);
  background: #f2f7fb;
}

.upload-box .icon
{
  font-size: 30px;
  display: block;
  margin-bottom: 8px;
}

.upload-box.has-file
{
  border-color: var(--success);
  color: var(--success);
  background: #f1f8f4;
}

/* 注意事項 */
.notice
{
  font-size: 11px;
}

.section-title
{
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  border-left: 4px solid var(--primary);
  padding-left: 10px;
  margin: 28px 0 4px;
}

.section-title:first-of-type
{
  margin-top: 0;
}

.badge-ext
{
  display: inline-block;
  font-size: 10px;
  background: #eef2f6;
  color: var(--text-sub);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 8px;
  margin-bottom: 12px;
}

.complete-icon
{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 32px;
  line-height: 64px;
  text-align: center;
  margin: 0 auto 16px;
}

.ng-icon
{
  background: var(--danger);
}

.center-note
{
  font-size: 12px;
  color: var(--text-sub);
  text-align: center;
}

footer
{
  text-align: center;
  font-size: 11px;
  color: var(--text-sub);
  padding: 20px 16px;
  border-top: 1px solid var(--border);
  background: #fff;
}

footer .warn
{
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.err
{
  color: var(--danger);
  font-size: 12px;
  margin-top: 4px;
  display: none;
}