@charset "utf-8";

/* *****************************
common（共通設定）
***************************** */
:root {
  /* 色 */
  --primary-font: #545454;
  --primary-creamYellow: #fffaf0;
  --primary-lightPink: #f8cdc9;
  --primary-darkPink: #d97f77;
  --primary-brown: #bf7c40;
  --primary-lightGray: #d8d8d8;
  --primary-gray: #9e9e9e;
}
body,
html {
  overflow-x: hidden;
  max-width: 100%;
}

/* または、containerクラスがある場合 */
.container {
  overflow-x: hidden;
  max-width: 100%;
}

/* ------------------------
      common pc
    ------------------------ */
@media screen and (min-width: 840px) {
  h2 {
    font-size: clamp(18px, 1.944vw, 40px);
    line-height: 1;
  }
  h3 {
    font-size: clamp(14px, 1.389vw, 29px);
    line-height: 1.8;
  }
}

/* pc 840 */

/* *****************************
タブの制御
***************************** */
/*tabの形状*/
.gallery-tab {
  display: flex;
  flex-wrap: wrap;
  margin-top: 40px;
  justify-content: center;
  gap: 30px;
  /* 疑似要素があるので*/
  position: relative;
}
.gallery-tab li a {
  display: block;
  /* 未選択時のスタイル */
  background-color: transparent; /* 背景を透明に */
  color: var(--primary-gray); /* 文字の色 */
  border: 1px solid var(--primary-gray); /* 枠線を追加 */
  border-radius: 33px;
  margin: 0 2px;
  padding: 4px 23px;
  font-size: 2rem;
  line-height: 1.8;
  /* ホバー時のアニメーション速度 */
  transition: transform 0.2s ease-out, color 0.2s, background-color 0.2s,
    border-color 0.2s;
}

/* ホバー時のアニメーション */
.gallery-tab li a:hover {
  transform: scale(1.05);
}

/* liにactiveクラスがついた時の形状 */
.gallery-tab li.active a {
  /* 選択時のスタイル */
  background-color: var(--primary-darkPink); /* 濃いピンクの背景 */
  color: var(--primary-creamYellow); /* クリーム色の文字 */
  border: 1px solid var(--primary-darkPink); /* 枠線*/
}

/*エリアの表示非表示と形状*/
.gallery-container,
.gallery__poem--container {
  display: none; /*はじめは非表示*/
  /* opacity: 0; */ /*フェードインの実行のため必要*/
  margin-top: 40px;
  text-align: center;
}

/* gallery-containerにis-activeというクラスがついた時の形状*/
.gallery-container.is-active,
.gallery__poem--container.is-active {
  display: block; /*表示*/
  animation-name: displayAnime; /*フェードインのアニメーション*/
  animation-duration: 2s;
  animation-fill-mode: forwards;
}

