body{

  background-color: #ccc;
  text-align: center;
}
.wrap_body{

  display: flex;
  justify-content: center;
  align-items: center;
}
.outer-frame {
  display: block;
  background-color: #ccc;  
  padding: 20px;
  font-family: 'Noto Serif JP', serif;
  width: 1440px;
  transform-origin: top left;
  font-family: "Josefin Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color:#fff;
}

.outer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #333;
  padding: 0 55px;
  font-family: 'Noto Serif JP', serif;
}

.right-text {
  text-align: right;
  flex: 1;
}

.main-title {
  font-family: 'Noto Serif JP', serif;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

.top-labels {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  transform: translateX(6px);
}

.top-label {
  font-family: 'Noto Serif JP', serif;
  width: 300px;
  font-size: 1.4rem;
  white-space: nowrap;
  text-align: center;
  color: white;
  font-weight: bold;
  padding: 8px;
  border-radius: 8px;
  font-family: "Shippori Mincho", serif;
  font-weight: 400;
  font-style: normal;

}

.grid-section {
  display: flex;
  align-items: flex-start;
}

.side-label {
  font-family: 'Noto Serif JP', serif;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  /* background-color: #333; */
  color: #333;
  font-weight: bold;
  padding: 10px;
  margin-right: 10px;
  border-radius: 4px;
  display: flex;
  justify-content: center;  
  align-items: center;     
  height: 100%;
  width: 52px;
  box-sizing: border-box;
}

.block-wrapper {
  margin-bottom: 40px;
}

.row-set {
  display: flex;
  gap: 30px;
  justify-content: center;
}

.top-labels,
.row-set {
  display: flex;
  justify-content: center;
  gap: 30px; 
}

.column-wrapper {
  box-sizing: border-box;
  display: flex;                     
  align-items: flex-start;
  border-radius: 8px;
  padding: 10px;
}

.top-label,
.column-wrapper {
  flex: 1 1 300px;
  min-width: 240px;
  max-width: 300px;
  box-sizing: border-box;
}

.column-label {
  color: white;
  writing-mode: vertical-rl;       
  text-orientation: mixed;
  font-weight: bold;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  margin-right: 10px;
  text-align: center;
  justify-content: center; 
  padding: 10px 6px;
  /* border-radius: 4px; */
  font-family: "Shippori Mincho", serif;
  font-weight: 400;
  font-style: normal;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pair {
  background: white;
  padding: 10px;
  border-radius: 6px;
  width: 240px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.images {
  display: flex;        
  gap: 0;                
  justify-content: center;
}

.pair img { 
  width: 50%;
  height: auto;
  margin: 0;
  border-radius: 5px;
}

.text-block {
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 0 6px;
  margin-bottom: 8px;
  font-size: 0.95em;
  font-weight: bold;
}

.text-block-b {
  color: black;
  display: flex;
  justify-content: space-between;
  padding: 0 6px;
  margin-bottom: 8px;
  font-size: 0.95em;
  font-weight: bold;
}

.main {
  text-align: center;
  font-weight: bold;
  font-size: 1.4em;
  margin-bottom: 0px;
  font-family: "Shippori Mincho", serif;
  font-weight: 400;
  font-style: normal;
}

.sub {
  text-align: center;
  font-size: 1.2em;
  margin-bottom: 4px;
  font-family: 'Noto Serif JP', serif;
  font-family: "Josefin Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.text-block,
.text-block-b {
  flex-direction: column;
}


.phrase {
  width: 100%;
  font-size: 0.8em;
  color: white;
  text-align: center;
  font-family: "Shippori Mincho", serif;
  font-weight: 400;
  font-style: normal;
  height:5rem;
  display:flex;
  align-items: center;
  justify-content: center;
}

.phrase-b {
  width: 100%;
  font-size: 0.8em;
  color: black;
  text-align: center;
  font-family: "Shippori Mincho", serif;
  font-weight: 400;
  font-style: normal;
  height:5rem;
  display:flex;
  align-items: center;
  justify-content: center;
}

* {
  box-sizing: border-box;
}

@media (max-width: 1400px) {
  .outer-frame,
  .site-footer {
    transform: scale(0.9);
  }
}
/* @media (max-width: 1200px) {
  .outer-frame,
  .site-footer {
    transform: scale(0.8);
  }
}
@media (max-width: 1000px) {
  .outer-frame,
  .site-footer {
    transform: scale(0.7);
  }
} */


@media (min-width: 769px) {
  .mobile-background {
    display: none !important; 
  }
}

@media (max-width: 768px) {
  .mobile-background {
    display: block;
    background-color: #ccc;
    padding: 0;
    height: 100vh;
    width:100vw;
    box-sizing: border-box;
  }

  .mobile-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
  }

  .mobile-swiper {
    width: 100%;
    /* height: calc(100vh - 80px); 
    height: 100vh;
    overflow:hidden; */
    position: relative;
  }

  .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: start;
    padding: 10px;
    padding:0px;
    height: 100%;
    overflow-y: auto;
  }

  .column-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 0px;
  }

  .pair {
    width: 100%;
    margin-bottom: 20px;
  }

  .outer-frame,
  .top-labels,
  .row-set,
  .main-title,
  .grid-section,
  .site-footer {
    display: none !important;
  }
}
.swiper-button-next,
.swiper-button-prev {
  color: #ccc;
  font-size: 2rem;
  top: 50%;                 
  transform: translateY(-50%);
  position: absolute;        
  z-index: 10;
}
.swiper-button-prev {
  left: 40px;               
}
.swiper-button-next {
  right: 20px;               
}

.site-footer {
  color: #333;
  background-color: gray;
  text-align: center;
  font-size: 0.9rem;
  width: 1440px;
  transform-origin: top left;
}

.quadra-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 1rem 0;
  padding: 0 10px;
}

.quadra-button {
  display: inline-block;
  font-size: 1rem;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  min-width: 80px;
  font-family: "Shippori Mincho", serif;
  font-weight: 400;
  font-style: normal;
  border:1px white solid;
}