/* =========================================================
   よくあるご質問ページ専用CSS
   ========================================================= */

/* ---------- ページ見出し帯 ---------- */
.page-hero{
  position:relative;
  overflow:hidden;
  background:var(--gray-deep);
  padding:300px 0;
  text-align:center;
}
.page-hero img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0.45;
}
.page-hero .inner{
  position:relative;
  z-index:1;
}
.page-hero h1{
  font-size:clamp(34px,5vw,52px);
  color:#fff;
  letter-spacing:0.1em;
}
.page-hero .inner{
  animation: heroFadeUp 1.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes heroFadeUp{
  0%{
  opacity:0;
  transform:translateY(50px) scale(0.9);
  }
  100%{
  opacity:1;
  transform:translateY(0) scale(1);
  }
}

/* ---------- Q&A 導入 ---------- */
.qa-intro{
  position:relative;
  padding:64px 0 40px;
  text-align:center;
  overflow:hidden;
}
.qa-deco{
  position:absolute;
  top:0;
  width:220px;
  height:auto;
  opacity:0.9;
}
.qa-deco-left{
  left:0;
}
.qa-deco-right{
  right:0;
}
.qa-intro-dots{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-bottom:16px;
}
.qa-intro-dots span{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--gold);
}
.qa-intro-dots span:nth-child(2){ background:var(--ink-soft); }
.qa-intro-dots span:nth-child(3){ background:#8a9a6a; }
.qa-intro-en{
  font-size:56px;
  color:var(--gray-deep);
  letter-spacing:0.08em;
  line-height:1;
}
.qa-intro-title{
  font-size:22px;
  color:var(--gray-deep);
  letter-spacing:0.1em;
  margin-top:8px;
}
.qa-intro-desc{
  margin-top:20px;
  font-size:18px;
  color:var(--gray-deep);
  line-height:2;
}

/* ---------- カテゴリタブ ---------- */
.qa-filter-section{
  padding:16px 0 72px;
}
.qa-filter-tabs{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin-bottom:48px;
}
.qa-filter-btn{
  padding:12px 24px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--white);
  color:var(--ink);
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}
.qa-filter-btn:hover{
  border-color:var(--gold);
}
.qa-filter-btn.is-active{
  background:#7a8a5a;
  border-color:#7a8a5a;
  color:#fff;
}

/* ---------- 質問カード一覧 ---------- */
.qa-list{
  display:flex;
  flex-direction:column;
  gap:24px;
  max-width:1040px;
  margin:0 auto;
}
.qa-item{
  display:flex;
  align-items:center;
  gap:32px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:16px;
  padding:32px 36px;
}
.qa-item-content{
  flex:1;
  min-width:0;
}
.qa-item-photo{
  flex:0 0 260px;
  aspect-ratio:4/3;
  overflow:hidden;
  border-radius:12px;
}
.qa-item-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.qa-row{
  display:flex;
  align-items:flex-start;
  gap:16px;
}
.qa-row + .qa-row{
  margin-top:16px;
}
.qa-badge{
  flex:none;
  width:56px;
  height:56px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-family:'Shippori Mincho',"Hiragino Mincho ProN","Yu Mincho",serif;
  font-weight:700;
  font-size:26px;
}
.qa-badge-q{
  background:#7a8a5a;
}
.qa-badge-a{
  background:#c98a75;
}
.qa-question{
  padding-top:8px;
  font-size:22px;
  font-weight:700;
  color:var(--gray-deep);
}
.qa-answer{
  padding-top:8px;
  font-size:17px;
  color:var(--ink);
  line-height:1.9;
}

/* ---------- Q&A見出し（Q&A／よくあるご質問）：ふわっと表示 ---------- */
.js-anim-ready .qa-intro-en,
.js-anim-ready .qa-intro-title{
  opacity:0;
  transform:translateY(50px) scale(0.9);
  transition:
    opacity 1.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 1.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.qa-intro-title{
  transition-delay: 0.1s;
}
.qa-intro-en.is-visible,
.qa-intro-title.is-visible{
  opacity:1;
  transform:translateY(0) scale(1);
}

@media (max-width:860px){
  .page-hero{
  padding:160px 0;
  }
  
  /* ---------- 質問カード一覧 ---------- */
  .qa-deco{
    width:120px;
    opacity:0.6;
  }
  .qa-intro-en{
    font-size:42px;
  }
  .qa-intro-title{
    font-size:26px;
  }
  .qa-intro-desc{
    font-size:16px;
  }
  .qa-filter-tabs{
    justify-content:flex-start;
    overflow-x:auto;
    flex-wrap:nowrap;
    margin:0 -24px 40px;
    padding:0 24px;
  }
  .qa-filter-btn{
    flex:none;
    white-space:nowrap;
    font-size:13px;
    padding:10px 18px;
  }
  .qa-item{
    flex-direction:column;
    align-items:stretch;
    padding:24px;
    gap:20px;
  }
  .qa-item-photo{
    flex:none;
    width:100%;
  }
  .qa-question{
    font-size:18px;
  }
  .qa-answer{
    font-size:16px;
  }
  
}