@charset "UTF-8";

:root {
    --text_g: #F8F5F1;
    --back: #f8f8f8;
    --button_def: #F0CB63;
    --text_def: #1F1F1F;
    --back_g_1: #809E97;
    --white: #fff;
    --oswald-font: 'Noto Sans JP', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family:var(--oswald-font);
  line-height: 1.6;
  color: var(--text_def);
  background-color: var(--back);
}
.bg_main{
  background: url(img/back_2.svg) no-repeat 0% 0%;
  background-attachment: fixed;
  background-size: 50%;
}
h1 {
  font-size: 1.8rem;
  }

h2 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
h3 {
  font-size: 1.3rem;
}
section{
  padding:0 100px;
  margin-bottom: 163px;
  scroll-margin-top: 80px;
}
button{
  color: var(--text_def);
}
a{
  text-decoration: none;
  color:var(--text_def);
}
a:hover{
  text-decoration: none;
  color: var(--text_def);
}
/*メニューPC*/
header {
  padding: 16px 0;
  width: 100%;
  height: auto;
  background: var(--text_g);
  position: fixed;
  z-index: 10;
  box-shadow: 12px 0px 10px rgba(0, 0, 0, 0.2)
}
.g-nav{
    display: flex;
    width: 100%;
    padding: 0 15px;
    justify-content: space-between;
  align-items: center;
}

.menu-pc {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: flex-end;
}

.menu-pc li{
    padding: 15px;
	text-align: center; 
	list-style: none;
}

.menu-pc li a{
	color: #333;
	text-decoration: none;
	display: block;
	letter-spacing: 0.1em;
	font-weight: bold;
}

header button {
  background: var(--button_def);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  width: 147px;
  height: 44px;
}
.btn-menu {
    height: 2rem;
    width: 2rem;
    transition: .4s;
    background: var(--back);
    border-radius: 50px;
}
.btn-menu svg {
    fill: var(--text_def);
    margin-top: .25rem;
    height: 2rem;
    width: 2rem;
}

/* 閉じるボタン */
#menu-close {
    height: 4rem;
    width: 4rem;
    border: 1px solid var(--text_def);
}
#menu-close svg {
    fill: var(--text_def);
}

/* スライドメニューパネル (スマホ)*/
#menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 4;
    padding: 8rem 2rem 2rem;
    width: max(32vw, 20rem);
    height: 100vh;
   background-color: var(--back);
    font-family: var(--oswald-font);
    translate: -100vw;
}
.menu-list {
    list-style: none;
}
.menu-list li {
    margin: 1rem 0;
    opacity: 0;
}
.menu-list a {
    color: var(--light-green);
    text-decoration: none;
    font-size: 1.5rem;
}


/*ヒーロー画像*/
.hero {
  text-align: left;
  margin-bottom: 28px;
}
.hero h1 {
  padding-top: 100px;
  font-size: 2rem;
}
.hero p {
  color: var(--text_def);
  margin-bottom: 12px;
}
.hero_img{
  width: 100%;
}
.hero_img_pc{
  text-align: center;
}
.hero_img_pc img{
  width: 100%;
}

/*イントロ*/
.intro{
  row-gap: 38px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
.intro_text{
  width: 360px;
}
.intro img{
  width: 480px;
  height: 100%;
  border-radius: 10px;
}

/*セクション*/
.section {
  text-align: center;
}
.section img {
  width: 100%;
  height: auto;
  margin-top: 12px;
  border-radius: 8px;
}
.icons {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin: 24px 0;
  text-align: center;
}
.icons div{
  width: 168px;
  height: 149px;
}
.icons div img {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
}

/*ベネフィット*/
.benefits {
  padding: 69px 0;
  background-color: #f3f3f3;
}
.lead_pc{
  max-width: 552px;
  margin-bottom: 38px;
}
.benefits ul{
  display: flex;
  width: 946px;
  margin: 0 auto;
  flex-direction:column;
  row-gap: 38px;
}
.benefit-item {
  display: flex;
    list-style: none;
    width: 950px;
    height: 450px;
    background-repeat: no-repeat;
    background-position: right center; 
    background-size: 43%;
}
.left{
  justify-content: flex-end;
  background-position: left center;
}
.b_1{
  background-image: url(img/leaf_2.png);
}
.b_2{
  background-image: url(img/concentration_2.png);
}
.b_3{
  background-image: url(img/relax_2.png);
}
.benefit-item .number {
  font-size: 4rem;
  color: #ddd;
  font-weight: bold;
}
.text_box {
  width: 420px;
}

.text-area h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0.5rem 0;
}



.colored-section {
  background-color: var(--back_g_1);
  color: var(--white);
  padding: 69px 0;
}
.colored_c{
  margin: auto;
  width: 1160px;
}
.colored_f{
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}
.gallery-thumbnails{ 
  padding-bottom: 18px;
}

.gallery-image{
  width: 390px;
  height: 330px;
}
.displayImage{
  width: 100%;
  border-radius: 10px;
}
.imageItem{
   list-style: none;
  margin-bottom: 1rem;
  width: 100%;
  border-radius: 10px;
}
.imageItem:hover{
   color:var(--text_def);
}

