/* CSS Document
Template: twentytwentyone
Theme Name: Lapis Member List
*/
@charset "utf-8";

/* ===== Reset ===== */
html, body{
  margin: 0;
  padding: 0;
}
main{
  background: #EAF6FD;
}
main#main.site-main{
  padding: 0 0 60px;
}

/* =====================================
  Header
===================================== */
.lapis-header{
  border-bottom: 3px solid #d7d7d7;
  background: #fff;
  margin: 0;
  padding: 0;
}
.lapis-header__inner{
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lapis-brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.lapis-brand__logo img{
  width: 100px;
  height: auto;
  display: block;
}
.lapis-brand__text img{
  width: auto;
  height: 80px;
}
.lapis-brand__region{
  display: block;
  font-size: 12px;
  letter-spacing: .08em;
  color: #2f3b7a;
}
.lapis-brand__name{
  display: block;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: .08em;
  color: #2f3b7a;
  font-weight: 700;
}

/* SNS buttons */
.lapis-sns{
  display: flex;
  gap: 10px;
}
.lapis-sns__btn{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
  transition: transform .2s ease;
  will-change: transform;
  transform-origin: center;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}
.lapis-sns__btn svg{
  shape-rendering: geometricPrecision;
  transform: translateZ(0);
}
.lapis-sns__btn:hover{
  transform: scale(1.08);
}
.lapis-sns__header .lapis-sns__btn--fb{
  background: #0966FF;
  fill: #fff;
}
.lapis-sns__header .lapis-sns__btn--ig{
  background: #EF0C75;
  fill: #fff;
}
.lapis-sns__footer .lapis-sns__btn{
  fill: #fff;
}

/* =====================================
  Core Value
===================================== */
.lapis-core{
  padding: 100px 16px;
  text-align: center;
  background: #fff;
}
.lapis-core__label{
  margin: 0;
  font-size: 14px;
  letter-spacing: .14em;
  color: #000;
}
.lapis-core__title{
  margin: 0;
  font-size: clamp(40px, 4vw, 56px);
  color: #163a8a;
  font-weight: 700;
  font-family: "游明朝";
}
.lapis-core__title span{
  color: #000;
  font-size: clamp(32px, 4vw, 50px);
}

/* =====================================
  Category
===================================== */
section.lapis-category{
	margin:0;
}
.lapis-category{
  background: #EAF6FD;
  padding: 20px 16px 56px;
  margin: 0; 
}
.lapis-category__title{
  max-width: 1200px;
  margin: 0 auto 16px;
  color: #0071BB;
  font-size: 16px;
  font-weight: 800;
}
.lapis-category__grid{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 18px;
}
@media (max-width: 900px){
  .lapis-category__grid{ grid-template-columns: repeat(2, 1fr); }
}
.lapis-cat-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  text-decoration: none;
  background: linear-gradient(#2a1f1a, #1a120e);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border-radius: 0;
  letter-spacing: .06em;
  text-align: center;
  transition: opacity .2s ease;
}
.lapis-cat-btn:hover{
  opacity: 0.7;
}

/* =====================================
  Footer
===================================== */
.lapis-footer{
  background: #2E3191;
  color: #fff;
  font-family: "游明朝";
  font-weight: 600;
}
.lapis-footer__inner{
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 16px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.lapis-footer__left img{
  width: auto;
  height: 70px;
}
.lapis-footer__brand{
  margin: 0 0 8px;
  line-height: 1.4;
}
.lapis-footer__region{
  font-size: 12px;
  letter-spacing: .08em;
  opacity: .9;
}
.lapis-footer__name{
  font-size: 28px;
  letter-spacing: .12em;
}
.lapis-footer__schedule{
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}
.lapis-footer__schedule .time{
  font-size: 20px;
}
.lapis-footer__right{
  display: flex;
  gap: 12px;
}

/* =====================================
  Members Grid (final)
  ※ 重複していた「横並び版」は削除し、グリッド版に統一
===================================== */
.lapis-members{
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}
@media (max-width: 1024px){
  .lapis-members{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px){
  .lapis-members{
    padding: 16px;
    grid-template-columns: 1fr;
  }
}

/* Card */
.lapis-member{
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

/* Photo (1:1) */
.lapis-member__photo{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eaeaea;
}
@supports not (aspect-ratio: 1 / 1){
  .lapis-member__photo::before{
    content: "";
    display: block;
    padding-top: 100%;
  }
}

/* img fills the box */
.lapis-member__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.lapis-member__img--default{
  opacity: 0.3;
}

/* Body */
.lapis-member__body{
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

/* Name */
.lapis-member__name{
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.3;
}
.en .lapis-member__name{
  letter-spacing: .01em;
}

/* Romaji */
.lapis-member__romaji{
  display: flex;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* Category */
.lapis-member__category{
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
}

/* Headings */
.lapis-member__h{
  margin: 12px 0 6px;
  color: #0071bb;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 800; /* ← 太字が欲しい場合はここで固定 */
}

/* Text */
.lapis-member__text{
  margin: 0 0 10px;
  line-height: 1.7;
  font-size: 14px;
}
.lapis-member__text p{
  margin: 0;
}

/* Clamp */
.lapis-member__text--clamp{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  overflow: hidden;
}

/* More button */
.lapis-member__more-btn{
  font-size: 14px;
  margin: 0 auto;
  z-index: 2;
  padding: 0 10px;
  background-color: #fff;
  color: #999;
  cursor: pointer;
}
.lapis-member__more-btn:hover{
  color: #666;
}
.lapis-member__more-icon{
  display: inline-block;
  font-size: 10px;
  transform: translateY(1px);
}


/* 操作エリア（左：鍵 / 右：NCAS） */
.lapis-member__actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:auto;      /* カード下に寄せる */
  gap:10px;
}

/* 鍵アイコン */
.member-lock{
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.member-lock svg{
  width:100%;
  height:100%;
  fill:#ccc;
  transition: fill .2s ease, transform .2s ease;
}
.member-lock:hover svg{
  fill:#666;
  transform: scale(1.1);
}

/* NCASボタン（右）※HTMLが <a class="lapis-member__ncas"> の前提 */
a.lapis-member__ncas{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#0071BB;
  color:#fff;
  text-decoration:none;
  font-size:14px;
  padding:4px 8px;
  font-weight:600;
}
a.lapis-member__ncas:hover{
  opacity:.8;
}
