@charset "utf-8";

#message {
    padding: 50px 0 16px;
    /* background: linear-gradient(180deg, var(--team-primary-color) 0%, #DB2323 100%); */
    background: var(--team-primary-color);
    color: white;
}

#message .title {
    margin-top: 0;
    margin-bottom: 21px;
    padding-bottom: 0;
}

#message .sub {
    margin-top: 0;
    margin-bottom: 59px;
    padding-bottom: 0;
    line-height: 1.43;
}

@media screen and (max-width: 1024px) {
    #message {
        padding: 55px 0px 49px;
    }
    #message .title {
        margin-bottom: 4px;
    }
    #message .sub {
        margin-bottom: 40px;
        line-height: 1.45;
    }
}

@media screen and (max-width: 480px) {
	#message {
        padding: 37px 0px 4px;
	}
    #message .title {
        margin-bottom: 4px;
    }
    #message .sub {
        margin-bottom: 40px;
        line-height: 1.46;
    }
}

ul.message-list-container {
    padding: 0;
    list-style: none;
}

.message-list-container {
    margin-top: 0;
    margin-bottom: 42px;

    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px 12px;

    max-height: 0; /* デフォルトではアイテムは非表示 */
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.message-list-container.no-transition {
    transition: none; /* アニメーションを無効化 */
}

@media screen and (max-width: 480px) {
    .message-list-container {
        position: relative;
    }

    .message-list-container::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-height: 100px;
        pointer-events: none; /* グラデーション部分がクリックを妨げないようにする */

        background: linear-gradient(180deg, rgba(230,30,30,0) 0%, rgba(230,30,30,1) 80px, rgba(230,30,30,1) 100%);
        transition: opacity 0.5s ease;
        opacity: 1;
    }

    .message-list-container.expanded::before {
        opacity: 0;
    }
}


.message-list-item {
    flex: 0 1 calc(33.333% - 12px); /* 3 items per row */
    box-sizing: border-box;
}

@media screen and (max-width: 1024px) {
    .message-list-container {
        margin-bottom: 24px;
    }
    .message-list-item {
        flex: 0 1 calc(50% - 10px); /* 2カラム表示に変更 */
    }
}

@media screen and (max-width: 480px) {
	.message-list-item {
        flex: 0 1 calc(100% - 10px); /* 1カラム表示に変更 */
	}
}

.message-list-container::after {
    content: "";
    flex: auto; /* 最後の行のアイテムが左寄せになるように調整 */
}

.message-title {
    margin-right: 26%;
    padding: 25px 20px 55px 20px;
    background-color: white;
    border: 0 solid var(--team-primary-color);
    border-radius: 5px;
    font-size: 16px;
}

.message-title h3 {
    color: var(--team-primary-color);
    font-size: 14px;
    margin: 0 0 10px;
}

.message-body {
    color: #444;
    font-size: 16px;
    line-height: 1.75;
    text-align: justify;
}

@media screen and (max-width: 480px) {
    .message-title {
        padding: 18px 20px 24px 20px;
    }
    .message-title h3 {
        font-size: 12px;
    }
    .message-body {
        font-size: 13px;
        line-height: 1.85;
    }
}

.message-response {
    position: relative;
    top: -37px;
    margin-bottom: -37px;
    margin-left: 26%;
    padding: 26px 19px 20px 19px;
    border: 1px dashed white;
    border-radius: 5px;
    background-color: var(--team-primary-color);
    color: white;
    font-size: 16px;
}

.message-response h3 {
    margin: 0 0 9px;
    font-size: 14px;
}

.message-response .message-body {
    color: white;
    line-height: 1.75;
}

@media screen and (max-width: 1024px) {
    .message-response {
        padding-top: 29px
    }
}

@media screen and (max-width: 480px) {
    .message-response {
        top: -17px;
        margin-bottom: -17px;

        padding: 15px 18px 13px 18px;
    }
    .message-response h3 {
        font-size: 12px;
    }
    .message-response .message-body {
        font-size: 13px;
        line-height: 1.85;
    }
}

.message-response .message-body > p {
    margin-top: 0;
}

.message-response .message-body > p:last-child {
    margin-bottom: 0;
}

.message-more-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    margin-bottom: 42px;
}

.message-more {
    position: relative;
    padding: 17px 4px 16px 34px;
    border: solid white;
    border-width: 1px 0;
    color: white;
    font-size: 18px;
    letter-spacing: 1.8px;
}

.message-more::before {
    content: '';
    position: absolute;
    left: -4px; /* アイコンの位置を調整 */
    width: 24px;
    height: 24px;
    background: url(../../assets/images/message-more-icon.svg) no-repeat center;
    transition: transform 0.3s ease;
}

.message-list-container.expanded ~ .message-more-container .message-more::before {
    transform: rotate(45deg);
}

.message-more:hover {
    cursor: pointer;
}

@media screen and (max-width: 1024px) {
    .message-more {
        padding: 14px 3px 12px 31px;
        line-height: 1;
    }
    .message-more::before {
        left: 5px;
        width: 17.23px;
        height: 17.23px;
    }
}

@media screen and (max-width: 480px) {
    .message-more {
        padding: 11.5px 2px 11.5px 21px;
        font-size: 14px;
        line-height: 1;
        letter-spacing: 1.4px;
    }
    .message-more::before {
        left: 3px; /* アイコンの位置を調整 */
        width: 12px;
        height: 12px;
    }
}

.message-button-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    margin-bottom: 42px;
}
.message-button {
    padding: 15px 35px 14px;
    border: 1px solid white;
    border-radius: 5px;
    background-color: white;
    color: var(--team-primary-color);
    font-size: 18px;
}
.message-button:hover {
    cursor: pointer;
}

@media screen and (max-width: 1024px) {
    .message-button {
        padding: 13px 35px 13px;
    }
}

@media screen and (max-width: 480px) {
    .message-button-container {
        margin-bottom: 44px;
    }
    .message-button {
        font-size: 13px;
        line-height: 1.46;
        padding: 18px 32px 18px;
    }
}

/* メッセージのセンタリング */
.message-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* メッセージの固定幅 */
.message-fixed {
	width: 872px;
}
@media screen and (max-width: 1280px) {
    .message-fixed {
        width: min(558px, 100%);
    }
}
@media screen and (max-width: 480px) {
    .message-fixed {
        width: 100%;
    }
}
/* 必要のないパディング削除 */
.float_message_form p {
    margin: 0px;
}
/* パディングを考慮したテキストエリア幅 */
.message-form-textarea {
    width: calc(100% - 26px);
    height: calc(266px - 30px);
    padding: 15px 13px;
    border-radius: 5px;
    font-size: 18px;
    font-family: Cabin, Noto Sans JP;
}

.message-form-textarea::placeholder {
    color: #44444480;
    font-size: 18px;
}

.message-send-btn-container {
    margin-top: 50px;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.message-send-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    padding: 14px 64px 14px;
    border: 1px solid white;
    border-radius: 5px;
    background-color: white;
    color: var(--team-primary-color);
    font-size: 18px;
    font-family: Cabin, Noto Sans JP;
}
.wpcf7 form .wpcf7-response-output {
    margin-top: 0em;
}

@media screen and (max-width: 480px) {
    .message-send-btn {
        padding: 14px 48px 14px;
        font-size: 13px;
    }
}
