@import url(https://fonts.googleapis.com/earlyaccess/notosansjp.css);

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;

}

ruby {
    /* ルビの表示位置を親文字の真上に設定 */
    ruby-position: over;
    /* (オプション) 行の高さを調整して、ルビによる行間の広がりを抑える */
    line-height: 1.2; 
}

/* ルビテキスト（振り仮名）の要素 */
rt {
    /* (オプション) フォントサイズを小さくする */
    font-size: 0.5em; 
    /* (オプション) ルビと親文字の縦方向の距離を微調整 */
    vertical-align: middle; 
}
.pc_disp {
  display: block;
}
.sp_disp {
  display: none;
}

.c_field {
	width:100%;
	background-color: #fffbce;
}
.top_area {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	background-image: url(../images/bg01.webp);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center bottom;
	padding-bottom:100px;
	padding-left:5px;
	padding-right:5px;
}

.bg02 {
	background-image: url(../images/bg02.webp) !important;
}

.bg04 {
	background-image: url(../images/bg04.webp) !important;
}


.top_img {
	max-width:600px;
	margin-left: auto;
	margin-right: auto;
	width:100%;
	display:table;
}

.link_btn01 {
	max-width:600px;
	margin-left: auto;
	margin-right: auto;
	width:100%;
	display:table;
	box-sizing: border-box;
}

.link_btn01 img {
	width:100%;
}

.link_btn01 img:hover {
	opacity: 0.8;
}

.item:hover {
	opacity: 0.8;
}


main {
	max-width:900px;
	margin-left: auto;
	margin-right: auto;
	width:100%;
	padding-top: 40px;
	padding-left:5px;
	padding-right:5px;
	padding-bottom: 40px;
	box-sizing: border-box;
}

.quiz_area {
	max-width:600px;
	margin-left: auto;
	margin-right: auto;
	width:100%;
	padding-top: 40px;
}

.result_area {
	max-width:600px;
	margin-left: auto;
	margin-right: auto;
	width:100%;
	position:relative;
	padding-top:40px;
}



.hana {
	position:absolute;
	width:100%;
	
}

.q_area {
	width: 100%;
	padding-top: 40px;
	border-radius: 30px;
	border: 7px solid #d66160;
	position:relative;
	padding-bottom:40px;
	padding-left:20px;
	padding-right:20px;
	background-color:#fff8a7;
	font-size:16px;
}

.q_no {
	background-color:#d66160;
	position:absolute;
	font-size:1.4em;
	padding:10px 30px;
	color:#ffffff;
	display: table-cell;
    align-items: center;
	top:-1em;
	left: 50%;
	border-radius: 30px;
	transform: translateX(-50%);
	-webkit-transform: translateX(-50%);
	-ms-transform: translateX(-50%);
	white-space: nowrap;
	vertical-align: middle;
}

#que {
	font-size:1.3em;
	height:3em;
}

.radio {
	width:100%;
	font-size:1.7em;
	display:table;
	margin-left: auto;
	margin-right: auto;
	margin-top:40px;
}

#hana1,#hana2,#hana3,#hana4,#hana5,#hana6,#hana7,#eda,#moji {
    /* 1. 初期状態：非表示（透明度0） */
    opacity: 0; 
    
    /* 2. アニメーションの設定：透明度の変化を0.5秒かけて実行 */
    transition: opacity 0.5s ease-in-out; 
}

/* JavaScriptでこのクラスを付与して表示させる */
.hana_show {
    opacity: 1 !important; 
}

.radioItem {
  display: flex;
  align-items: center;
  column-gap: 8px;
  width: fit-content;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.next_char {
	display:none;
	align-items: flex-end;
	margin-top:40px;
	margin-bottom:15px;
}

.next_char_1 {
	width:30%;
	float:left;
}
.next_char_2 {
	width:70%;
	float:right;
}

#leaf {
    /* 不透明度（opacity）の変化に0.3秒かける */
    transition: opacity 0.3s ease-in-out;
}

