/*
Theme Name: RECORD-SIX FAQ
Version: 1.0.0
*/

:root{
  --max: 1100px;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg2: #f9fafb;
  --link: #5d9bd7;
  --basic: #5d9bd7;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a{ color: var(--link); text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header{
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}
.site-title{
  font-weight: 700;
  letter-spacing: .02em;
}
.site-title small{
  display:block;
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
}

.searchbar{
  display:flex;
  gap: 8px;
  align-items:center;
  flex: 1;
  max-width: 520px;
}
.searchbar input[type="search"]{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg2);
}
.searchbar button{
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--basic);
  cursor: pointer;
  width: 80px;
  color: #fff;
}

.main{
  padding: 24px 0 56px;
}

.page-title{
  margin: 0 0 12px;
  font-size: 24px;
}
.lead{
  margin: 0 0 24px;
  color: var(--muted);
}

.grid{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
}

.sidebar{
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg2);
  padding: 14px;
}
.sidebar h3{
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted);
}
.tree a{
  display:block;
  padding: 8px 10px;
  border-radius: 10px;
}
.tree a:hover{
  background: #eef2ff;
  text-decoration:none;
}
.tree .current{
  background: #e0e7ff;
  font-weight: 600;
}

.content{
  min-width: 0;
}

.cards{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.card{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: var(--bg);
}
.card h2{
  margin: 0 0 6px;
  font-size: 16px;
}
.meta{
  font-size: 12px;
  color: var(--muted);
}

.article{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  background: var(--bg);
}
.article h1{
  margin: 0 0 10px;
  font-size: 22px;
}
.article .terms{
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--muted);
}
.article img{
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.pager{
  margin-top: 18px;
  display:flex;
  justify-content: space-between;
  gap: 12px;
}
.pager a{
  display:inline-block;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.site-footer{
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 18px 0;
  background: var(--bg);
}

.article-text{
  font-size: 15px;
}
.article-text p{
  margin: 0 0 10px;
}

.faq-block{
  margin: 0 0 18px;
}

.faq-block-title{
  margin: 0 0 10px;
  font-size: 18px;
}

.faq-block-image img{
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.faq-block-text p{
  margin: 0 0 10px;
}


/* Responsive */
@media (max-width: 900px){
  .grid{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .searchbar{ max-width: none; }
}
