@charset "UTF-8";

:root {
    --color-primary: #EEBB33;
    --color-black: #000000;
    --color-font-black: #222222;
    --color-white: #FFFFFF;
}

/* ブレークポイント定義（コメントで管理） */
/* SP: 767px以下 */
/* TB: 768px〜1024px */
/* PC: 1025px以上 */


/* Instagram Section */
.instagram {
    padding-block: 100px;
    background-color: #F7F7F7;
}
@media screen and (max-width: 767px) {
    .instagram {
        padding-block: 50px;
    }
}

.instagram__inner {
    width: min(100% - 40px, 1200px);
    margin-inline: auto;
}



.instagram__content__item {
  width: 100%;
  margin-top: 40px;
}

/* プラグインのデフォルトスタイルを尊重しつつ調整 */
#sb_instagram {
  width: 100%;
  margin: 0;
  padding: 0;
}

#sb_instagram #sbi_images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

#sb_instagram .sbi_item {
  flex: 0 0 calc(25% - 7.5px);
  width: calc(25% - 7.5px);
  max-width: calc(25% - 7.5px);
  margin: 0;
  padding: 0;
  float: none;
}

#sb_instagram .sbi_photo_wrap {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  background: #f5f5f5;
}

#sb_instagram .sbi_photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#sb_instagram .sbi_photo img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  visibility: visible;
}

/* placeholder 画像を隠す */
#sb_instagram img[src*="placeholder.png"] {
  display: none;
}

/* カルーセルアイコン（複数枚投稿マーク） */
#sb_instagram .sbi_lightbox_carousel_icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  z-index: 10;
  pointer-events: none;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

#sb_instagram .sbi_lightbox_carousel_icon path {
  fill: white;
}

/* スクリーンリーダー用テキストを隠す */
#sb_instagram .sbi-screenreader {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .instagram {
    padding: 60px 0;
  }
  
  #sb_instagram .sbi_item {
    flex: 0 0 calc(50% - 5px);
    width: calc(50% - 5px);
    max-width: calc(50% - 5px);
  }
}

/* ホバーエフェクト */
#sb_instagram .sbi_photo:hover img {
  transform: translate(-50%, -50%) scale(1.05);
  transition: transform 0.3s ease;
}

/* ===================================
   力士紹介詳細ページ（single-rikishi.php）
   =================================== */

.single-rikishi {
    margin-top: 6rem;
}

/* ヒーローセクション */
.single-rikishi__mv {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("../img/top-img/single-fv.png") no-repeat;
    background-size: cover;
    background-position: center;
}
@media screen and (min-width: 769px) {
    .single-rikishi__mv {
        padding: 6rem 2rem;
    }
}
@media screen and (max-width: 768px) {
    .single-rikishi__mv {
        padding: 4rem 2rem;
    }
}

.single-rikishi__mv p {
        color:var(--color-white);
        font-weight: bold;
    text-align: center;
}
@media screen and (min-width: 769px) {
    .single-rikishi__mv p {
        font-size: 3.6rem;
    }
}
@media screen and (max-width: 768px) {
    .single-rikishi__mv p {
        font-size: 2.4rem;
    }
}

/* メインコンテンツ */
.single-rikishi main {
    background: var(--color-black);
}
@media screen and (min-width: 769px) {
    .single-rikishi main {
        padding: 6rem 2rem 10rem;
    }
}
@media screen and (max-width: 768px) {
    .single-rikishi main {
        padding: 3rem 2rem 5rem;
    }
}

/* 力士名・番付タイトル */
.rikishi_title {
    text-align: center;
    font-weight: bold;
    color: var(--color-white);
}
@media screen and (min-width: 769px) {
    .rikishi_title {
        font-size: 3rem;
        margin-bottom: 4rem;
    }
}
@media screen and (max-width: 768px) {
    .rikishi_title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
}

/* ギャラリーセクション */
.rikishi_gallery_section {
    width: min(100% - 40px, 730px);
    margin: 0 auto;
}

.rikishi_gallery_slider {
    overflow: hidden;
}



.rikishi_main_slider {
    overflow: hidden;
}

.rikishi_main_slider .swiper-wrapper .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.rikishi_sub_slider {
    margin-top: 1rem;
}

.rikishi_sub_slider .swiper-wrapper .swiper-slide {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;

}

.rikishi_sub_slider .swiper-wrapper .swiper-slide.swiper-slide-thumb-active {
    opacity: 1;
}

.rikishi_sub_slider .swiper-wrapper .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}
@media screen and (max-width: 768px) {
    .rikishi_sub_slider .swiper-wrapper .swiper-slide img {
        /* aspect-ratio: 25 / 17; */
        height: auto;
        object-fit: cover;
    }
}

/* プロフィールボックス */
.rikishi_profile_box {
    width: min(100% - 40px, 1240px);
    margin: 7rem auto 0;
    background-image: url("../img/common-img/bg-01.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
@media screen and (min-width: 769px) {
    .rikishi_profile_box {
        padding: 7rem 4rem;
    }
}
@media screen and (max-width: 768px) {
    .rikishi_profile_box {
        margin-top: 5rem;
        padding: 2rem;
    }
}

/* プロフィールテーブル */
.rikishi_profile_table {
    width: 100%;
    max-width: 778px;
    margin-inline: auto;
}


.rikishi_profile_table th,
.rikishi_profile_table td {
    text-align: left;
    vertical-align: top;
    line-height: 1.5;
    color: var(--color-font-black);
}

@media screen and (min-width: 769px) {
    .rikishi_profile_table th,
    .rikishi_profile_table td {
        padding: 1.5rem 1rem;
        font-size: 1.6rem;
    }
    .rikishi_profile_table th {
        width: 30%;
        min-width: 200px;
        font-weight: 800;
    }
    .rikishi_profile_table td {
        width: 70%;
    }
}

@media screen and (max-width: 768px) {
    .rikishi_profile_table tr {
        display: block;
        padding: 1.5rem 0;
    }
    .rikishi_profile_table th,
    .rikishi_profile_table td {
        display: block;
        padding: 0;
        font-size: 1.4rem;
    }
    .rikishi_profile_table th {
        font-weight: bold;
        margin-bottom: 0.5rem;
    }
}

/* 力士紹介一覧（TOPページ） */
.rikishi__introduction {
    margin-top: 6rem;
}

.rikishi__introduction__list {
    display: grid;
    gap:  4rem 7.5rem;
    direction: rtl;
}

@media screen and (min-width: 769px) {
    .rikishi__introduction__list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .rikishi__introduction__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2.5rem;
    }
}

.rikishi__introduction__item {
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    direction: ltr;
}

/* .rikishi__introduction__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
} */

.rikishi__introduction__item__link {
    display: block;
}

.rikishi__introduction__item .imgbox {
    overflow: hidden;
}

.rikishi__introduction__item .imgbox img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rikishi__introduction__item .imgbox:hover img {
    transform: scale(1.05);
}

.rikishi__introduction__item__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: url("../img/common-img/bg-01.jpg") no-repeat;
    background-size: cover;
}

.rikishi__introduction__item__body .title-name {
    font-weight: bold;
    font-size: 1.6rem;
    color: var(--color-font-black);
}

@media screen and (max-width: 768px) {
    .rikishi__introduction__item__body .title-name {
        font-size: 1.4rem;
    }
}

.rikishi__introduction__item__body .icon-arrow-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rikishi__introduction__item__body .icon-arrow-right svg {
    width: 6px;
    height: 12px;
}