/* フェードアウト時に一時的に不透明度を0にするためのクラス */
.is-fading {
    opacity: 0;
}

.radioItem:not(:last-of-type) {
  margin-bottom: 16px;
}

.radioButton {
  appearance: none;
  position: relative;
  width: 25px;
  height: 25px;
  border: 1px solid #333333;
  border-radius: 9999px;
  cursor: pointer;
}

.radioButton:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 12px;
  height: 12px;
  margin: auto;
  border-radius: 9999px;
  background-color: #e7a95e;
}

.title01 {
	max-width:600px;
	width:95%;
	margin-right:auto;
	margin-left:auto;
	display:table;
}

.con_area {
  width: 100%;
}

.read_p {
	margin-top:50px;
	font-size:24px;
  line-height: 2em;
}

.parent1 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(2, 1fr);
	grid-column-gap: 10px;
	grid-row-gap: 40px;
}

.parent1 > .div1 { grid-area: 1 / 1 / 2 / 2; }
.parent1 > .div2 { grid-area: 1 / 2 / 2 / 3; }
.parent1 > .div3 { grid-area: 1 / 3 / 2 / 4; }
.parent1 > .div4 { grid-area: 1 / 4 / 2 / 5; }
.parent1 > .div5 { grid-area: 2 / 1 / 3 / 2; }
.parent1 > .div6 { grid-area: 2 / 2 / 3 / 3; }
.parent1 > .div7 { grid-area: 2 / 3 / 3 / 4; }
.parent1 > .div8 { grid-area: 2 / 4 / 3 / 5; }

.parent1 img {
	width:100%;
}

.mt00 {
  margin-top: 0px !important;
}
.mt05 {
  margin-top: 5px !important;
}
.mt10 {
  margin-top: 10px !important;
}

.mt20 {
  margin-top: 20px !important;
}

.mt30 {
  margin-top: 30px !important;
}

.mt40 {
  margin-top: 40px !important;
}

.mt50 {
  margin-top: 50px !important;
}

.mt60 {
  margin-top: 60px !important;
}

.mt70 {
  margin-top: 70px !important;
}

.mt80 {
  margin-top: 80px !important;
}

.mt90 {
  margin-top: 90px !important;
}

.mt100 {
  margin-top: 100px !important;
}

.mt50 {
  margin-bottom: 50px !important;
}

.mb00 {
	margin-bottom:0px !important;
}

.mb10 {
	margin-bottom:10px !important;
}

.mb20 {
	margin-bottom:20px !important;
}

.mb30 {
	margin-bottom:30px !important;
}

.mb40 {
	margin-bottom:40px !important;
}

.mb50 {
	margin-bottom:50px !important;
}

.clear {
  clear: both;
}

p {
    line-height: 1.5em;
}


.taC {
  text-align: center;
}


.kome {
	padding-left:2.3em;
	text-indent:-1em;
	font-weight:normal;
}

.ind01 {
	padding-left:1em;
	text-indent:-1em;
}

.fs15 {
	font-size:15px !important;
}

.fs16 {
	font-size:16px !important;
}

.fs17 {
	font-size:17px !important;
}

.fs18 {
	font-size:18px !important;
}

.fs19 {
	font-size:19px !important;
}

.fs20 {
	font-size:20px !important;
}

.fs21 {
	font-size:21px !important;
}

.fs22 {
	font-size:22px !important;
}

.fs23 {
	font-size:23px !important;
}

.fs24 {
	font-size:24px !important;
}

.fs25 {
	font-size:25px !important;
}


a {
	text-decoration: none;
}

a:link {
	color: #4f3242;
}
a:visited {
	color: #4f3242;
}
a:hover {
	color: #000;
}
a:active {
	color: #4f3242;
}

.pb00 {
	padding-bottom:0px;
}

.result_main {
	max-width:100%;
	font-size:16px;
	padding-top:0;
}

.result_area2 {
	max-width:1000px;
	margin-left: auto;
	margin-right: auto;
	width:100%;
	padding-top:40px;
}

