html {
  scroll-padding-top: 20px;
}

:root {
  --slide-width: 450px;
  --slide-count: 5;
  --total-slides: 10;
  /* 元のスライド数の2倍 */
  --animation-duration: 75s; /* アニメーション時間の初期値 */
}

body {
  display: block !important;
  font-family: 'M PLUS 1p', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
	min-width: 320px !important;
}

header,
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1em 0;
}

main {
  padding: 1em;
}

h1,
h2 {
  color: #00567B;
  font-family: 'Darumadrop One', cursive;
  text-align: center;
}


a {
  text-decoration: none;
  color: inherit;
}

p {
  font-family: 'M PLUS 1p', sans-serif;
  font-weight: 400;
  color: #4E4E4E;
}

.index-body {
  background-color: #C5F3FF;
}

@media screen and (max-width: 767px) {
  :root {
    --slide-width: 300px;
    --slide-count: 3;
    --total-slides: 6;
    /* 元のスライド数の2倍 */
    font-size: large;
  }

  [style*="font-size: large"],
  [style*="font-size:large"] {
    font-size: 1em !important;
  }

  [style*="font-size: medium"],
  [style*="font-size:medium"] {
    font-size: 1em !important;
  }

  [style*="font-size: small"],
  [style*="font-size:small"] {
    font-size: 1em !important;
  }

}

/* 別ページへのボタン */
.button-container {
  position: relative;
  display: inline-block;
}

.button {
  display: inline-block;
  min-width: 300px;
  position: relative;
  padding: 10px 40px;
  background-color: white;
  color: #5AC2DC;
  font-size: medium;
  font-weight: 900;
  border: 2px solid #5AC2DC;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1;

  &:hover {
    background-color: #5AC2DC;
    color: white;
    transform: translate(5px, 5px);
  }
}

.button-shadow {
  position: absolute;
  top: 5px;
  left: 5px;
  right: -5px;
  bottom: -5px;
  width: 100%;
  height: 100%;
  background-color: #5AC2DC;
  border-radius: 100px;
  z-index: 0;
}

/* TOP */
.page-top-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-image: url('../images/top_background.svg');
  background-size: cover;
  background-position: center;
  text-align: center;
  padding-top: 40px;
}

.corporate-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  gap: 24px;
}

.site-logo {
  width: 100%;
  max-width: 65vw;
  align-self: center;
  padding: 8px 0px;
}

.logo-illust {
  width: 100%;
  max-width: 80vw;
  margin: 0 auto;
  padding-top: 20px;
  padding-right: 16px;
}

.qk-image {
  padding: 40px 0px 50px 0px;
  max-width: 600px;
  align-self: center;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s, transform 1s;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

#site-logo {
  animation-delay: 0.2s;
}

#logo-illust {
  animation-delay: 0.8s;
}

#qk-image {
  animation-delay: 1.2s;
}

#text {
  animation-delay: 2.0s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.description-text {
  color: white;
  font-size: medium;
  font-weight: bolder;
  letter-spacing: 3.5px;
  line-height: 1.5em;
}

.description-text span {
  display: none;
}

@media screen and (min-width: 1200px) {
  .page-top-container {
    width: 100vw;
    height: 110vw;
  }
}

@media screen and (max-width: 767px) {
  .page-top-container {
    width: 100%;
    height: calc(100vw * 1.5);
    background-image: url('../images/top_background_sp.svg');
  }

  .corporate-logos {
    gap: 24px;
  }

  .corporate-logos img {
    transform: scale(1.3);
  }

  .site-logo {
    width: 100%;
    max-width: 98vw;
    margin: 0 auto;
    padding: 24px 0px;
  }

  .logo-illust {
    width: 100%;
    max-width: 90vw;
    margin: 0 auto;
    padding-top: 20px;
    padding-right: 16px;
  }

  .qk-image {
    width: 90vw;
    max-width: 415px;
    padding: 40px 0px 10px 0px;
  }

  .description-text {
    font-size: small;
    align-self: center;
    width: 70vw;
    padding: 16px 0;
  }

  .description-text span {
    letter-spacing: normal;
    display: inline;
  }
}

