/* ベーススタイル */
body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 20px;
    line-height: 1.8;
}
ul {
  list-style: none;
  padding-left: 0; /* 左の余白もなくしたい場合 */
}
h4{
  text-decoration: underline;
}
hr{
	margin:80px 0px;
}
#wrap{
	width:70%;
	margin:auto;
	}
/* 目次部分 */
.agenda {
    background-color: #f5f5f5;
    padding: 15px;
    margin-bottom: 40px;
    border-radius: 8px;
}

.agenda h2 {
    margin-top: 0;
}

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

.agenda ul li {
    margin: 5px 0;
}

/* セクション全体 */
.contents {
	padding:10px;
    margin-bottom: 60px;
	background-color:#FFF8DD;
}

/* 文字＋画像ペアレイアウト */
.contents h4,
.contents p,
.contents ul {
    margin-bottom: 1em;
}

/* 画像と直前のテキストをグループ化する */
.contents p + img,
.contents ul + img {
    display: block;
    margin-top: 10px;
}

/* ペアブロック設定 */
.text-image-set {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

/* 画像調整：ここが今回大事！ */
.text-image-set img {
    width: auto;
    height: auto;
    max-width: 50%;
    max-height: 50%;
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* ←ここ追加！ */
    border-radius: 8px; /* ←角も少し丸めるとさらにきれい */
	text-align:left;
}
.text-Q{
	color:#333399;
	}
.text-A{
	color:#FF0033;
	padding-left:15PX
	}

/* スマホ対応（画面幅768px以下で縦並び） */
@media screen and (max-width: 768px) {
	#wrap{
		width:100%;
		}
    .text-image-set {
        flex-direction: column;
    }
    .text-image-set img {
		max-width:100%;
        margin-top: 10px;
    }
}
