@charset "UTF-8";

/* 基本設定 */
* {
  box-sizing: border-box;
}

/* 画像リンク等のデフォルトスタイルリセット 
  HTML側のインラインスタイル(style="...")を消しても大丈夫なように追記
*/
a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s; /* ★ホバー時のふわっとした動き */
}

/* ★PCでのマウスホバーアクションを追加 */
a:hover {
  opacity: 0.7;
}

.main {
  container-type: inline-size;
}

/* 固定ボタン */
.fixedBtn {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  z-index: 99999;
  padding: 1em 2em;
  height: 60px;
  background-color: #ff7f88;
  border-radius: 5px;
  color: #fff !important;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 10px -6px rgba(0, 0, 0, .3);
}
/* ★固定ボタンのホバー時は少し沈む演出 */
.fixedBtn:hover {
  bottom: 8px;
  box-shadow: 0 5px 5px -3px rgba(0, 0, 0, .3);
  opacity: 1; /* 透明度は変えない */
}

.contWrap {
  margin: 5% auto 10%;
  padding: 0 20px; /* ★画面端に張り付かないよう余白を追加 */
}

.contBlock {
  margin: 5% auto 8%;
  max-width: 900px;
}

/* 見出しデザイン */
.contTtl {
  position: relative;
  padding-bottom: .5em;
  margin-bottom: 2rem;
  color: #3561A9;
  font-size: 1.6rem;
  line-height: 1.4;
  text-align: left;
}
.contTtl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background-image: repeating-linear-gradient(-45deg, #3561a9 0px,#3561a9 1px, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 50%);
  background-size: 8px 8px;
}

.subTtl {
  position: relative;
  margin-bottom: 2rem;
  padding: .8em;
  color: #3BA8D8;
  font-size: 1.2rem;
  background: none;
}
.subTtl:after {
  content: "";
  width: 80px;
  border-bottom: 2px solid #3ba8d8;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.contText {
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.8; /* ★読みやすく行間を少し広げました */
}

.imgWrap {
  margin: 2rem auto;
  max-width: 900px;
  width: 100%;
}
.imgWrap img {
  max-width: 100%; /* ★画像が親要素からはみ出さないように */
  height: auto;
}

.emphasis {
  font-weight: bold;
  color: #ff7f88;
}

/* nav (3カラムナビゲーション) */
.navList {
  margin: 3rem auto 5rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  max-width: 900px; /* ★広がりすぎないように制限 */
}
.navItem a {
  display: grid;
  align-items: center;
  height: 100%;
  position: relative;
  padding: 1em;
  font-size: 0.9375rem;
  font-weight: bold;
  color: #3561A9;
  border: 1px solid #3561A9;
  border-radius: 5px;
  background: #fff; /* ★背景色を明示 */
}
.navItem a:after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-top: 1px solid #3561A9;
  border-right: 1px solid #3561A9;
  transform: translateX(-50%) rotate(135deg);
  bottom: -10px;
  left: 50%;
}

/* btn */
.btn {
  display: block;
  margin: 1rem auto;
  max-width: 300px;
  padding: 1em;
  color: #3561a9;
  border: 1px solid #3561a9;
  border-radius: 99px;
  text-align: center; /* ★念のため中央揃え */
  font-weight: bold;  /* ★ボタンらしく太字に */
}
.btn.btnTop {
  color: #fff;
  background: #3ba8d8;
  border-color: #3ba8d8;
}
.btn.btnBl {
  color: #fff;
  background-color: #3561a9;
  border-color: #3561a9;
}
/* ★修正：シンタックスエラーを修正 */
.btn.btnAdt {
  color: #fff;
  background-color: #8f89b4;
  border-color: #8f89b4;
}
/* ★修正：シンタックスエラーを修正 */
.btn.btnAdtBL {
  color: #fff;
  background-color: #db7093;
  border-color: #db7093;
}
.bnrTxt {
  font-size: 1rem;
  font-weight: bold;
  text-align: center; /* ★バナー上のテキストも中央揃え */
  margin-bottom: 0.5em;
}

