@charset "UTF-8";

/*
 * Tamca registration form.
 *
 * The two brand colours are sampled from the supplied artwork:
 * the card blue is #006EB6 and the logo yellow is #FFF100.
 */

:root {
  --blue:        #006eb6;
  --blue-dark:   #005693;
  --blue-light:  #e8f2fa;
  --yellow:      #fff100;
  --fg:          #1b1b1b;
  --muted:       #6b7280;
  --line:        #dfe3e8;
  --page:        #eef3f7;
  --card:        #ffffff;
  --req:         #d93025;
  --ok:          #1e7b34;
  --radius:      10px;
  --shadow:      0 1px 3px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 46, 78, .06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 0 56px;
  color: var(--fg);
  background: var(--page);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium",
               "Yu Gothic", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.8;
}

img { max-width: 100%; height: auto; vertical-align: bottom; }

a { color: var(--blue); }

/* ---- site header -------------------------------------------------------- */

.site-header {
  background: #fff;
  border-bottom: 4px solid var(--yellow);
}

.site-header .banner {
  display: block;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
  line-height: 0;
}

.site-header .banner img {
  width: 100%;
  height: auto;
  display: block;
}

.site-header .bar { background: var(--blue); }

.site-header .inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 8px 16px;
}

.site-header .name {
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: .04em;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
}

h1 {
  margin: 22px 0 6px;
  font-size: 21px;
  line-height: 1.5;
}

h1 .sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: normal;
  letter-spacing: .08em;
}

/* ---- step indicator ----------------------------------------------------- */

.steps {
  display: flex;
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
  counter-reset: step;
}

.steps li {
  flex: 1;
  position: relative;
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  padding-top: 34px;
}

/* the connecting rail */
.steps li::before {
  content: "";
  position: absolute;
  top: 12px;
  left: -50%;
  width: 100%;
  height: 3px;
  background: var(--line);
}

.steps li:first-child::before { display: none; }

.steps .no {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  color: var(--muted);
  font-weight: bold;
  font-size: 12px;
  line-height: 23px;
  z-index: 1;
}

.steps li.done { color: var(--blue); }
.steps li.done::before { background: var(--blue); }
.steps li.done .no {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.steps li.current { color: var(--blue); font-weight: bold; }
.steps li.current::before { background: var(--blue); }
.steps li.current .no {
  background: var(--yellow);
  border-color: var(--blue);
  color: var(--blue-dark);
  box-shadow: 0 0 0 4px rgba(0, 110, 182, .15);
}

.steps .label { display: block; padding: 0 2px; }

/* ---- blocks ------------------------------------------------------------- */

.box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 18px;
}

.box > h2:first-child { margin-top: 0; }

h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 30px 0 4px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-light);
  font-size: 16px;
}

h2::before {
  content: "";
  width: 5px;
  height: 18px;
  border-radius: 3px;
  background: var(--blue);
  flex: none;
}

/* benefits strip */
.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  background: var(--blue-light);
  border: 1px solid #cfe3f3;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 18px;
}

.benefits .card-pic { width: 150px; flex: none; }

.benefits .body { flex: 1 1 320px; }

.benefits h2 {
  margin: 0 0 6px;
  border: none;
  padding: 0;
  font-size: 15px;
}

.benefits ul {
  margin: 0;
  padding-left: 1.2em;
  font-size: 13px;
  line-height: 1.75;
}

.benefits .fee {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: bold;
  color: var(--blue-dark);
}

/* ---- form --------------------------------------------------------------- */

dl { margin: 0; }

dt {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: bold;
}

dd { margin: 6px 0 0; }

.req, .any {
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: .04em;
  flex: none;
}

