body {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    background-color: #f7f7f7;
    color: #333;
    font-family: "Noto Sans JP", "Sawarabi Mincho", sans-serif, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN";
    font-feature-settings: "pkna";
    word-break: break-word !important;
}

.page-header {
    background-color:white;
    color: #d90b18;
    text-align: center;
    padding: 60px 20px;
}

.page-header h1 {
    font-size: 3rem;
    margin: 0;
    letter-spacing: 2px;
}

.page-header p {
    font-size: 1.2rem;
    margin-top: 10px;
    opacity: 0.9;
}

/* officerFAQ */

.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.row {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.row-2 {
    grid-template-columns: repeat(2, 1fr);
}

.row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.message-card {
    background-color: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
}

.top-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.top-row_1 {
    justify-content: space-around;
}

.top-row_2 {
    justify-content: space-between;
}

.top-row img {
    width: 150px;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

.title-name .officer-title {
    font-weight: bold;
    font-size: 1rem;
    color: #333;
    letter-spacing: 0.5px;
}

.title-name .officer-name {
    font-weight: bold;
    font-size: 2rem;
    color: #333;
    letter-spacing: 0.5px;
}

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

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

.right-text {
    text-align: right;
}

.message-card > h2 {
    font-size: 1.3rem;
    color: #d90b18;
    margin: 0 0 10px;
    border-bottom: 2px solid #d90b18;
    display: inline-block;
    padding-bottom: 4px;
    text-align: left;
}

.message-card > p {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin: 0;
    text-align: justify;
    text-justify: inter-ideograph;
}

.phone-br {
    display: none;
}

@media(max-width: 1250px) {

    .row,
    .row-2,
    .row-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width: 900px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .row-2,
    .row-3 {
        grid-template-columns: 1fr;
    }

    .top-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .top-row img {
        margin-bottom: 10px;
    }
}

@media(max-width: 600px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .message-card > h2 {
        font-size: 1.2rem;
        text-align: center;
    }

    .right-text {
        text-align: center;
    }

    .left-text {
        text-align: center;
    }

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

    .main-wrapper {
        padding: 20px 10px;
    }
}

@media(max-width: 375px) {
    .page-header h1 {
        font-size: 1.5rem;
    }

    .message-card > h2 {
        font-size: 1rem;
    }
}

@media(max-width: 320px) {
    .page-header h1 {
        font-size: 1.2rem;
    }

    .phone-br {
        display: block;
    }
}

/* FAQ */

.qa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.qa-block {
    border-top: 1px solid #ccc;
    padding: 2rem;
    background: #f9f9f9;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: visible;
}

.question {
    background-color: #d90b18;
    color: white;
    padding: 1rem 2rem;
    font-weight: 400;
    text-align: center;
    z-index: 1;
    position: relative;
    display: inline-block;
    border-radius: 6px;
    font-size: 2rem;
}

.question-title {
    display: inline-block;
    border-radius: 6px;
    padding: 0 10px;
    background-color: #d90b18;
    color: white;
    font-size: 3rem;
    font-weight: bold;
}


.answers-up,.answers-down {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.answers-up li,.answers-down li {
    background: #fff;
    margin: 1rem 0;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    border-radius: 6px;
    border: 2px solid #d90b18;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    font-weight: 400;
    position: relative;
    opacity: 0 !important;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);

}

.answers-up li {
    transform: translateY(-40px) !important;
}

.answers-down li {
    transform: translateY(40px) !important;
}

.answers-up li.show,
.answers-down li.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}



.answers-up li::before {
    content: "";
    position: absolute;
    bottom: -18px;
    left: 20%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 22px solid transparent;
    border-right: 12px solid transparent;
    border-top: 18px solid #d90b18;
    z-index: 1;
}
.answers-up li::after {
    content: "";
    position: absolute;
    bottom: -14px;
    left: 20%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 22px solid transparent;
    border-right: 12px solid transparent;
    border-top: 18px solid white;
    z-index: 2;
}
.answers-down li::before {
    content: "";
    position: absolute;
    top: -18px;
    left: 80%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 22px solid transparent;
    border-bottom: 18px solid #d90b18;
    z-index: 1;
}
.answers-down li::after {
    content: "";
    position: absolute;
    top: -14px;
    left: 80%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 22px solid transparent;
    border-bottom: 18px solid white;
    z-index: 2;
}


.author {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.3rem;
}

.font-special {
    font-weight: 600;
    font-size: 1.3rem;
    display: inline;
    background: linear-gradient(transparent 70%, #fffb0064 0%);
}

.qa-menu {
    max-width: 1000px;
    margin: 0 auto;
}

.qa-menu nav ul {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 2rem;
    list-style: none;
    flex-direction: column;
    align-items: center;
}

.qa-menu nav ul li {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    width: 80%;
} 

.menu-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: #d90b18;
    border: 2px solid #d90b18;
    padding: 1rem 2rem;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 40px;
}

.menu-btn:hover {
    color: white;
    background-color: #d90b18;
}

.avatar-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.avatar-circle img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}
.pc-none{
    display: none;
}

@media(max-width: 768px) {


    .menu-btn {
        font-size: 1rem;
        height: auto;
        padding: 1rem 0.5rem;
    }

    .question-title {
        font-size: 2rem;
    }

    .question {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
    }

    .question::before {
        left: 70%;
        border-right: 40px solid transparent;
        border-top: 40px solid #d90b18;
    }

    .answers-up,
    .answers-down {
        flex-direction: column;
        align-items: stretch;
        min-height: 50px;
        overflow: visible;
    }
    .question3 .answers-down {
        min-height: 2000px;
        overflow: visible;
    }
    .answers-up li,
    .answers-down li {
        padding: 1rem 0.5rem;
    }
    
    .answers-up li {
        transform: translateY(-30px) !important;
    }
    
    .answers-down li {
        transform: translateY(30px) !important;
    }

    .answers-up li,
    .answers-down li {
        font-size: 1rem;
    }
    
    .answers-up li::before {
        bottom: -14px;
        left: 20%;
        border-left: 18px solid transparent;
        border-right: 10px solid transparent;
        border-top: 14px solid #d90b18;
    }
    
    .answers-up li::after {
        bottom: -11px;
        left: 20%;
        border-left: 17px solid transparent;
        border-right: 9px solid transparent;
        border-top: 13px solid white;
    }
    
    .answers-down li::before {
        top: -14px;
        left: 80%;
        border-left: 18px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 14px solid #d90b18;
    }
    
    .answers-down li::after {
        top: -11px;
        left: 80%;
        border-left: 17px solid transparent;
        border-right: 9px solid transparent;
        border-bottom: 13px solid white;
    }
    .phone-none{
        display: none;
    }
    .pc-none{
        display: block;
    }
    .qa-menu nav ul li {
        width: 100%;
    } 
}

@media(max-width: 480px) {
    .question-title {
        font-size: 1.6rem;
    }

    .question {
        font-size: 1rem;
        padding: 0.6rem 1rem;
    }

    .menu-btn {
        font-size: 0.95rem;
        padding: 0.8rem;
    }
    .qa-block{
        padding: 1rem;
    }

.font-special {
    font-size: 1.2rem;
}
.font-special::after{
    height: 10px;
}
.page-header h1 {
    font-size: 2rem;
}
.answers-up,
.answers-down {
gap: 0;
}

#question3 .answers-down {
    min-height: 200px;
    overflow: visible;
}
}

@media(max-width: 375px) {
    .qa-block {
        padding: 1rem;
    }
}