.tips{
  padding: 69px 0;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 38px;
  background: var(--back_g_1);
  color: var(--white);
}
.tips_list{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  padding: 16px;
  list-style: none;
}
.card {
  width: 270px;
  height: 273px;
  display: flex;
  flex-direction: column;
  background: #ffffffcc;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.3s;
  position: relative;
}
.card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.card p {
  margin: 10px 0;
  font-size: 0.9rem;
  text-align: left;
}
.card .arrow {
  width: 48px;
  color: #333;
  position: absolute;
  bottom: 10px;
  right: 12px;
  transition: transform 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.card:hover .arrow {
  transform: translateX(4px);
}

.modal {
  display: none; /* 初期は非表示 */
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 90%;
  width: 400px;
  padding: 20px;
  text-align: center;
  position: relative;
  animation: fadeIn 0.3s ease;
}

.modal-content img {
  width: 100%;
  border-radius: 8px;
}

.modal-content .close {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 24px;
  cursor: pointer;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


.recommend-slider {
  text-align: center;
  margin: 32px 0;
}

.cta {
  text-align: center;
}

.cta button {
  background:var(--button_def);
  border: solid 1px var(--text_g);
  border-radius: 24px;
  font-weight: bold;
  cursor: pointer;
  width: 316px;
  height: 52px;
  box-shadow: 7px 7px rgba(0,0,0, 0.2);
  transition: 0.3s ease-in-out;
}
.cta button:hover{
  background-color: var(--text_def);
  color: var(--white);
  transform: translate3d(0,0.2rem,-1rem);
}
.cta button p{
  font-size: .7rem;
  font-weight: normal;
}
    
.closing{
 padding-bottom: 100px;
 margin-bottom: 0;
  text-align: center;
}

.footer_b{
  display: flex;
  flex-wrap: wrap;
  justify-content:center;
  gap:24px;
  margin-bottom:20px;
}
.footer_b button{
  display: flex;
  justify-content: center;
  gap:80px ;
  height: 124px;
  width: 350px;
  padding: 38px 0;
  border-radius: 10px;
  box-shadow: 7px 7px rgba(0, 0, 0, 0.2);
}
.footer_b button div{
  text-align: left;
}
.footer_b button img{
  width: 48px;
}

footer {
  text-align: center;
  padding: 187px 0;
  background-color: var(--back_g_1);
  color: var(--white);
  font-size: 0.9em;
}
/* スライダー */
   .slider-container {
      width: 100%;
      overflow: hidden;
      display: flex;
      margin-bottom: 163px;
    }

    .slider-track {
      display: flex;
      white-space: nowrap;
      width: calc(4560px * 2);
      animation: slide-left 40s linear infinite both;
    }

    .slide-item {
      list-style: none;
      padding: 0 0.4rem;
      font-size: 1.5rem;
      
    }
    .slide-item img{
      padding: 0 0.4rem;
      height: 100px;
    }

    @keyframes slide-left {
      0% {
        transform: translateX(0);
      }
      100% {
        transform: translateX(-100%);
      }
    }

/* カルーセル */
.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.carousel-track-wrapper {
  overflow: hidden;
  max-width: 800px;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth; 
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-image {
  width: 100%;
  max-width: 800px;
  flex-shrink: 0;
  text-align: center;
  margin: 0 auto;
}
.carousel-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
#prevBtn,
#nextBtn {
  background-color: #6eaf6e;
  color: white;
  border: none;
  padding: 10px 16px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}


/* ギャラリーアニメーション */
.fade-in {
  opacity: 0;
  transition: opacity 10s ease;
}

.fade-in.show {
  opacity: 1;
}


 /* --- レスポンシブ対応 --- */
  @media (min-width: 480px) {
   
  .hero_img{
      display: none;
    }
  }
   @media (min-width: 910px) {
    .btn-menu{
      display: none;
    }
  }

  @media (max-width: 910px) {
    .menu-pc {
     display: none;
    }
    .menu-list ul{
    display: block;
    }
   
    .bg_main{
      background: url(img/back_2.svg) no-repeat top left;
      background-attachment: scroll;
      min-height: 200vh;
    }
    .colored_c{
      width: 350px;
      margin: 40px auto;
    }
    .gallery-image{
      width: 100%;
    }
    .slider-container{
      margin-bottom: 78px;
    }

    .text_box{
      width:203px ;
    }
    .hero_img{
      margin-bottom: 25px;
      text-align: center;
    }
    .card {
     width: 146px;
     height: 233px;
    }
    .benefit-item{
      width: 100%;
      height: 100%;
      background-size: 50%;
    }
    .benefits ul{
      width: 100%;
    }
    .b_1{
      background-image: url(img/leaf.png);
    }
    .b_2{
      background-image: url(img/concentration.png);
    }
    .b_3{
      background-image: url(img/relax.png);
    }
    .colored_f{
      justify-content:start;
    }
    
    button {
      width: 100%;
      margin-bottom: 10px;
    }
    footer {
      padding:  68px 0 227px;
    }
    .footer_b button{
      margin-bottom:0;
    }
  
    section{
      margin-bottom: 78px;
      padding: 0 15px;
    }
    
    .carousel-image {
      max-width: 90vw;
    }
   .carousel-image img {
  width: 100%;
  height: auto;
  display: block;
}
      #prevBtn,
  #nextBtn {
    width: auto;
    margin: 0;
    font-size: 18px;
    padding: 8px 12px;
  }
  }
  
  @media (max-width: 480px) {
    h1 {
      font-size: 1.5rem;
    }
    h2 {
      font-size: 1.2rem;
    }
    .hero_img_pc{
      display: none;
    }
    .intro img{
      width: 100%;
    }
    button {
      font-size: 1rem;
    }
  }
