#contents {
    position: relative;
}

h1:not(#ans h1) {
    background: url(/img/icon/title-faq.svg) no-repeat top left / 35px 35px;
}
section {
    width: 1015px;
    margin-bottom: 80px;
}
main section {
    float: right;
}
main {
    position: relative;
}
.q_list li:not(.open):hover, #ans .category_btn li:hover {
	transform: translateY(2px);
	box-shadow: none;
	transition: 0.2s;
	cursor: pointer;
}
.q_list li a:hover, #ans .category_btn li:hover {
    opacity: 1;
}

/*パンくず*/
#panBox {
    margin: 0 auto 30px;
    border-top: none;
    border-bottom: none;
    padding: 0;
}

/*ナビ*/
nav {
    position: absolute;
    top: 145px;
    width: 255px;
}
main:has(#ans) ~ nav {
    top: 80px;
}
nav ul {
    border: solid 1px var(--gray);
    border-radius: 5px;
    padding: 15px;
}
nav li:not(:last-of-type) {
    border-bottom: solid 1px var(--gray);
    padding-bottom: 10px;
}
nav li:not(:first-of-type) {
    padding-top: 10px;
} 
nav a {
    color: var(--brown_d);
    font-size: 16px;
    display: block;
}
nav li a:hover {
    color: var(--orange_d);
}
nav .faq_now {
    color: var(--orange_d);
    font-weight: bold;
    font-size: 16px;
}
nav ul + a {
    color: var(--blue_l);
    display: block;
    position: relative;
    margin: 10px 0 0 20px;
}
nav ul + a::before {
    content: "";
	display: inline-block;
    vertical-align: middle;
    color: var(--blue_l);
    line-height: 1;
    width: 0;
    height: 0;
    border-style: solid;
    border-color: transparent;
    border-width: 7px 10px;
    border-right-color: currentColor;
    border-left: 0;
	position: absolute;
	left: -15px;
	top: 5px;
}
nav ul + a:hover {
    text-decoration: underline;
}

/*質問ボックス*/
.q_list li{
    border: solid 1px var(--gray);
    background: var(--white);
    border-radius: 5px;
    font-size: 16px;
    box-shadow: 1px 1px 2px rgb(0, 0, 0, 0.2);
	transition: 0.2s;
    padding: 15px;
}
.q_list .open {
    box-shadow: none;
}
.q_list li:not(:last-of-type) {
    margin-bottom: 10px;
}
.q_list dd, .q_list dt {
    text-indent: -2em;
    padding-left: 2em;
}
.q_list dt::after {
    transform: rotate(90deg);
}
.q_list .open dt::after {
    transform: rotate(-90deg);
}
.q_list li dd {
    margin-top: 15px;
}
.q_list li a {
    display: inline-block;
    width: 200px;
}
.q_list li a:hover {
    opacity: 1;
}
.q_list dd {
    display: none;
}
.q_list .open dd {
    display: block;
}

/*Qアイコン*/
.q_list dt::before, #ans h1::before {
    content: 'Q';
	display: inline-block;
	width: 25px;
	height: 25px;
	margin-right: 7px;
	font-size: 16px;
	color: var(--white);
	font-weight: bold;
	text-align: center;
    text-indent: 0;
	background-color: var(--orange_d);
	border-radius: 20px;
}

/*//////
トップページ/////*/

/*トップページ検索窓*/
#search {
    border: solid 2px var(--brown_d);
    background: var(--beige_l);
    border-radius: 5px;
}
#search h2 {
    background-color: var(--brown_d);
    background-image: url(/img/icon/title-w_search.svg);
    background-repeat: no-repeat;
    background-position: 30px 12px;
    background-size: 25px 25px;
    border: none;
    color: var(--white);
    padding: 10px 0 10px 60px;
    margin-bottom: 15px;
}
#search form {
    padding: 0 30px;
}
#search select + input {
    width: 535px;
}
#search p {
    padding: 15px 30px;
}

/*よく見られている質問*/
#search + section h3{
    font-size: 25px;
	position: relative;
	padding-bottom: 5px;
	border-bottom: 2px solid var(--brown_l);
}

