@charset "utf-8";
#main-contents {
  margin-top: 0;
  margin-bottom: 0;
}
.l-section {
  margin-bottom: 0;
}

/* First View */
.fv {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: #F6F1E8;
  text-align: center;
}
.fv-slide {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1440px;
  opacity: 0;
  animation: fvFade 21s infinite;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: opacity;
}
.fv-slide img {
  width:100%;
  height:auto;
  display: block;
}
.fv-slide:nth-child(1) {
  position: relative;
  left: 0;
  transform: none;
  margin: 0 auto;
  animation-delay: 0s;
}
.fv-slide:nth-child(2) {
  animation-delay:7s;
}
.fv-slide:nth-child(3) {
  animation-delay:14s;
}
@keyframes fvFade {
  0%   { opacity:0; }
  15%  { opacity:1; }
  40%  { opacity:1; }
  55%  { opacity:0; }
  100% { opacity:0; }
}
.current-yell {
  display: block;
  margin: 0 calc(50% - 50vw);
  padding: 40px 0px 80px 0px;
  background: #F6F1E8;
  width: 100vw;
  text-align: center;  
}
.current-yell-inner {
  margin-top: clamp(-281px, -19.51vw, -149.8px);
}
.current-yell .yell-megaphone {
  display: block;
  margin: 0 auto;
  width: 125px;
}
.current-yell h2 {
  text-align: center;
  padding: 50px 0 30px;
}
.current-yell .yell-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
  gap: 5px;
}
.current-yell .count {
  background: #c38a4d;
  border-radius: 5px;
  padding: 5px 10px 10px 15px;
  color: #FFFFFF;
  text-align: center;
  font-family: "Din Alternate", sans-serif;
  font-size: 50px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: 0.05em;
  position: relative;
}

/* carousel */
.carousel-yell {
  display: block;
  margin: 0 calc(50% - 50vw);
  padding-bottom: 20px;
  background: #F6F1E8;
  width: 100vw;
  text-align: center;
}
.carouselArea {
  overflow:hidden;
  cursor:grab;
  margin-bottom: 20px;
  user-select: none;
}
.carouselArea.dragging {
  cursor:grabbing;
}
.carouselTrack {
  display: flex;
  padding:0;
  gap: 20px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
  will-change: transform;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-perspective: 1000;
  transform-style: preserve-3d;
}

/* card */
.card {
  position: relative;
  flex:0 0 350px;
  max-width:350px;
  width: 100%;
  height: 350px;
  background:#fff;
  border-radius:10px;
  box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px -4px 6px -4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  cursor: pointer;
  transition: .2s;
  display: flex;
  flex-direction: column;
  text-align: left;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0); 
  contain: layout style;
  overflow: hidden;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}
