/* CSS Document */

/* resset.dev • v5.0.2 */

/* # =================================================================
   # Global selectors
   # ================================================================= */

html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%; /* Prevent adjustments of font size after orientation changes in iOS */
  word-break: normal;
  -moz-tab-size: 4;
  tab-size: 4;
}

*,
::before,
::after {
  background-repeat: no-repeat; /* Set `background-repeat: no-repeat` to all elements and pseudo elements */
  box-sizing: inherit;
}

::before,
::after {
  text-decoration: inherit; /* Inherit text-decoration and vertical align to ::before and ::after pseudo elements */
  vertical-align: inherit;
}

* {
  padding: 0; /* Reset `padding` and `margin` of all elements */
  margin: 0;
}

/* # =================================================================
   # General elements
   # ================================================================= */

hr {
  overflow: visible; /* Show the overflow in Edge and IE */
  height: 0; /* Add the correct box sizing in Firefox */
  color: inherit; /* Correct border color in Firefox. */
}

details,
main {
  display: block; /* Render the `main` element consistently in IE. */
}

summary {
  display: list-item; /* Add the correct display in all browsers */
}

small {
  font-size: 80%; /* Set font-size to 80% in `small` elements */
}

[hidden] {
  display: none; /* Add the correct display in IE */
}

abbr[title] {
  border-bottom: none; /* Remove the bottom border in Chrome 57 */
  /* Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari */
  text-decoration: underline;
  text-decoration: underline dotted;
}

a {
  background-color: transparent; /* Remove the gray background on active links in IE 10 */
}

a:active,
a:hover {
  outline-width: 0; /* Remove the outline when hovering in all browsers */
}

code,
kbd,
pre,
samp {
  font-family: monospace, monospace; /* Specify the font family of code elements */
}

pre {
  font-size: 1em; /* Correct the odd `em` font sizing in all browsers */
}

b,
strong {
  font-weight: bolder; /* Add the correct font weight in Chrome, Edge, and Safari */
}

/* https://gist.github.com/unruthless/413930 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

table {
  border-color: inherit; /* Correct border color in all Chrome, Edge, and Safari. */
  text-indent: 0; /* Remove text indentation in Chrome, Edge, and Safari */
}

iframe {
  border-style: none;
}

/* # =================================================================
   # Forms
   # ================================================================= */

input {
  border-radius: 0;
}

[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button {
  height: auto; /* Correct the cursor style of increment and decrement buttons in Chrome */
}

[type='search'] {
  -webkit-appearance: textfield; /* Correct the odd appearance in Chrome and Safari */
  outline-offset: -2px; /* Correct the outline style in Safari */
}

[type='search']::-webkit-search-decoration {
  -webkit-appearance: none; /* Remove the inner padding in Chrome and Safari on macOS */
}

textarea {
  overflow: auto; /* Internet Explorer 11+ */
  resize: vertical; /* Specify textarea resizability */
}

button,
input,
optgroup,
select,
textarea {
  font: inherit; /* Specify font inheritance of form elements */
}

optgroup {
  font-weight: bold; /* Restore the font weight unset by the previous rule */
}

button {
  overflow: visible; /* Address `overflow` set to `hidden` in IE 8/9/10/11 */
}

button,
select {
  text-transform: none; /* Firefox 40+, Internet Explorer 11- */
}

/* Apply cursor pointer to button elements */
button,
[type='button'],
[type='reset'],
[type='submit'],
[role='button'] {
  cursor: pointer;
}

/* Remove inner padding and border in Firefox 4+ */
button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/* Replace focus style removed in the border reset above */
button:-moz-focusring,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
  outline: 1px dotted ButtonText;
}

button,
html [type='button'], /* Prevent a WebKit bug where (2) destroys native `audio` and `video`controls in Android 4 */
[type='reset'],
[type='submit'] {
  -webkit-appearance: button; /* Correct the inability to style clickable types in iOS */
}

/* Remove the default button styling in all browsers */
button,
input,
select,
textarea {
  background-color: transparent;
  border-style: none;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline-width: 0;
}

/* Style select like a standard input */
select {
  -moz-appearance: none; /* Firefox 36+ */
  -webkit-appearance: none; /* Chrome 41+ */
}

select::-ms-expand {
  display: none; /* Internet Explorer 11+ */
}

select::-ms-value {
  color: currentColor; /* Internet Explorer 11+ */
}

legend {
  border: 0; /* Correct `color` not being inherited in IE 8/9/10/11 */
  color: inherit; /* Correct the color inheritance from `fieldset` elements in IE */
  display: table; /* Correct the text wrapping in Edge and IE */
  max-width: 100%; /* Correct the text wrapping in Edge and IE */
  white-space: normal; /* Correct the text wrapping in Edge and IE */
  max-width: 100%; /* Correct the text wrapping in Edge 18- and IE */
}

