@charset "UTF-8";

:root {
    --orange-color: #eb5605;
    --orange200-color: #fd9965;
    --orange300-color: #ffe5d8;
    --gray-color: #222222;
    --red-color: #ff0000;
    --white-color: #ffffff;
    --bg-color: #fbf6f4;
}

/* *************************
** モーダル
************************* */
/* モーダル起動前のcss */
.modal-container .modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

/* クリックするとモーダルが開く */
button.modalOpen  {
  cursor: pointer;
}
button.modalOpen :hover {
  opacity: 0.7;
}
button.modalOpen {
  font-family: "Noto sans JP", sans-serif;
  font-weight: 600;
  font-size: 16px;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: var(--bg-color);
  margin: 0 auto;
	font-size: 36px;
}
@keyframes modalopen {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* モーダル閉じるボタン */
#modalClose.modalClose {
  position: fixed;
	z-index: 11;
  top: calc(10vh + 20px);
  right: calc(50% - 450px);
  width: 70px;
  height: 70px;
  border-radius: 35px;
  color: var(--orange-color);
  background-color: var(--white-color);
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.1));
  border: 0;
  font-size: 35px;
  font-weight: 100;
  font-family: "Open sans", sans-serif;
}
@media screen and (max-width: 768px) {
  #modalClose.modalClose {
    /* top: calc(6vh - calc(20 * (100vw / 375))); */
		top: calc(15vh - calc(20 * (100vw / 375)));
    right: calc(50% - calc(150 * (100vw / 375)));
    width: calc(40 * (100vw / 375));
    height: calc(40 * (100vw / 375));
    border-radius: calc(20 * (100vw / 375));
    font-size: calc(20 * (100vw / 375));
  }
}


/* モーダル開いた際のCSS */
#modal-box.modal-box  {
  background-color: #fff;
  margin: 16vh auto;
  width: 1000px;
  height: 70vh;
  overflow-y: scroll;
  padding: 50px 0;
  box-sizing: border-box;
  animation-name: modalopen;
  animation-duration: 0.5s;
  position: relative;
}
#modal-box.modal-box .inner a {
  display: inline;
	color: var(--orange-color);
  text-decoration: underline;
}

#modal-box.modal-box .inner {
  width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
#modal-box.modal-box .inner h3 {
  font-size: 30px;
  line-height: 1.4;
  margin-bottom: 40px;
  text-align: center;
}
#modal-box.modal-box .inner h3 span {
  display: block;
  font-size: 20px;
  color: var(--red-color);
}
#modal-box.modal-box .inner table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: calc(14 * (100vw / 375));
  line-height: 1.6;
}
#modal-box.modal-box .inner table th {
  width: 200px;
  text-align: left;
  background-color: #eee;
  border: 1px solid #ccc;
  vertical-align: top;
  box-sizing: border-box;
  padding: 20px;
}
#modal-box.modal-box .inner table td {
  width: 700px;
  text-align: left;
  background-color: #fff;
  border: 1px solid #ccc;
  box-sizing: border-box;
  padding: 20px;
  display: table-cell;
  vertical-align: middle;
}
#modal-box.modal-box .modal-note-list {
    margin-left: 30px;
    font-size: 12px;
	}
#modal-box.modal-box .modal-note-list li {
    position: relative;
    padding-bottom: 10px;
}
#modal-box.modal-box .modal-note-list li::before{
  content: "※";
  width: 28px;
  height: 28px;
  position: absolute;
  left: -30px;
}
#modal-box.modal-box .campaign-tokuten img{
  max-width: 866px;
  margin: 0 auto;
  padding: 20px;
}
#modal-box.modal-box .modal-red-midashi {
    text-align: center;
    font-size: 30px;
    font-weight: 600;
    background: #c1111a;
    color: #fff;
    padding: 1px 0;
}
#modal-box.modal-box .modal-gray-midashi {
    text-align: center;
    font-size: 30px;
    font-weight: 600;
    background: #7e7e7e;
    color: #fff;
    padding: 1px 0;
}
#modal-box.modal-box .campaign-table01{
  max-width: 622px;
}
#modal-box.modal-box .campaign-table02{
  max-width: 596px;
}
#modal-box.modal-box .campaign-table03{
  max-width: 749px;
}
#modal-box.modal-box .scroll-inner {
  min-width: 500px;
}
#modal-box.modal-box img.scroll-inner {
  height: auto;
  width: 100%;
  max-width: 100%;
}
#modal-box.modal-box .scroll-hint {
  display: none;
}
#modal-box.modal-box .scrolled .scroll-overlay,
#modal-box.modal-box .scrolled .scroll-hint {
	opacity: 0;
}
@keyframes hintMove {
  0% { transform: translateX(0); opacity: 0.6; }
  50% { transform: translateX(-10px); opacity: 1; }
  100% { transform: translateX(0); opacity: 0.6; }
}
#modal-box.modal-box .scroll-hint {
  animation: hintMove 2s infinite ease-in-out;
}
#modal-box.modal-box .scrolled .scroll-hint {
  opacity: 0;
  pointer-events: none;
  animation: none;
}

