@charset "utf-8";

/* トップページ　メイン画像
----------------------------------*/
.mainImg {
  margin-bottom: 2em;
  background-color: #f2f0f3;
  animation: fadeIn 2s ease 0s 1 normal;
  -webkit-animation: fadeIn 2s ease 0s 1 normal;
}
.mainImg__wrap {
  position: relative;
  width: 100vw;
  height: min(80vw, 600px);
  margin: 0 auto;
  background: url(../images/banners/mv.jpg) no-repeat center center;
  background-size: cover;
}
.mainImg__img {
  position: absolute;
  top: min(8vw, 55px);
  left: 50%;
  transform: translateX(-50%);
  width: min(4.5vw, 34px);
  height: auto;
}
.mainImg__wrap::before {
  content: "";
  display: block;
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 100%;
  height: 50px;
  background: url("../images/banners/logo_yoko.png") no-repeat center center;
  background-size: contain;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-webkit-keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@media screen and (min-width: 768px) {
  .mainImg {
    margin-bottom: 4em;
  }
  .mainImg__wrap {
    background-size: auto 600px;
  }
  .mainImg__wrap::before {
    bottom: -70px;
    height: 90px;
  }
}
@media screen and (min-width: 1200px) {
  .mainImg {
    margin-bottom: 6em;
  }
  .mainImg__wrap {
    height: 750px;
    background-size: auto 750px;
  }
  .mainImg__img {
    top: 72px;
    width: 43px;
  }
  .mainImg__wrap::before {
    bottom: -92px;
    height: 120px;
  }
}
/* メインコンテンツ
----------------------------------*/
section {
  position: relative;
}
.s-inner {
  position: relative;
  z-index: 3;
  margin-right: auto;
  margin-left: auto;
  padding-left: clamp(1rem, var(--s-inner-padding), 5rem);
  padding-right: clamp(1rem, var(--s-inner-padding), 5rem);
}
.s-inner.is_narrow {
  max-width: 1100px;
}
.p-top-works .s-inner {
  max-width: 1340px;
}
/* Note RSS セクション
----------------------------------*/
.p-top-note__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}
.p-top-note__item {
  padding: 0.8rem;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}
