/* やることが残っているため、[TODO]でcmd+Fをしてみること。 */

html {
	scroll-behavior: smooth;
}
:root {
  --main-color: #f7448f;
  --bg-color: #fce4ec;
  --bg-secondary-color: #f9d7e4;
}

body {
    margin: 0;
    background: top center /100% auto repeat url(parts/bg.png);
    font-family: meiryo, sans-serif;
}

.closed {
    display: none;
}

.main-content {
    width: min(100%, 500px);
    margin-inline: auto;
    background-color: var(--bg-color);
}

.entry-notice {
    display: flex;
    justify-content: center;
    position: relative;
    margin-top: -5em;

    @media screen and (max-width: 767px) {
        margin-top: -4em;
    }
}

.entry-notice-img {
    margin-bottom: 16px;
    position: relative;
    z-index: 2;

    @media screen and (max-width: 767px) {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}
/* Reusable parts */
.menu-vote-button {
    background: linear-gradient(to bottom, #ff4fa0, #e93384);
}

.vote-button-text {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: center;
}

.vote-button-text-sp-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 16px;
    justify-content: center;
}

.small-button-text {
    gap: 8px;

    @media screen and (max-width: 767px) {
        font-size: 18px;
    }
}

.vote-arrow-link {
    max-width: 24px;

    @media screen and (max-width: 767px) {
        max-width: 18px;
    }
}

/* [TODO] 後の時点でdisplay: none → flex */
.vote-button-small {
    display: none;
    margin: 0 auto;
    max-width: 50%;
    justify-content: center;
    padding: 8px 24px;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(to bottom, #ff4fa0, #e93384);
    box-shadow: 2px 4px 0 #b02060;
    text-align: center;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;

    @media screen and (max-width: 767px) {
        max-width: 60%;
    }
}

.vote-button-large, .vote-button-large-sp {
    display: inline-block;
    min-width: 240px;
    padding: 16px 32px;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(to right, #e42c79, #ff56a8);
    box-shadow: 2px 4px 0 #c3526a;
    text-align: center;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.vote-button-large-sp {
    @media screen and (max-width: 767px) {
        min-width: 75%;
    }
}

.vote1 {
    background: linear-gradient(to right, #ef8119, #fca14c);
    box-shadow: 2px 4px 0 #d16a0a;
}

.vote3 {
    background: linear-gradient(to right, #1077b6, #458eba);
    box-shadow: 2px 4px 0 #216690;
}

.vote4 {    
    background: linear-gradient(to right, #703e9f, #8566a2);
    box-shadow: 2px 4px 0 #67408b;
}

.vote5 {
    background: linear-gradient(to right, #008d96, #23abb4);
    box-shadow: 2px 4px 0 #168188;
}

.vote6 {
    background: linear-gradient(to right, #0c8729, #3b9f53);
    box-shadow: 2px 4px 0 #247337;
}

.vote7 {
    background: linear-gradient(to right, #e94065, #f77692);
    box-shadow: 2px 4px 0 #c3526a;
}

.vote8 {
    background: linear-gradient(to right, #115ca5, #4078af);
    box-shadow: 2px 4px 0 #225382;
}


/* Header */
.main-content-header {
    position: relative;
}

.woman-image {
    max-width: 160px;
    max-height: 135px;
    width: auto;
    height: auto;
    position: absolute;
    left: 35%;
    top: 7%;
    animation: bounce 1.8s ease-in-out infinite;
    animation-delay: 0.15s;

    @media screen and (max-width: 767px) {
        left: 30%;
        top: 2.5%;
    }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { 
    transform: translateY(0);
  }
  40% { 
    transform: translateY(-12px);
  }
  60% {
    transform: translateY(-4px);
  }
}

.key-visual {
    max-width: 100%;
}

.entry-deadline-announce {
    position: relative;
    z-index: 2;
    margin-top: -135px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #BF953F, #FCF6BA, #B38728);
    text-align: center;
    border-radius: 24px;

    p {
        margin: 4px 0;
        font-size: 32px;
        font-weight: 600;
        color: white;
        text-shadow: 1px 1px 2px gray;
    }
}

/* 最新TOPICS */
.recent-topics-list {
    margin: 0 16px;
    padding: 24px 16px;
    background-color: white;
    border-radius: 24px;
}

/* [TODO]臨時にfirst-of-typeにもpadding-bottomとborder-bottomを入れておく */
.recent-topic-item:first-of-type {
    margin-top: 24px;
    padding-bottom: 8px;
    border-bottom: 1px solid lightgray;
}
.recent-topic-item:not(:last-child) {
    border-bottom: 1px solid lightgray;
    padding-bottom: 16px;
}

.topic-date {
    margin: 4px 0;
    font-size: 14px;
}

.topic {
    display: flex;
    align-items: center;
    justify-content: space-between;

    p {
        margin: 0;
    }
}

/* からだにいいこと大賞とは？ */
.award-introduction {
    display: flex;
    flex-direction: column;
    align-items: center;

    p {
        font-weight: 500;
        padding: 0 16px;
    }
}

.award-introduction::after {
    content: "";
    background: url(parts/wave_pk_aft.png);
    width: 100%;
    height: 50px;
    position: relative;
    top: 24px;
}

.what-is-karakoto-award {
    color: var(--main-color);
    text-align: center;
    margin: 0;
}

.how-to-entry {
    background-color: var(--bg-secondary-color);
    padding: 16px 12px;
}

.entry-process-subtitle {
    color: var(--main-color);
    text-align: center;
    margin: 16px 0 0;
}

.entry-process-title {
    text-align: center;
    margin: 4px 0 16px;
    font-size: 36px;
    letter-spacing: 8px;
}

.entry-process-title-border {
    display: flex;
    justify-content: center;
}

.entry-process-title-border-item {
    margin: auto;
    display: flex;
    justify-self: center;
}

.entry-process {
    background-color: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 0 2px var(--main-color) inset;
    margin: 48px auto 24px;
    padding: 16px 24px;
    max-width: fit-content;

    h3 {
        font-size: 24px;
        color: white;
        background-color: var(--main-color);
        max-width: fit-content;
        text-align: center;
        border-radius: 8px;
        padding: 4px 8px;
        margin-top: -32px;
        margin-bottom: 0px;

        @media screen and (max-width: 767px) {
            font-size: 18px;
        }
    }
}

.entry-content {
    display: grid;
    grid-template-columns: 35% 65%;
    align-items: center;
    gap: 8px;

    p {
        max-width: 320px;

        @media screen and (max-width: 767px) {
            font-size: 14px;
        }
    }
}

.arrow-down {
  width: 0; 
  height: 0; 
  border-left: 36px solid transparent;
  border-right: 36px solid transparent;
  margin: 24px auto;
  border-top: 36px solid #f88db9;
}

.step-image {
    max-width: 100%;
}

.award-history-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.history-list-row {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.history-item {
    background: var(--main-color);
    color: white;
    font-size: 18px;
    border-radius: 50px;
    padding: 8px 32px;
    text-align: center;
    cursor: pointer;

    @media screen and (max-width: 767px) {
        padding: 8px 24px;
    }
}

.history-item-text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

    @media screen and (max-width: 767px) {
        font-size: 14px;
    }
}

.history-item-link-arrow {
    max-width: 20px;

    @media screen and (max-width: 767px) {
        max-width: 18px;
    }
}

.judge-members {
    padding: 24px 0 0;
    background-color: white;
}

.judge-members-list {
    display: grid;
    padding: 24px;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    justify-content: center;
}

.judge-member-introduction {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.award-notice-background {
    position: relative;
    background-image: url(parts/step_04_bg.png);
    padding: 8px;
    background-color: var(--bg-secondary-color);
}

.award-notice-text {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.sparkle {
  position: absolute;
  width: 60px;
  opacity: 0;
  animation: twinkle 2s infinite;
  z-index: 2;
}

.header-sparkle1 { top: 32.5%; left: 15%; animation-delay: 0s; }
.header-sparkle2 { top: 57.5%; left: 30%; animation-delay: 1s; }
.header-sparkle3 { bottom: 32.5%; right: 25%; animation-delay: 0s; }
.header-sparkle4 { top: 35%; right: 12.5%; animation-delay: 1s; }

.sparkle1 { top: 12.5%; left: 7.5%; animation-delay: 0s; }
.sparkle2 { top: 15%; right: 10%; animation-delay: 1s; }
.sparkle3 { bottom: 10%; right: 2.5%; animation-delay: 0s; }
.sparkle4 { top: 60%; left: 2.5%; animation-delay: 1s; }

@keyframes bounceX {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-8px);
  }
  50% {
    transform: translateX(0);
  }
  75% {
    transform: translateX(8px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(30deg); }
}


.entry-step04-image {
    max-width: 100%;
}

/* 事務局からのメッセージ */
.fukidashi-title {
    margin: 0;
    padding: 24px 36px;
    background-image: url(parts/e1092_1.svg);
    background-position: center 4px;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;

    @media screen and (max-width: 767px) {
        background-position: center 8px;
    }
}

.fukidashi-title-office-message {
    background-position: center 6px;
}

/* [TODO] 必要に応じてmargin-top: 24px → 64px */
.office-message {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.office-message::after {
    content: "";
    background: url(parts/wave_pk_aft_2.png);
    width: 100%;
    height: 38px;
}

.history-link {
    text-decoration: none;
}
.award-history {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid var(--main-color);
    border-radius: 16px;    
    padding: 20px 40px;
    margin: 48px 12px;

    @media screen and (max-width: 767px) {
        padding: 20px 12px;
    }

    h2 {
        color: var(--main-color);
        padding: 8px 24px;
        max-width: fit-content;
        display: flex;
        justify-content: center;
        border: 2px solid var(--main-color);
        background-color: #ffffff;
        margin-top: -48px;
        border-radius: 36px;

        @media screen and (max-width: 767px) {
            font-size: 18px;
        }
    }
}

/* 女性の健康と美容に役立つ全8部門 */
.award-parts {
    background: url(parts/introduction-bg.png);
    padding: 24px 0;
}

.award-parts::after {
    content: "";
    display: block;
    background: url(parts/wave_pk_bef.png);
    position: relative;
    top: 32px;
    width: 100%;
    height: 30px;
}

.award-parts-subtitle {
    text-align: center;
    color: var(--main-color);
}

.award-parts-title-img {
    max-width: 100%;
    display: flex;
    justify-self: center;
    margin: 0 auto 24px;

    @media screen and (max-width: 767px) {
        margin: 0 auto 24px;
        max-width: 90%;
    }
}

/* [TODO] 10/14時点で padding-bottom: 8px -> 24px */
.each-part:not(:last-of-type) {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--main-color);
}

/* [TODO] 10/14時点で padding-bottom: 8px 16px → 8px 16px 36px */
.part-introduction {
    background-color: white;
    border-radius: 12px;
    padding: 8px 16px;
    margin: 0 12px;
}

.more-information-box {
  padding: 16px;
  background-color: var(--bg-color);
  border-radius: 8px;
  margin: 4px 0 20px;
}

.more-information-box .inner {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.more-information-box.open .inner {
  max-height: 500px;
  opacity: 1;
}

.part-category-title {
    display: flex;
    align-items: center;
    gap: 4px;
}

.accordion-icon {
    max-width: 28px;
    cursor: pointer;
}
.crown-img {
    max-width: 48px;
}

.part-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.part-category1 {
    color: #fca14c;
}

.part-category2 {
    color: #f7448f;
}

.part-category3 {
    color: #458eba;
}

.part-category4 {
    color: #8566a2;
}

.part-category5 {
    color: #23abb4;
}

.part-category6 {
    color: #3b9f53;
}

.part-category7 {
    color: #f77692;
}

.part-category8 {
    color: #4078af;
}

.part-vote {
    text-align: center;
}

.vote-guide, .entry-vote-button {
    background: linear-gradient(to right, #e42c79, #ff56a8);
    box-shadow: 2px 4px 0 #c1306f;
    color: white;
    font-weight: 600;
    position: relative;
    font-size: 24px;
    padding: 16px 36px;
    border-radius: 42px;
}

.vote-guide-text {
    display: flex;
    font-weight: 600;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.entry-vote-text {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    @media screen and (max-width: 767px) {
        font-size: 20px;
    }
}
.vote-guide-arrow, .entry-vote-arrow {
    max-width: 32px;
}

.entry-vote-arrow {
    @media screen and (max-width: 767px) {
        max-width: 20px;
    }
}

/* 審査員紹介 */
.judge-members::before {
    content: "";
    background: url(parts/wave_pk_aft.png);
    width: 100%;
    height: 38px;
    bottom: 24px;
    position: relative;
}

.judge-members {
    h3 {
        color: var(--main-color);
        text-align: center;
    }
}

.judge-members::after {
    content: "";
    background: url(parts/wave_pk_aft_white.png);
    width: 100%;
    height: 38px;
    width: 100%;
    position: relative;
    top: 56px;
}

.judge-introduction-title {
    font-size: 28px;
    text-align: center;
}

.judgement-member-name {
    color: var(--main-color);
    font-size: 20px;
    margin: 0;
}

.judge-member-introduction {
    h6 {
        font-size: 18px;
        margin: 0;
    }
}

.member-profile-img {
    max-width: 150px;
    @media screen and (max-width: 767px) {
        max-width: 100%;
    }
}

.more-link {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--main-color);
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    margin-top: 8px;
    border: 2px solid var(--main-color);
    border-radius: 32px;

    @media screen and (max-width: 767px) {
        padding: 4px 16px;
        font-size: 14px;
    }
}

.message-from-office {
    p {
        padding: 0 16px;
    }
}

/* Footer */
.lp-footer {
    background-color: white;
    text-align: center;
    padding: 24px 0;

    h1 {
        margin: 0;
        font-size: 24px;
    }
}

.contact-address {
    @media screen and (max-width: 767px) {
        font-size: 14px;
    }

    p {
        margin: 4px 0;
    }
}

.sns-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    align-items: center;
    margin: 24px 0 16px;

    img {
        max-width: 60px;
        min-width: 60px;
    }
}

.karakoto-mail {
    text-decoration: none;
    color: #000000;
}

/* SideBar */
.sp-menu-button {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 999;

    @media screen and (min-width: 768px) {
        display: none;
    }
}

.sp-menu-icon {
    cursor: pointer;
}

.pc-left-sidebar {
    padding: 60px 16px;
    position: fixed;
    left: 0;
    word-break: break-all;
    overflow: hidden;
    max-width: calc(50vw - 300px);

    @media screen and (max-width: 767px) {
        display: none;
    }
}

.qr-code {
    max-width: 250px;
    display: flex;
}

.qr-code-access-text {
    text-align: center;
    max-width: fit-content;
}

.contact-left-sidebar {
    max-width: fit-content;
}
.pc-right-sidebar {
    width: calc(50vw - 300px);
    padding-top: 40px;
    position: fixed;
    padding-left: 48px;
    right: 0;

    @media screen and (max-width: 767px) {
        display: none;
    }
}

.right-sidebar-links {
    font-weight: 600;
    font-size: 16px;
    list-style: none;

    ul {
        padding-left: 0;
        margin: 32px 0;
    }
}

.menu-hyperlink {
    color: var(--main-color);
    text-decoration: none;
}

.menu-vote {
    margin-top: 108px;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-width: 360px;
    max-width: 50%;
}

.menu-vote-sp {
    margin-top: 108px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

/* モーダル全体の背景 */
.modal {
  display: none; /* 初期は非表示 */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
}

/* モーダル中身 */
.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  width: 70%;
  max-width: 500px;
  border-radius: 10px;
  text-align: center;

  @media screen and (max-width: 767px) {
    margin: 20% 6%;
    width: auto;
    max-width: 55%;
  }
}

/* 閉じるボタン */
.modal-close {
  color: var(--main-color);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-self: right;
}

.modal-profile-image {
    max-width: 100px;
}

.modal-hr {
    border: 0.5px solid var(--main-color);
}

.modal-h2 {
    color: var(--main-color);
    margin: 8px 0;
}

.modal-paragraph {
    text-align: left;
}

/* 背景オーバーレイ */
.sp-overlay {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;        /* 初期は非表示 */
  z-index: 999;
}

/* サイドメニュー */
.side-menu {
    display: flex;
    flex-direction: column;

    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 8px rgba(0,0,0,0.3);
    z-index: 1000;

    transition: right 0.3s ease; /* スライドアニメーション */
    padding: 20px;
}

/* 開いた状態 */
.side-menu.open {
  right: 0;
}

.sp-overlay.show {
  display: block;
}

/* 閉じるボタン */
.close-btn {
  cursor: pointer;
  display: flex;
  justify-self: flex-end;
  align-self: end;
  max-width: 52px;
}