@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-panel {
  animation: fadeIn 0.7s ease;
}

.tab{
    align-items: flex-start;
}
#tab-v {
    flex-shrink: 0;
    margin-left: 30px;    /* タブ見出しの上端をtabbody画像の上端に合わせる */
}

#tab-v .tab-contena {
    margin-left: 40px;
    padding: 0;
    list-style: none;
    display: flex;
}

/* タブ切り替え機能 */
#tab-v .tab-elem {
    display: block;
    padding: 7px 0 7px 1.5em;
    color: #999;
    position: relative;
    margin: 0 0 12px;
}
#tab-v .tab-headline {
    position: relative;
    display: inline-block;
    margin: 0;
    color: inherit;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: color 0.2s ease, transform 0.25s ease;
}
#tab-v .tab-headline::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(154, 232, 255, 0.95), rgba(255, 255, 255, 0.95));
    transform: scaleX(0.05);
    transform-origin: left center;
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.17, 0.84, 0.44, 1), opacity 0.2s ease;
}
#tab-v .tab-elem:hover {
    cursor: pointer;
}
#tab-v .tab-elem:hover .tab-headline,
#tab-v .tab-elem.active .tab-headline {
    color: #e9fbff;
    transform: translateY(-1px);
}

#tab-v .tab-elem:hover .tab-headline::after,
#tab-v .tab-elem.active .tab-headline::after {
    opacity: 1;
    transform: scaleX(1);
}

/* 表示中のタブのCSS */
#tab-v .tab-elem.active {
    color: #f7f5f5;
}

/* 表示中のタブの疑似要素 */

#tabbody-v {
    /* タブ内コンテンツの高さを親要素いっぱいにするための指定 */
    display: flex;
    flex: 1;
    flex-direction: column;
}

#tabbody-v .tabbody-elem {
    flex-grow: 1; /* タブ内コンテンツの高さを親要素いっぱいにするための指定 */
    margin : 40px;
    margin-top: 30px;
    max-width: 100%;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

#tabbody-v .tabbody-img {
    margin-left: 20px;
    flex: 0 0 auto;
    width: 100%;
}

#tabbody-v .tabbody-img img {
    display: block;
    width: 400px;
    height: auto;
}

#tabbody-v .tabbody-discription {
    width: 80%;
    margin: 0 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-self: center;
}

/* 
question 
*/
/* tab.css 内の .qa を上書き */
.qa {
    width: 100%;             /* 横幅いっぱいに広げる */
    margin: 60px 0 0px;     /* 上に大きな余白、下に少しの余白 */
    font-size: 2.5rem;       /* サイズを大きく */
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.1em;
    position: relative;
    padding-left: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 前方のアクセント：光るドット */
.qa::before {
    content: "";
    width: 12px;
    height: 12px;
    background: #9dff00;
    box-shadow: 0 0 10px #9dff00;
    display: inline-block;
}

/* 後方のアクセント：細く伸びる光のライン */
.qa::after {
    content: "";
    flex: 1;                /* 残りの幅をすべて使う */
    height: 1px;
    background: linear-gradient(90deg, rgba(157, 255, 0, 0.8), transparent);
    box-shadow: 0 0 5px rgba(157, 255, 0, 0.5);
}

.questionset {
    font-size: 1.2em;
    font-weight: bold;
    width:     100%;              /* 横幅を広げる */
    margin: 2rem 0;       /* 上下の余白を調整し中央寄せ */
    padding: 24px;
    background: rgba(255, 255, 255, 0.03); /* ほのかな透過白 */
    border-left: 3px solid #9dff00;        /* 左側のアクセントライン */
    border-radius: 0 12px 12px 0;          /* 右側だけ角を丸く */
    backdrop-filter: blur(8px);            /* 背景をぼかして高級感を出す */
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}
.question-headline {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    color: #9dff00; /* 強調色（Aboutセクションの文字色と統一） */
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.05em;
}
.questionset {
    margin: 60px;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 0.5em;
}
.question-headline::before {
    content: "";
    font-size: 0.8rem;
    background: #9dff00;
    color: #000;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
}

/* 回答のテキスト（A.） */
 .question-answer {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85); 
    margin: 0;
    padding-left: 34px; 
    position: relative;
    font-weight: normal; 
}


/* 回答の先頭に「ANS.」という小さな補助テキスト */
/* .question-answer::before {
    content: "ANS.";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.1em;
} */


@media (max-width: 500px) {
    .qa {
        font-size: 1.8rem; /* タイトルを少し小さく */
        gap: 10px; /* タイトルとラインの間隔を縮める */
    }
    .questionset {
        margin: 30px 0; /* 上下の余白を減らす */
        padding: 16px; /* 内側の余白も減らす */
    }
    .question-headline {
        font-size: 1rem; /* 見出しを少し小さく */
        gap: 8px; /* 見出し内のアイコンとテキストの間隔を縮める */
    }
    .question-answer {
        font-size: 0.9rem; /* 回答テキストを少し小さく */
        padding-left: 28px; /* 回答テキストの左余白を減らす */
    }
    .tab {
        width: 60vw;
        align-items: center;
    }
    #tab-v {
        margin: 0 auto 18px;
        width: fit-content;
        flex-shrink: 0;
    }
    #tab-v .tab-contena {
        margin-left: 0;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    #tab-v .tab-elem {
        padding: 7px 0 7px 1em;
        margin-bottom: 8px;
    }
    #tabbody-v .tabbody-elem {
        margin: 24px 16px 0;
    }
    #tabbody-v .tabbody-img {
        margin-left: 0;
        display: flex;
        justify-content: center;
    }
    #tabbody-v .tabbody-img img {
        width: min(100%, 400px);
    }
    #tabbody-v .tabbody-discription {
        width: 100%;
        margin: 0;
    }
}