::-webkit-file-upload-button {
  /* Correct the inability to style clickable types in iOS and Safari */
  -webkit-appearance: button;
  color: inherit;
  font: inherit; /* Change font properties to `inherit` in Chrome and Safari */
}

/* Replace pointer cursor in disabled elements */
[disabled] {
  cursor: default;
}

/* # =================================================================
   # Specify media element style
   # ================================================================= */

img {
  border-style: none; /* Remove border when inside `a` element in IE 8/9/10 */
}

/* Add the correct vertical alignment in Chrome, Firefox, and Opera */
progress {
  vertical-align: baseline;
}

/* # =================================================================
   # Accessibility
   # ================================================================= */

/* Specify the progress cursor of updating elements */
[aria-busy='true'] {
  cursor: progress;
}

/* Specify the pointer cursor of trigger elements */
[aria-controls] {
  cursor: pointer;
}

/* Specify the unstyled cursor of disabled, not-editable, or otherwise inoperable elements */
[aria-disabled='true'] {
  cursor: default;
}


/*
---------------------------------------------------------------------*/
#container {
    background: url("../img/bg.png");
    /*background-position:right;*/
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 100%;
    min-height: 100vh;
    background-repeat: no-repeat;
    color: #423d39;
}
#contents {
    width: 1216px;
    margin: 0 auto;
}
#tel {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}
h1 {
    margin: 20px 0;
}
h2 {
    margin: 20px 0;
}
h3 {
    text-align: center;
}
h4 {
    text-align: center;
    font-size: 17pt;
}
.flex-box {
    display: flex;
    margin: 50px 0;
}
.flex-item {
    border-radius:  5px; 
}
.flex-item:nth-child(1) {
}
.flex-item:nth-child(2) {
    width: 100%;
}
#search_point {
    position: absolute;
}
#seaech {
    position: relative;
    left: -160px;
}
#merit_text {
    margin-top: 160px;
}
#form {
    position: relative;
    width: 663px;
    border: solid 1px #e9366d;
    float: right;
    background: #FFF;
}
#form:after, #form:before {
    content: "";
    clear: both;
    display: block;
}
#form_title {
    text-align: center;
    background: #e9366d;
    padding: 10px 0;
}
#s30 {
    position: absolute;
    top: -30px;
    left: 40px;
}
#step_title1,#step_title2 ,#step_title3 ,#step_title4  {
    text-align: center;
    margin: 30px 0;
}
#step_title2 ,#step_title3 ,#step_title4  {
    display: none;
}
.n_t {
    display: flex;
    margin-bottom: 20px;
}
#form_content {
    width: 594px;
    margin: 0 auto;
}
.n_t2 {
    display: flex;
    margin-bottom: 5px;
}
.flex_check {
    display: flex;
}
.flex_check_step2 {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.flex_c_items {
    position: relative;
    width: 100%;
    border: solid 1px #e9366d;
    padding: 10px;
    margin: 0px 10px 10px 0;
    max-width: 188px;
}
.flex_c_items label{
    position: absolute;
    top: 9px;
    left: 30px;
    cursor: pointer;
}
.flex_c_items label:hover{
    color: #e9366d;
}
.flex_c_items input[type="checkbox"]:checked + label{
    color: #e9366d;
}

.flex_c_items2 {
    position: relative;
    width: 100%;
    border: solid 1px #e9366d;
    padding: 10px;
    margin: 0px 10px 10px 0;
}
.flex_c_items2 label{
    position: absolute;
    top: 2px;
    left: 30px;
    cursor: pointer;
    line-height: 20px;
}
.flex_c_items2 label:hover{
    color: #e9366d;
}
.flex_c_items2 input[type="checkbox"]:checked + label{
    color: #e9366d;
}

.flex_c_items3 {
    position: relative;
    width: 100%;
    padding: 10px 10px 10px 0px;
    margin: 0px 10px 5px 0;
}
.flex_c_items3:nth-child(1) {
    width: 200px;
}
#step1 {
    text-align: center;
    margin: 70px 0 30px 0;
}
#step2,#step3 {
    text-align: center;
}
#step2,#step3 {
    display: none;
}
#character2 {
    position: absolute;
    bottom: -60px;
    right: -140px;
}
#merit {
    display: flex;
    border: solid 3px #e9366d;
    margin-top: 20px;
}
.merit_box {
    position: relative;
    width: 100%;
    padding: 110px 10px 10px 10px;
}
.merit_box p{
}
.merit_icon {
    position: absolute;
    left: 150px;
    top: -30px;
}