/*カテゴリ*/
#category_box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 50px 0;
}
#category_box div:not(dd) {
    width: 500px;
}
#category_box h3{
    background-color: var(--beige_l);
    border-radius: 5px;
    padding: 15px 0 15px 55px;
    background-repeat: no-repeat;
    background-position: 20px 12px;
    background-size: 30px 30px;
}
#category_box h3 a {
	font-weight: bold;
    color: var(--brown_d);
}
#category_box h3 a:hover {
    text-decoration: underline;
}

/*コンテンツアイコン*/
#category_box div:nth-of-type(1) h3 {
    background-image: url(/img/icon/title-cancel.svg);
}
#category_box div:nth-of-type(2) h3 {
    background-image: url(/img/icon/title-questionbox.svg);
}
#category_box div:nth-of-type(3) h3 {
    background-image: url(/img/icon/title-delivery.svg);
}
#category_box div:nth-of-type(4) h3 {
    background-image: url(/img/icon/title-price.svg);
}
#category_box div:nth-of-type(5) h3 {
    background-image: url(/img/icon/title-size.svg);
}
#category_box div:nth-of-type(6) h3 {
    background-image: url(/img/icon/title-box1.svg);
}
#category_box div:nth-of-type(7) h3 {
    background-image: url(/img/icon/title-box2.svg);
    background-position: 20px 11px;
}
#category_box div:nth-of-type(8) h3 {
    background-image: url(/img/icon/title-cushion-sheet.svg);
}
#category_box div:nth-of-type(9) h3 {
    background-image: url(/img/icon/title-design.svg);
}
#category_box div:nth-of-type(10) h3 {
    background-image: url(/img/icon/title-pc.svg);
}
#category_box div:nth-of-type(11) h3 {
    background-image: url(/img/icon/title-hakomaru.svg);
}

/*サブコンテンツ（ご利用ガイド・初めての方へ）*/
#sab_content a{
    border: solid 1px var(--gray);
    border-radius: 5px;
    color: var(--brown_d);
    font-size: 16px;
    padding: 35px 0 35px 90px;
    display: block;
}
#sab_content a:first-of-type {
    background: url(/img/icon/book.png) no-repeat 30px 30px / 50px 50px;
    margin-bottom: 20px;
}
#sab_content a:last-of-type {
    background: url(/img/icon/beginnermark.png) no-repeat 30px 30px / 50px 50px;
}
#sab_content a:hover {
    opacity: 1;
}

#sab_content strong {
    font-weight: bold;
    font-size: 18px;
    display: block;
}

/*//////
共通コンテンツ/////*/
/*検索窓*/
#search_sab {
    width: 1015px;
    margin: 0 0 60px 285px;
}
#search_sab h2{
    border: none;
    font-size: 20px;
    padding: 0 0 0 30px;
    margin: 0 0 5px 0;
    background: url(/img/icon/title-search.svg) no-repeat top left / 23px 23px;
}
#search form, #search_sab form {
    display: flex;
    justify-content: space-between;
}
#search_sab form select, #search_sab select + input, #search form select, #search select + input {
    border: solid 2px var(--orange_d);
    background: var(--white);
    border-radius: 5px;
    font-size: 16px;
    height: 50px;
}
#search_sab form select, #search form select {
    -moz-appearance: menulist;
    -webkit-appearance: menulist;
}
#search_sab input:last-child, #search input:last-child {
    border: solid 1px var(--orange_d);
    background: var(--orange_d);
    border-radius: 5px;
    color: var(--white);
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 0.1em;
    width: 110px;
    height: 50px;
}
#search form select, #search_sab form select {
    width: 275px;
}
#search_sab select + input {
    width: 600px;
}

