
.qa-container {
    max-width: 800px;
    margin: 12px auto;
    padding: 0; /* paddingを0に変更してh2の背景を端まで表示 */
    border: solid 1px #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* 角の丸みを保持するため */
}

.qa-container a,.contact-container a{
    text-decoration:underline;
}

.contact-container{
    background-color: lightgray;
    max-width: 800px;
    margin: 12px auto;
    padding: 20px 20px 30px 20px;
    border: solid 1px #ddd;
    border-radius: 10px;
    overflow: hidden; /* 角の丸みを保持するため */
}

.contact{
    padding-bottom: 12px;
}

.faq-title{
    font-size: 26px;
    text-align: center;
    padding: 15px 0 0;
}

.sub-title{
    text-align: center;
    padding-bottom: 20px;
}

h2{
    background: linear-gradient(to bottom right, #f23041, #d42232);
    color: #fff;
    padding: 20px 30px;
    font-weight: bold;
    font-size:18px;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.qa-container dl {
    padding: 0 20px 20px 20px;
}

dl {
    margin: 0;
}

dt {
    font-weight: 600;
    padding: 15px 40px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    position: relative;
    text-indent: -2em; /* 最初の行を左に動かす */
}

dt:hover {
    color: #de3341;
}

/* +記号の水平線 */
dt::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 23px; /* 中央に配置するよう調整 */
    width: 16px;
    height: 2px;
    background-color: #666;
    transform: translateY(-50%);
}

/* +記号の垂直線 */
dt::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 30px; /* 水平線の中央に配置するため移動 */
    width: 2px;
    height: 16px;
    background-color: #666;
    transform: translateY(-50%);
    transition: transform 0.3s ease; /* アニメーションを追加 */
}

/* 質問がアクティブ（開いている）な時の垂直線のスタイル */
dt.active::after {
    transform: translateY(-50%) rotate(-90deg);
}

dd {
    margin: 0 2em;
    padding: 0 1em;
    line-height:150%;
    overflow: hidden;
    max-height: 0; /* JavaScriptで制御するため、初期状態では高さを0にする */
    transition: max-height 0.3s ease, padding 0.3s ease;
    text-indent: -1em; /* 最初の行を左に動かす*/
}

dd.open {
    max-height: 500px; /* 十分な高さを設定して内容を表示 */
    padding: 1em;
    text-indent: -1em; /* 最初の行を左に動かす */
}