@media screen and (max-width: 700px) {
  .page-top-container {
    height: calc(100vw * 1.6);
  }
}

@media screen and (max-width: 620px) {
  .page-top-container {
    height: calc(100vw * 1.8);
  }
}

@media screen and (max-width: 530px) {
  .page-top-container {
    height: calc(100vw * 2);
  }
}

@media screen and (max-width: 440px) {
  .page-top-container {
    height: calc(100vw * 2.3);
  }
}

@media screen and (max-width: 360px) {
  .page-top-container {
    height: calc(100vw * 2.4);
  }
}

@media screen and (max-width: 490px) {
  .corporate-logos {
    gap: 0px;
    padding: 0px;
  }

  .corporate-logos img {
    transform: scale(0.8);
  }
}

/* スライドショー */
.slideshow-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-image: url('../images/pickup_background.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 56px 0;
  margin-top: -50px;
  z-index: 1;
}

.slideshow-viewport {
  overflow: hidden;
}

.slideshow-title {
  position: absolute;
  display: flex;
  justify-content: center;
  width: 100%;
  top: 10px;
  text-align: center;
  z-index: 2;
  color: #00567B;
  font-size: 48px;
  font-family: 'Darumadrop One', cursive;
}

.slideshow-wrapper {
  margin-top: 5em;
  display: flex;
  width: calc(var(--slide-width) * var(--slide-count));
  animation: scroll var(--animation-duration) linear infinite;
  transition: transform 0.3s ease;
  align-items: center;
}

.slide-item {
  width: var(--slide-width);
  flex: 0 0 auto;
  flex-shrink: 0;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding-top: 8px;
  transition: transform 0.3s ease;

  &:hover {
    .slide-channel-text {
      color: #f5a3a3;
    }

    .slide-title-text {
      color: darkgray;
    }

    cursor: pointer;
  }
}

.slide-item-coming {
  width: var(--slide-width);
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding-top: 8px;
}

.slide-item:focus {
  scroll-margin-left: 20px;
  scroll-margin-right: 20px;
}


.background-image {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/samune_back.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 1;
  z-index: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform-origin: center center;
  transform: scale(1.0);
}

.foreground-image {
  width: 100%;
  height: auto;
  padding: 0%;
  display: block;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
  transform: scale(0.9);
  border-radius: 8px;
}

.slide-channel-text {
  padding: 4px 24px 0px 24px;
  font-size: small;
  font-weight: bold;
  color: #EA0029;
  position: relative;
  z-index: 2;
}

.slide-channel-text-suntory {
  padding: 4px 24px 0px 24px;
  font-size: small;
  font-weight: bold;
  color: #5AC2DC;
  position: relative;
  z-index: 2;
}

.slide-channel-text-manabou {
  padding: 4px 24px 0px 24px;
  font-size: small;
  font-weight: bold;
  color: #30A7E9;
  position: relative;
  z-index: 2;
}

.slide-title-text {
  margin-top: 4px;
  padding: 0px 24px;
  height: 50px;
  font-size: small;
  color: #4E4E4E;
  font-weight: bold;
  position: relative;
  z-index: 2;
  text-decoration: none;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.linkicon {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 4px;
  margin-bottom: 2px;
  background-image: url('../images/icons/link.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(var(--slide-width) * var(--slide-count) * -1));
  }
}

@media screen and (max-width: 767px) {
  .slideshow-container {
    padding: 25px 0;
  }

  .slide-title-text {
    height: 80px;
  }
}

/* ホバー時にアニメーションを一時停止 */
.slideshow-container:hover .slideshow-wrapper {
  animation-play-state: paused;
}

.slide-item:hover .foreground-image {
  transform: scale(0.95);
}

.slide-item:hover .background-image {
  transform: scale(2.2) rotate(-15deg);
}

.scroll-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 24px 0;
}

.scroll-wrapper {
  background-color: white;
  display: flex;
  align-items: center;
  margin-right: 32px;
  padding: 0 24px;
  border-radius: 100px;
}

.scroll-control h5 {
  margin-right: 10px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.toggle-switch {
  position: relative;
  width: 33px;
  height: 18px;
  background-color: #ccc;
  border-radius: 18px;
  cursor: pointer;
  transition: .4s;
  outline: none;
}

.toggle-switch::before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 18px;
}

