main.coordinate-page {
  max-width: 1064px;
  padding: 96px 20px 80px;
  margin: 0 auto;
}

.coordinate-page ul {
  list-style: none;
}

.modal.block_active,
.share_box.block_active {
  display: block;
}

h1.pageTitle {
  font-size: 24px;
  margin-bottom: 1em;
}


html.modal-open {
  overflow: hidden;
}


/* タグカラー */
.category-tag.wall {
  background: #b6cff0;
}

.category-tag.curtain {
  background: #f0b6b6;
}

.category-tag.floor {
  background: #edd2a8;
}

/* ぱんくずリスト */
nav.pankuzu {
  margin: 24px auto;
  height: auto;
}

nav.pankuzu ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  line-height: 2;
}

nav.pankuzu li {
  font-size: 12px;
}

nav.pankuzu li:not(:last-child)::after {
  content: '/';
  padding: 0 0.5em;
}

nav.pankuzu a {
  color: #426599;
  text-decoration: underline;
}

nav.pankuzu a:hover {
  color: #222;
  text-decoration: none;
  opacity: 1;
}



/* コーディネートリスト */
.coordinate-list-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25%;
}

.coordinate-list {
  width: 32.5%;
  display: flex;
  flex-direction: column;
  gap: 12.8px;
}

.coordinate-list-item {
  position: relative;
  padding: 20px 25px 25px;
  background: #F8F8F8;
}

.category-tag {
  position: absolute;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  display: inline-block;
  padding: .2em .7em;
}

.coordinate-img {
  width: 100%;
  height: auto;
}

/* モーダル-背景・開閉 */
.modal-content {
  position: fixed;
  width: 100%;
  height: 100%;
  opacity: 0;
  background: rgba(0,0,0,0.5);
  top: 0;
  left: 0;
  z-index: -1;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content.active {
  opacity: 1;
  z-index: 1111;
}

.modal-content-inner {
  width: 90%;
  max-width: 1024px;
  background: #fff;
  opacity: 0;
  transform: translateY(-100px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: relative;
  padding: 40px;
}

.active .modal-content-inner {
  opacity: 1;
  transform: translateY(0); 
  visibility: visible;
  pointer-events: auto;
}

.modal-content-inner.leave {
  transform: translateY(-100px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-open-btn {
  font-size: 13px;
  margin: 25px 0 0 auto;
  padding-bottom: 2px;
  border-bottom: 2px solid #222222;
  cursor: pointer;
  width: 7em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: opacity 0.3s ease;
}

.modal-open-btn::after {
  content: '';
  background-image: url(../../img/open.svg);
  background-repeat: no-repeat;
  background-size: contain;
  width: 11px;
  height: 11px;
}

.mordal-open-btn:hover {
  opacity: 0.6;
}

.modal-close-btn {
  width: 20px;
  height: 20px;
  cursor: pointer;
  position: absolute;
  top: 5px;
  right: 5px;
}

.modal-close-btn::before,
.modal-close-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 1px;
  background-color: #999;
  transform-origin: center;
}

.modal-close-btn:hover::before,
.modal-close-btn:hover::after {
  background-color: #666;
}

.modal-close-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* モーダル-中身 */
.material-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.material-list {
  list-style: none;
}

.material-list-header {
  display: flex;
  gap: 5px;
}

.material-list-header p {
  font-size: 14px;
  font-weight: 700;
  background: #f8f8f8;
  padding: .5em 1.5em;

}

.material-list-header-thumbnail {
  width: 150px;
}

.material-list-header-detail {
  flex: 1;
}

.material-list-item {
  border-bottom: 1px solid #d8d8d8;
  padding: 10px 15px;
}

.material-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #222;
  text-decoration: none;
}

.material-thumbnail {
  width: 135px;
  height: 120px;
  object-fit: cover;
  padding-right: 15px;
  transition: opacity 0.3s ease;
}

.material-detail-code {
  flex: 1;
  font-size: 15px;
  padding-left: 20px;
  text-decoration: underline;
}

.material-detail-name {
  font-size: 13px;
  display: block;
}

.material-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #426599;
  color: white;
  width: 200px;
  height: 35px;
  font-size: 14px;
  transition: background-color 0.3s ease;
  border-radius: 8px;
}

.material-link:hover .material-thumbnail {
  opacity: .9;
}

.material-link:hover .material-btn {
  background: #668ABE;
}

/*メディアクエリ 1024px以下*/
@media (max-width:1024px) {
  main.coordinate-page {
    padding-top: 64px;
  }
}

/*メディアクエリ 768px以下*/
@media (max-width:768px) {
  main.coordinate-page {
    padding: 64px 15px;
  }

  /* コーディネートリスト */
  .coordinate-list {
    width: 100%;
    gap: 15px;
  }

  #no_02 {
    order: 2;
  }

  #no_03 {
    order: 3;
  }

  #no_04 {
    order: 4;
  }

  #no_05 {
    order: 5;
  }

  #no_06 {
    order: 6;
  }

  #no_07 {
    order: 7;
  }

  #no_08 {
    order: 8;
  }

  #no_09 {
    order: 9;
  }

  #no_10 {
    order: 10;
  }

  #no_11 {
    order: 11;
  }

  #no_12 {
    order: 12;
  }

  #no_13 {
    order: 13;
  }

  #no_14 {
    order: 14;
  }

  #no_15 {
    order: 15;
  }

  #no_16 {
    order: 16;
  }

  #no_17 {
    order: 17;
  }

  #no_18 {
    order: 18;
  }

  #no_19 {
    order: 19;
  }

  #no_20 {
    order: 20;
  }

  #no_21 {
    order: 21;
  }

  #no_22 {
    order: 22;
  }

  #no_23 {
    order: 23;
  }

  #no_24 {
    order: 24;
  }

  /* モーダル-背景・開閉 */
  .modal-content {
    padding: 0 15px;
  }

  .modal-content-inner {
    width: 100%;
    padding: 40px 15px;
  }



  /* モーダル-中身 */
  .material-list-item {
    padding: 10px;
  }

  .material-list-header p {
    font-size: 12px;
    padding: .5em;
    text-align: center;

  }

  .material-list-header-thumbnail {
    width: 120px;
  }

  .material-thumbnail {
    width: 110px;
    height: 100px;
    padding-right: 10px;
  }

  .material-detail-code {
    font-size: 12px;
    padding-left: 15px;
  }

  .material-detail-name {
    font-size: 10px;
  }

  .material-btn {
    display: none;
  }
  
}