.cardImg {
  margin: 20px 0 10px 0;
  width: 24px;
  height: 24px;
}
.cardImg img {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.newBadge {
  position: absolute;
  top: 0px;
  right: 0px;
  background: #f27186;
  color: #fff;
  padding: 5px 8px 5px 8px;
  border-radius: 0 10px 0 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: 0.05em;
  z-index: 10;
}
.cardText {
  flex: 0 0 auto;
  margin-bottom: 10px;
  padding: 0;
  /* font-size: 14px;*/
  /*line-height: 170%;*/
  font-size: 22px;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: 0.05em;
  color: #1E2939;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}
.card:not(.hasMedia) .cardText {
  /*-webkit-line-clamp: 7;
  line-clamp: 7;*/
  -webkit-line-clamp: 5;
  line-clamp: 5;;
}
.card.hasMedia .cardText {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.cardMedia {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
  margin-top: 5px;
}
.cardMedia img, .cardMedia video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.cardMedia::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 90%);
  pointer-events: none;
  z-index: 2;
}
.cardTitle {
  flex: 0 0 auto;
  margin: 0;
  position: absolute;
  bottom: 50px;
  color: #1E2939;
}
.cardTitle .name {
  font-size: 14px;
  font-weight: 300;
}
.cardTitle .san {
  font-size: 12px;
  font-weight: 300;
  margin-left: 5px;
}
.cardTitle .meta {
  font-size: 14px;
  font-weight: 300;
  margin-left: 20px;
}
.cardMore {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 10;
  line-height: 100%;
  margin-right: 0;
}
.cardMore img {
  display: block;
  margin-top: 2px;
}

/* modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(246, 241, 232, .8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
}
.modal.open {
  display: flex;
}
.modalContent {
  background: #fff;
  border-radius: 10px;
  max-width: 800px;
  width: 100%;
  max-height: 800px;
  height: calc(100vh - 280px);
  padding: 50px 50px 0 50px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
#modalBody {
  overflow-y: auto;
  flex-grow: 1;
  padding-bottom: 0;
  overscroll-behavior: contain; /* スクロールが端に達しても背後に伝えない */
}
#modalBody > *:last-child {
  margin-bottom: 50px;
}
.modalMedia:last-child {
  margin-bottom: 50px;
  padding-bottom: 0;
}
.modalTitle {
  text-align: left;
  margin-bottom: 40px;
}
.modalTitle .san {
  font-size: 12px;
  font-weight: 300;
  color: #1E2939;
  margin-left: 5px;
}
.modalTitle .name {
  font-size: 16px;
  font-weight: 300;
  color: #1E2939;
}
.modalTitle .meta {
  font-size: 14px;
  font-weight: 300;
  color: #1E2939;
  margin-left: 20px;
}
.modalImg {
  margin: 0px 0 10px 20px;
}
.modalImg img {
  width: 40px;
  height: 37px;
}
.modalBodyText {
  overflow-y: auto;
  line-height: 170%;
  padding: 0 30px 0 30px;
  font-size: 14px;
  font-weight: 500;
  color: #1E2939;
  white-space: pre-wrap;
}
.modalMedia {
  width: 100%;
  overflow: hidden;
  padding: 15px 30px;
  text-align: center;
}
.modalMedia img, .modalMedia video {
  width: 100%;
  height: auto;
}
.modalX {
  position: absolute;
  top: 15px;
  right: 15px;
  border: none;
  background: none;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}
.modalNav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 80px;
  cursor: pointer;
  transition: opacity 0.2s;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 24px;
  background-color: transparent;
  border: none;  
}
.modalNav:hover {
  opacity: 0.8;
}
.modalPrev {
  left: -54px;
  background-image: url('/esg_community/img/modal_prev.png');
}
.modalNext {
  right: -54px;
  background-image: url('/esg_community/img/modal_next.png');
}
body.modalLock {
  overflow: hidden;
}
.modal .project {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding-top: 80px;
}
.modal .project img {
  width: 98px;
}
.modal .project p {
  font-size: 20px;
  font-weight: 800;
  line-height: 130%;
  letter-spacing: 0.05em;
}

/* 全件エール */
#all-yell {
  display: block;
  margin: 0 calc(50% - 50vw);
  padding: 80px 0px 80px 0px;
  background: #F6F1E8;
  width: 100vw;
  text-align: center;  
}
#all-yell .yell-bird {
  display: block;
  margin: 0 auto;
  width: 120px;
}
#all-yell h2 {
  color: #ffffff;
  text-align: center;
  font-size: 30px;
  line-height: 100%;
  letter-spacing: 0.05em;
  font-weight: 700;
  -webkit-text-stroke: 7px #c38a4d;
  paint-order: stroke fill; 
  stroke-linejoin: round;
  stroke-linecap: round;
  padding: 30px 0 80px;
}
#all-yell h2 span {
  font-family: "Din Alternate", sans-serif;
}
#all-yell .region-frame {
  display: grid;
  grid-template-columns: repeat(auto-fit, 300px);
  gap: 30px;
  justify-content: center;
  max-width: 1000px; /* 960px + (20px * 2) */
  margin: 0 auto;
  padding: 0 20px;
}
#all-yell .region {
  background: #ffffff;
  border-radius: 5px;
  border-style: solid;
  border-color: #c38a4d;
  border-width: 3px;
  padding: 10px 20px 10px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 66px;
  position: relative;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  color: #1e2939;
  font-size: 16px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: 0.05em;
}
#all-yell .region img {
  position: absolute;
  width: 32px;
  right: 20px;
}

