:root {
  --color-main-red: #f4a261;
  --color-soft-pink: #fff4e6;
  --color-text: #4a3f35;
  --color-green: #7daa92;
  --color-soft-white: #fffff0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  margin: 0;
  background-color: var(--color-soft-white);
}

.hamburger {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--color-text);
  border-radius: 50%;
  z-index: 10000;
}
.hamburger span {
  position: absolute;
  left: 12px;
  width: 26px;
  height: 2px;
  background: #fffffa;
  transition: all 0.4s;
}
.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 24px; }
.hamburger span:nth-child(3) { top: 32px; }
.hamburger-nav.open + .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-nav.open + .hamburger span:nth-child(2) { opacity: 0; }
.hamburger-nav.open + .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.hamburger-nav.open ~ .hamburger span:nth-child(1) {
  top: 24px; 
  transform: rotate(45deg);
}
.hamburger-nav.open ~ .hamburger span:nth-child(2) {
  opacity: 0;
}
.hamburger-nav.open ~ .hamburger span:nth-child(3) {
  top: 24px; 
  transform: rotate(-45deg);
}
.hamburger-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 40%;
  height: 100vh;
  background: #cb8589; 
  backdrop-filter: blur(5px);
  padding: 100px 40px;
  transition: all 0.5s;
  z-index: 9998; 
}
.hamburger-nav.open {
  right: 0;
}
.hamburger-nav-list {
  list-style: none;
}
.hamburger-nav-list li {
  margin-bottom: 30px;
}
.hamburger-nav-list li a {
  color: #fffffa;
  text-decoration: none;
  font-size: 1.5rem;
  font-family: "Zen Maru Gothic", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.hamburger-nav-list li a img {
  width: 50px; 
}

main section {
  width: 100%;
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.animate-scroll {
  opacity: 0;
  will-change: opacity, transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.animate__animated {
  opacity: 1 !important;
}

#problem, #solution, #features, #results, #voices, #plans, #menu, #qa {
  overflow: hidden;
}

.bg-switch {
  background-image: var(--bg-pc);
}

.btn {
  display: inline-block;
  cursor: pointer;
  width: 100%;
  max-width: 800px;
  transition: opacity 0.3s ease;
  animation: heartBeat 1.3s ease-in-out infinite;
}
.btn img {
  width: 100%;
  height: auto;
  display: block;
}
.btn:hover {
opacity: 0.8;
  filter: brightness(1.1);
  animation-play-state: paused;
}
.btn:active {
  transform: scale(0.98);
}

.inner {
  width: 100%;
  max-width: 1000px; 
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.inner img {
  max-width: 100%;
  height: auto;
}

.hero {
  width: 100%;
  background-image: none;
  border-top: 25px solid var(--color-green); 
}
.hero-content {
  padding-top: 30px;
}
.hero-content h1 {
  width: 50%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-content h1 img {
  width: 100%; 
  max-width: 100%; 
  height: auto;   
}

#problem {
  --bg-sp: url(../img/tdm_pr_bg_sp.png);
  --bg-pc: url(../img/tdm_pr_bg_pc.png);
  min-height: 71vw;
  margin-top: 10%;
  padding-top: 5%;
}
#problem .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
#problem .inner img {
  width: 70%;
  height: auto;
  display: block;
}
.grid-2x2 {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
}
.grid-2x2 img {
  width: 35% !important;
}
.grid-2x2 img:nth-child(2) { animation-delay: 0.2s; }
.grid-2x2 img:nth-child(3) { animation-delay: 0.4s; }
.grid-2x2 img:nth-child(4) { animation-delay: 0.6s; }

#solution {
  background-image: none;
  padding: 0;
}
.intro-area {
  width: 50%;
  background-color: #fff;
  text-align: center;
}
.intro-img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.solution-contents {
  width: 100%;
  --bg-sp: url(../img/tadaima_16_sp.png);
  --bg-pc: url(../img/tadaima_16_pc.png);
  background-size: 100% auto !important;
  min-height: 70vw;
  background-repeat: no-repeat;
}
#solution .grid-2x2 {
  max-width: 1000px;
  margin: 0 auto;
  margin-top: 19%;
}
#solution .grid-2x2 img {
  padding: 10px;
}