.req { background: var(--req); color: #fff; }
.any { background: #eceff3; color: var(--muted); }

input[type="text"], input[type="email"], input[type="password"], select, textarea {
  padding: 11px 10px;
  border: 1px solid #b6bdc6;
  border-radius: 6px;
  background: #fff;
  font-size: 16px;   /* 16px keeps iOS from zooming on focus */
  font-family: inherit;
  max-width: 100%;
}

textarea {
  width: 100%;
  resize: vertical;
  line-height: 1.7;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 110, 182, .18);
}

select { background: #fff; }

.field-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.field-row .sep { color: var(--muted); }

/* radio and checkbox pills */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }

.choices label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid #c3cad3;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}

.choices label:hover { border-color: var(--blue); }

.genres { display: flex; flex-wrap: wrap; gap: 8px; }

.genres label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 13px;
  border: 1px solid #c3cad3;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}

.genres label:hover { border-color: var(--blue); }

.hint { color: var(--muted); font-size: 12px; }

.note { color: var(--muted); font-size: 13px; }
.note.small { font-size: 12px; }

.err {
  margin: 6px 0 0;
  padding: 7px 10px;
  border-radius: 5px;
  background: #fdecea;
  color: var(--req);
  font-size: 13px;
}

.error-box {
  border-color: #f2b8b5;
  background: #fdecea;
}
.error-box > p { margin: 0; color: var(--req); font-weight: bold; }
.error-box h2 { border-bottom-color: #f2b8b5; margin-top: 0; }
.error-box h2::before { background: var(--req); }

/* card number group gets a tinted panel, it is the part people stumble on */
.card-fields {
  background: #f7fbfe;
  border: 1px dashed #b9d9ef;
  border-radius: var(--radius);
  padding: 4px 16px 18px;
}

/* ---- confirmation / completion ------------------------------------------ */

dl.confirm { display: block; }

dl.confirm dt {
  display: block;
  margin: 0;
  padding: 12px 0 0;
  font-size: 12px;
  font-weight: normal;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

dl.confirm dd {
  margin: 0 0 12px;
  font-size: 15px;
  word-break: break-all;
}

dl.confirm dt:first-child { border-top: none; padding-top: 0; }

.done-mark {
  display: block;
  width: 56px;
  height: 56px;
  margin: 4px auto 10px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 30px;
  line-height: 56px;
  text-align: center;
}

.center { text-align: center; }

.point-badge {
  display: inline-block;
  margin: 6px 0;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--yellow);
  color: #4a4300;
  font-weight: bold;
}

.mail-to {
  display: inline-block;
  margin: 2px 0 6px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--blue-light);
  font-weight: bold;
  word-break: break-all;
}

/* ---- buttons ------------------------------------------------------------ */

.actions { margin: 26px 0 0; text-align: center; }

.btn {
  display: inline-block;
  min-width: 220px;
  padding: 14px 26px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 15px;
  font-weight: bold;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.btn:hover { background: var(--blue-light); }

.btn.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 3px 0 var(--blue-dark);
}

.btn.primary:hover { background: var(--blue-dark); box-shadow: 0 2px 0 var(--blue-dark); }

.two-buttons {
  display: flex;
  flex-wrap: wrap-reverse;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}

.two-buttons form { margin: 0; }

/* ---- footer ------------------------------------------------------------- */

.site-footer {
  margin-top: 30px;
  padding: 20px 16px;
  border-top: 3px solid var(--blue);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.site-footer p { margin: 0 0 4px; }

.site-footer .shop-name {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: bold;
}

.site-footer .copy { margin: 10px 0 0; font-size: 11px; }

/* ---- narrow screens ----------------------------------------------------- */

@media (max-width: 640px) {
  body { font-size: 14px; }
  .site-header .banner { padding: 0 12px; }
  h1 { font-size: 18px; }
  .steps li { font-size: 9px; padding-top: 30px; }
  .steps .no { width: 23px; height: 23px; line-height: 19px; font-size: 11px; }
  .box { padding: 16px; }
  .benefits { gap: 12px; }
  .benefits .card-pic { width: 110px; margin: 0 auto; }
  .btn { width: 100%; min-width: 0; }
  .two-buttons { flex-direction: column-reverse; }
}

/* ---- 自動送信よけの確認 -------------------------------------------------- */

.captcha {
  margin: 24px 0 0;
  padding: 16px;
  border: 1px solid #d8dde3;
  border-radius: 8px;
  background: #f8fafb;
}

.captcha__lead { margin: 0 0 12px; font-size: 14px; }

.captcha__row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.captcha__img {
  display: block;
  border: 1px solid #c9d1d9;
  border-radius: 4px;
  background: #fff;
}

.captcha__reload {
  padding: 7px 14px;
  font-size: 13px;
}

.captcha__field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 6px;
}

.captcha__field input {
  font-size: 18px;
  letter-spacing: .3em;
  padding: 6px 10px;
}

@media (max-width: 480px) {
  .captcha__row { gap: 8px; }
  .captcha__reload { width: 100%; }
}