@keyframes displayAnime {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==============================
 /* タブの下の疑似要素：線
 ============================== */
.gallery-tab::after {
  content: "";
  position: absolute;
  background-color: var(--primary-gray);
  display: block;
  width: 89.3%;
  height: 1px;
  top: 55px;
  left: 50%; /* 親要素の左端から50%の位置に移動 */
  transform: translateX(-50%);
  /* 要素の幅の半分だけ左に戻し、完全に中央に配置 */
}

/* ------------------------
      common pc
    ------------------------ */
@media screen and (min-width: 840px) {
  .gallery-tab li a {
    display: block;
    /* 未選択時のスタイル */
    padding: 19px 37px;
    font-size: 2.8rem;
    line-height: 1;
  }
  .gallery-tab::after {
    top: 126px;
    width: 80.5%;
  }
}
/* pc 840 */

/*  ++++++++++++++++++++++++++++++
 /* ギャラリー：絵 
  ++++++++++++++++++++++++++++++ */
.gallery__art-list {
  margin: 30px 5.3% 0;
  display: grid;
  /* 2つの均等な列（1fr 1fr）を定義 */
  grid-template-columns: 1fr 1fr;
  gap: clamp(15px, 5.6vw, 30px);
  padding: 0;
  list-style: none;
}

.gallery__art-trigger {
  display: block; /* リンクやボタンをブロック要素にする */
  width: 100%; /* 親要素の幅いっぱいに広げる */
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;

  box-shadow: 0px 10px 10px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  height: 0;
  padding-top: 100%;
  overflow: hidden;
}

.gallery__art-image {
  /* padding-topで確保された領域全体に画像を絶対配置で配置 */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* 画像がコンテナを覆い、はみ出た部分はトリミングされるように設定 */
  object-fit: cover;
}

/* 「さらに表示する」ボタン */
.moreBtn {
  width: 193px;
  background-color: transparent; /* 背景を透明に */
  color: var(--primary-font);
  border: 1px solid var(--primary-font); /* 枠線を追加 */
  border-radius: 30px;
  padding: 18px 48px 17px 35px;
  font-size: 1.6rem;
  position: relative;
  white-space: nowrap;
  margin-top: 60px;
}

/* 疑似要素：矢印アイコン */
.moreBtn::after {
  /* アイコン画像 */
  content: "";
  background-image: url(../images/1_home/icon_toPage.svg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  /* アイコンの幅と高さ */
  width: 12px;
  height: 12px;
  /* 位置 */
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-38%);
}

/* ホバー時の挙動 */
.gallery__art-image {
  transition: transform 0.3s ease-in-out;
  /* 初期スケールを明確にし、ホバー時のチラつきを防ぐ */
  /* 後のアニメーションを滑らかに実行するための準備 */
  transform: scale(1);
}
/* ボタン全体にホバーしたときに、中の画像を拡大する */
.gallery__art-trigger:hover .gallery__art-image {
  /* 1.05倍に拡大 */
  transform: scale(1.05);
}

/* ------------------------
      common pc
    ------------------------ */
@media screen and (min-width: 840px) {
  .gallery__art--announce {
    margin-top: 120px;
    text-align: left;
    margin-left: 9.7%;
  }
  .gallery__art--announce-txt {
    font-size: 2rem;
  }

  .gallery__art-list {
    width: 80.6vw;
    margin: 0 auto;
    display: grid;
    /* ３つの均等な列（1fr 1fr）を定義 */
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3.54vw;
  }

  .gallery__art-list:first-of-type {
    margin-top: 30px;
  }

  .gallery__art-item {
    box-shadow: none;
  }

  .gallery__art-image {
    max-width: none;
    width: 112.42%;
  }

  /* 「さらに表示する」ボタンを非表示 */
  .moreBtn {
    display: none;
  }
}
/* pc 840 */
/*  ===============================
    非表示のサムネイル
    =============================== */
.gallery__art-list--hidden {
  display: none;
}
/* 表示時のアニメーションクラス */
.gallery__art-list--fadein {
  /* is-active と同じアニメーションを使用 */
  animation-name: displayAnime;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  display: grid; /* 親要素のグリッドレイアウトを維持 */
  opacity: 0; /* アニメーションの開始点 */
}

.gallery__art-list:nth-of-type(2) {
  margin-top: 3.54vw;
}

/* ------------------------
      common pc
    ------------------------ */
@media screen and (min-width: 840px) {
  .gallery__art-list--hidden {
    width: 80.6vw;
    margin: 0 auto;
    display: grid;
    /* ３つの均等な列（1fr 1fr）を定義 */
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3.54vw;
  }
}

/* pc 840 */

/*  ===============================
    モーダル
    =============================== */
/* モーダル画像 */
.modal__item {
  /* 完全に一番後ろ配置 */
  z-index: -10;
  /* 要素を透明にする */
  opacity: 0;
  /* アニメーションをつける時の速度 */
  transition: 0.7s;
  /* スクロールしてもついてくる */
  position: fixed;

  /* 画像が真ん中にくるように配置 */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
}

/* モーダル画面が開いたとき */
.modal__item.open {
  z-index: 10; /* 0より大きくする */
  opacity: 1; /* 初期では0なので */
  transform: translate(-50%, -50%) scale(1);
  /* width: 89.33vw; */

  width: 90vw; /* ビューポート幅の90% */
  height: 90vh; /* ビューポート高さの90% */
  display: flex; /* 子要素を中央に配置するために flex を使用 */
  justify-content: center;
  align-items: center;
}
/* 画像の大きさ */
.modal__image {
  /* width: 89.33vw;
  max-width: 520px; */

  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* アスペクト比を維持して、親要素内に収める */
}

.modal__overlay {
  display: none;
  background-color: rgba(84, 84, 84, 0.9);
  width: 100%;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 5;
}

/* モーダルが開いたら背景を表示 */
.modal__overlay.open {
  display: block;
}

/* 閉じるボタン */
.modal__closeBtn {
  display: none;
  width: 35px;
  height: 35px;
  position: fixed;
  right: 3%;
  top: 3%;
  z-index: 100;
}

.modal__closeBtn.open {
  display: block;
}

/* モーダルが開いている間はヘッダーの固定を解除 */
.container.open .header {
  position: static;
}

/* モーダルが開いている間はハンバーガーメニューを無効化 */
.container.open .header__btn {
  pointer-events: none; /* クリックを無効化 */
  z-index: 0; /* 閉じるボタンより下に */
}

.modal__closeBtn.open {
  z-index: 200; /* より高い値に */
}

/*  モーダルが開いている時はTOPページを非表示 */
.container.open .topBtn {
  display: none;
}

/* ------------------------
      common pc
    ------------------------ */
@media screen and (min-width: 840px) {
  /* モーダルが開いている間はメニューを非表示に */
  .container.open .nav {
    display: none;
  }
  .modal__item.open {
    /* max-width: none; */
    /* max-height: 90vh; */
    width: 90vw;
    height: 90vh;
    max-width: none; /* 念のため */
  }
  .modal__image {
    max-width: 100%; /* 親要素の幅 (98vw) を最大利用 */
    max-height: 100%; /* 親要素の高さ (98vh) を最大利用 */
  }
}

/* pc 840 */

/*  ===============================
    美育会
    =============================== */
.gallery__art-biikukai {
  margin-top: clamp(250px, 101.07vw, 500px);
  margin-bottom: clamp(120px, 43.2vw, 250px);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  /* background-color: #ffffff; */
  width: 89.3%;
  padding: clamp(80px, 26.67vw, 150px) clamp(30px, 11.33vw, 70px);
}

/* フェードイン時に不自然ではないよう、背景色を分ける */
.gallery__art-biikukai:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0px 4px 10px 0 rgba(0, 0, 0, 0.05);
  z-index: -1; /* コンテンツの下に配置 */
}

