/* ==================================================== << PC 用定義 >> ==== */

@media screen and (min-width:641px) {

.popupModal1 > input {    /* ラジオボックス非表示 */
  display: none;
}
.popupModal1 > input:nth-child(1) + label { 
  cursor: pointer;
}
.modalPopup2 {            /* 初期設定 ポップアップ非表示 */
  display: none;
}
.popupModal1 > input:nth-child(1) + label ~ label {
  display: none;          /* ラジオ１ 以外のラベルを初期は非表示 */
}

/* -------------------------------------- << 背景マスク（全体をグレーで） >> ---- */
.popupModal1 > input:nth-child(1):checked + label + input:nth-child(3) + label {
  position: fixed;
  z-index: 997;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.6);
}

/* ----------------------------------------------------- << ポップアップ枠 >> ---- */
.popupModal1 > input:nth-child(1):checked + label + input:nth-child(3) + label + input:nth-child(5) + label + .modalPopup2 {/* ラジオ１ チェックでポップアップ表示 */
  position: fixed;
  z-index: 998;
  padding: 20px;
  margin: 0px;
  left: 30px;
  top: 155px;
  right: 40px;
  bottom: 80px;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background-color: #eeeeee;
}

/* ---------------------------------------------------- << 右上の×ボタン >> ---- */
.popupModal1 > input:nth-child(1):checked + label + input:nth-child(3) + label + input:nth-child(5) + label {
  position: fixed;
  z-index: 999;
  right: 20px;
  top: 140px;
  width: 46px;
  height: 46px;
  display: inline-block;
  font-size: 40px;
  border-radius: 50%;
  line-height: 40px;
  text-align: center;
  box-shadow: 2px 2px 10px 0px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------- << タイトル >> ---- */
.popupModal1 .modalTitle {
  position: absolute;
  z-index: 98;
  left: 25px;
  top: 0px;
  width: calc( 100% - 78px);
  border-bottom:
  1px solid #ccc;
  font-weight: bold;
  background-color: #eeeeee;
}

/* ------------------------------------------------------- << 本文エリア >> ---- */
.popupModal1 .modalMain {
  position: relative;
  left: 6px;
  top: 30px;
  width: calc( 100% - 24px);
  text-align: left;
  font-size: 14px;
  color:#222;
  background-color: #eeeeee;
}

/* ------------------------------------------------------- << 写真エリア >> ---- */
#dog_photo_area {
  width: calc( (100vw - 178px) / 3 );
  height: calc( (100vw - 178px) / 3 );
  display: inline-flex;
  background-color: #eeeeee;
}
@media screen and (max-width: 1100px)  {
  #dog_photo_area {
    width: 300px;
    height: 300px;
    display: inline-flex;
    background-color: #ffffff;
  }
}
#dog_photo_waku {
  position: relative;
  padding: 2px;
  left: 2%;
  width: 96%;
  top: 4%;
  height: 94%;
  border-radius: 5px;
  font-size: 16px;
  background-color: #ffffff;
  box-shadow: 4px 4px 8px gray;
}
#dog_photo {
  position: relative;
  left: 2%;
  width: 96%;
  top: 5px;
}
#dog_note {
  position: relative;
  left: 4%;
  width: 92%;
  top: 0px;
}

#fig_okng {
  position: absolute;
  left: calc( ( 100% - 100px) / 2 );
  top: calc( ( 100% - 100px) / 2 );
  width: 100px;
  height: 100px;
}

/* ----------------------------------------------------------- << その他 >> ---- */
.popupModal1 > input:nth-child(1):checked + label + input:nth-child(3) + label + input:nth-child(5) + label + .modalPopup2 > div {/* */
  overflow:auto;
 -webkit-overflow-scrolling:touch;
  display: inline-block;
  width: 100%;
  height: 100%;
}
.popupModal1 > input:nth-child(1):checked + label + input:nth-child(3) + label + input:nth-child(5) + label + .modalPopup2 > div > iframe {
  width: 100%;
  height:100%;
  border:none;
  display:block;
}
.popupModal1 > input:nth-child(1):checked + label + input:nth-child(3) + label + input:nth-child(5) + label + .modalPopup2 > div > img {/* ポップアップの中の要素 */
  max-width: 100%;
}

.popupModal1 > input:nth-child(1) + label + input:nth-child(3):checked + label + input:nth-child(5) + label + .modalPopup2,
.popupModal1 > input:nth-child(1) + label + input:nth-child(3) + label + input:nth-child(5):checked + label + .modalPopup2 { /* ラジオ２と３ どっちかチェックでポップアップ非表示 */
    display: none;
}

.modalPopup2 {
    animation: fadeIn 1s ease 0s 1 normal;
    -webkit-animation: fadeIn 1s ease 0s 1 normal;
}

@keyframes fadeIn {
    0% {opacity: 0}
    100% {opacity: 1}
}

@-webkit-keyframes fadeIn {
    0% {opacity: 0}
    100% {opacity: 1}
}

.example_button {
  width: 100%;
  text-align: center;
}
.example_button img {
  width: 374px;
  height: 47px;
}
.batsu_button {
  width: 24px;
  height: 24px;
}


}