/*お問合せ*/
article {
    background: var(--beige_l);
    padding: 20px;
    border-radius: 5px;
    width: 1015px;
    margin-left: 285px;
}
article h2 {
    border: none;
    font-size: 23px;
    text-align: center;
    border-radius: 5px;
    padding: 0;
    margin-bottom: 15px;
}
article h2 + p {
    text-align: center;
}
article ul {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 15px;
}
article ul:nth-of-type(1) li {
	color: var(--brown_d);
	font-size: 16px;
	font-weight: bold;
}
article ul:nth-of-type(1) span {
	color: var(--white);
	font-size: 14px;
	font-weight: bold;
	background-color: var(--brown_d);
	border-radius: 5px;
	padding: 5px 10px;
	margin-right: 5px;
}
article ul:nth-of-type(2) li {
	width: 600px;
	padding: 20px 0;
	background-color: var(--white);
	border: solid 1px var(--gray);
	border-radius: 5px;
	text-align: center;
}
article h3 {
	padding-left: 40px;
	line-height: 1.5;
	margin-bottom: 10px;
}
article li:nth-of-type(1) h3 {
	background: url(/img/icon/title-tel.svg) no-repeat 110px 0 / 30px 30px;
}
article li:nth-of-type(2) h3 {
	background: url(/img/icon/title-mail.svg) no-repeat 110px 0 / 30px 30px;
}
article li:nth-of-type(1) a {
	display: inline-block;
	font-size: 42px;
	line-height: 1;
	font-weight: bold;
	color: #53392B;
	margin-top: 15px;
}
article .button-brown {
	margin-top: 12px;
	width: 300px;
}


/*//////
アンサーページ/////*/

/*アンサー*/
#ans {
    background: var(--beige_l);
    border-radius: 5px;
    padding: 20px;
}
#ans h1 {
    font-size: 20px;
    line-height: 1.7;
    text-indent: -1.5em;
    border-bottom: none;
    padding: 0 0 0 1.5em;
}
#ans h1 + div {
    background: var(--white);
    border-radius: 5px;
    padding: 20px;
}
#ans h2 {
    font-size: 18px;
    line-height: 1.6;
    border-bottom: none;
    padding: 0;
    margin-bottom: 0;
}
#ans h2::before, .q_list dd::before {
    content: 'A';
	display: inline-block;
	width: 25px;
	height: 25px;
	margin-right: 7px;
	font-size: 16px;
	color: var(--white);
	font-weight: bold;
	text-align: center;
    text-indent: 0;
    text-indent: 0;
	background-color: var(--blue_d);
	border-radius: 20px;
}

#ans h3 {
    font-size: 18px;
    line-height: 1.2;
	position: relative;
	border-bottom: 2px solid var(--brown_l);
    margin-top: 50px;
}
#ans h4 {
    font-size: 16px;
    font-weight: normal;
    padding-left: 5px;
    border-left: solid 7px var(--brown_l);
    margin-top: 50px;
}
#ans div p b a {
    font-weight: bold;
}
#ans div p:not(.product_list1 p):not(tfoot p){
    margin: 15px 0;
}
#ans .img_box {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}
#ans .img_box img {
    max-width: 935px;
}

#ans .button-brown {
    width: fit-content;
    min-width: 370px;
    margin: 20px auto;
}
#ans .button-brown.arrow-white {
    padding-right: 30px;
    padding-left: 25px;
}
#ans .button-brown:hover {
    opacity: 1;
}

#ans .product_list1 {
    margin-top: 20px;
}
#ans .product_box img {
    width: 193px;
    height: 193px;
}
#ans .photoimg + p {
    font-size: 15px;
	font-weight: normal;
	line-height: 1.3;
	color: var(--blue_l);
	width: 100%;
	height: 40px;
	overflow: hidden;
	margin: 10px 0 0 0;
}
#ans .delivery_size {
    text-align: center;
    width: 198px;
    padding-left: 0;
}
#ans .ds-mail ul li {
    width: 90px;
}
#ans .ds-mail ul li img {
	height: 20px;
	width: auto;
}

#ans .product_box {
    width: 218px;
    padding: 0;
}

.product_box > a {
    padding: 12px 12px 36px;
}

