@charset "utf-8";
/* CSS Document */
#photo .main {
  background: #00a7eb url(../img/bg_cloud.png) repeat-y center top;
}
a {
  text-decoration: none;
}
@media (max-width: 768px) {
  .section h1 {
    margin: 0 10px 20px 10px;
  }
}
.box_photo {
  margin: -40px 0 30px 0;
  padding: 24px 10px;
  -moz-border-radius: 20px;
  -webkit-border-radius: 20px;
  border-radius: 20px;
}
@media (max-width: 768px) {
  .box_photo {
    padding: 20px 0;
  }
}
@media (min-width: 769px) {
  .yellow-bk {
    background: #ffe100;
    padding: 30px;
    border-radius: 20px;
    margin: 0 2em;
  }
  .white-bk {
    background: #fff;
    margin: 2em 0 0 0;
    border-radius: 20px;
    padding: 0.5em 2em 1em 2em;
  }
}
.opacity-8:hover {
  opacity: 0.8;
}
.sp-only-deadline {
  font-size: 20px;
  line-height: 1.8;
  margin: 0;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  transform: rotate(0.03deg);
  font-weight: 600;
  text-align: center;
}
.caution {
  padding: 2em 0 0 0;
}
@media (min-width: 769px) {
  .green-line-ttl {
    font-weight: bold;
    padding: 0 3em;
    margin: 0 !important;
    text-align: center;
    position: relative;
    color: #009944;
    font-size: 24px;
  }
  .green-line-ttl::before, .green-line-ttl::after {
    content: '';
    background: #009944;
    width: 30%;
    height: 3px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
  }
  .green-line-ttl::before {
    left: 0;
  }
  .green-line-ttl::after {
    right: 0;
  }
}
@media (max-width: 768px) {
  .green-line-ttl {
    font-size: 24px;
    background: #009944;
    color: #ffffff;
    padding: 0.5em;
    text-align: center;
  }
}
.green-border {
  border: 1px solid #009946;
}
.font-red {
  color: #E60012;
}
.ul-point {
  list-style: none;
  padding: 1em 0;
  line-height: 1.8;
  margin: 0 0 0 2em;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  transform: rotate(0.03deg);
  font-weight: 600;
}
@media (max-width: 768px) {
  .ul-point {
    line-height: 1.4;
    padding-bottom: 0;
    margin: 0 0 0 2em;
    padding: 0.5em;
  }
}
.ul-point li {
  font-size: 1rem;
  margin-left: -1em;
  text-indent: -1.2em;
}
.ul-point li::before {
  content: "・ ";
}
.ul-asterisk {
  margin: 0 0 0 2em;
}
@media (max-width: 768px) {
  .ul-asterisk {
    padding: 0.5em;
  }
}
.ul-asterisk li {
  color: #E60012;
}
.policy-ttl, .policy-p {
  font-weight: bold;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  transform: rotate(0.03deg);
  line-height: 1.4;
}
@media (max-width: 768px) {
  .policy-ttl, .policy-p {
    padding: 0.5em;
  }
}
.info-box {
  position: relative;
  margin: 2em 0;
  padding: 1em;
  border: solid 3px #009946;
  border-radius: 8px;
  text-align: center;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .info-box {
    padding: 0.5em;
    margin: 2em 0.5em;
  }
}
.info-box-ttl {
  position: absolute;
  display: inline-block;
  top: -13px;
  left: 10px;
  padding: 0 9px;
  line-height: 1;
  font-size: 18px;
  background: #FFF;
  color: #009946;
  font-weight: bold;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  transform: rotate(0.03deg);
}
.info-box p {
  margin: 0;
  padding: 0;
  line-height: 1.4;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  transform: rotate(0.03deg);
}
.info-big {
  font-size: 24px;
}
@media (min-width: 769px) {
  .pc-none {
    display: none;
  }
}
@media (max-width: 768px) {
  .pc-none {
    display: block;
  }
}
/* ～アンパンマン列車とみんなのとっておきの1枚～ */
.box_photo_intro {
  margin: 0 auto 30px auto;
  padding: 24px 38px;
  -moz-border-radius: 20px;
  -webkit-border-radius: 20px;
  border-radius: 20px;
  background: #f8c8d6;
  max-width: 938px;
}
@media (max-width: 541px) {
  .box_photo_intro {
    padding: 5px 10px;
  }
}
.box_photo_h1-ttl {
  width: 100%;
}
.card-wrapper {
  display: flex;
  gap: 16px;
  padding: 0;
  justify-content: flex-start;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .card-wrapper {
    padding: 0 0 20px 0;
  }
}
.card {
  width: 32%;
  max-width: 100%;
  background: #fff;
  box-sizing: border-box;
}
@media (max-width: 890px) {
  .card {
    width: 48%;
  }
}
@media (max-width: 541px) {
  .card {
    width: 47%;
  }
}
.photo-image {
  background-color: #fee2f7;
  max-width: 250px;
  height: 240px;
  margin-bottom: 10px;
  overflow: hidden;
  position: relative;
  padding: 13px;
}
@media (max-width: 890px) {
  .photo-image {
    max-width: 363px;
    height: 200px;
  }
}
@media (max-width: 541px) {
  .photo-image {
    height: 120px;
  }
}
.photo-image:hover > img {
  transform: scale(1.05);
}
.winner-img {
  width: 100%;
  display: block;
  margin: 0 auto;
  height: 240px !important;
  object-fit: cover;
  transition: transform 0.4s;
}
@media (max-width: 890px) {
  .winner-img {
    height: 100% !important;
  }
}
.photo_ttl_h3 {
  transform: rotate(0.05deg);
  color: #e83279;
  font-weight: 700;
  font-size: 18px;
  text-align: left;
  line-height: 1.6;
  margin: 0 0 10px 0;
  padding: 0;
  border-left: none;
}
@media (min-width: 769px) {
  .br-pc-none {
    display: none;
  }
}
.nickname {
  transform: rotate(0.05deg);
  font-size: 75%;
}
.comment {
  transform: rotate(0.05deg);
  font-size: 80%;
  letter-spacing: 0;
  margin: 0 0 10px 0;
  text-align: left;
}
.card-text {
  transform: rotate(0.05deg);
  flex-grow: 1;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .card-text {
    font-size: 90%;
  }
}
.card-content {
  flex: 1 1 auto;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 0.5em 1em;
}
.photo_ttl_box{
	padding: 20px 20px 0 20px;
	border-radius: 20px 20px 0 0;
    background: #f8c8d6;
    max-width: 938px;
}
.image-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; 
    justify-content: flex-start;
    margin: 0 auto 30px auto;
    padding: 24px 38px;
    -moz-border-radius: 20px;
    -webkit-border-radius: 20px;
    border-radius: 0 0 20px 20px;
    background: #f8c8d6;
    max-width: 938px;
}