.gallery__art-biikukai::after {
  content: "";
  position: absolute;
  background-image: url(../images/3_gallery_art/biikukai_image_sp.webp);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 100vw;
  padding-bottom: 164.18%;
  top: clamp(-300px, -58.4vw, -150px);
  left: 50%;
  transform: translateX(-50%);
  z-index: -2;
}

.gallery__art-biikukai--title {
  font-size: clamp(18px, 6.4vw, 36px);
  line-height: 1.4;
}

.gallery__art-biikukai--list,
.gallery__art-biikukai--explanation {
  margin-top: clamp(20px, 8vw, 40px);
  text-align: left;
}

.gallery__art-biikukai--item {
  font-size: clamp(12px, 4.27vw, 20px);
  line-height: 2;
  display: flex;
  align-items: center; /* 垂直方向中央揃え */
  justify-content: left; /* 水平方向中央揃え*/
}

/* ------------------------
      common pc
    ------------------------ */
@media screen and (min-width: 840px) {
  .gallery__art-biikukai {
    /* margin-top: 30vw (1440pxで432px) */
    margin-top: clamp(300px, 30vw, 550px);
    margin-right: auto;
    margin-bottom: 12.57vw;
    margin-left: auto;
    width: 52.84%;
    padding: 6.94vw 10.42vw;
  }

  .gallery__art-biikukai::after {
    background-image: url(../images/3_gallery_art/biikukai_image_pc.webp);
    width: 100vw;
    /* padding-bottom で高さを決める*/
    height: 0;
    /* padding-bottom: 45.49%; */ /* 画像の縦横比 (655px / 1440px) * 100 */
    padding-bottom: 86.08%;
    top: clamp(-400px, -20.76vw, -200px);
  }

  .gallery__art-biikukai--title {
    font-size: clamp(20px, 1.94vw, 40px);
  }

  .gallery__art-biikukai--list {
    margin-top: clamp(40px, 4.17vw, 80px);
  }

  .gallery__art-biikukai--item,
  .gallery__art-biikukai--txt {
    font-size: clamp(12px, 1.11vw, 20px);
  }
}

/* pc 840 */

/*  ++++++++++++++++++++++++++++++
 /* ギャラリー：詩
  ++++++++++++++++++++++++++++++ */
.gallery__poem--container {
  margin: 40px 5.3% 70px;
}

.gallery__poem--intro.fadeIn {
  transition-delay: 0.1s;
}

.gallery__poem--intro-txt span {
  color: var(--primary-darkPink);
  display: inline-block;
}

/* ------------------------
      common pc
    ------------------------ */