.toggle-switch.enabled {
  background-color: #5AC2DC;
}

.toggle-switch.enabled::before {
  transform: translateX(15px);
}

.toggle-switch:focus,
.toggle-switch:active {
  outline: none;
  box-shadow: none;
}

.toggle-switch:focus-visible {
  outline: 2px solid #5AC2DC;
  outline-offset: 4px;
}

.auto-scroll-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-switch label:after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background-size: contain;
  background-repeat: no-repeat;
  top: 3px;
  left: 3px;
  transition: .4s;
}

.toggle-switch.enabled label:after {
  transform: translateX(15px);
}

@media screen and (max-width: 767px) {
  .scroll-wrapper {
    margin-right: 20px;
    margin-top: 24px;
    font-size: var();
  }

  .toggle-switch {
    width: 33.33px;
    height: 16.73px;
    margin-top: 0px;
  }

  .toggle-switch label {
    border-radius: 56px;
  }

  .toggle-switch label:before {
    height: 10px;
    width: 10px;
    left: 5px;
    bottom: 3px;
  }

  .toggle-switch input:checked+label:before {
    transform: translateX(15px);
  }

  .toggle-switch label:after {
    height: 10px;
    width: 10px;
    left: -20px;
    bottom: 3px;
  }

  .toggle-switch input:checked+label:after {
    transform: translateX(45px);
  }
}

/* コンテンツリスト */
.contents-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: small;
}

.contents-list p {
  line-height: 1.5rem;
  font-weight: bold;
}

.contents-decoration-1 {
  display: block;
  position: absolute;
  width: 100%;
  max-width: 600px;
  z-index: 1;
}

.decoration-container {
  position: absolute;
  width: 100%;
  height: 350px;
  background-image: url('../images/contents_decoration_2.svg');
  background-position: center;
  background-repeat: no-repeat;
}

.decoration-container img {
  width: 100%;
  max-width: 170px;
  height: auto;
}

@media screen and (max-width:1024px) {
  .decoration-container {
    height: 350px;
    background-image: url('../images/contents_decoration_2.svg');
    background-size: contain;
  }
}

