@charset "UTF-8";
/* ----------------------------------------------------　　PC */

html,body {
  height: 100%;    /* ページ全体を100%に */
  margin: 0;       /* 余白リセット */
}

body {
	display: flex;
	flex-direction: column; /* 縦並び */
	background: #f8f9fa; 
}
body header{
	background: #fff;
}

main {
      flex: 1; /* 余った高さをメインが埋める */
}

h1 { 
	color: #0073e6; 
}
/*------------------------検索BOX*/
.search-box { 
	display: flex;
	align-items: center;
	margin: 40px 0 10px 0;
}

input[type="text"] {
  padding: 10px;
  width: 500px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.search-area { 
	margin: 0 0 16px; 
}

.search-box{
  position: relative;
  display: flex;
  align-items: center;
  height: 45px;
  border: 1.5px solid #ddd;
  border-radius: 9999px;
  background: #fff;
  padding: 0 50px 0 50px;
  transition: border-color .15s, box-shadow .15s;
}

.search-box:focus-within{
  border-color: #0073e6;
  box-shadow: 0 0 0 3px rgba(0,115,230,.15);
}

.search-icon{
  position: absolute;
  left: 12px;
  pointer-events: none;
}

#searchInput{
  flex: 1;
  height: 100%;
  border: 0; outline: 0;
  background: transparent;
  font-size: 16px;
  color: #333;
  padding: 0;
  -webkit-appearance: none;
}

.clear-btn{
  position: absolute;
  right: 8px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: opacity .15s;
}

.clear-btn:hover{ 
	opacity: 1; 
}
.clear-btn img{ 
	display:block; 
}

.search-box.has-value .clear-btn{ 
	visibility: visible; 
}

/*------------------------検索キーワード*/
  .quick-keywords {
    margin: 10px 0 40px 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
  }
  .kw-chip {
    border: 1px solid #d0d7de;
    background: #fff;
    padding: .5rem .9rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: transform .02s ease-in-out, box-shadow .15s ease-in-out;
  }
  .kw-chip:hover { box-shadow: 0 1px 6px rgba(0,0,0,.08); }
  .kw-chip:active { transform: translateY(1px); }
  .kw-chip:focus-visible {
    outline: 2px solid #0073e6;
    outline-offset: 2px;
  }
/*------------------------カテゴリ*/
.category-list{
	font-size: 20px;
	width:18%;
}
.category {
	margin-top: 25px;
	scroll-margin-top: 80px;
}
.h2_cate{
    line-height: 1.4;
    font-size: 1.2em;
    color: #444;
	margin: .9em 0 0em;
	border-bottom: 2px solid #0073e6;
    padding: 5px 0;
}
.category-list ul { 
	display: flex; 
	flex-direction: column;
	line-height: 2;
	padding: 0;
	margin: .8em 0 0;
}
.category-list li { 
	list-style: none;
	padding: 5px 0;
    /*border-bottom: 1px solid #ccc*/
}
.category-list a { 
	text-decoration: none; 
	color: #444;
	font-weight: 500;
	display: block;
	padding-left: 5px;
}

.category-list a:hover{
	color: #0073e6;
}

/*------------------------FAQ一覧*/
.FAQ_main{
	width: 80%;
	margin-left: 2%;
	float: right;
}
/* h2（右端に三角） */
#faqList h2 {
	color: #444;
	font-size: 18px;
	border-left: 4px solid #0073e6;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.3em 0.5em;
	border-radius: 4px;
	margin: 0.5em 0;
}


#faqList h2::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    border-right: 2px solid #444;
    border-bottom: 2px solid #444;
    transform: rotate(45deg); 
    margin-left: 6px;
    transition: transform 0.2s;
}
#faqList h2.open::after {
  transform: rotate(225deg); 
}

/* アコーディオン本体 */

.faq-items {
	overflow: hidden;
	max-height: 0;                 /* 閉じ：高さ0 */
	opacity: 0;                    /* 閉じ：透明 */
	margin: 0 0 0 1em;             /* 閉じ時は余白最小 */
	/*display: none;*/
}

.faq-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.faq-items.open {
	display: block;
	max-height: 100%;/* 中身が長い場合は大きめに調整 */
	opacity: 1;
	margin: 0.5em 0 1em 1em;
}

/*------------------------FAQ中身 */
.faq-item + .faq-item { 
	margin-top: 0.6em; 
}
.question { 
	font-weight: 700; 
	margin-bottom: 15px; 
}
.answer { 
	margin-top: 0.25em;
	line-height: 1.5;
	color: #333; 
}
.answer .image{
	max-width: 100%;
	height: auto;
}
/*------------------------最下部のお問い合わせボタン */
.contact_area {
	margin: 80px 0 100px;
	background-color: #f8f9fa;
	padding: 20px;
	text-align: center;
	background: #fff;
	border: 1px solid #0073e6;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.contact_area h3{
	margin:0 0 30px;
	line-height: 1.4;
    font-size: 1.4em;
    color: #444;
}
.contact_btn_area{
  display: flex;
  justify-content: space-around;
}
.contact_area .contact_btn {
  display: inline-block;
  padding: 15px;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  background-color: #444; /* ベースカラー */
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  min-width: 160px;
  text-align: center;
}

.contact_area .contact_btn:hover {
  background-color: #0073e6; /* ポイントカラー */
  border-color: #0073e6;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 115, 230, 0.3);
}


/*------------------------ページ上部ボタン */
.to-top {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 12px;
  background: #333;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  z-index: 9999;
  opacity: .85;
  transition: transform .2s ease, opacity .2s ease;
}

.to-top:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.to-top:active {
  transform: translateY(0);
}

.to-top:focus-visible {
  outline: 3px solid #7aa7ff;
  outline-offset: 2px;
}

/* 矢印部分（くの字風） */
.to-top .arrow {
  display: block;
  width: 12px;
  height: 12px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  transform: rotate(45deg); /* 斜めにして矢印っぽく */
  margin-bottom: 4px;
}

/* 文字部分 */
.to-top .text {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
}

.mt100{
	margin-top: 100px!important;
}
.mt200{
	margin-top: 200px!important;
}

/* ページ全体のスムーススクロール（好みで） */
html{ 
	scroll-behavior: smooth; 
}
@media (prefers-reduced-motion: reduce){
	html{ 
		scroll-behavior: auto; 
	}
}

/* -------------------------------------------------------　　PC向け */
@media (min-width: 1200px) {
  	.contact_area .contact_btn {
		min-width: 200px;
	}
}
/* -------------------------------------------------------　　スマホ・タブレット向け */
@media screen and (max-width: 1024px) {
	.category-list{
		display: none;
	}
	
	.FAQ_main{
		width: 95%;
		float:left;
	}
	
	.contact_btn_area{
		display: flex;
		flex-wrap: wrap;
	}
	
	.contact_area .contact_btn{
		margin-bottom: 10px;
	}
}
/* -------------------------------------------------------　　スマホ 向け */
@media(max-width: 480px){
	.contact_area .contact_btn{
		min-width: 200px!important;
	}
}