* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
}

a {
    color: #426599;
    transition: color 0.3s ease;
}

a:hover {
    color: #668ABE;
}

h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 24px;
    padding: 0;
}

h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 24px;
    padding: 0;
}

h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 16px;
    padding: 0;
}

h4 {
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 16px;
    padding: 0;
}

/* PAGE共通設定 */
main {
    margin: 8rem auto 3rem;
}

#container h1 {
    font-size: 16px;
}

/* ▼パンくず▼ */
.pankuzu {
    width: 100%;
    margin-bottom: 2rem;
}

.pankuzu ul {
    display: flex;
    list-style: none;
}

.pankuzu li {
    margin-right: 0.5rem;
    font-size: 12px;
}
/* ▲パンくず▲ */

/* ▼トップに戻るボタン▼ */
#backToTop {
    position: fixed;
    right: 80px;
    bottom: 80px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

#backToTop img {
    width: 100%;
    height: 100%;
    pointer-events: none;
}
/* ▲トップに戻るボタン▲ */

.open {
    width: 16px;
    margin: 0 0px;
}

/* ▼よくある質問タブ▼ */
#container {
    width: 1064px;
    padding: 0 20px;
    margin: 0px auto;
}

.tabs {
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid #222;
    margin-bottom: 20px;
}

.faqtabs {
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-around;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.faqtabs a {
    color: #BFBFBF;
    text-decoration: none;
    color: #BFBFBF;
    font-weight: 400;
}

.tab {
    font-size: 24px;
    padding: 10px 20px;
    cursor: pointer;
    color: #BFBFBF;
}

.tab a {
    color: #BFBFBF;
    text-decoration: none;
}


.tab.active {
    font-size: 24px;
    color: #426599;
    border-bottom: 6px solid #426599;
}

.content {
    display: none;
}

.content.active {
    display: block;
}
/* ▲よくある質問タブ▲ */

/* ▼よくある質問トグル▼ */
.faq-container {
    width: 1024px;
    overflow: hidden;
}

.faq-question {
    font-size: 16px;
    font-weight: bold;
    background-color: #F2F2F2;
    padding-left: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.toggle-icon {
    font-size: 24px;
    background-color: #426599;
    color: #ffffff;
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #ffffff;
}

.faq-answer-content {
  white-space: pre-wrap;
  padding: 0 56px 20px 24px;
}

.faq-answer-content .faq-img-pc {
    width: 100%;
    display: flex;
}

.faq-answer-content .faq-img-pc img {
    width: 100%;
    max-width: 500px;
    margin-right: 0;
    padding-right: 1rem;
}

.faq-answer-content .faq-img-sp {
    display: none;
}

/* ▲よくある質問トグル▲ */

@media screen and (max-width: 1023px) {
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    html {
        width: 100%;
    }
    
    body {
        width: 100%;
        font-family: 'Noto Sans JP', sans-serif;
        color:#222;
    }

    main {
    width: 100%;
    margin: 4rem auto 3rem;
    padding: 3% 0 0;
    }
    
    a {
        color: #426599;
        transition: color 0.3s ease;
    }
    
    a:hover {
        color: #668ABE;
    }

    h1 {
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 24px;
        padding: 0;
    }
    
    h2 {
        font-size: 16px;
        margin-bottom: 16px;
        padding: 0;
    }
    
    h3 {
        font-size: 16px;
        margin-bottom: 16px;
        padding: 0;
    }
    
    h4 {
        font-size: 14px;
        margin-bottom: 12px;
        padding: 0;
    }

    #backToTop {
        position: fixed;
        right: 24px;
        bottom: 24px;
        background-color: transparent;
        border: none;
        cursor: pointer;
        z-index: 1000;
    }
    
    #backToTop img {
        width: 48px;
        height: 48px;
        pointer-events: none;
    }

/* ぱんくずリスト */
.pankuzu {
    width: 100%;
    margin-bottom: 2rem;
}

.pankuzu ul {
    display: flex;
    list-style: none;
    margin: auto;
}

.pankuzu li {
    margin-right: 0.5rem;
    font-size: 12px;
}

/* ▼よくある質問タブ▼ */
#container {
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    border-bottom: 0;
}

.faqtabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    font-weight: bold;
    padding: 0;
    margin: 0;
    overflow: visible;
    height: auto;
}

.faqtabs a {
    padding: 32px 0 16px;
}

.tab {
    font-size: 16px;
    flex: 0 0 33.33%;
    box-sizing: border-box;
    text-align: center;
    border-bottom: 1px solid #222;
    padding: 10px 0;
    white-space: normal; 
}

.tab:last-child:nth-child(6), 
.tab:last-child:nth-child(7) {
    flex: 1 1 33.33%;
}

.tab.active {
    font-size: 16px;
}

.content {
    display: none;
}

.content.active {
    display: block;
}
/* ▲よくある質問タブ▲ */

/* ▼よくある質問トグル▼ */
.faq-container {
    width: 100%;
    overflow: hidden;
}

.faq-question {
    font-size: 12px;
    font-weight: bold;
    background-color: #F2F2F2;
    padding-left: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.toggle-icon {
    font-size: 24px;
    background-color: #426599;
    color: #ffffff;
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
    margin-left: 12px;
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #ffffff;
}

.faq-answer-content {
    font-size: 14px;
    white-space: pre-wrap;
    padding: 0 24px 20px 24px;
    height: auto;
}

.faq-answer-content .faq-img-sp {
    width: 100%;
    max-width: 100%;
    display: block;
    flex-direction: column;
    margin-right: 0;
}

.faq-answer-content .faq-img-sp img {
    width: 100%;
    max-width:500px;
    margin-right: 0;
}

.faq-answer-content .faq-img-pc {
    display: none;
}

}