@charset "utf-8";

body {
  overflow-x: hidden;
}
.theme-header {
  position: fixed;
  bottom: 40px;
  left: 0px;
  font-size: 18px;
  z-index: 300;
  background: #FFFFFA;
  padding: 5px 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.theme-header.active {
  opacity: 1;
}
.theme-section {
  position: relative;
  display: flex;
  min-height: 100vh;
}
.image-side {
  width: 75%;
  display: flex;
  flex-direction: column;
}


.parallax_content {
  position: relative;
  display: flex;
  width: 100%;
  height: 100vh;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

/*-- MODE A: Safari用 --*/
body.is-safari .parallax_content {
  overflow: hidden;
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
}
body.is-safari .parallax_content img {
  position: fixed;
  top: 0;
  left: 0;
  width: 75%;
  height: 100vh;
  object-fit: cover;
  object-position: center;
  z-index: -1;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/*-- MODE B: Chrome/Other用 --*/
body.is-standard .parallax_content {
  background-attachment: fixed;
  background-position: calc(50% - 190px) center;
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: scroll-position;
}
body.is-standard .parallax_content img {
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}


.text-side {
  width: 25%;
  min-width: 380px;
  height: 100vh;
  position: sticky;
  top: 0;
  padding: 120px 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  box-sizing: border-box;
  background-color: transparent;
}
.theme-title {
  font-size: 16px;
  line-height: 2;
  margin-bottom: 40px;
  order: 1;
  display: none;
}
.theme-description {
  font-size: 14px;
  line-height: 2;
  order: 2;
  margin-top: auto;
  margin-bottom: auto;
}
.theme-number {
  font-size: 14px;
  letter-spacing: 0.05em;
  order: 3;
  margin-top: auto;
  padding-top: 40px;
}
.theme-description p {
  margin-bottom: 20px;
  text-align: justify;
  text-justify: inter-ideograph;
}
.theme-description p a {
  color: inherit;
  text-decoration: none;
  transition: text-decoration 0.2s;
}
.theme-description p a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  .theme-header{
    visibility: hidden;
  }
  
  .text-side {
    justify-content: flex-start;
  }
  
  .theme-description {
    margin-top: 0;
    margin-bottom: 0;
  }
  .theme-number {
    margin: -100px 0% 20px;
    font-size: 12px;
    order: 1;
  }
  .theme-title {
    order: 2;
    display: block;
    font-size: 18px;
    margin: 0 0%;
  }
  .theme-description {
    order: 3;
    margin: 20px 0% 10px;
  }

  .theme-section {
    margin-top: 70px;
    flex-direction: column;
    min-height: auto; 
  }

  .theme-section[data-theme="1"] {
    margin-top: 20px;
  }

  .image-side {
    width: 100%;
    position: relative;
    height: 70vw;
    overflow: hidden;
  }

  .text-side {
    width: 100%;
    padding: 120px 8% 0px; 
    min-width: 0; 
    position: relative;
    height: auto;
    min-height: auto; 
    margin-top: 0;
  }
  
  .margin{
    margin-bottom: 60px;
  }

/*-- スマホ/タブレット用スライドショー設定 --*/
  .parallax_content,
  body.is-safari .parallax_content,
  body.is-standard .parallax_content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    background-image: none !important;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 0;
  }
  body.is-safari .parallax_content.active,
  body.is-standard .parallax_content.active,
  .parallax_content.active {
    opacity: 1;
    z-index: 1;
  }
  .parallax_content img,
  body.is-safari .parallax_content img,
  body.is-standard .parallax_content img {
    opacity: 1 !important;
    pointer-events: auto;
    display: block !important;
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    top: 0;
    left: 0;
    z-index: auto;
    transform: none !important;
  }
}

@media (max-width: 600px) {
  .theme-number {
    margin: -100px 0% 20px;
    font-size: 12px;
  }
  .theme-title {
    font-size: 16px;
  }
  .theme-description {
    margin: 20px 0% 0px;
    font-size: 12px;
  }
}