/* ================================================= << スマホ用定義 >> ==== */

@media screen and (max-width:640px) {

.popupModal1 > input {    /* ラジオボックス非表示 */
  display: none;
}
.popupModal1 > input:nth-child(1) + label { 
  cursor: pointer;
}
.modalPopup2 {            /* 初期設定 ポップアップ非表示 */
  display: none;
}
.popupModal1 > input:nth-child(1) + label ~ label {
  display: none;          /* ラジオ１ 以外のラベルを初期は非表示 */
}

/* -------------------------------------- << 背景マスク（全体をグレーで） >> ---- */
.popupModal1 > input:nth-child(1):checked + label + input:nth-child(3) + label {
  position: fixed;
  z-index: 997;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.6);
}

/* ----------------------------------------------------- << ポップアップ枠 >> ---- */
.popupModal1 > input:nth-child(1):checked + label + input:nth-child(3) + label + input:nth-child(5) + label + .modalPopup2 {/* ラジオ１ チェックでポップアップ表示 */
  position: fixed;
  z-index: 998;
  padding: 3vw;
  margin: 0px;
  left: 4.5vw;
  top: 24vw;
  right: 6vw;
  bottom: 12vw;
  display: block;
  overflow: hidden;
  border-radius: 3vw;
  background-color: #eeeeee;
}

/* ---------------------------------------------------- << 右上の×ボタン >> ---- */
.popupModal1 > input:nth-child(1):checked + label + input:nth-child(3) + label + input:nth-child(5) + label {
  position: fixed;
  z-index: 999;
  right: 1.5vw;
  top: 19vw;
  width: 12vw;
  height: 12vw;
  display: inline-block;
  border-radius: 50%;
  text-align: center;
  box-shadow: 2px 2px 10px 0px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------- << タイトル >> ---- */
.popupModal1 .modalTitle {
  position: fixed;
  z-index: 98;
  left: 7vw;
  top: 19vw;
  right: 12vw;
  height: 8.5vw;
  font-size: 6.6vw;
  font-weight: bold;
  background-color: #eeeeee;
  border-bottom: 1px solid #ccc;
}

/* ------------------------------------------------------- << 本文エリア >> ---- */
.popupModal1 .modalMain {
  position: relative;
  left: 0;
  top: 5vw;
  width: calc( 100% - 3.6vw );
  text-align: left;
  font-size: 2vw;
  color:#222;
  background-color: #eeeeee;
}

/* ------------------------------------------------------- << 写真エリア >> ---- */
#dog_photo_area {
  width: 76vw;
  height: 76vw;
  display: inline-flex;
  background-color: #eeeeee;
}
#dog_photo_waku {
  position: relative;
  padding: 1vw;
  left: 1%;
  width: 96%;
  top: 4%;
  height: 94%;
  border-radius: 2vw;
  font-size: 4vw;
  background-color: #ffffff;
  box-shadow: 4px 4px 8px gray;
}
#dog_photo {
  position: relative;
  left: 2%;
  width: 96%;
  top: 0px;
}
#dog_note {
  position: relative;
  left: 4%;
  width: 92%;
  top: 0px;
}

#fig_okng {
  position: absolute;
  left: calc( ( 100% - 30vw ) / 2 );
  top: calc( ( 100% - 30vw ) / 2 );
  width: 30vw;
  height: 30vw;
}




/* ----------------------------------------------------------- << その他 >> ---- */
.popupModal1 > input:nth-child(1):checked + label + input:nth-child(3) + label + input:nth-child(5) + label + .modalPopup2 > div {/* */
  overflow:auto;
 -webkit-overflow-scrolling:touch;
  display: inline-block;
  width: 100%;
  height: 100%;
}
.popupModal1 > input:nth-child(1):checked + label + input:nth-child(3) + label + input:nth-child(5) + label + .modalPopup2 > div > iframe {
  width: 100%;
  height:100%;
  border:none;
  display:block;
}
.popupModal1 > input:nth-child(1):checked + label + input:nth-child(3) + label + input:nth-child(5) + label + .modalPopup2 > div > img {/* ポップアップの中の要素 */
  max-width: 100%;
}

.popupModal1 > input:nth-child(1) + label + input:nth-child(3):checked + label + input:nth-child(5) + label + .modalPopup2,
.popupModal1 > input:nth-child(1) + label + input:nth-child(3) + label + input:nth-child(5):checked + label + .modalPopup2 { /* ラジオ２と３ どっちかチェックでポップアップ非表示 */
    display: none;
}

.modalPopup2 {
    animation: fadeIn 1s ease 0s 1 normal;
    -webkit-animation: fadeIn 1s ease 0s 1 normal;
}

@keyframes fadeIn {
    0% {opacity: 0}
    100% {opacity: 1}
}

@-webkit-keyframes fadeIn {
    0% {opacity: 0}
    100% {opacity: 1}
}

.example_button {
  width: 100%;
  text-align: center;
}
.example_button img {
  width: 60vw;
}
.batsu_button {
  position: relative;
  top: 3vw;
  width: 6vw;
}


}