@media screen and (min-width: 840px) {
  .gallery__poem--container {
    margin: 40px auto 70px;
    padding-bottom: 170px;
  }
  .gallery__poem--intro {
    margin-top: 180px;
  }
  .gallery__poem--intro-txt,
  .gallery__poem--intro-txt span {
    font-size: clamp(16px, 1.39vw, 28px);
    line-height: 1.8;
  }

  .gallery__poem--source.sub_txt {
    font-size: clamp(12px, 1.111vw, 24px);
    margin-top: 21px;
  }
  .txt__one-line {
    white-space: nowrap;
  }
}

/* pc 840 */

/*  ===============================
    詩の本文：「かえりみち」
    =============================== */
.gallery__poem--work {
  margin-top: 80px;
  /* 左右のマージンはリセット */

  padding: 60px 2%;
  background-image: url(../images/4_gallery_poem/poem_work_bg_sp.webp);
  width: 100vw;
  margin-left: calc(-1 * 5.3vw); /* 親の margin: 40px 5.3% を打ち消す */
  margin-right: calc(-1 * 5.3vw);

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* 中央揃えと text-align: center; を併用 */
  /* margin-left: auto;
  margin-right: auto;
  text-align: center; */
}

/* アニメーション */
.gallery__poem--work.fadeIn {
  transition-delay: 1s;
}

.gallery__poem--work-txt {
  margin-top: 50px;
  font-size: clamp(18px, 5.333vw, 30px);
  line-height: 1.8;

  /* 幅を375pxに対する321pxの比率 (85.6%) に設定 */
  width: 90%;

  /* ブロック要素自体を中央寄せ */
  margin-left: auto;
  margin-right: auto;
}

/* .gallery__poem--source 出典情報 */
.gallery__poem--source {
  margin-top: 50px;
}

/* ------------------------
      common pc
    ------------------------ */
@media screen and (min-width: 840px) {
  .gallery__poem--work {
    margin-top: 120px;
    margin-left: 0;
    margin-right: 0;
  }
  .gallery__poem--work-txt {
    font-size: clamp(14px, 1.389vw, 30px);
  }
}

/* pc 840 */

/*  ===============================
    主な著作物
    =============================== */
/* 共通設定：画像 */
.gallery__poem--main-works-image {
  width: 53.7%;
}

/*共通設定：タイトルの上  */
.gallery__poem--book-title {
  margin-top: 60px;
}

/* 主な著作物：全体 */
.gallery__poem--main-works-list {
  margin-top: 80px;
}

/* 詳細事項の余白 */
.gallery__poem--main-works-detail {
  margin-top: 20px;
}

/* 『太陽の指環』 */
.gallery__poem--taiyo-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gallery__poem--main-works-image--taiyo {
  margin-top: 60px;
}
.gallery__poem--book-title--taiyo {
  margin-top: 20px;
}
.externalLinksBtn__taiyo {
  margin-top: 30px;
}

/* 『こどものための少年詩集』 */
.gallery__poem--main-works-about {
  display: inline-block;
  margin-right: auto;
  margin-left: auto;
  text-align: left;
  width: 85%;
}
/* 『こどものための少年詩集』：詳細はこちらボタン */
.externalLinksBtn__shonen {
  margin-top: 20px;
}