#features {
  --bg-sp: url(../img/tadaima_21_sp.png);
  --bg-pc: url(../img/tadaima_21_pc.png);
  min-height: 99vw;
}
#features .inner{
  align-items: self-start;
  margin-right: 4%;
  gap: 100px;
  margin-top: 16%;
}

#results {
  margin-top: -45px;
  --bg-sp: url(../img/tadaima_29_sp.png);
  --bg-pc: url(../img/tadaima_29_pc.png);
  min-height: 105vw;
}
.results-top {
  display: flex;
  justify-content: center;
  align-items: center; 
  width: 100%;
  max-width: 675px;
  gap: 10px;
  margin-top: 41%;
}
.results-graph {
  width: 45%;
}
.results-text {
  width: 30%;
}
.results-count {
  width: 60%;
}
.results-comment {
  margin-top: 35px;
  width: 60%;
}


#voices {
  --bg-sp: url(../img/tadaima_31_sp.png);
  --bg-pc: url(../img/tadaima_31_pc.png);
  min-height: 65vw;
}
.sp-only {
  display: none;
}
.pc-only {
  display: block;
  width: 100%;
  height: auto;
}
#voices .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10% 0;
  margin-top: 6%;
}
.voice-item {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  transition: transform 0.3s, z-index 0.3s;
}
.voice-item:nth-child(2),
.voice-item:nth-child(3) {
  margin-top: -80px;
}
.voice-item:nth-child(1) { z-index: 1; }
.voice-item:nth-child(2) { z-index: 2; }
.voice-item:nth-child(3) { z-index: 3; }
.voice-item:hover {
  z-index: 10;
  transform: translateY(-5px);
}
#voices .voice-item:nth-child(1) img {
  animation-delay: 0.2s;
}
#voices .voice-item:nth-child(2) img {
  animation-delay: 0.4s;
}
#voices .voice-item:nth-child(3) img {
  animation-delay: 0.6s;
}

#plans {
  --bg-sp: url(../img/tdm_pl_bg_sp.png);
  --bg-pc: url(../img/tdm_pl_bg_pc.png);
  position: relative;
  width: 100%;
  min-height: 60vw;
}
#plans .inner {
  position: relative;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  flex-direction: row;
  justify-content: center;
  padding: 15% 0 0 0;
  align-items: flex-end; 
  height: auto;
}
#plans .slider-arrow {
  position: absolute;
  top: 50%;
  width: 25px;
  z-index: 20;
}
#plans .arrow-left {
  left: 10px;
  transform: translateY(-50%);
}
#plans .arrow-right {
  right: 10px;
  transform: translateY(-50%) rotate(180deg);
}
#plans .inner::-webkit-scrollbar {
  display: none;
}
#plans .inner img {
  height: 100% ;
  width: 45% ;
  flex: none;
  object-fit: contain;
  flex: 1;
  scroll-snap-align: center;
}
#plans .arrow {
  display: none;
}

#menu {
  --bg-sp: url(../img/tdm_mn_bg_sp.png);
  --bg-pc: url(../img/tdm_mn_bg_pc.png);
  min-height: 100vw;
}
#menu .inner {
  padding-bottom: 50px;
  position: relative;
  overflow: hidden;
}
.arrow-set {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  width: 1000px;
  z-index: 10;
  pointer-events: none;
}
.main-dish-arrows {
  top: 12.5%;
}
.side-dish-arrows {
  top: 27%;
}
.slider-arrow {
  width: 45px;
  height: auto;
}
.arrow-right {
  transform: rotate(180deg);
}
.menu-slider-container {
  display: block;
  width: 100%;
  margin-top: 18%;
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
}
.menu-group {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 65%;
  margin-bottom: 35px;
  width: 100%;
  margin-bottom: 70px;
}
.menu-group::-webkit-scrollbar {
  display: none;
}
.menu-group img {
  width: 30% !important;
  min-width: 250px;
  flex-shrink: 0;
  scroll-snap-align: start;
  height: auto;
  width: 22% !important;
  min-width: 220px;
  flex-shrink: 0;
  scroll-snap-align: start;
  height: auto;
}
.menu-extra-margin {
  margin-top: 10%;
}