.p-top-note__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.p-top-note__item a {
  display: flex;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-text);
}
.p-top-note__img {
  width: calc(35% - 0.5rem);
  margin: 0;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.p-top-note__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.p-top-note__item:hover .p-top-note__img img {
  transform: scale(1.05);
}
.p-top-note__text {
  width: 65%;
}
p.p-top-note__date {
  margin-bottom: 0.2rem;
  font-size: 0.7rem;
  opacity: 0.7;
}
p.p-top-note__title {
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}
@media (min-width: 768px) {
  .p-top-note__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}
/* 英語見出し
----------------------------------*/
.p-top-message__titleEn,
.p-top-works__titleEn,
.c-titleEn {
  position: absolute;
  top: 0;
  left: -2px;
  z-index: 2;
  width: calc(var(--s-inner-padding) + 0.6rem);
}
/* H2 タイトル
----------------------------------*/
.post h2.c-title {
  margin-top: 0;
  margin-right: 0;
  margin-left: 0;
  padding: 0;
  border: none;
  font-family: var(--font-min);
  font-size: 1.3rem;
  font-weight: 500;
}
/* ごあいさつ
----------------------------------*/
@media screen and (max-width: 767px) {
  .p-top-message__inner {
    padding-left: calc(var(--s-inner-padding) + 1.8rem);
  }
  .p-top-message__img {
    margin-top: 2rem;
    text-align: center;
  }
  .p-top-message__img img {
    width: 400px;
    transform: translateX(32%);
  }
}
@media screen and (min-width: 768px) {
  .post h2.p-top-message__title {
    padding-left: 5%;
  }
  .p-top-message__text {
    margin-left: 33vw;
    max-width: 720px;
  }
  .p-top-message__img img {
    position: absolute;
    bottom: 5%;
    width: 80vw;
    max-width: 900px;
  }
}
@media screen and (max-width: 991px) {
  .p-top-message__text br {
    display: none;
  }
}
/* 出版物
----------------------------------*/
.p-top-works {
  padding: 0 2rem;
}
.p-top-works__item a {
  display: block;
}
/* 出版物（大）
----------------------------------*/
.p-top-works__listLarge {
  margin-bottom: 15vw;
  display: grid;
}
@media (max-width: 1199px) {
  .p-top-works__listLarge {
    gap: 6vw;
    grid-template-columns: 1fr 1fr;
  }
  .p-top-works__listLarge .p-top-works__item:nth-child(even) {
    transform: translateY(-2rem);
  }
}
@media (min-width: 1200px) {
  .p-top-works__listLarge {
    margin-bottom: 10rem;
    gap: 3rem;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .p-top-works__listLarge .p-top-works__item:nth-child(3n-1) {
    transform: translateY(-3rem);
  }
}
/* 出版物（小）
----------------------------------*/
.p-top-works__listSmall {
  margin-bottom: 2rem;
  display: grid;
}
.p-top-works__listSmall .p-top-works__itemUra__info__priceDt,
.p-top-works__listSmall .p-top-works__itemUra__info__priceDd {
  display: none !important;
}
@media (max-width: 767px) {
  .p-top-works__listSmall {
    gap: 4vw;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .p-top-works__listSmall .p-top-works__item:nth-child(3n-1) {
    transform: translateY(-1.5rem);
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .p-top-works__listSmall {
    gap: 3vw;
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
  .p-top-works__listSmall .p-top-works__item:nth-child(2n) {
    transform: translateY(-2rem);
  }
}
@media (min-width: 1200px) {
  .p-top-works__listSmall {
    gap: 3rem;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  }
  .p-top-works__listSmall .p-top-works__item:nth-child(5n-1),
  .p-top-works__listSmall .p-top-works__item:nth-child(5n-3) {
    transform: translateY(-2.5rem);
  }
}
/* 出版物（特大）
----------------------------------*/
.p-top-works__listXlarge {
  margin-top: 3vw;
  display: flex;
  justify-content: center;
}
.p-top-works__listXlarge .p-top-works__item {
  max-width: 800px;
}
@media (max-width: 1199px) {
  .p-top-works__listXlarge {
    gap: 6vw;
  }
}
@media (min-width: 1200px) {
  .p-top-works__listLarge {
    margin-bottom: 10rem;
    gap: 3rem;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .p-top-works__listLarge .p-top-works__item:nth-child(3n-1) {
    transform: translateY(-3rem);
  }
}
/* 出版物　アイテム
----------------------------------*/
.p-top-works__itemUra__info,
.popup-info {
  text-align: center;
}
.p-top-works__itemUra__info dt,
.popup-info dt {
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
  opacity: 0.7;
  font-weight: normal;
}
.p-top-works__listSmall .p-top-works__itemUra__info dt {
  font-size: 0.6rem;
  margin-bottom: 0;
  line-height: 1.5;
}
.p-top-works__itemUra__info dd,
.popup-info dd {
  margin-bottom: 0.6rem;
  line-height: 1.6;
}
.p-top-works__listSmall .p-top-works__itemUra__info dd {
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.p-top-works__listSmall .p-top-works__itemUra__info dd.p-top-works__itemUra__info__publDd,
.p-top-works__listSmall .p-top-works__itemUra__info dd.p-top-works__itemUra__info__dateDd {
  font-size: 0.7rem;
}
.p-top-works__itemUra__link a,
.popup-link a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 3rem;
  border-radius: 10px;
  border: 1px solid #fff;
  background-color: #fff;
  color: var(--color-main);
  line-height: 1.6;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}
.p-top-works__listSmall .p-top-works__itemUra__link a {
  margin-top: 0.5rem;
  padding: 0.2rem 1.2rem;
  font-size: 0.8rem;
}
.p-top-works__itemUra__link a:hover,
.popup-link a:hover {
  background: var(--color-main);
  color: #fff;
}
/* 出版物アイテムのアニメーション */
.p-top-works__item {
  position: relative;
  perspective: 1000px;
  transform-style: preserve-3d;
}
.p-top-works__itemOmote {
  position: relative;
  z-index: 2;
  transition: transform 0.6s ease;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  background: #fff;
  text-align: center;
}
.p-top-works__itemUra {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-main);
  transform: rotateY(180deg);
  transition: transform 0.6s ease;
  z-index: 1;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  padding: 1.5rem;
  border-radius: 10px;
}
.p-top-works__listSmall .p-top-works__itemUra {
  padding: 0.5rem 0.8rem;
}
/* ポップアップ用スタイル */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
}
.popup-content {
  background: var(--color-main);
  color: #fff;
  padding: 3rem 2rem 2rem;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}
.popup-close:hover {
  opacity: 0.7;
}
/* レスポンシブ動作 */
@media (max-width: 991px) {
  /* 991px以下ではコイン回転を無効化 */
  .p-top-works__item {
    perspective: none;
    transform-style: flat;
  }
  .p-top-works__itemOmote,
  .p-top-works__itemUra {
    backface-visibility: visible;
    transform-style: flat;
  }
  .p-top-works__itemUra {
    display: none;
  }
}
@media (min-width: 992px) {
  /* 992px以上ではホバー時のコイン回転 */
  .p-top-works__item:hover .p-top-works__itemOmote {
    transform: rotateY(180deg);
  }
  .p-top-works__item:hover .p-top-works__itemUra {
    transform: rotateY(0deg);
  }

  /* リンクがクリック可能になるようにz-indexを調整 */
  .p-top-works__itemUra__link {
    position: relative;
    z-index: 10;
  }

  .p-top-works__itemUra__link a {
    position: relative;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
  }

  /* リンクのクリック領域を明確にする */
  .p-top-works__itemUra__link a::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    z-index: 9;
  }
}
/* グループ
----------------------------------*/
h3.p-top-group__title__h3 {
  mask-border: 1em;
  padding: 0;
  border: none;
  text-align: center;
}
.p-top-group__listBnr {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.p-top-group__listBnr__item {
  width: clamp(70px, 20vw, 150px);
  height: clamp(70px, 20vw, 150px);
}
.p-top-group__listBnr__item a {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.p-top-group__listBnr__item a:hover {
  transform: scale(1.1);
}
@media (max-width: 767px) {
  .p-top-group__img {
    max-width: 600px;
    margin: 0 auto;
  }
}
@media (min-width: 768px) {
  .p-top-group__img {
    width: 80%;
    max-width: 900px;
    margin: 0 auto;
  }
  .p-top-group__listBnr {
    gap: 2rem;
  }
}
/* イベント
----------------------------------*/
.p-top-schedule__item {
  margin-bottom: 1.5em;
}
.p-top-schedule__link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.3s ease;
}
.p-top-schedule__link:hover {
  box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}
.p-top-schedule__category {
  width: 120px;
  padding-left: 0.5em;
}
.p-top-schedule__info {
  width: calc(100% - 120px);
  padding: 0.5em 0.5em 0.7em 1em;
  border-left: solid 1px #bbb;
}
.p-top-schedule__date {
  display: block;
  font-size: 0.9em;
}
p.p-top-schedule__title {
  margin-bottom: 0;
  line-height: 1.5;
}
@media screen and (max-width: 767px) {
  .p-top-schedule__item {
    margin-bottom: 1em;
  }
  .p-top-schedule__category {
    width: 90px;
    font-size: 0.9em;
  }
  .p-top-schedule__info {
    width: calc(100% - 90px);
    padding: 0.5em 0.5em 0.7em 1em;
  }
}
/* 沿革
----------------------------------*/
.p-top-history__list dt {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: normal;
}
.p-top-history__list dd {
  margin-bottom: 1.2rem;
  line-height: 1.6;
}
@media (min-width: 768px) {
  .p-top-history__list {
    display: flex;
    flex-wrap: wrap;
  }
  .p-top-history__list dt {
    width: 120px;
    font-size: 1rem;
  }
  .p-top-history__list dd {
    width: calc(100% - 120px);
  }
}