/* あなたのエールが、能登の力になる */
.your-yell {
  display: block;
  margin: 0 calc(50% - 50vw);
  padding: 40px 0px 40px 0px;
  background: linear-gradient(
    180deg,
    rgba(246, 241, 232, 1) 35.09615361690521%,
    rgba(255, 255, 255, 1) 100%
  );
  width: 100vw;
  text-align: center;
}
.your-yell-inner {
  margin-top: clamp(-494px, -34.31vw, -263.5px);
}
.your-yell .yell-hand {
  display: block;
  margin: 0 auto;
  width: 150px;
}
.your-yell h2 {
  position: relative;
  font-size: 30px;
  line-height: 100%;
  letter-spacing: 0.05em;
  font-weight: 700;
  padding: 80px 0 50px 0;
}
.your-yell p {
  position: relative;
  font-size: 16px;
  line-height: 200%;
  letter-spacing: 0.05em;
  font-weight: 400;
}

/* 生産者の声 */
.producer-voice {
  background: #FFFFFF;
  text-align: center;
  padding: 120px 0 100px 0;
}
.other-yell {
  background: #FFFFFF;
  text-align: center;
  padding: 0 0 100px 0;
}
.producer-voice h3,
.other-yell h3 {
  color: #1E2939;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: 0.05em;
  padding: 0 0 30px 0;  
}
.waku-yoko-btn {
  display: flex;
  position: relative;
  margin: 0 auto;
  background: #194f9f;
  border-radius: 36px;
  border-style: solid;
  border-color: #5b8cd3;
  border-width: 3px;
  padding: 25px 20px 25px 40px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 300px;
  height: 72px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  color: #ffffff;
  text-align: left;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: -0.31px;
  font-weight: 700;
}

/* これまでに寄せられたエール */
.past-yell {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  justify-content: center;
  position: relative;
}
.past-yell img {
  max-width: 440px;
  width: 100%;
  height: auto;	
}

@media screen and (max-width: 900px) {
  .modalPrev {
    left: 0px;
  }
  .modalNext {
    right: 0px;
  }
}