@media screen and (max-width: 767px) {
  .contents-decoration-1 {
    max-width: 90vw;
  }

  .contents-list {
    font-size: small;
    width: 100%;
  }

  .decoration-container {
    margin-top: 40px;
    margin-bottom: 300px;
    width: 100%;
    height: 200px;
    background-image: url('../images/contents_decoration_2_sp.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }

}

.contents-container {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 80px 0;
  margin-top: 16px;
  background-color: white;
  border-radius: 16px;
}

.suntory-sustainable-text {
  text-align: center;
  padding: 24px;
  font-size: larger;
  line-height: 1.5em;
  margin-top: -300px;
  margin-bottom: 80px;
}

.suntory-sustainable-text p {
  margin-bottom: 40px;
  max-width: 500px;
}

.suntory-sustainable-text span {
  display: none;
}

.decoration-container {
  display: flex;
  width: 100%;
  overflow: hidden;
  position: relative;
  justify-content: space-between;
}

.theme-button-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: -40px;
  margin-bottom: 40px;
}

.theme-button-container {
  position: relative;
  width: 120px;
  height: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-button-contents {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 3;
  transition: all 0.3s ease;
}

.theme-button-contents h3 {
  margin: 0 0 4px 0;
  font-family: 'Darumadrop One', cursive;
  ;
  font-size: 1.2em;
  color: #5ac2dc;
}

.theme-button-contents img {
  height: 24px;
  width: auto;
}

.theme-button-background,
.theme-button-shadow {
  position: absolute;
  top: -5;
  left: -5;
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
}

.theme-button-shadow {
  top: 5px;
  left: 5px;
  z-index: 1;
}

.theme-button-background {
  top: 0;
  left: 0;
  z-index: 2;
}

.theme-button-container:hover .theme-button-background {
  transform: translate(5px, 5px);
  opacity: 0.8;
}

.theme-button-container:hover .theme-button-contents {
  transform: translate(2px, 2px);
}

.themes-list {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  gap: 16px;
}

.theme-container {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.theme-container:focus {
  outline: none;
}

.theme-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
  padding-bottom: 8px;
  border-bottom: #4E4E4E 1px solid;
  margin: 0 40px;
}

.theme-title {
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-shrink: 0;
  position: relative;

  &:hover {
    .theme {
      color: darkgray;
      transition: 0.3s ease;
    }

    img {
      opacity: 0.7;
      transition: 0.3s ease;
    }
  }
}

.theme {
  color: #4E4E4E;
  text-align: center;
  font-size: large;
  letter-spacing: 3.5px;
  font-weight: bold;
  position: relative;
  align-self: center;
}

.see-all-button {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-self: center;
  flex-shrink: 0;
  position: relative;
  border: none;
  background-color: transparent;
  cursor: pointer;
  border-bottom: 2px solid transparent;

  &:hover {
    color: #EA0029;
    transition: 0.3s ease;
  }
}

.see-all-button-sp {
  display: none;
}

.themes-footer-sp {
  display: none;
}

.see-all-text {
  text-align: left;
  font-size: small;
  font-weight: 700;
  justify-self: center;
}

.right-arrow-icon {
  flex-shrink: 0;
  width: 14px;
  height: 16px;
  position: relative;
  overflow: visible;
  fill: currentColor;
}

.theme-coming-container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 0px;
}

.theme-samune-container {
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0;
  justify-content: space-between;
  margin: 0 40px;
}

.samune-box {
  flex-shrink: 0;
  flex: 1;
  min-width: 200px;
  position: relative;
  text-align: start;

  &:hover {
    .contents-list-samune {
      transform: scale(1.03);
    }

    .contents-list-suntory-channel {
      color: #a3e4f5;
    }

    .contents-list-qk {
      color: #f5a3a3;
    }

    .contents-list-manabou {
      color: #a3d5f1;
    }

    .contents-list-title {
      color: darkgray;
    }

    cursor: pointer;
  }
}

.samune-box-coming {
  flex-shrink: 0;
  flex: 1;
  min-width: 200px;
  position: relative;
  text-align: start;
}

.samune-new {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #e5f27f;
  width: 72px;
  height: 29px;
  position: absolute;
  left: 0px;
  top: 0px;
  margin-left: -24px;
  z-index: 1;
}

.contents-list-samune-container {
  border-radius: 8px;
  width: 100%;
  transition: 0.3s ease;
  object-fit: cover;
}

.contents-list-samune {
  border-radius: 8px;
  width: 100%;
  transition: 0.3s ease;
  object-fit: cover;
}

.contents-lis-texts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contents-list-suntory-channel {
  color: #5ac2dc;
  font-size: small;
  font-weight: bold;
  margin-top: 12px;
  transition: 0.3s ease;
}

.contents-list-qk {
  color: #ea0029;
  font-size: small;
  font-weight: bold;
  margin-top: 12px;
  transition: 0.3s ease;
}

.contents-list-manabou {
  color: #30a7e9;
  font-size: small;
  font-weight: bold;
  margin-top: 12px;
  transition: 0.3s ease;
}

.contents-list-coming {
  color: #4E4E4E;
  font-size: small;
  font-weight: bold;
  margin-top: 12px;
  transition: 0.3s ease;
}

.contents-list-title {
  color: #4E4E4E;
  font-size: small;
  font-weight: 700;
  margin: 0;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: 0.3s ease;
}

@media screen and (max-width: 767px) {
  .suntory-sustainable-text span {
    display: inline;
  }

  .contents-container {
    border-radius: 0px 0px 32px 32px;
  }

  .theme-header {
    display: flex;
    margin: 0 20px;
}

  .themes-comming {
    height: 300px;
    max-width: 90vw;
    flex-wrap: wrap;
    padding: 8px 0;
    justify-content: center;
    align-items: center;
    margin: auto;
  }

  .themes-list {
    width: 100%;
    max-width: 90vw;
    gap: 8px;
    margin: 0 auto;
  }

  .theme-samune-container {
    width: 100%;
    max-width: 90vw;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 0 auto;
  }

  .samune-box {
    width: calc(50% - 16px);
    margin: 8px 4px;
    min-width: calc(50% - 16px);
    box-sizing: border-box;
    flex-grow: 0;
    flex-shrink: 0;
  }

  .samune-box-coming {
    width: calc(50% - 16px);
    margin: 8px 4px;
    min-width: calc(50% - 16px);
    box-sizing: border-box;
    flex-grow: 0;
    flex-shrink: 0;
  }

  .themes-footer-sp {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
  }

  .see-all-button {
    display: none;
  }

  .see-all-button-sp {
    position: relative;
    display: flex;
    width: 100%;
    height: 62px;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin: 0px auto;

    &:hover {
      color: #EA0029;
      transition: 0.3s ease;
    }
  }

  .see-all-text {
    font-size: medium;
  }
}

/* QKとは */

.about-qk {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 550px;
  overflow: hidden;
  background-image: url('../images/about_qk_background.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 80px;
}

.about-qk-text {
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  width: 100%;
  max-width: 800px;
  padding: 80px 40px 100px 40px;
  text-align: center;
  background-image: url('../images/about_qk_memo_pc.svg');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.about-qk h1 {
  align-self: center;
  color: #EA0029;
  margin-block-end: 0.67em;
  font-size: 32px;
  font-family: 'Darumadrop One', cursive;
}

.about-qk p {
  text-align: start;
  align-self: center;
  color: #EA0029;
  font-size: medium;
  font-weight: 600;
  max-width: 600px;
}

.qk-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.qk-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.qk-link-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 4px;
  margin-bottom: 2px;
  background-image: url('../images/icons/qk-link.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
}

.about-qk img {
  max-width: 90px;
  transform: scale(1.0);
  transition: 0.3s ease;

  &:hover {
    cursor: pointer;
    transform: scale(1.1);
    transition: 0.3s ease;
  }
}

@media screen and (min-width: 450px) and (max-width: 767px) {
  .about-qk-text {
    background-image: url('../images/about_qk_memo_sp_short.svg');
    padding: 6vw 14vw 10vw 10vw;
    background-size: 106vw;
    transform: translateX(24px);
  }

  .about-qk p {
    max-width: 76vw;
  }
}

@media screen and (min-width: 300px) and (max-width: 517px) {
  .about-qk-text {
    background-image: url('../images/about_qk_memo_sp_long.svg');
    padding: 34vw 0 34vw 2vw;
    background-size: 100vw;
    transform: translateX(10px);
  }

  .about-qk p {
    max-width: 66vw;
  }
}


@media screen and (max-width: 767px) {
  .about-qk {
    width: auto;
    height: 100%;
    background-image: url('../images/about_qk_background_sp.svg');
  }

  .about-qk-text {
    width: 100%;
    max-width: 100%;
    height: 50vw;
    margin-top: 40px;
    background-clip: border-box;
    overflow: hidden;
  }

  .about-qk h1 {
    font-size: 24px;
    margin-block-end: 0;
  }

  .about-qk p {
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    line-height: 28px;
  }

  .qk-icons {
    gap: 7vw;
    margin-bottom: 200px;
    padding-top: 90px;
  }

  .about-qk img {
    width: 100%;
    max-width: 25vw;
  }
}

/* バナー */
.bunner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: auto;
}

.bunner-text-container{
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.bunner-sustainable-text {
  text-align: center;
  padding: 24px 0px 0px 0px;
  font-size:medium;
  font-weight: bold;
  line-height: 1.5em;
}

.bunner-sustainable-text br{
  display: none;
}

.sustaina-mirai-bunner {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0px 0px 40px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 767px) {
  .bunner-sustainable-text br{
    display: block;
  }
}

@media screen and (max-width: 630px) {
  .sustaina-mirai-bunner {
    max-width: 95vw;
    width: 100%;
    height: auto;
  }
}

/* 子ページ共通 */
.child-page-header {
  display: flex;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

.child-title {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: 80px;
  z-index: 1;
  min-width: 400px;
}

.child-title img {
  width: 100%;
  max-height: 100px;
}

.child-title p {
  text-align: center;
  font-size: large;
  font-weight: 600;
  line-height: 1.7em;
}

.scroll-indicator {
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInOut 2s infinite;
}

.scroll-text {
  font-size: medium;
  margin-bottom: 8px;
}

.arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: arrowAnimation 2s infinite;
}

.arrow-stem {
  width: 2px;
  height: 50px;
  background-color: #4E4E4E;
}

.arrow-head {
  width: 10px;
  height: 10px;
  border-bottom: 2px solid #4E4E4E;
  border-right: 2px solid #4E4E4E;
  transform: rotate(45deg);
  margin-top: -12px;
}

@keyframes fadeInOut {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

@keyframes arrowAnimation {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(20px);
  }
}


.child-contents-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 80px 0;
  overflow: hidden;
}

.child-contents-row {
  display: flex;
  flex-direction: row;
  gap: 40px;
  padding: 40px;
  place-content: center
}

@media screen and (min-width: 1600px) {
  .child-contents-row {
    flex-wrap: wrap;
  }
}

.child-contents-row .slide-item {
  position: relative;
  padding-top: 64px;
}


.channel-icon {
  position: absolute;
  width: 100%;
  max-width: 60px;
  left: 43%;
  z-index: 2;
  margin-top: -60px;
}

.flag-qk {
  display: flex;
  justify-content: center;
  position: absolute;
  margin-top: -10px;
  margin-right: 64px;
  top: 0;
  left: 160px;
  width: 100%;
  height: 100px;
  background-image: url('../images/flag_qk.svg');
  background-position: center;
  background-repeat: no-repeat;
  z-index: 2;
}

.flag-qk h4 {
  color: #EA0029;
  font-size: medium;
  font-weight: bold;
  font-weight: 700;
  margin-top: 24px;
}

.flag-suntory {
  display: flex;
  justify-content: center;
  position: absolute;
  margin-top: -10px;
  margin-right: 64px;
  top: 0;
  left: 160px;
  width: 100%;
  height: 100px;
  background-image: url('../images/flag_suntory.svg');
  background-position: center;
  background-repeat: no-repeat;
  z-index: 2;
}

.flag-suntory h4 {
  color: #5AC2DC;
  font-size: medium;
  margin-top: 24px;
}

.flag-manabou {
  display: flex;
  justify-content: center;
  position: absolute;
  margin-top: -10px;
  margin-right: 64px;
  top: 0;
  left: 160px;
  width: 100%;
  height: 100px;
  background-image: url('../images/flag_manabou.svg');
  background-position: center;
  background-repeat: no-repeat;
  z-index: 2;
}

.flag-manabou h4 {
  color: #30A7E9;
  font-size: medium;
  margin-top: 24px;
}

@media screen and (max-width: 960px) {
  .child-contents-row {
    gap: 0px;
  }

  .child-contents-row .slide-item {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    gap: 0px;
  }

  .flag-qk {
    left: 100px;
  }

  .flag-manabou {
    left: 100px;
  }

  .flag-suntory {
    left: 100px;
  }

  .channel-icon {
    align-self: center;
  }

  .child-contents-row .background-image {
    width: 80%;
    height: 80%;
  }

  .child-contents-row .foreground-image {
    width: 80%;
    height: 80%;
  }

  .child-contents-wrapper .slide-title-text {
    width: 70%;
    height: 80px;
  }

  .child-contents-wrapper .slide-channel-text {
    align-self: center;
  }

  .child-contents-wrapper .slide-channel-text-manabou {
    align-self: center;
  }

  .child-contents-wrapper .slide-channel-text-suntory {
    align-self: center;
  }
}

@media screen and (max-width: 767px) {
  .child-page-header {
    height: 100vh;
  }

  .scroll-indicator {
    position: absolute;
    top: 90vh;
  }

  .scroll-text {
    margin-bottom: 0px;
  }

  .child-title {
    position: absolute;
    top: 0;
    margin-top: 0px;
    gap: 0px;
  }

  .theme-descriptions {
    margin-top: 38vh;
  }

  .child-contents-row {
    flex-direction: column;
    padding: 0px;
    gap: 0px;
  }

  .child-contents-row .slide-item {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    width: 100vw;
    margin: 16px 0;
  }

  .child-contents-row .background-image {
    width: 80%;
    height: 80%;
  }

  .child-contents-row .foreground-image {
    width: 80%;
    height: 80%;
  }

  .flag-qk {
    width: 80px;
    height: 80px;
    left: 70vw;
    margin-right: 0px;
    background-position: bottom;
    background-size: contain;
  }

  .flag-manabou {
    width: 80px;
    height: 80px;
    left: 70vw;
    margin-right: 0px;
    background-position: bottom;
    background-size: contain;
  }

  .flag-suntory {
    width: 80px;
    height: 80px;
    left: 70vw;
    margin-right: 0px;
    background-position: bottom;
    background-size: contain;
  }

  .flag-qk h4 {
    margin-top: 34px;
    font-size: small;
  }

  .flag-manabou h4 {
    margin-top: 34px;
    font-size: small;
  }

  .flag-suntory h4 {
    margin-top: 34px;
    font-size: small;
  }

  .child-contents-wrapper {
    margin-top: 400px;
  }
}

.child-footer-button {
  display: flex;
  flex-direction: row;
  place-content: center;
  padding: 5px;
}

/* 「水」のページ */
.mizu-body {
  background-color: #E4FCFF;
  padding-bottom: 10vh;
}

.mizu-body h2 {
  color: #5AC2DC
}

.mizu-header {
  width: 100%;
  height: 90vw;
  max-height: 900px;
  min-width: 80vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url('../images/mizu_decoration_1.svg');
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
}

.mizu-footer {
  width: 100%;
  height: 30vw;
  max-height: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  background-image: url('../images/mizu_decoration_2.svg');
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  margin-bottom: 160px;
}


/* 「生き物」のページ */
.ikimono-body {
  background-color: #F1FFEC;
  padding-bottom: 10vh;
}

.ikimono-body h2 {
  color: #5AC2DC
}

.ikimono-header {
  width: 100%;
  height: 90vw;
  max-height: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url('../images/ikimono_decoration_1.svg');
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
}

.ikimono-footer {
  width: 100%;
  height: 40vw;
  max-height: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  background-image: url('../images/ikimono_decoration_2.svg');
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  margin-bottom: 160px;
}

/* 「資源」のページ */
.shigen-body {
  background-color: #E9F3FF;
  padding-bottom: 10vh;
}

.shigen-body h2 {
  color: #5AC2DC
}

.shigen-body h3 {
  padding-bottom: 40px;
}

.shigen-header {
  width: 100%;
  height: 120vw;
  max-height: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url('../images/shigen_decoration_1.svg');
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
}

.shigen-footer {
  width: 100%;
  height: 30vw;
  max-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  background-image: url('../images/shigen_decoration_2.svg');
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  margin-top: 160px;
  margin-bottom: 160px;
}


@media screen and (max-width: 767px) {
  .mizu-header {
    position: relative;
    height: 100vh;
    width: 100%;
    padding-top: 300px;
    background-image: url('../images/mizu_decoration_sp_1.svg');
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .mizu-footer {
    width: 100%;
    height: 50vw;
    margin-top: 10vh;
    background-image: url('../images/mizu_decoration_sp_2.svg');
    background-position: bottom;
    background-repeat: no-repeat;
  }

  .ikimono-header {
    position: relative;
    height: 100vh;
    width: 100%;
    padding-top: 300px;
    background-image: url('../images/ikimono_decoration_sp_1.svg');
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .ikimono-footer {
    width: 100%;
    height: 50vw;
    margin-top: 10vh;
    background-image: url('../images/ikimono_decoration_sp_2.svg');
    background-position: bottom;
    background-repeat: no-repeat;
  }

  .shigen-header {
    position: relative;
    height: 100vh;
    width: 100%;
    padding-top: 300px;
    background-image: url('../images/shigen_decoration_sp_1.svg');
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .shigen-footer {
    width: 100%;
    height: 50vw;
    margin-top: 10vh;
    background-image: url('../images/shigen_decoration_sp_2.svg');
    background-position: bottom;
    background-repeat: no-repeat;
  }
}