
#main {
  display: flex;
  margin: 0 auto;
  width: 1260px;
}

.main_contents {
	display: block;
	width: 55%;
	text-align: center;
	background-color: rgb(255 255 255 / 0.3);
	box-shadow: 0px 0px 8px 8px rgb(255 255 255 / 0.3);
	margin: 15px 0 15px auto;
}

#introduse {
	font-size: x-large;
	padding: 0 0 15px;
	text-align: center;
}

#memo {
   width: 466px;
   padding: 15px;
   margin: 10px 0 0 20%;
   color: #fff;/* 文字色 */
   box-shadow: 4px 4px 4px rgba(0,0,0,0.03);transform:rotate(2deg);
   word-break: break-all;
	background: #FFD1B8;
}

#memo p {
    margin: 0; 
    padding: 0;
    color: #454545;
    font-size: 0.9em;
}

#tape {
    width: 45%;
    height: 35px;
    margin: -40px auto 10px;
    background: #B8FFF4;
	background-image: radial-gradient(#fff 25%, transparent 20%), radial-gradient(#fff 25%, transparent 20%);
	background-size: 20px 20px;
	background-position: 0 0, 10px 10px;
    transform: rotate(-7deg);
    opacity: 0.8;
}

.inputForm {
	display: flex;
	align-items: center;
	justify-content: center;
}

form {
	font-size: x-large;
	width: 100%;
	border: 5px dashed #FFB6C1;
	border-radius: 20px;
}

#inputForm {
	position: relative;
	text-align: center;
	padding: 14px 20px;
}

input#name, input#year{
	font-size: x-large;
	text-align: center;
	width: 140px;
	border: none;
    background: #f7f7f7;
    color: #333;
    line-height: 1.5;
}
input#month, input#day {
	font-size: x-large;
	text-align: center;
	width: 50px;
	border: none;
    background: #f7f7f7;
    color: #333;
    line-height: 1.5;
}

input#name::placeholder {
    color: #999;
}

.btn_box {
  margin: auto;
  width: fit-content;
}

#btn_animation .btn{
  display: block;
  width: 170px;
  height: 62px;
  line-height: 62px;
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
  background-color: #FFB6C1;
  color: #fff;
  text-align: center;
  cursor: pointer;
  border-radius: 78px;
  border: none;
  animation: btn_animation 3s infinite;
}

@keyframes btn_animation {
    0% {
        transform: scale(1, 0.8);
    }
    20% {
        transform: scale(0.8, 1.1);
    }
    95% {
        transform: scale(1, 1);
    }
    100% {
        transform: scale(1, 0.8);
    }
}

#summary {
	font-size: medium;
	width: 85%;
	position: relative;
  display: block;
  margin: 20px auto;
  box-shadow: 0 2px 3px rgba(0,0,0,.22);
  padding: 45px 8px 22px 8px;
  background-color: #c2f1fa;
  background-size: 8px 100%,100% 2em;
  color: #3e3936;
  text-decoration: underline 2px rgba(255, 255, 255, .8);
}

#summary_title {
	font-size: x-large;
	text-align: center;
}

#summary_title:before {
  position: absolute;
  content: "";
  top: 25px;
  width: 10%;
  height: 35px;
  opacity: 0.8;
  margin: -40px auto 10px -22px;
  background-color: #FFF4B8;
  background-image:
  linear-gradient(-45deg, rgba(255, 209, 184,.8) 25%, transparent 25%, transparent 50%, rgba(255, 209, 184,.8) 50%, rgba(255, 209, 184,.8) 75%, transparent 75%, transparent 100%),
  linear-gradient(45deg, rgba(255, 209, 184,.8) 25%, transparent 25%, transparent 50%, rgba(255, 209, 184,.8) 50%, rgba(255, 209, 184,.8) 75%, transparent 75%, transparent 100%);
  background-size: 35px 35px;
  transform: rotate(3deg);
  transform: rotate(1deg);
  left: 10px;
  right: 10px;
  box-shadow:0 0 5px rgba(0,0,0,.2);
}