@media screen and (max-width: 768px) {
  .current-yell {
    padding: 10px 0px 10px 0px;
  }
  .current-yell .sp-yell-illust-01 {
    display: block;
    margin: 0 auto;
    width: 100%;
  }
  .current-yell-inner {
    margin-top: 0;
    padding: 0 20px;
  }
  .current-yell .yell-megaphone {
    width: 100px;
  }
  .current-yell h2 {
    padding: 30px 0 30px 0;
  }
  .current-yell .yell-title {
    padding: 10px 0;
  }
  .current-yell .count {
    padding: 3px 8px 8px 12px;
    font-size: 46px;
  }
  .current-yell p {
    font-size: 18px;
    text-align: left;
  }
  .carouselArea {
    margin-bottom: 10px;
  }
  .carouselTrack {
    gap: 10px;
  }
  .card {
    max-width: 175px;
    height: 345px;
  }
  .cardText {
    font-size: 14px;
    line-height: 170%;
  }
  .card:not(.hasMedia) .cardText {
    -webkit-line-clamp: 7;
    line-clamp: 7;
  }
  .cardImg {
    margin-top: 0;
  }
  .cardTitle {
    margin-bottom: 20px;
  }
  .cardTitle .meta {
    margin-left: 0;
  }
  #all-yell {
    padding: 40px 0 40px 0;
  }
  .your-yell {
    padding: 50px 0px 60px 0px;
  }
  .your-yell-inner {
    margin-top: 0;
  }
  .your-yell .yell-hand {
    margin-top: 50px;
    width: 130px;
  }
  .your-yell h2 {
    position: relative;
    font-size: 26px;
    line-height: 130%;
    padding: 40px 0 40px 0;
  }
  .your-yell p {
    text-align: left;
    padding: 0 20px;
  }
  .your-yell .sp-yell-illust-02 {
    display: block;
    margin: 0 auto;
    width: 100%;
  }
  .your-yell .sp-yell-illust-03 {
    display: block;
    margin: 50px auto 0;
    width: 100%;
  }
  .producer-voice,
  .other-yell {
    padding: 0 0 60px 0;
  }
  .past-yell {
    flex-direction: column;
  }
  #all-yell h2 {
    padding: 30px 0 40px;
  }
  #all-yell h2 img {
    width: 262px;
  }
  #all-yell .region-frame {
    gap: 20px;
  }
  .modal {
    padding: 0 25px;
  }
  .modalNav, .modalX {
    display: none !important;
  }
  .modalContent {
    background: transparent !important;
    box-shadow: none !important;
    width: 100% !important; 
    height: 520px !important;
    margin-top: 50px;
    padding: 0 !important;
    overflow: visible !important; 
    position: relative;
    display: flex !important;
    justify-content: center;
    min-height: unset;
    max-height: unset;
  }
  .modalContent::before,
  .modalContent::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(50% - 170px - 10px + 25px);
    height: 500px;
    background: #fff;
    pointer-events: none;
    transition: opacity 0.2s;
  }
  .modalContent::before {
    left: -25px;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  .modalContent::after {
    right: -25px;
    border-radius: 10px 0 0 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  .modalContent.is-swiping::before,
  .modalContent.is-swiping::after {
    opacity: 0;
    transition: opacity 0.1s;
  }
  .modalImg {
    margin: 0px 0 5px 0px;
  }
  .modalImg img {
    width: 27px;
    height: 24px;
  }
  .modalTitle {
    margin-bottom: 20px;
  }
  .modalBodyText {
    word-break: break-all !important;
    white-space: pre-wrap !important;
    display: block !important;
    max-width: 300px;
    width: 100%;
    padding: 0;
  }
  .modalMedia {
    padding: 15px 0 0;
  }
  .modalMedia img, .modalMedia video {
    width: 100%;
  }
  .modal .project {
    flex-direction: column;
    padding-top: 30px;
    gap: 5px;
    align-self: flex-end;
    justify-content: flex-end;
  }
  .modal .project img {
    width: 77px;
  }
  .modal .project p {
    font-size: 12px;
  }

  /* card 3枚分のレール */
  #sp-rail {
    display: flex;
    width: 300% !important;
    height: 100%;
  }
  .sp-slot {
    width: 33.3333% !important;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    overflow: visible !important; 
  }
  .sp-card-inner {
    width: 340px !important;
    height: 500px !important;
    margin: 0 10px !important;
    background: #fff;
    border-radius: 12px;
    position: relative;
    overflow: hidden !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 20px 0 0 !important; 
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
    transform: translateZ(0); 
    -webkit-font-smoothing: antialiased;
  }
  .sp-scroll-area {
    width: 100%;
    /*height: 100%;*/
    flex: 1;
    overflow-y: auto !important;
    overflow-x: hidden;
    padding: 30px 20px 0 !important; 
    box-sizing: border-box !important;
    background-attachment: local;
    overscroll-behavior: contain; /* スクロールが端に達しても背後に伝えない */
  }
  .sp-scroll-area::after {
    content: "";
    display: block;
    height: 20px; /* 下の余白 */
    width: 100%;
    pointer-events: none;
  }
  .sp-inner-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 25px;
    height: 25px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #1e2939;
    -webkit-appearance: none;
    appearance: none;
  }
  .sp-inner-close::before,
  .sp-inner-close::after {
    content: "";
    position: absolute;
    width: 35.35px;
    height: 2px;
    background-color: #1e2939;
  }
  .sp-inner-close::before {
    transform: rotate(45deg);
  }
  .sp-inner-close::after {
    transform: rotate(-45deg);
  }
}

@media screen and (max-width: 390px) {
  .modal {
    padding: 0 5px !important;
  }
  .modalContent::before, .modalContent::after {
    /* 幅の計算を padding: 5px に合わせて修正。
       (50% - カード半分170px - 隙間10px) + 新しいpadding 5px
    */
    width: calc(50% - 170px - 10px + 5px);
  }
  .modalContent::before {
    left: -5px;
  }
  .modalContent::after {
    right: -5px;
  }
}