@media screen and (min-width: 769px) {
  #modal-box.modal-box .modal-note-list {
    font-size: 13px;
  }
  #modal-box.modal-box .inner table {
    font-size: 16px;
  }
}


/*　for SP　*/
@media screen and (max-width: 768px) {
  #modal-box.modal-box button.modalOpen {
    font-size: calc(14 * (100vw / 375));
    gap: calc(10 * (100vw / 375));
  }
  #modal-box.modal-box .modal-note-list {
    margin-left: 22px;
	}
  #modal-box.modal-box .modal-note-list li::before{
    left: -22px;
  }
  
  #modal-box.modal-box {
    margin: 15vh auto;
    width: calc(355 * (100vw / 375));
    height: 88vh;
    padding: calc(30 * (100vw / 375)) 0;
  }
  #modal-box.modal-box .inner {
    width: calc(330 * (100vw / 375));
    margin: 0 auto;
  }
  #modal-box.modal-box .inner h3 {
    font-size: calc(16 * (100vw / 375));
    text-align: left;
    margin-bottom: calc(20 * (100vw / 375));
  }
  #modal-box.modal-box .inner h3 span {
    font-size: calc(13 * (100vw / 375));
  }
  #modal-box.modal-box .inner table th {
    display: block;
    width: 100%;
    border-top: 3px solid #ccc;
    border-bottom: none;
    padding: calc(10 * (100vw / 375));
  }
  #modal-box.modal-box .inner table td {
    display: block;
    width: 100%;
    border-bottom: none;
    padding: calc(14 * (100vw / 375));
  }
  #modal-box.modal-box .inner table td:last-child {
    border-bottom: 1px solid #ccc;
  }
  #modal-box.modal-box .campaign-tokuten img{
    padding: 3vw 0vw;
  }
  #modal-box.modal-box .modal-red-midashi {
    font-size: 18px;
  }
  #modal-box.modal-box .modal-gray-midashi {
    font-size: 18px;
  }
  #modal-box.modal-box .scroll-wrapper {
    max-width: 80vw;
  }
  #modal-box.modal-box .scroll-hint {
      display: block;
      position: absolute;
      top: 38px;
      left: 113px;
      width: 70px;
      transition: opacity 0.3s ease;
    }
}



/* モーダル内ポップタイトル */
#modal-box.modal-box .modal-heading--pop {
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}
#modal-box.modal-box .modal-heading--pop span::before { 
  transform: rotate(-24deg); 
  left: -8px;
} 
#modal-box.modal-box .modal-heading--pop span::after { 
  transform: rotate(24deg); 
  right: -8px;
} 
#modal-box.modal-box .modal-heading--pop span {
  display: inline-flex;
  justify-content: center;
  align-items: center; /* 縦中央揃え /
  gap: 0.6em; / 文字との間隔（古い環境は後述のmarginで代替） */
  line-height: 1.2;
}

#modal-box.modal-box .modal-heading--pop span::before,
#modal-box.modal-box .modal-heading--pop span::after {
  content: "";
  display: block; /* フレックスアイテム化  */
  width: 2px;
  height: 1.8em; 
  background: currentColor;
  transform-origin: center;
  position: relative;
}
@media screen and (min-width: 769px) {
	#modal-box.modal-box .modal-heading--pop {
		font-size: 18px;
	}
  #modal-box.modal-box .modal-heading--pop span::before { 
    left: -14px;
  } 
  #modal-box.modal-box .modal-heading--pop span::after { 
    right: -14px;
  }
}

@media screen and (max-width: 768px) {
  #modal-box.modal-box .modal-heading--pop {
    font-size: 14px;
  }
  #modal-box.modal-box .modal-heading--pop span{
    width: 90%;
  }
}





/*　その他微調整　*/
#modal-box.modal-box .mgt-1em {
  margin-top: 1em;
}
#modal-box.modal-box .mgt-2em {
  margin-top: 2em;
}
#modal-box.modal-box .mgt-0 {
  margin-top: 0 !important;
}
#modal-box.modal-box .mgb-0 {
  margin-bottom: 0 !important;
}
#modal-box.modal-box .border-dotted {
  border-top: 1px dotted #333;
}
#modal-box.modal-box .u-text-red {
	color: #d80c18;
}
