/* ================= */
/* カード一覧部分 */
/* ================= */

.mon-cases {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.mon-cases__title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
}

.mon-cases__intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.mon-cases__grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 640px) {
  .mon-cases__grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1rem;
  }
}
@media (min-width: 768px) {
  .mon-cases__grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
  }
}
@media (min-width: 992px) {
  .mon-cases__grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 3rem;
  }
}

.mon-case-card {
  margin-bottom: 0 !important;
/*  border: 1px solid #ddd;*/
  border-radius: 8px;
  background-color: #fff;
  overflow: hidden;
  box-shadow:0px 4px 11px 1px #bed5d7;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}
@media(min-width:640px){
 .mon-case-card{
 margin-bottom: 1.5rem;
 }
}
.mon-case-card:hover{
 background-color:#f4f3e5;
}

.mon-case-card__inner {
  all: unset;
  display: block;
  cursor: pointer;
}

.mon-case-card__thumb img {
  width: 100%;
  display: block;
}

.mon-case-card__body {
  padding: 1.6rem 1.5rem;
}

.mon-case-card__title {
  font-size: 18px;
  line-height:25px;
  margin-bottom: 0.6rem;
}

.mon-case-card__meta {
  color: #666;
  font-family:"メイリオ", Meiryo, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, "ＭＳ Ｐゴシック", "MS PGothic", serif;
  font-size:14px;
}

.mon-case-card__lead {
  font-size:14px;
  margin-top: 0.6rem;
  margin-bottom: 10px;
  line-height: 1.6;
  font-family:"メイリオ", Meiryo, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, "ＭＳ Ｐゴシック", "MS PGothic", serif;
  color:#6e6868;
}

.mon-case-card__link {
  display: inline-block;
  margin-top: 0.5rem;
  border-bottom: 1px solid currentColor;
  font-family:"メイリオ", Meiryo, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, "ＭＳ Ｐゴシック", "MS PGothic", serif;
  font-size:14px;
}


/* ================= */
/* モーダル（アニメ付き） */
/* ================= */

/* 非表示時 */
.mon-case-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* 表示時 */
.mon-case-modal.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 背景 */
.mon-case-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0);
  transition: background-color 0.25s ease;
}

.mon-case-modal.is-active .mon-case-modal__overlay {
  background-color: rgba(0,0,0,0.45);
}

/* コンテンツ（フェード＋下からスライド） */
.mon-case-modal__content {
  position: relative;
  max-width: 800px;
  max-height: 90vh;
  margin: 6vh auto;
  background: #fff;
  border-radius: 8px;
  padding: 4rem 4rem;
  overflow-y: auto;

  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mon-case-modal.is-active .mon-case-modal__content {
  opacity: 1;
  transform: translateY(0);
}

/* 閉じる */
.mon-case-modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: none;
  border: none;
  font-size: 3rem;
  cursor: pointer;
}

/* 前へ／次へ */
.mon-case-modal__nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.mon-case-modal__nav button {
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  border:none;
  background: #d17f3c;
  cursor: pointer;
  color: #ffffff;
  font-size:14px;
}

.mon-case-modal__nav button:hover {
  background: #2c3039;
}

/* 背景スクロール止める */
body.is-modal-open {
  overflow: hidden;
}


/* ================= */
/* 詳細コンテンツ */
/* ================= */

.mon-case-detail__title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.mon-case-detail__info{
margin-bottom: 2rem;
}
.mon-case-detail__info dl {
  display: grid;
  gap: 0.6rem;
  margin-top: .4rem;
  margin-bottom: .5rem;
}
.mon-case-detail__info dt {
  font-size: 1.7rem;
}
.mon-case-detail__info dd {
  margin-left: 1rem;
}

.mon-case-detail__photos {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 481px) {
  .mon-case-detail__photos {
    grid-template-columns: repeat(2, 1fr);
    gap:2rem;
    background-image: url("../images/case/dot.gif");
    background-repeat: repeat-y;
    background-position: center top;
  }
}
@media(min-width:640px){
  .mon-case-detail__photos{
    gap:3rem;
  }
}
@media(min-width:768px){
  .mon-case-detail__photos{
    gap:4rem;
  }
}

.mon-case-detail__photos h4{
  margin-bottom:10px;
}

.mon-case-detail__photos-col h4 {
  font-size: 1.7rem;
  font-weight: bold;
}
.mon-case-detail__photos-col img {
  width: 100%;
/*  border-radius: 4px;*/
  margin-bottom: 2.5rem;
}

.mon-case-detail__voice-q {
  font-weight: bold;
  margin-top: 1rem;
}