.merit_box:nth-child(2) {
    border-left: dotted #e9366d 4px;
    border-right: dotted #e9366d 4px;
}
#fotter {
    margin-top: 40px;
    text-align: center;
    background: #e6e7e7;
    padding: 5px 0;
    font-size: 14px;
}
#select_items2,#select_items3 {
    display: none;
}
.m-form-text {
    height: 2.4em;
    width: 400px;
    padding: 0 16px;
    border-radius: 4px;
    border: none;
    box-shadow: 0 0 0 1px #ccc inset;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.m-form-text:focus {
    outline: 0;
    box-shadow: 0 0 0 2px rgb(33, 150, 243) inset;
}
#select_items1_error,#select_items2_error,#select_items3_error,#select_items4_error,#select_items5_error,#select_items6_error {
    color: red;
    display: none;
}
#thanks {
    width: 100%;
    display: none;
    text-align: center;
    margin-bottom: 200px;
}
.mt10 {
    margin-top: 20px;
}
#back2,#back3 {
    padding: 0 20px;
}
#back2 img,#back3 img{
    width: 60px;
}
#form_content input[type="date"]{
    width: auto;
}
.modoru {
    font-size: 26px;
    margin-top: 11px;
}
#gift {
    margin-top: 20px;
    margin-left: -100px;
}
.b_r {
    font-weight: bold;
    color: red;
}
@media screen and (max-width: 1216px) {
    #contents,#form_content  {
        width: 100%;
    }
    #tel {
        margin-top: 5px;
    }
    #tel img {
        max-width: 60%;
        height: auto;
    }
    h2 {
        margin: 0px 0;
    }
    h1 {
        margin-top: 0px;
    }
    h3 {
        margin-top: 50px;
    }
    h3 img,h2 img,h1 img,#seaech img {
        max-width: 95%;
        height: auto;
    }
    h1,h2,h3,#tel{
        text-align: center;
    }
    #form {
        float: none;
    }
    .flex-box {
        flex-flow: column;
    }
    #search_point {
        position: static;
    }
    #seaech {
        position: static;
        text-align: center;
    }
    #merit_text {
        max-width: 45%;
        margin-top: -110px;
    }
    .flex-item:nth-child(1) {
        text-align: center;
        margin-bottom: 10px;
    }
    #form {
        max-width: 100%;
        margin: 0 auto;
    }
    .flex_check {
        flex-flow: column;
    }
    #merit {
        flex-flow: column;
        margin: 40px auto 0 auto;
        width: 98%;
    }
    .merit_box:nth-child(2) {
        border-top: dotted #e9366d 4px;
        border-bottom: dotted #e9366d 4px;
        border-left: none;
        border-right: none;
        margin-top: 40px;
        padding-bottom: 40px;
    }
    .merit_icon {
        left: 40%;
    }
    .merit_icon img{
        width: 70%;
    }
    #character2 {
        position: absolute;
        bottom: -50px;
        right: 0;
        left: 10px;
    }
    #character2 img{
        width: 20%;
        height: auto;
    }
    .flex_c_items2 label {
        top: 10px;
    }
    .flex_c_items {
        width: 90%;
        margin: 5px auto;
    }
    .flex_c_items2 {
        width: 90%;
        margin: 5px auto;
    }
    #hissu_title1 {
        justify-content: center;
    }
    #s30 {
        top: 0px;
        left: 10px;
    }
    #s30 img {
        max-width: 40%;
    }
    .flex-box {
        margin: 20px 0;
    }
    .n_t2 {
        /*justify-content: center;*/
        margin-left: 5%;
    }
    .flex_c_items3 {
        margin: 0 auto;
    }
    .m-form-text {
        max-width: 100%;
    }
    #form_content input[type="text"],#form_content input[type="date"]{
        width: 90%;
    }
    .flex_c_items3:nth-child(1) {
        width: 100%;
        text-align: center;
    }
    #select_items3 .flex_c_items3:nth-child(1) {
        width: 100%;
        text-align: center;
        font-weight: bold;
    }
    .flex_check_step2 {
    }
    .flex_check_step2 img{
        width: 100%;
    }
    .flex_check_step2 {
        width: 80%;
    }
    #back2,#back3 {
        text-align: right;
    }
    #step2,#step3 {
        text-align: left;
    }
    #back2 img, #back3 img {
        width: 25%;
    }
    #step1 {
        margin: 30px 0 30px 0;
    }
    #qa1,#qa2,#qa3,#qa4,#qa5{
        text-align: center;
    }
    #select_items3 .flex_check{
        flex-flow: inherit;
    }
    #thanks {
        margin-bottom: 50px;
        padding: 10px;
    }
    .merit_box {
        padding: 75px 10px 10px 10px;
    }
    
    .flex-item:nth-child(2) {
        padding: 0 5px;
    }
    .modoru {
        font-size: 20px;
        margin-top: 3px;
        min-width: 100px;
    }
    #form_title img{
        width: 60%;
        padding-top: 4px;
    }    
    #gift {
        width: 90%;
        margin-left: 0px;
    }
}