#summary_title:after {
  position: absolute;
  content: "";
  top: 25px;
  width: 11%;
  height: 35px;
  opacity: 0.8;
  margin: -40px -22px 10px auto;
  background-color: #FFF4B8;
  background-image:
  linear-gradient(-45deg, rgba(255, 209, 184,.8) 25%, transparent 25%, transparent 50%, rgba(255, 209, 184,.8) 50%, rgba(255, 209, 184,.8) 75%, transparent 75%, transparent 100%),
  linear-gradient(45deg, rgba(255, 209, 184,.8) 25%, transparent 25%, transparent 50%, rgba(255, 209, 184,.8) 50%, rgba(255, 209, 184,.8) 75%, transparent 75%, transparent 100%);
  background-size: 35px 35px;
  transform: rotate(3deg);
  left: 10px;
  right: 10px;
  box-shadow:0 0 5px rgba(0,0,0,.2);
}

.ribbon {
  font-size: 26px;
  color: #fff;
  font-weight: bold;
}
.ribbon {
  --c: #FFD1B8;
  
  padding: 0.7em;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  position: absolute;
  top: 650px;
  left: 16%;
  z-index: 10;
  width: 108px;
  transform: rotate(347deg);
  cursor: pointer;
  transition: transform .6s ease;
}

.ribbon:hover {
  transform: scale(1.1);
}

.ribbon:before {
  content:"";
  position: absolute;
  z-index: -1;
  inset: 40% 0 auto;
  aspect-ratio: 1;
  background: #f4a4ad;
  clip-path: polygon(calc(100%/3) 0,calc(200%/3) 0,100% 90%,80% 85%,calc(200%/3) 100%,calc(100%/3) 0,calc(200%/3) 0,calc(100%/3) 100%,20% 85%,0 90%);
}
.ribbon:after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10%;
  rotate: 45deg;
  outline: .1em solid #FFF4B8;
  background: var(--c);
  outline-offset: -.4em;
  border-radius: .3em;
}

.layer {
  background: rgba(0, 0, 0, .1);
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s linear, visibility 1s linear, z-index 1s linear;
}

.layer.is-open {
  z-index: 999;
  opacity: 1;
  visibility: visible;
}

.layer.is-open .modal{
  opacity: 1;
  visibility: visible;
}

.modal__button-wrap {
  position: fixed;
  right: 22%;
}


.close-button {
  position: relative;
  width: 45px;
  height: 45px;
  background: #FFB6C1;
  border-radius: 50%;
  padding: 0;
  border: transparent;
  cursor: pointer;
}

.close-button span {
  width: 25px;
  height: 2px;
  background: #fff;
  display: inline-block;
  position: absolute;
  left: calc(50% - 12px);
  top: 50%;
  border-radius: 20px;
}

.close-button span:nth-child(1) {
  transform: rotate(45deg) translate(-1px, -1px);
}

.close-button span:nth-child(2) {
  transform: rotate(-45deg) translate(1px, -1px);
}

.modal {
  position: relative;
  margin-right: auto;
  margin-left: auto;
  width: 60%;
  height: 80%;
  opacity: 0;
  visibility: hidden;
  transition:  visibility .7s linear, opacity .7s linear;
}

.modal__inner {
  margin: 125px 0 0;
  position: relative;
  background: #fff;
  box-shadow: 3px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 13px;
  display: block;
  padding: 21px 8px 21px;
  height: 80%;
  overflow: scroll;
}

.modal__inner::-webkit-scrollbar {
  width: 17px;
}

/* 移動させるスクロールバー */
.modal__inner::-webkit-scrollbar-thumb {
  border-radius: 30px;
  background: #FFB6C1;
}

/* スクロールバーの背景 */
.modal__inner::-webkit-scrollbar-track {
  background: unset;
}

.modal__content {
  padding: 25px 50px 25px;
}

.modal__content span {
  font-size: 17px;
  border-bottom: dotted 4px #FFD1B8;
}

.modal__content span.modal_title {
  font-size: 20px;
  font-weight: bold;
  color: #FFB6C1;
  border-bottom: none;
}

.profile {
	position: relative;
  top: 170px;
  right: 0%;
	width: 18%;
  height: fit-content;
	font-size: 13px;
  margin: 0px 20px;
    background: #FFF4B8;
    box-shadow: 0px 0px 0px 5px #FFF4B8;
    border: dashed 5px white;
    padding: 0.2em 0.5em;
    color: #454545;
}