.result_area3 {
	width:100%;
	margin:0;
	padding-left:0px;
	padding-right:0px;
	background-image: url(../images/bg03.webp);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center top;
	background-color:#e9f4fc;
	padding-bottom:50px;
}

.result_main_h2 {
	font-weight:normal;
	font-szie;1.2rem;
	line-height:1.5em;
	display:table;
	margin-right:auto;
	margin-left:auto;
}

.res_char {
	max-width:500px;
	width:100%;
	display:table;
	margin-right:auto;
	margin-left:auto;
}

.key_img {
	max-width:600px;
	width:100%;
	display:table;
	margin-right:auto;
	margin-left:auto;
}

.result_area4 {
	max-width:900px;
	margin-left: auto;
	margin-right: auto;
		width:100%;
	padding-bottom:40px;
	line-height:1.7em;
	font-size:16px;
}

.result_area4 p {
	box-sizing: border-box;
}

#res_txt1 {
	font-weight:bold;
	font-size:2em;
	text-align:center;
	width:100%;
	padding-left:5px;
	padding-right:5px;
}

#res_txt2 {
	font-weight:bold;
	font-size:1.5em;
	padding:15px;
	text-align:center;
	background-color:#7ecef4;
	width:100%;
	margin-top:25px;
}

#res_txt3 {
	font-weight:normal;
	font-size:1.2em;
	text-align:left;
	width:100%;
	margin-top:20px;
	padding-left:5px;
	padding-right:5px;
}

#res_txt4,#res_txt6 {
	font-weight:bold;
	font-size:1.25em;
	padding:15px;
	text-align:center;
	background-color:#000;
	width:100%;
	margin-top:25px;
	color:#fff;
}

#res_txt5,#res_txt7 {
	font-weight:normal;
	font-size:1.2em;
	width:100%;
	margin-top:20px;
	padding-left:5px;
	padding-right:5px;
}

#res_img1,#res_img2 {
	width:100%;
	margin-left:auto;
	margin-right:auto;
	display:table;
	margin-top:0px;
}

#res_txt5 ul,#res_txt7 ul {
	padding-left:1.2em;
}

.res_img_area {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: 1fr;
	grid-column-gap: 0px;
	grid-row-gap: 0px;
		margin-top:20px;
		margin-bottom:10px;
	align-items: center;
}

.res_img_area.div1 { 
	grid-area: 1 / 2 / 2 / 3; 
	justify-self: end; /* または right */
}
.res_img_area.div2 {
	grid-area: 1 / 1 / 2 / 2;
	justify-self: start;
}

#next_btn {
    cursor: pointer;
}


.radio-button-group-flex{
	display:flex;
}

.radio-button-group {
	width: 100%;
}
.radio-button-group .item {
	width: 100%;
	margin-bottom:10px;
	font-size:20px;
	padding:0px;
}
.radio-button-group .radio-button {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}
.radio-button-group .radio-button + label {
    padding-right:10px;
    padding-left:10px;
    padding-top:15px;
    padding-bottom:15px;
    cursor: pointer;
    border: 3px solid #d66160;
    margin-right: -2px;
    color: #333;
    background-color: #eec75e;
    display: block;
    text-align: center;
}


.radio-button-group .radio-button:checked + label {
    background-color: #d9830d;
    color: #FFF;
}

.radio-button-group .item .radio-button + label {
    border-radius: 15px;
}

.item:first-of-type .ans_label {
	border-top-left-radius: 15px;
	border-bottom-left-radius: 15px;
}
.item:last-of-type .ans_label {
	border-top-right-radius: 15px;
	border-bottom-right-radius: 15px;
}

.fadeout {
  animation : fadeOut 1s;
  animation-fill-mode: both;
}

.fadein {
  animation : fadein 1s;
  animation-fill-mode: both;
}
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fadein {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


.kome_txt {
  font-size:1.1em;
  margin-top:20px;
}
