@import url("root.css");

/*－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－
  
  ＩＮＤＥＸ
  
  －－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－*/


.fv {
 .fv_illust {
  height: calc(100vh - 140px);
  margin-bottom: 30px;

  img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: center;
   border-radius: 20px;
   border: 4px solid var(--color-main);
  }
 }
}

@media screen and (min-width: 768px),
print {
 .fv {
  grid-template-columns: 1fr 2fr;

  .fv_illust {
   position: sticky;
   top: 110px;
   height: calc(100vh - 140px);

   img {
    height: 100%;
   }
  }

  .fv_text {
   section:first-child {
    padding-top: 0;
   }
  }
 }
}

/*－－－－－－－－－－  更新履歴 －－－－－－－－－－*/

.update__wrap {
 margin: 20px 0px;

 .headingM {
  margin-bottom: 10px;
 }
}

.update {
 height: 140px;
 overflow-y: auto;
 padding: 4px;
 padding-right: 20px;
 border-top: 2px solid var(--color-main);
 border-bottom: 2px solid var(--color-main);

 .update__item {
  display: flex;
  gap: 0px 20px;
  padding: 10px 0;

  time {
   font-weight: 600;
   flex-shrink: 0;
  }
 }

 .update__item:not(:last-child) {}
}


/* スマホ */
@media screen and (max-width: 520px) {
 .update__item {
  flex-direction: column;
  gap: 4px;
 }
}


/*－－－－－－－－－－ TOPIC －－－－－－－－－－*/
.topiclist {
 margin-top: 30px;
}

.topiclist__item.grid {
 gap: 10px 20px;
 margin-bottom: 30px;
 align-items: flex-start;

 &:last-child {
  margin-bottom: 0px;

  p {
   margin-bottom: 0px;
  }
 }
}


/*－－－－－－－－－－ Profile －－－－－－－－－－*/
.profile__inner.grid {
 margin-top: 40px;
 gap: 20px;
 align-items: flex-start;
}

.profile__img {
 padding: 0 20px;
}

.profile__img img {
 border-radius: 50%;
 margin: auto;
}

/*  SNSアイコン  */
.social-icons {
 display: flex;
 gap: 2px;
 flex-wrap: wrap;
 margin-top: 18px;
}

.social-icons a {
 width: 46px;
 height: 46px;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 text-decoration: none;
 transition: all 0.2s ease;
}

.social-icons a:hover {
 transform: translateY(-3px);
}

.social-icons svg {
 width: 20px;
 height: 20px;
}

/*－－－－－－－－－－ Contact －－－－－－－－－－*/
.mailform {
 margin-top: 30px;
}


/*－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－

Gallery

－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－*/
.gallery-header {
 margin-bottom: 40px;
 padding-bottom: 20px;
 border-bottom: 4px solid var(--color-main);
}

.gallery-content {
 :target {
  scroll-margin-top: 100px;
 }


}

.gallerylist {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
 gap: 40px;
 padding: 2px;
}

/* スマホ幅では2列固定にする */
@media (max-width: 600px) {
 .gallerylist {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px; /* 余白も詰めないと2列に収まりづらいので調整 */
 }
}

.gallerylist__item {
 aspect-ratio: 3 / 4;
 overflow: hidden;
 cursor: pointer;
 background-color: var(--color-bg);
 border-radius: 20px;
}

.gallerylist__item img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 transition: transform 0.4s ease;
}

.gallerylist__item:hover img {
 transform: scale(1.05);
}

/* 画像表示：全画面レイアウト */
/* 画像表示：全画面レイアウト */
#detail-view {
 position: fixed;
 top: 0;
 left: 0;
 width: 100vw;
 height: 100dvh; /* dvhはスマホのアドレスバー分の高さ変動に対応 */
 background-color: var(--color-bg);
 display: flex;
 align-items: center;
 justify-content: center;
 padding: 40px 20px; /* どんな画像サイズでも確保される余白 */
 box-sizing: border-box;
 z-index: 2000;
 cursor: pointer;
}

.detail-content {
 width: 100%;
 max-width: 900px;
 height: 100%;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 20px;
}

#full-image {
 flex: 0 1 auto;
 min-height: 0;      /* ★これが無いと画像が縮まずキャプションが見えなくなる */
 max-width: 100%;
 max-height: 100%;
 object-fit: contain;
}

#detail-caption {
 flex: 0 1 auto;
 max-height: 30%;     /* キャプションが占める高さの上限。画像スペースを必ず確保 */
 max-width: 80%;
 overflow-y: auto;    /* 長文はここでスクロール */
 margin: 0;
 padding-right: 8px;  /* スクロールバー分の余白 */
 line-height: 1.6;
 text-align: center;
}

/* 表示切り替え用クラス */
.hidden {
 display: none !important;
}


.detail-nav {
 position: fixed;
 top: 50%;
 transform: translateY(-50%);
 width: 44px;
 height: 44px;
 border: none;
 border-radius: 50%;
 background-color: transparent;   /* 透明に変更 */
 color: #000000;
 font-size: 24px;                 /* 文字だけになる分、少し大きくすると見やすいです */
 cursor: pointer;
 z-index: 2010;
 display: flex;
 align-items: center;
 justify-content: center;
}

/* PCなど、本当にマウスホバーができる環境だけに適用 */
@media (hover: hover) {
 .detail-nav:hover {
  color: rgba(255, 255, 255, 0.7);
 }
}

.detail-nav--prev {
 left: 12px;
}

