/* General styles */
body {
    margin: 0;
    font-family: "source-han-sans-japanese", sans-serif; /* Adobe Font */
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('img/bg.svg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.content {
    width: 600px;
    margin: 0 auto;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}
.section-inner{
    padding: 30px 50px;
}

.pc-side-images {
    display: block;
}

.pc-logo-left {
    position: fixed;
    top: 25%;
    left: calc((100% - 600px) / 4);
    transform: translate(-50%, -50%);
    width: 29%;
}
.bold{
	font-weight: bold;
	color: #e74737;
}

/* Keyframe for floating animation */
@keyframes fluffy {
  0% {
    transform: translate(50%, -50%) translateY(0);
  }
  100% {
    transform: translate(50%, -50%) translateY(-15px);
  }
}

.pc-logo-right {
    position: fixed;
    top: 40%;
    right: calc((100% - 600px) / 4);
    transform: translate(50%, -50%);
    width: 25%;
    animation: fluffy 1s ease-in-out infinite alternate;
}

/* Smartphone styles */
@media (max-width: 430px) {
    .background, .pc-side-images {
        display: none;
    }

    .content {
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }
}

/* Hero Section */
.hero {
    padding: 0;
}

/* Schedule Section */
.schedule {
    background-color: #f8f1bf;
    padding: 20px 50px;
    margin: 0;
    text-align: center;
}
.schedule .section-title {
    background-color: #fff;
    color: #e74737;
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 20px;
    width: 90%;
    border: 1px solid #e74737;
    letter-spacing: 15px;
}

.schedule ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.schedule li {
    padding: 15px;
    font-size: 20px;
    align-items: center;
    font-weight: 600;
}

.schedule .badge {
    background-color: #e74737;
    color: white;
    border-radius: 15px;
    padding: 5px 15px;
    margin-right: 15px;
    font-weight: bold;
}

.schedule .lead {
    background-color: white;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
}
.schedule-lead p {
    font-size: 19px;
    line-height: 1.7;
}

/* Theme Section */
/* Area Section */
.theme {
    background-image: url(img/map.png);
    background-position: center bottom;
    background-size: 100%;
    background-repeat: no-repeat;
    position: relative;
    padding-bottom: 750px;
    background-color: #ececec;
}
.theme_inner{
    margin-top: 30px;
}
.theme_inner,.how-to-apply_inner{
    padding: 30px 50px;
    background-color: white;
    border-radius: 20px;
}
.area_inner{
    padding: 30px 70px;
}
.marker{
    text-align: center;
    font-size: 25px;
    font-weight: bold;
    background: linear-gradient(transparent 60%, #ffff87 60%);
}
.area_inner h3{
    font-size: 25px;
    font-weight: bold;
    text-align: center;
}

/* Prizes Section */
.prizes{
    background-image: url(img/shou.svg);
    background-size: 100%;
    background-position: center top;
    background-repeat: no-repeat;
    padding-top: 300px;
}
.icon_img{
    text-align: center;
}
.icon_img img{
    width: 40%;
}
.prizes_after h3{
    color: #e74737;
}
.prizes_after h4 {
    color: #000;
    font-size: 25px;
    text-align: center;
}

/* How to Apply Section */
.how-to-apply,.instagram-examples {
    background-color: #ececec;
    padding: 30px 0;
}

.cont-center{
    text-align: center;
}
.icon_img2 img{
    width: 25%;
}
.mdl{
    font-size: 25px;
}
.hashtag{
    background-color: #ececec;
    padding: 30px;
}
.hashtag p{
    margin: 0;
    font-size: 25px;
}
.mdl_l{
    font-size: 25px;
    font-weight: normal;
}
.icon_img3{
    padding: 10px 0;
    text-align: center;
}
.icon_img3 img{
    width: 30px;
}

/* Instagram DL Section */
.instagram-dl_inner{
    padding: 0 50px;
    text-align: center;
}
.instagram-dl_img{
    padding: 0 50px;
}
.dl_link{
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 20px;
    column-gap: 20px;
    place-content: center;
}
.instagram-dl_inner h3{
    font-size: 25px;
    margin: 0;
}
.instagram-dl_inner p{
    margin-top: 0;
    margin-bottom: 30px;
}

/* Instagram Examples Section */
.instagram-examples_inner{
    text-align: center;
}
.instagram-examples_inner h2{
    color: #e74737;
    font-size: 30px;
    margin-top: 0;
}
.instagram-examples_inner h4{
    margin-bottom: 10px;
    color: #e74737;
}

/* Rules Section */
.rules-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #3271ac;
    padding: 20px;
    margin: 40px 30px 20px 30px;
    scrollbar-width: thin;
    scrollbar-color: #3271ac #f1f1f1;
}

.rules-container::-webkit-scrollbar {
    width: 10px;
}

.rules-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.rules-container::-webkit-scrollbar-thumb {
    background: #3271ac;
}

.rules-content {
    text-align: left;
}

.rules-title,
.rules-heading {
    color: #3271ac;
}

.rules-title {
    text-align: center;
}

.rules-heading.underline {
    text-decoration: underline;
}

/* Contact Section */
.form_sec,.contact{
    text-align: center;
}
.contact h2{
    font-size: 30px;
    color: #3271ac;
}
.contact p{
    font-size: 22px;
}

/* Footer */
footer{
    background-color: #f8f6f3;
    text-align: center;
    padding: 30px 50px 5px 50px;
}
footer img{
    padding: 10px 50px 0 50px;
}
footer h3{
    font-size: 25px;
    margin-bottom: 0;
}

/* Common styles */
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin: 20px 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* PC styles */
@media (min-width: 431px) {
}

/* Responsive adjustments for larger screens */
@media screen and (max-width: 1720px) {
    .pc-logo-left {
        width: 22%;
    }
}

@media screen and (max-width: 1366px) {
    .pc-logo-right {
        width: 24%;
    }
}

@media screen and (max-width: 430px) {
    .schedule,.section-inner {
        padding: 30px 30px;
    }
    .schedule li {
        padding: 10px;
        font-size: 16px;
    }
    .schedule-lead p {
        font-size: 16px;
    }
    .theme_inner, .how-to-apply_inner {
        padding: 30px 40px;
    }
    .theme {
        padding-bottom: 500px;
    }
    .prizes {
        padding-top: 200px;
    }
    .area_inner h3,.prizes_after h4,.hashtag p,.instagram-dl_inner h3,.mdl_l {
        font-size: 20px;
    }
    .icon_img2 img {
        width: 15%;
    }
    .instagram-dl_inner {
        padding: 0 30px;
    }
    .instagram-examples_inner h2 {
        font-size: 25px;
    }
    .rules-container {
        margin: 30px 0px 20px 0px;
    }
    .contact h2 {
        font-size: 22px;
    }
    .instagram-examples {
        padding: 10px 0 30px;
    }
    .how-to-apply_inner {
        padding: 30px;
    }
    .hashtag {
        padding: 20px;
    }
    .reg_p{
        font-size: 14px !important;
    }
    .contact p {
        font-size: 16px;
    }
    .instagram-examples_inner h3{
        font-size: 16px;
    }
    .area_inner {
        padding: 30px;
    }
}
@media screen and (max-width: 375px) {
    .schedule .section-title {
        width: 82%;
    }
    .schedule .badge {
        display: block;
        margin-bottom: 7px;
        margin: 0 0 10px 0;
    }
    .marker {
        font-size: 20px;
    }
    .theme {
        padding-bottom: 450px;
    }
    .prizes {
        padding-top: 190px;
    }
    .area_inner {
        padding: 30px 40px;
    }
    .area_inner h3, .prizes_after h4, .hashtag p, .instagram-dl_inner h3, .mdl_l,.marker {
        font-size: 18px;
    }
    .theme_inner, .how-to-apply_inner {
        padding: 30px 30px;
    }
    .area_inner {
        padding: 30px;
    }
    .contact p {
        font-size: 14px;
    }
    .contact h2 {
        font-size: 18px;
    }
}


@media screen and (max-width: 1279px) {
    .pc-side-images {
        display: none;
    }
}