/* about (ジャンルリスト)
  ★PC版のレイアウト設定を追加 
*/
.genreList {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center; /* PCで数が少ない時に中央寄せ */
}

.genreItem {
  /* ★PCでは4列になるように幅を指定（gap分を引く計算） */
  width: calc(25% - 1.5rem); 
  list-style: none; /* リストの・を消す */
}

.genreItem img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px; /* ★少し角丸にすると今っぽくなります */
}

.genreItem p {
  padding: .5em;
  text-align: center;
  font-weight: bold; /* ★ジャンル名は少し目立たせる */
}

/* note */
.noteList {
  text-align: left;
  color: gray;
  font-size: 0.9rem; /* 注釈なので少し小さく */
  padding-left: 1.5em; /* リストマークの位置調整 */
}
.noteItem {
  margin-bottom: 0.5em;
}

/* sns */
.snsTtl {
  margin: 0 auto;
  width: 80%;
  border-bottom: 1px solid #dfdfdf;
  font-weight: bold;
  text-align: center; /* ★タイトル中央揃え */
  padding-bottom: 0.5em;
}
/* PC・タブレット向けの記述 */
.snsList {
  display: flex;
  gap: 2rem;
  margin: 2rem auto;
  padding: 0;
  width: 90%;      /* ★80%から90%に変更（少し広げる） */
  max-width: 800px; /* ★600pxから800pxに変更（3つ並んでもゆとりを持たせる） */
  list-style: none;
}
.snsItem {
  flex: 1;
  text-align: center;
}
.snsItem a {
  display: block; /* リンクをブロック要素にして押しやすく */
}
.snsItem img {
  margin-bottom: 1em;
  max-width: 100px;
  width: 100%;
  transition: transform 0.3s; /* アイコンが動くアニメーション準備 */
}
.snsItem a:hover img {
  transform: scale(1.1); /* ★ホバー時にアイコンが少し拡大 */
}

/* リンクボタン群のラップ */
.linkWrap {
  display: flex;
  flex-direction: column; /* ★ここが重要！「縦方向」に並べる指定 */
  align-items: center;    /* 中央揃え */
  gap: 1rem;              /* ボタン同士の隙間 */
}

.linkWrap .btn {
  margin: 0;              /* 余白はgapで管理するので0に */
  width: 100%;            /* 幅は親要素に合わせて広げる */
  max-width: 300px;       /* ただし300px以上には大きくしない */
}


/* =========================================
   コンテナクエリ：スマホ・タブレット表示 (768px以下)
   ========================================= */
@container (max-width: 768px) {
  .fixedBtn {
    padding: 1em 1.2em;
    font-size: 13px;
    min-width: 50%;
  }

  .navList, .contWrap {
    margin: 10% auto;
    width: 94%;
    padding: 0;
  }
  .contInner {
    padding-top: 2rem;
  }

  .contTtl {
    font-size: 1.2rem;
    text-align: center;
  }
  .subTtl {
    margin-bottom: 1rem;
    font-size: 1rem;
  }
  .contText {
    font-size: 0.875rem;
    text-align: left;
  }
  .contBlock {
    margin-bottom: 15%;
    width: 96%;
  }
  
  /* btn */
  .bnrTxt {
    font-size: 0.875rem;
    padding: 1rem 0 0;
  }
  /* スマホではボタンを縦積みに戻す */
  .linkWrap {
    display: block;
  }
  .linkWrap .btn {
    width: 100%;
    margin: 1rem auto;
  }
  
  /* nav */
  .navList {
    margin: 1rem auto;
    gap: .8em;
    /* スマホでも3列維持か、狭ければ2列にするか検討箇所ですが元のまま3列にします */
  }
  .navItem a {
    padding: 1em .5em;
    font-size: 0.75rem;
    line-height: 1.4;
  }
  
  /* about */
  .genreList {
    margin: 1rem auto;
    gap: 1rem;
  }
  .genreItem {
    /* スマホで2列表示 */
    width: calc(50% - 0.5rem);
  }

  /* SNS */
  .snsTtl {
    width: 100%;
  }
  .snsList {
    width: 100%;
    gap: 1em;
    padding: 1em;
  }
}