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

:root {
  --cp-color-main: #00479D;
  --cp-color-sub: #e60012;
  --width-max: 768px;
}

body {
  font-family: "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic", sans-serif;
}

img {
  vertical-align : bottom;
}

header {
  padding-left: .5rem;
}

header h1 {
    max-width: var(--width-max);
    margin: 0 auto;
}

header a {
  display: inline-block;
}

header img {
  max-height: 64px;
}

footer {
  padding: 1rem 0;
}

footer p {
  text-align: center;
}

main {
  max-width: var(--width-max);
  margin: 0 auto;
  border-bottom: var(--cp-color-main) 2px solid;
}

main h1 {
  background-color: var(--cp-color-main);
  color: #fff;
  font-size: 1.25rem;
  line-height: 2rem;
  text-align: center;
  padding: 1rem 0;
}

main h1 span {
  display: block;
  font-size: 1.75rem;
}

.refund-guide {
  margin: .75rem .75rem 2rem;
  padding: 1.25rem;
  border: 1px solid #bbb;
  border-radius: 1rem;
  background-color: #fafafa;
}

.refund-guide section {
  border-top: 2px dashed #c0c0c0;
  padding: 1rem 0;
}

.refund-guide h2 {
  color: var(--cp-color-main);
  font-size: 1.75rem;
  text-align: center;
  margin: 1rem auto;
}

.refund-guide p {
  margin-bottom: 1rem;
  line-height: 1.5rem;
}

.guide-pick {
  text-align: center;
}

.refund-guide ol,
.refund-guide ul {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

.refund-guide li {
  margin-bottom: .75rem;
  line-height: 1.5rem;
  overflow-wrap: anywhere;
}

.refund-info {
  margin: 4rem 1rem;
  border: 2px solid var(--cp-color-sub);
  padding: 2.5rem 1.5rem 1.5rem;
}

.refund-info p {
  color: var(--cp-color-sub);
  font-size: 1.25rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
}

.refund-entry {
  max-width: var(--width-max);
  margin: 0 auto;
}

fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

legend {
  width: 100%;
  padding-inline: unset;
  font-weight: bold;
}

.refund-entry > fieldset > legend {
  position: relative;
  border-bottom: 3px solid var(--cp-color-sub);
  font-size: 1.3rem;
  padding-left: 1rem;
}

.refund-entry > fieldset > fieldset {
  margin: 0 auto 1.5rem;
}
.refund-entry > fieldset > fieldset.borderTop {
  border-top: 1px solid #ccc;
  padding-top: 1rem;
}

.refund-entry > fieldset > fieldset legend {
  background-color: #eee;
  font-size: 1rem;
  text-indent: 1rem;
  line-height: 2.5rem;
}

.enrty-caution {
  list-style: none;
}

.entry-caution li {
  font-size: .85rem;
  margin-left: 2rem;
} 
.entry-caution li::marker {
  content: '※';
}

.caution-em {
  color: var(--cp-color-sub);
  font-weight: bold;
}

.flex-container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.flex-item p {
  line-height: 3rem;
}

.flex-item-2 { flex-basis: 20%;}
.flex-item-3 { flex-basis: 30%;}
.flex-item-4 { flex-basis: 40%;}
.flex-item-5 { flex-basis: 50%;}
.flex-item-6 { flex-basis: 60%;}
.flex-item-7 { flex-basis: 70%;}
.flex-item-8 { flex-basis: 80%;}

.entry-input {
  margin: 1rem auto .5rem;
  padding: 0 1rem;
}

.entry-select .select {
  position: relative;
}
.entry-select .select::after {
  content: "";
  position: absolute;
  top: 0.25rem;
  right: 1rem;
  margin: auto;
  width: .4rem;
  height: .4rem;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
  z-index: 1;
}

.refund-entry label {
  font-size: 1rem;
  font-weight: bold;
}

.entry-required {
  margin-left: .5rem;
}
.entry-required:after {
  content : '*必須';
  font-size: .75rem;
  color: var(--cp-color-sub);
}

.error-message {
  color: var(--cp-color-sub);
  font-size: .85rem;
}

input, select {
  background-color: #fafafa;
  width: 100%;
  height: 3rem;
  margin: 2px 0;
  color: #000;
  font-size: .8rem;
  border-radius: .25rem;
  vertical-align: middle;
  border: 1px solid #bbb;
}

input:focus,
select:focus {
  outline: 2px solid var(--cp-color-main);
  border: none;
}

input {
  text-indent: .5rem;
}
input:-webkit-autofill {
  box-shadow: 0 0 0 1000px #fafafa inset;
}

select {
  padding: .5rem 0 .5rem 1rem;
  appearance: none;
}

.refund-entry var {
  font-style: normal;
}

.app-info {
  padding: 1rem;
}

.app-info dt {
  font-weight: bold;
}

.app-info dd {
  background-color: #fafafa;
  margin: 2px 0 1.5rem;
  font-size: .8rem;
  line-height: 3rem;
  text-indent: 1rem;
  vertical-align: middle;
  border: 1px solid #bbb;
  border-radius: .25rem;
}

.entry-submit {
  text-align: center;
  margin: 2rem auto;
}

.entry-submit button {
  background-color: var(--cp-color-main);
  width: 60%;
  color: #fff;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 4rem;
  margin-bottom: .5rem;
  border: none;
  border-radius: .5rem;
  transition: background 0.2s, transform 0.1s;
}

.entry-submit button:hover:not(:disabled) {
  background: #357abd;
  transform: translateY(-1px);
}

.entry-submit button:disabled {
  background-color: #ccc;
  color: #eee;
}