#qa {
  --bg-sp: url(../img/tadaima_51_sp.png);
  --bg-pc: url(../img/tadaima_51_pc.png);
  background-size: 100% auto !important; 
  background-position: top center;
  min-height: auto !important;
  margin-top: 10%;
}
#qa.bg-switch {
  background-size: 100% auto !important;
}

#qa .inner {
  padding: 13% 0;
  width: 40%;
}
.qa-item {
  cursor: pointer;
  margin-bottom: 20px;
}
.qa-item .answer {
  display: none;
}
.qa-item.open .answer {
  display: block; 
}

footer{
  background-color: var(--color-green);
  padding: 20px;
  color: white;
}

@media (max-width: 768px) {

  .bg-switch {
    background-image: var(--bg-sp);
  }

  .hero-content h1 {
    width: 100%;
  }

  #problem, #solution, #features, #results, #voices, #plans, #menu, #qa {
    background-size: 100% auto;
    background-repeat: no-repeat;
  }

  .pc-only { 
    display: none; 
  }
  .sp-only { 
    display: block; width: 100%; 
  }
  .voice-item:nth-child(2),
  .voice-item:nth-child(3) {
    margin-top: -40px; 
  }

  .inner {
    width: 100% !important;
    padding: 0;
  }
  .intro-area {
    width: 90% !important;
    margin: 0 auto;
  }

  #problem{
    min-height: 165vw;
  }
  #problem .inner img {
    width: 100%;
  }
  #results {
    min-height: 200vw;
  }
  #qa .inner {
    margin-top: 20%;
  }
  #plans .inner,
  .grid-2x2 img {
    width: 45% !important;
  }
  #solution .grid-2x2 {
    margin-top: 30%;
  }
  #solution .grid-2x2 img {
    padding: 0;
  }

  

  #menu .inner {
    grid-template-columns: 1fr; 
  }
  .arrow-set {
    width: 100%;
  }
  .menu-slider-container {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    display: block; 
    width: 86% !important;
    margin-top: 24%;
  }
  .menu-group {
    padding: 0;
    gap: 0;
    width: 100%;
    margin-bottom: 0;
  }
  .menu-group img {
    width: 40% !important;
    min-width: auto;
    /* flex-shrink: 0; */
    /* scroll-snap-align: center; */
    width: 100%;
    gap: 20px;
    margin-bottom: 40px;
  }
  .side-dish-arrows {
    top: 28%;
  }



  .results-count {
    width: 80% ;
  }
  #features{
    min-height: 200vw; 
  }
  #features .inner {
    margin-right: 0;
    align-items: center; 
    margin-top: 37%;
    gap: 81px;
    margin-left: -280px;
  }
  .features-points {
    width: 20%;
  }

  .results-top {
    margin-top: 60%;
  }
  .results-comment{
    width: 90%;
  }

  .voice-item {
    width: 90%;
    margin-top: 10%;
  }
  

  #plans {
    min-height: 110vw;
  }
  #plans .inner {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10% 5%;
    gap: 15px;
    align-items: stretch;
    align-items: flex-start;
    max-width: none !important;
    min-width: 80% !important;
    margin-top: 15%;
  }
  #plans .inner .undefined {
    width: 85% !important;
    flex-shrink: 0;
    scroll-snap-align: center;
  }
  #plans .inner::-webkit-scrollbar {
    display: none;
  }
  #plans .slider-arrow {
    /* display: none !important; */
    width: 15% !important;
  }
}