/* 『こどものための少年詩集』2011 */
.gallery__poem--main-works01 {
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 『こどものための少年詩集』2012,2016 */
.gallery__poem--main-works02,
.gallery__poem--main-works03 {
  margin-top: 60px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 『総合詩誌PO』 */
.gallery__poem--main-works-item--po {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gallery__poem--main-works-about--po {
  width: 100%;
  max-width: 335px;
}
.gallery__poem--main-works-txt-list {
  font-size: clamp(12px, 4.27vw, 20px);
  white-space: nowrap;
}

/* 作品を読む */
.externalLinksBtn__po {
  margin-top: 30px;
}

/* ------------------------
      common pc
    ------------------------ */
@media screen and (min-width: 840px) {
  /* 主な著作物：全体 */
  .gallery__poem--main-works-list {
    margin-top: 120px;
  }
  /* 共通設定：画像 */
  .gallery__poem--main-works-image {
    width: 12.5vw;
    height: 18.54vw;
  }
  /*共通設定：タイトルの上  */
  .gallery__poem--book-title {
    margin-top: 0px;
  }
  /* 共通設定：タイトルとコンテンツの上 */
  .gallery__poem--main-works-item {
    margin-top: 100px;
  }
  .gallery__poem--main-works-item:first-of-type {
    margin-top: 50px;
  }

  /* 『太陽の指環』 */
  .gallery__poem--main-works-item--taiyo {
    display: flex;
    justify-content: center;
    gap: 100px;
  }
  .gallery__poem--main-works-image--taiyo,
  .gallery__poem--book-title--taiyo {
    margin-top: 0;
  }

  /* 『こどものための少年詩集』  */
  .gallery__poem--main-works-about {
    text-align: center;
  }
  .gallery__poem--main-works--kodomo-list {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: clamp(50px, 15.7vw, 230px);
  }
  .gallery__poem--main-works01,
  .gallery__poem--main-works02,
  .gallery__poem--main-works03 {
    margin: 0;
  }

  /* 『総合詩誌PO』 */
  .gallery__poem--main-works-about--po {
    width: 23.33vw;
    margin: 0 auto;
  }
  .gallery__poem--main-works-txt-list--po {
    font-size: clamp(12px, 1.11vw, 20px);
  }
  .gallery__poem--main-works-txt-list {
    font-size: clamp(12px, 1.11vw, 20px);
  }
  .gallery__poem--main-works-about--po--txt {
    text-align: left;
  }
}

/* pc 840 */

/*  ===============================
    YouTube動画
    =============================== */
.gallery__poem--movie-list {
  margin-top: 80px;
}

.gallery__poem--movie-content {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  /* 縦並びにしてから垂直にそろえる */
  align-items: center;
}

.gallery__poem--movie-item {
  width: 89.3vw;
  max-width: 400px;
}

.gallery__poem--movie {
  margin-top: 30px;
  /* 幅:高さ の順で指定 */
  aspect-ratio: 335 / 209;
  width: 100%;
  height: auto;
}

.gallery__poem--movie-title {
  font-size: 1.8rem;
  font-weight: 600;
}

/* ------------------------
      common pc
    ------------------------ */
@media screen and (min-width: 840px) {
  .gallery__poem--movie-content {
    margin: 50px auto 0; /* 中央揃え */
    max-width: 1400px; /* コンテナ全体の最大幅を設定 */
    padding: 0 9.72vw; /* 左右の余白をpaddingで確保 */
    display: grid;
    /* 2つの均等な列（1fr 1fr）を定義 */
    grid-template-columns: 1fr 1fr;
    /* 各アイテムを中央揃え */
    justify-items: center;
    gap: 100px;
  }
  .gallery__poem--movie-list {
    margin: 120px auto 0;
  }

  .gallery__poem--movie-item {
    width: 100%;
    max-width: 640px;
  }

  .gallery__poem--movie {
    /* 幅:高さ の順で指定 */
    aspect-ratio: 530 / 330;
    width: 100%;
    max-width: 640px;
    height: auto;
    margin-top: 0;
  }
  .gallery__poem--movie-title {
    font-size: clamp(14px, 1.389vw, 30px);
    line-height: 1.8;
  }
}
/* pc 840 */

/*  ===============================
    詩の会　ROSA
    =============================== */
.gallery__poem--rosa {
  margin-top: 80px;
  position: relative;
  padding: 40px 0;
}

.gallery__poem--rosa::after {
  content: "";
  position: absolute;
  background-image: url(../images/4_gallery_poem/rosa_bg_sp.webp);
  z-index: -1; /* 他の要素の下に */
  width: 100vw;
  height: auto;
  top: -40px;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.gallery__poem--rosa-header {
  margin-top: 50px;
}

.gallery__poem--rosa-header-image {
  width: 86%;
  max-width: 335px;
  border-radius: 30px;
}

.gallery__poem--rosa-detail {
  margin-top: 40px;
  text-align: left;
}

.gallery__poem--rosa-info-list {
  font-size: clamp(12px, 4.27vw, 20px);
  white-space: nowrap;
}

.gallery__poem--rosa-txt {
  margin-top: 30px;
}

.gallery__poem--rosa-sns {
  margin-top: 50px;
  text-align: center;
}

.externalLinksBtn__rosa {
  margin-top: 10px;
}

/* ------------------------
      common pc
    ------------------------ */
@media screen and (min-width: 840px) {
  .gallery__poem--rosa {
    margin-top: 120px;
    padding: 3.47vw 21.56vw;
  }

  .gallery__poem--rosa-info-list {
    font-size: clamp(12px, 1.11vw, 20px);
  }

  .gallery__poem--rosa::after {
    background-image: url(../images/4_gallery_poem/rosa_bg_pc.webp);
    width: 100vw;
    height: auto;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
  }
  .gallery__poem--rosa--content {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 70px;
  }
  .gallery__poem--rosa-header {
    margin-top: 0;
  }
  .gallery__poem--rosa-header-image {
    width: 20vw;
  }
}
/* pc 840 */