.detail-nav--next {
 right: 12px;
}

/* PC(画面幅601px以上)のときだけ内側に寄せる */
@media (min-width: 601px) {
 .detail-nav--prev {
  left: 60px;
  font-size: 40px; /* PCでは少し大きくして押しやすく */
 }

 .detail-nav--next {
  right: 60px;
  font-size: 40px; /* PCでは少し大きくして押しやすく */
 }
}



/*－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－

Blog

－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－*/

.blog-header {
 margin-bottom: 60px;
 padding-bottom: 20px;
 border-bottom: 4px solid var(--color-main);
}

.control-links {
 position: absolute;
 top: 100px;
 right: 20px;
}

.mainarea {}

.onelogbox {
 margin-bottom: 60px;
 background-color: var(--color-white);
 padding: 30px;
 border-radius: 40px;
 border: 2px solid var(--color-main);

 .oneloginfo {
  display: flex;
  justify-content: flex-end;
  gap: 0px 20px;
  font-size: 0.8em;
  color: var(--color-main);

  time,
  >span {
   display: flex;
   align-items: center;
   gap: 4px;

   svg {
    width: 16px;
    height: 16px;
   }
  }
 }
}

.pagenavi {

 .pagelinks {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;

  .prevlink,
  .nextlink {
   display: flex;
   align-items: center;
   gap: 4px;
   padding: 4px 10px 4px 12px;
  }
 }

 .pagenums {
  text-align: center;

  a {
   display: inline-block;
   width: 38px;
   height: 38px;
  }
 }


 a {
  padding: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border-radius: 999px;
 }

 a:hover {
  background-color: var(--color-main);
  color: var(--color-white);
 }
}



/*－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－

Works（作品一覧）

－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－*/

/* .worklist の中だけbox-sizingをborder-boxにする（サイト全体には影響させない） */
.worklist,
.worklist * {
  box-sizing: border-box;
}

.worklist-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 4px solid var(--color-main);
}

.worklist-header h1 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 1.291rem + 2.55vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.worklist-header p {
  margin: 0;
  color: var(--color-main);
  font-size: 0.9rem;
}

/*－－－－－－－－－－ 絞り込みフィルター －－－－－－－－－－*/
.worklist-filter {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.worklist-filter__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.worklist-filter__label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--color-main);
  opacity: 0.7;
  text-transform: uppercase;
  margin-right: 4px;
  flex-shrink: 0;
}

.filter-btn {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-family: var(--font-base);
  font-size: 0.8rem;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-main);
  background-color: transparent;
  color: var(--color-main);
  transition: 0.2s;
}

.filter-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.filter-btn.is-active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.worklist__item.is-hidden {
  display: none;
}

.worklist-empty {
  display: none;
  color: var(--color-main);
  font-size: 0.9rem;
  padding: 60px 0;
  text-align: center;
}

.worklist-empty.is-visible {
  display: block;
}

/*－－－－－－－－－－ 作品一覧本体 －－－－－－－－－－*/
.worklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* 最小320px 〜 折り返し。.gallerylistや.gridと同じ考え方 */
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 30px;
}

.worklist__item {
  background-color: var(--color-white);
  border: 2px solid var(--color-main);
  border-radius: 24px;
  padding: clamp(20px, 4%, 30px) clamp(20px, 5%, 34px);
  display: flex;
  flex-direction: column;
  transition: 0.2s;
}

.worklist__item:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.worklist__meta {
  font-family: var(--font-base);
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: var(--color-main);
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 14px;
}

.worklist__title {
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.7rem);
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 10px;
  overflow-wrap: normal;
  word-break: auto-phrase;
}

.worklist__author {
  font-size: 0.85rem;
  color: var(--color-main);
  margin: 0 0 20px;
}

.worklist__oshi {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
}

.worklist__oshi-label {
  flex-shrink: 0;
  font-size: 0.68rem;
  padding: 3px 12px;
  border-radius: 999px;
  background-color: var(--color-accent);
  color: var(--color-white);
  letter-spacing: 2px;
}

.worklist__oshi-name {
  font-weight: 600;
  font-size: 0.92rem;
  overflow-wrap: break-word;
}

.worklist__comment {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-text);
  margin: 0 0 20px;
}

.worklist__divider {
  border-top: 1px solid var(--color-sub);
  margin-bottom: 16px;
}

.worklist__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: auto;
}

.worklist__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.worklist__tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background-color: var(--color-sub);
  color: var(--color-main);
  font-size: 0.72rem;
  letter-spacing: 1px;
  white-space: nowrap;
}

.worklist__date {
  font-size: 0.72rem;
  color: var(--color-main);
  letter-spacing: 1px;
  margin-left: auto;
  white-space: nowrap;
}

/* スマホでは日付が折り返した時に見切れないよう調整 */
@media screen and (max-width: 380px) {
  .worklist__date {
    margin-left: 0;
  }
}




.face-stage{
  position:relative;
  width:220px;   /* サイトの丸窓のサイズに合わせて調整 */
  height:330px;
  border-radius:14px; /* 丸窓なら 50% に */
  overflow:hidden;
  cursor:pointer;
}
.face-stage img{
  position:absolute; top:0; left:0;
  width:100%; height:100%;
  object-fit:contain;
}
.face-stage .base{ z-index:1; }
.face-stage .overlay{
  opacity:0;
  clip-path: inset(1% 22% 66% 24% round 18px); /* 頭まわりの切り取り範囲 */
}