.profile:after {
    position: relative;
    content: '';
    right: -165px;
    top: -685px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 1px 0px;
    border-width: 0px 40px 40px 0px;
    overflow: hidden;
    border-style: solid;
    border-color: rgb(255, 209, 184) rgb(255, 255, 255);
}

.profile_img {
	display: block;
	margin: 15px auto;
	width: 150px;
}
.profile span {
	color: coral;
	background: linear-gradient(transparent 50%, rgb(255 255 255 / 0.7) 50%);
}

.profile p {
	color: #fff;
	font-size: xx-large;
	font-weight: bold;
	margin: 0 auto;
}

.go_form {
	width: 90px;
	animation: swing 3s ease-in-out infinite;
}

footer {
  margin-top: 173px;
}

/*以下小さい画面用*/
@media (min-width: 851px) and (max-width:1280px) {
  #introduse {
    font-size: 19px;
    padding: 0 0 5px;
  }
  #main {
    width: auto;
  }
  form {
    font-size: large;
  }
  #inputForm {
    padding: 14px 20px;
  }
  input#name, input#year, input#month, input#day {
    font-size: large;
  }
  .btn_box {
    top: 120%;
  }
  #btn_animation .btn {
    width: 165px;
    height: 55px;
  }
  #memo {
    position: relative;
    left: 9%;
    width: 358px;
    padding: 10px;
    margin: 10px auto;
  }
  .profile:after {
    display: none;
  }
}

/*以下スマホ用css*/
@media(max-width:620px){
  #main {
    display: block;
    width: 100%;
  }
  .main_contents {
	width: 90%;
  margin: 0 auto;
  }
  #introduse {
	font-size: 18px;
  }
  .inputForm {
	background: #fff;
  }
  #inputForm {
	padding: 7px;
	font-size: 20px;
  }
  #inputForm input {
	height: 25px;
	font-size: 20px;
  }
  .btn_box {
	top: 120%;
  }
  #memo {
    width: 85%;
    padding: 5px;
	margin: 0 auto;
  }
  #tape {
	margin: -22px auto 5px;
  }
  .profile {
	position: relative;
  top: unset;
	width: 80%;
	margin: 35px auto;
  }
  .profile:after {
    display: none;
    /*right: -50px;
    top: -579px;*/
  }
  .ribbon {
    position: static;
    width: 100px;
    margin: -85px 30px 0 auto;
    padding: .3em;
    transform: rotate(369deg);
  }
  
  .ribbon:before {
    inset: 40% 0 auto 11%;
    height: 86px;
    /*clip-path: polygon(calc(138%/3) 0,calc(205%/3) 0,90% 75%,73% 65%,calc(200%/3) 82%,calc(100%/3) 0,calc(158%/2) 0,calc(53%/3) 80%,21% 55%,0 55%);
  */}

  .modal {
    width: 80%;
  }
  .modal__content {
    padding: 35px 10px 0;
  }
  .modal__inner {
    padding: 7px 8px 15px;
  }
  .close-button {
    width: 35px;
    height: 35px;
  }
  footer {
    margin-top: 0;
  }
}

/*以下タブレット用*/
@media (min-width: 621px) and (max-width:850px) {
  #main {
    display: block;
    width: 100%;
  }
  .main_contents {
	width: 90%;
  margin: auto;
  }
  #introduse {
	font-size: 18px;
  }
  .inputForm {
	background: #fff;
  }
  #inputForm {
	padding: 7px;
	font-size: 20px;
  }
  #inputForm input {
	height: 25px;
	font-size: 20px;
  }
  .btn_box {
	top: 120%;
  }
  #memo {
    width: 85%;
    padding: 5px;
	margin: 0 auto;
  }
  #tape {
	margin: -22px auto 5px;
  }
  .profile {
	position: relative;
  top: unset;
	width: 82%;
	margin: 25px auto;
  }
  .profile:after {
    display: none;
  }
  footer {
    margin-top: 0;
  }
  .ribbon {
    position: static;
    width: 100px;
    margin: -85px 30px 0 auto;
    padding: .3em;
    transform: rotate(369deg);
  }
  
  .ribbon:before {
    inset: 40% 0 auto 11%;
    height: 86px;
  }

  /*デバイスが横向きの場合*/
  @media (orientation: landscape) {
  }
}