#ans table {
    width: 100%;
    table-layout: fixed;
    margin-top: 20px;
}
#ans caption {
    font-size: 18px;
    font-weight: bold;
    color: var(--brown_d);
    text-align: left;
}
#ans thead th{
    background: var(--gray_l);
    font-weight: bold;
}
#ans tfoot td{
    border: none;
    padding: 5px;
    text-align: right;
}
#ans tfoot p {
    padding: 0;
}
#ans tfoot a {
    font-size: 15px;
    color: var(--blue_l);
}
#ans div + ul {
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px;
}
#ans h1 + div + ul li:first-of-type a {
    color: var(--blue_l);
    position: relative;
    padding-left: 15px;
}
#ans h1 + div + ul li:first-of-type a:hover {
    text-decoration: underline;
}
#ans h1 + div + ul li:first-of-type a::before {
    content: "";
	display: inline-block;
    vertical-align: middle;
    color: var(--blue_l);
    line-height: 1;
    width: 0;
    height: 0;
    border-style: solid;
    border-color: transparent;
    border-width: 5px 8px;
    border-right-color: currentColor;
    border-left: 0;
	position: absolute;
	left: 0;
	top: 3px;
}
#ans h1 + div + ul li:last-of-type {
    color: var(--gray_d);
}

/*アンケート*/
#survey_step1 p, #survey_step2 p{
    font-size: 16px;
    text-align: center;
    margin-bottom: 10px;
}
#survey_step1 ul, #survey_step2 ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
#survey_step1 li{
    border: solid 1px var(--gray);
    border-radius: 5px;
}
#survey_step1 li a {
    display: block;
    width: 135px;
    padding: 15px 15px 15px 70px;
}
#survey_step1 li:first-of-type a {
    background: url(/img/hakomaru/hakomaru-face_smile.svg) no-repeat 25px 7px / 35px 35px;
}
#survey_step1 li:last-of-type a {
    background: url(/img/hakomaru/hakomaru-face_frown.svg) no-repeat 25px 7px / 35px 35px;
}
#survey_step2 ul {
    border: solid 1px var(--gray);
    border-radius: 5px;
    width: 620px;
    padding: 15px;
    margin: 0 auto;
}
#survey_step2 .click {
    display: block;
    background: var(--gray_l);
    border: solid 1px var(--gray);
    border-radius: 5px;
    padding: 5px 10px;
    margin: 10px auto 0;
}
#survey_step3 {
    width: 620px;
    background: var(--pink_l);
    border-radius: 5px;
    text-align: center;
    padding: 15px;
    margin: 0 auto;
}

/*関連する質問*/
main + section {
    margin: 0 0 60px 285px;
}
main + section h2 {
    border: none;
    font-size: 20px;
    padding: 0 0 0 30px;
    margin: 0 0 5px 0;
    background: url(/img/icon/title-book.svg) no-repeat top left / 23px 23px;
}

/*検索結果*/
#search_results {
    width: 1015px;
    float: right;
    margin-bottom: 20px;
}
#search_results h2 {
    border-bottom: none;
    font-size: 20px;
    padding: 0;
    margin-bottom: 5px;
}
#search_results ul {
    background: var(--gray_l);
    border-radius: 5px;
    padding: 20px 20px 13px 20px;
}
#search_results li {
    display: inline-block;
	margin: 0 5px 7px 0;
}
#search_results label.checkbox {
	display: block;
	height: 26px;
	line-height: 25px;
	padding: 0 10px;
	background: var(--white);
	border: solid 1px var(--blue_l);
	border-radius: 3px;
	cursor: pointer;
	color: var(--blue_l);
}
#search_results label:hover {
	opacity: 0.8;
}
/*検索結果0件*/
#search_no {
    position: relative;
}
#search_no::after {
	display: block;
	content: '';
	background: url(/img/hakomaru/hakomaru-sorry.png) no-repeat;
	background-size: 100px;
	width: 100px;
	height: 100px;
	position: absolute;
	top: 0px;
	left: 0px;
}
#search_no p {
    display: inline-block;
	margin-left: 110px;
    background: var(--gray_l);
	padding: 20px;
	border-radius: 10px;
	position: relative;
}
#search_no p::before {
	content: "";
	border: solid 13px transparent;
	border-top: solid 20px var(--gray_l);
	position: absolute;
	top: 40px;
	left: -25px;
	z-index: 1;
	transform: rotate(90deg);
}