@charset "UTF-8";
/* instagram用CSS */

.gallery {
  max-width: 1200px; 
  margin: 20px auto;
}

.insta_title {
   text-align:center;
   font-size:2rem;
}

.insta_subtitle {
   text-align:center;
   display:block; 
   margin-top:0.5rem;
}


.link-card_block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .link-card_block {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
  }
}

.link-card {
    background: #fff;
    box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.12), 0 2px 3px 0 rgba(0, 0, 0, 0.22);
    cursor: pointer;
    transition: 0.2s ease-in-out;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
}
.link-card:hover {
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.15), 0 0 5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}
.img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* .link-card_text {
    padding: 12px 16px;
}
.link-card_text p {
    padding: 0;
    margin: 0;
    font-weight: 600;
    color: #313131;
}*/

.modal {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    z-index: 1050; 
    overflow: hidden; 
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    opacity: 0;
    transition: opacity 0.5s ease; 
    z-index:9;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0); 
    width: 100%; 
    max-width: 600px; 
    height: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    transition: transform 0.5s ease; 
    z-index: 10; 
    display: flex;
    flex-direction: column;
    max-height: 100%;
    gap: 15px;
}

#modal-image {
    width: 100%;
}
#modal-video {
    width: 100%;
}
div #modal-insta {
    width: 100%;
    display: flex !important;
    justify-content: center;
}
#modal-insta iframe {
    width: 100% !important;
    max-width: 320px;
    margin:0 auto;
}

.close {
    position: absolute;
    top: -11px;
    right: -11px;
    cursor: pointer;
    font-size: 1.3em;
    color: #555;
    z-index: 20;
    display: flex;
    background: #f9f9f9;
    width: 38px;
    height: 38px;
    justify-content: center;
    align-items: center;
    border-radius: 9999px;
    border: solid 1px #ddd;
    transition: 0.3s ease-in-out;
    line-height: 1;
    padding: 0;
}
.close:hover {
    opacity: 0.8;
}
.modal-contentInnerTop {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    gap: 8px;
}
.modal-contentInnerTop p {
    margin: 0;
    padding-left: 20px;
    padding-right: 20px;
    text-align:center;
}
.modal-contentInnerBottom {
    display: flex;
    justify-content: center;
    padding: 12px 0;
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
    gap: 10px;
}

/* スマホ時 */
@media (max-width: 767px) {
  .modal-contentInnerBottom {
    flex-direction: column;
    align-items: center; /* 中央揃え */
  }
}

#modal-link-insta {
    background: #fff;
    color: #333;
    width: 240px;
    display: flex;
    justify-content: center;
    padding: 7px 0 5px;
    border-radius: 5px;
    text-decoration: none;
    border: 1px solid #333;
    position: relative;
}
#modal-link2-product {
    background: #fff;
    color: #333;
    width: 240px;
    display: flex;
    justify-content: center;
    padding: 7px 0 5px;
    border-radius: 5px;
    text-decoration: none;
    border: 1px solid #333;
    position: relative;
}
#modal-link-insta:after {
    right: 14px;
    opacity: 0.6;
    position: absolute;
}
#modal-link2-product:after {
    right: 14px;
    opacity: 0.6;
    position: absolute;
}
#modal-link-insta:hover {
    color: #424242;
    border: 1px solid #424242;
}
#modal-link2-product:hover {
    color: #424242;
    border: 1px solid #424242;
}
#modal-title {
    font-weight: 600;
    color: #313131;
}
#modal-summary {
    color: #707070;
    font-size: 80%;
}

/* mora、一覧を見るボタン */
.insta_top_wrap {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

a.insta_top_btn{
  display: inline-block;
  width: 50%;
  max-width: 400px;
  padding: 12px 20px;
  border: 1px solid #333;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
  color: #333;
  box-sizing: border-box;
}

a.insta_top_btn:hover {
  border: 1px solid #424242;
  color: #424242;
}

.more-wrap {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}
.more-btn {
  width: 50%;
  max-width: 400px;
  padding: 12px 20px;
  border: 1px solid #333;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.more-btn:hover {
  border: 1px solid #424242;
  color: #424242;
}

