/**************************************************************
* よくあるご質問（レイアウト・動作調整）
* Date:2025/4/15
* Auther:H.Kisu
**************************************************************/

/*リセット*/
html,body {
	height:100%;
}
html,body,h1,h2,h3,div,dl,dt,dd {
	padding:0;
	margin:0;
}

body {
	background:#f2f2f2;
}
/*ヘッダー*/
#ichi_qa_header h1 {
	background:#af1e23;
	color:#fff;
	font-size:1em;
	text-align:center;
}

/*ナビゲーションヘッダー*/
#ichi_qa_nav {
	position:sticky;
	display:block;
	background:#fff;
	border-bottom:2px solid #af1e23;
	box-sizing:border-box;
	box-shadow:0 2px 4px #ccc;
	width:100%;
	top:0;
	left:0;
	z-index:100;
}
#ichi_qa_nav div#qa_nav {
	max-width:800px;
	display:flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	margin:auto;
}
#ichi_qa_nav div#qa_nav a{
	display:block;
	text-decoration:none;
}

/*コンテンツ*/
article#contents {
	display:block;
	max-width:1000px;
	padding:1em 1em 3em;
	margin:auto;
}

article#contents section {
	margin-bottom:48px;
}

/*カテゴリー見出し*/
h2[id^="cat"] {
/*	padding-top:120px;
	margin-top:-120px;*/
	display:block;
	position:relative;
	padding-left:40px;
}
h2[id^="cat"]::before {
	display:inline-block;
	content:"";
	width:46px;
	height:26px;
	background-repeat:no-repeat;
	background-size:46px 32px;
	background-position:0 2px;
	position:absolute;
	left:0;
	bottom:0;
	margin-bottom:10px;
}
h2.sp[id^="cat"]::before {
	margin-bottom:4px;
}
h2#cat1::before {
	background-image:url(https://www.ichiranstore.com/img/qa/icn_cat1.png);
}
h2#cat2::before {
	background-image:url(https://www.ichiranstore.com/img/qa/icn_cat2.png);
}
h2#cat3::before {
	background-image:url(https://www.ichiranstore.com/img/qa/icn_cat3.png);
}
h2#cat4::before {
	background-image:url(https://www.ichiranstore.com/img/qa/icn_cat4.png);
}
h2#cat5::before {
	background-image:url(https://www.ichiranstore.com/img/qa/icn_cat5.png);
}

/* 質問 */
dl dt[id^="faq"] {
	position:relative;
	background:#fee;
	color:#000;
	padding:0.5em 0 0.5em 2.5em;
	margin-bottom:1px;
	border-bottom:1px solid #af1e23;
	border-right:1px solid #af1e23;
	display:block;
	box-sizing:border-box;
	box-shadow:1px 1px 4px #999;
}
dl dt[id^="faq"]::before {
	content:"Q";
	position:absolute;
	top:0.5em;
	left:0.5em;
	display:inline-block;
	background:#fff;
	color:#af1e23;
	width:1.5em;
	text-align:center;
	border:1px solid #af1e23;
}

/* 回答 */
dl dd[id^="ans"] {
	position:relative;
	line-height:2em;
	background:#fff;
	display:block;
	padding:0.5em 0 0.5em 2.5em;
	box-sizing:border-box;
	box-shadow:1px 1px 4px #999;
	border:1px solid #aaa;
}
dl dd[id^="ans"]::before {
	content:"A";
	position:absolute;
	top:0.5em;
	left:0.5em;
	display:inline-block;
	background:#af1e23;
	color:#fff;
	width:1.5em;
	text-align:center;
	line-height:1.5em;
}
dl dd[id^="ans"] p {
	display:block;
	margin-bottom:16px;
}
dl dd[id^="ans"] p:last-child {
	margin-bottom:0.5em;
}
dl dd[id^="ans"] p span.red {
	color:#f00;
}
dl dd[id^="ans"] p span.blue {
	color:#00f;
}
dl dd[id^="ans"] p.ans_info {
	display:block;
	padding:0.6em 0.8em;
	border:1px solid #ccc;
	margin:0.5em 0 0;
	background:#eee;
	border-radius:3px;
}
a.qa_link_btn:link,
a.qa_link_btn:visited {
	display:inline-block;
	background:#076d30;
	border:3px solid #7cb695;
	color:#fcfcfc;
	font-weight:bold;
	padding:0em 0.5em;
	margin:0.5em;
	border-radius:3px;
}

#ichi_qa_footer{
	text-align:center;
}

/* ハンバーガー */
#header .block-headernav--item-list li.ichi_menu {
	position:fixed;
	display: block;
    width: 40px;
    height: 40px;
    background-color: #444;
    bottom:88px;
    right:0;
}
#header li.ichi_menu #btn_menu:before,
#header li.ichi_menu #btn_menu b,
#header li.ichi_menu #btn_menu:after {
    background: #fcfcfc;
}
#header li.ichi_menu {
	color:#fcfcfc;
}