.card {
    text-align: center;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
    background-color: #fff;
    flex: 0 0 calc(33.333% - 13.333px); 
    max-width: 300px; 
    position: relative; 
}

.image-wrapper {
    width: 100%; 
    height: 240px; 
    overflow: hidden; 
    border-radius: 4px; 
    margin-bottom: 10px; 
}

.image-wrapper img {
    display: block; 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease; 
}

.image-wrapper:hover img {
    transform: scale(1.1); 
}

.nickname-title {
    transform: rotate(0.05deg);
    font-size: 14px;
	color: #e83279;
    letter-spacing: 0; 
    margin: 0 0 3px 0; 
    text-align: left;
    font-weight: 700;
    line-height: 1.6; 
}

.nickname-text{
    transform: rotate(0.05deg);
    font-size: 16px; 
	color: #e83279;
    letter-spacing: 0; 
    margin: 0 0 10px 0; 
    text-align: left;
}
.comment {
    transform: rotate(0.05deg);
    font-size: 14px; 
    letter-spacing: 0; 
    margin: 0 0 5px 0; 
    text-align: left;
    font-weight: 700;
    line-height: 1.6; 
}
.card-text {
    transform: rotate(0.05deg);
    font-size: 16px; 
    letter-spacing: 0; 
    margin: 0 0 10px 0; 
    text-align: left;
}

.modal {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); 
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.3s ease, visibility 0.3s ease; 
}

.modal.show {
    opacity: 1; 
    visibility: visible; 
}

.modal-content {
    background-color: white;
    padding: 30px; 
    border-radius: 10px; 
    text-align: center;
    position: relative;
    max-width: 600px; 
    width: 90%; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
    transform: translateY(-20px); 
    opacity: 0; 
    transition: transform 0.3s ease, opacity 0.3s ease; 
}

.modal.show .modal-content {
    transform: translateY(0); 
    opacity: 1; 
}

.close-button {
    position: absolute;
    top: 3px; 
    right: 17px; 
    font-size: 50px; 
    color: #4E3234;
    cursor: pointer;
    line-height: 1; 
}
.close-button:hover {
    color: #958485;
}

.modal-image {
    margin-bottom: 20px;
	background-color: #fee2f7;
	padding: 20px;
}
.modal-image img {
    max-width: 100%; 
    max-height: 400px; 
    object-fit: contain;
    border-radius: 4px;
}

@media (max-width: 768px) { 
    .image-container {
        gap: 15px;
		padding: 24px 10px;
    }
    .card {
        flex: 0 0 calc(50% - 7.5px); 
        max-width: none; 
    }
    .image-wrapper {
        height: 200px; 
    }
}

@media (max-width: 480px) { 
	.image-container{
		padding: 15px;
	}
    .image-wrapper {
        height: 150px; 
    }
}