@charset "utf-8";
/* CSS Document */
@media screen and (min-width: 1200px) {
  div#contents {
    position: relative;
    background-image: url("bg.png");
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    padding-bottom: 20px;
    min-height: 100vh;
  }
  div#contents::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 1200px;
    width: 100%;
    height: 100%;
    background-color: #fff;
  }
}
@media (max-width: 736px) {
  div#contents {
    background-color: #fff;
    background-image: none;
  }
}
/*===============================================
●共通
===============================================*/
.grid-item {
  opacity: 0;
  transform: scaleY(0);
  transform-origin: bottom center;
}
.js-fade-up {
  opacity: 0;
  transform: translateY(30px);
}
/* --- 1. ローディング画面のスタイル --- */
.loading-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* ★ローディング画面の背景色 */
  background-color: #f2f2f2;
  z-index: 9999;
  /* 画面外から来るサイコロを隠す */
  overflow: hidden;
}
/* サイコロのスタイル */
.dice {
  position: absolute;
  /* デフォルト (タブレットなど中間のサイズ) */
  width: 80px;
  height: 80px;
  top: 50%;
  left: 0;
  /* ★初期位置を画面の左外に設定 */
  transform: translate(-150%, -50%);
  /* JSでアニメーション開始時に表示する */
  opacity: 0;
}
/* --- 2. レスポンシブ対応のCSS --- */
/* スマホ (max-width: 736px) */
@media (max-width: 736px) {
  .dice {
    width: 60px;
    height: 60px;
  }
}
/* PC (min-width: 1200px) */
@media (min-width: 1200px) {
  .dice {
    width: 100px;
    height: 100px;
  }
}
#famifes img {
  display: block;
  width: 100%;
  height: auto;
}
#famifes .fix {
  clear: both;
}
#famifes .conL {
  float: left;
}
#famifes .conR {
  float: right;
}
#famifes .mb50 {
  margin-bottom: 5%;
  margin-top: 2%;
}
#famifes a:hover img {
  opacity: 0.6;
  filter: alpha(opacity=60);
  -ms-filter: "alpha( opacity=60 )";
}
/*8item*/
.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 5% 0 2%;
  max-width: 1100px;
  margin: auto;
}
.grid-item {
  min-height: 300px;
  background-image: url("logo_bg.jpg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0 .7rem;
  margin: 10% 0;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: bottom center;
}
.num {
  font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-size: clamp(5rem, -1.345rem + 13.79vw, 9rem);
  margin-top: -4rem;
  padding: 0;
  line-height: 1.2;
  text-align: center;
}
.num_txt {
  font-style: normal;
  font-size: clamp(0.95rem, 0.553rem + 0.86vw, 1.2rem);
  font-weight: 600;
  margin: 0;
  padding: 0;
  letter-spacing: -0.05em;
}
.num_txt > span {
  font-size: 80%;
}
.num_txtS {
  font-size: clamp(0.75rem, 0.353rem + 0.86vw, 1rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
  padding: 0;
  letter-spacing: -0.05em;
}
@media (max-width: 900px) {
  .grid-item {
    min-height: 200px;
    margin: 0;
    padding: 0 .5rem;
  }
  .num {
    margin-top: -3rem;
  }
}
@media (max-width: 736px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-item {
    min-height: 225px;
  }
  .num {
    margin-top: -2rem;
  }
  .num_txt {
    line-height: 1.3;
  }
}
/*===============================================
●pc.css 画面の横幅が1025px以上
===============================================*/
@media screen and (min-width: 1025px) {
  #famifes .pc-none {
    display: none;
  }
  #famifes {
    max-width: 1200px;
    font-size: 1rem;
    margin: 0px auto;
    background-color: #fff;
    color: #000;
    padding: 0;
    position: relative;
    box-sizing: border-box;
  }
  #famifes .h1_img {
    width: 60%;
    margin: 3% 20%;
  }
  .leadC {
    color: #000;
    font-size: 1.8rem;
    text-align: center;
    font-weight: 600;
    margin: 3rem 0 2rem;
  }
  .lead {
    color: #000;
    font-size: 1.2rem;
    text-align: left;
    margin: 0 5rem 2rem;
    line-height: 2em;
  }
  #famifes .h2_tit {
    font-size: 1.8rem;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
  }
  #famifes .h2_tit::before {
    content: "";
    display: block;
    margin: 0 auto;
    width: 20%;
    max-width: 85px;
    aspect-ratio: 143 / 150;
    background-image: url("dice.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }
  #famifes .container {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    background-color: #ffffff;
    overflow: hidden;
    font-size: 1.2rem;
  }
  dl {
    display: grid;
    grid-template-columns: 180px 1fr;
    padding: 1rem;
    margin: 0;
    gap: 10px;
    background-color: #fff;
    color: #000;
  }
  dt, dd {
    margin: 0;
    padding: 1rem;
    background-color: #ffffff;
  }
  dt {
    font-weight: 700;
    background-color: #f2f2f2;
    display: flex;
    align-items: center;
  }
  dd {
    line-height: 1.7;
  }
  #famifes .comment {
    width: 90%;
    margin: 0 auto;
  }
  /* プロフィールカード全体のスタイル */
  #famifes .comment {
    width: 90%;
    margin: 0 auto;
  }
  .comment-card {
    display: flex;
    background-color: #ffffff;
    padding: 2rem 2rem 0;
    margin: 1rem 0;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
    /* ↓ SP用に縦並びと中央揃えを追加 */
    flex-direction: column;
    align-items: center;
  }
  .image-column {
    display: flex;
    flex-direction: column;
    align-items: center; /* 中身（画像とキャプション）を中央揃え */
    flex-shrink: 0;
    margin-bottom: 2rem; /* SP表示の際、下のテキストとの余白 */
  }
  .comment-image-wrapper {
    width: 250px;
    height: 250px;
    border-radius: 50%; /* 画像を円形にする */
    overflow: hidden; /* 円形に切り抜く */
    flex-shrink: 0;
  }
  .comment-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .image-caption {
    font-size: clamp(0.8rem, 0.641rem + 0.34vw, 0.9rem);
    text-align: center;
    line-height: 1.5;
    margin-top: .8rem; /* 画像とキャプションの間の余白 */
  }
  .comment-content {
    /* ↓ SP表示の際、テキストを中央揃えに */
    text-align: center;
  }
  .comment-content .name {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
  }
  /* --- PCのスタイル (画面幅が768px以上) --- */
  @media (min-width: 768px) {
    .comment-card {
      flex-direction: row; /* 横並び */
      align-items: flex-start; /* 上揃え */
      /* ↓ 0remから適切な余白に変更 */
      gap: 2.5rem; /* 画像列とテキスト列の間の余白 */
    }
    .comment-content .bio {
      font-size: 1rem;
      text-align: left;
      margin-bottom: 1rem;
      line-height: 1.7;
    }
    .image-column {
      margin-bottom: 0; /* PCでは不要なのでリセット */
    }
    .comment-content {
      text-align: left; /* PCでは左揃えに戻す */
    }
  }
  .font_space {
    letter-spacing: 0em;
  }
  .logo_foot {
    width: 25%;
    margin: 5rem auto;
  }
  .w90 {
    width: 90%;
    margin: 0 auto;
  }
}
/*===============================================
●sp.css 画面の横幅が1024pxまで
===============================================*/
@media screen and (max-width: 1024px) {
  #famifes .sp-none {
    display: none;
  }
  #famifes .mt15 {
    margin-top: 15px;
  }
  #famifes {
    width: 100%;
    font-size: 100%;
    margin: 0px auto;
    background-color: #fff;
    color: #000;
    padding: 30px 0 0;
    box-sizing: border-box;
  }
  .leadC {
    color: #000;
    font-size: 1.4rem;
    text-align: center;
    font-weight: 600;
    margin: 1rem 0;
  }
  .lead {
    color: #000;
    font-size: 0.95rem;
    text-align: left;
    line-height: 1.8em;
  }
  #famifes .h2_tit {
    font-size: 1.3rem;
    text-align: center;
    margin-top: 1rem;
    margin: 2rem 0;
  }
  #famifes .h2_tit::before {
    content: "";
    display: block;
    margin: 0 auto;
    width: 15%;
    max-width: 60px;
    aspect-ratio: 143 / 150;
    background-image: url("dice.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }
  dl {
    display: block;
    border-top: none;
    background-color: transparent;
  }
  dt {
    font-weight: 700;
    background-color: #f2f2f2;
    padding: 0.5rem 1rem;
  }
  dd {
    border-top: none;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
  }
  .font_space {
    letter-spacing: -0.1em;
  }
  .logo_foot {
    width: 40%;
    margin: 2rem auto;
  }
  .w90 {
    width: 100%;
    margin: 0 auto;
  }
  #famifes .comment {
    width: 100%;
    margin: 0 auto;
  }
  /* --- スマートフォン (SP) のスタイル --- */
  .comment-card {
    flex-direction: column; /* 縦並び */
    align-items: center; /* 中央揃え */
    text-align: center;
  }
  .comment-image-wrapper {
    width: 250px;
    height: 250px;
    margin: 0 auto;
    border-radius: 50%; /* 画像を円形にする */
    overflow: hidden; /* 円形に切り抜く */
    flex-shrink: 0; /* PC表示で画像が縮まないように */
  }
  .comment-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像の比率を保ったままトリミング */
  }
  .comment-content .name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1rem 0;
  }
  .comment-content .bio {
    font-size: 0.9rem;
    text-align: left;
    margin-bottom: 1rem;
    line-height: 1.6;
  }
  .image-caption {
    font-size: clamp(0.8rem, 0.641rem + 0.34vw, 0.9rem);
    text-align: center;
    line-height: 1.5;
    margin-top: .5rem; /* 画像とキャプションの間の余白 */
  }
}