@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&display=swap');

.headerImageContainer {
    position: relative;
    background-image: url(../img/review/✅WEBサイトレビュー.png);
    background-size: cover;
    background-position: 20% 51%; /* Adjust these values as needed */
    height: 37vh;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.7); /* Adjust the alpha value as needed */
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
}

.headerImageContainer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust the alpha value as needed */
    z-index: 1; /* Ensure this value is lower than the z-index of #parent */
}

.headerImageContainer > * {
    position: relative;
    z-index: 2;
}

/*Cusstom Banner header*/
.mainBanner{
    margin-top: 2em;
    margin-left: 4em;
    text-align:left;
    font-family: "Hina Mincho", serif;
    color: white;
    margin-bottom: 3em;
  }
  .mainBanner h1{
    font-size:10vw;
    opacity: 0.5;
    font-weight: 300; /* Add this line */
  }
  .mainBanner h4{
    margin-top: -4vw;
    font-size: 4vw;
    font-weight: 300; /* Add this line */
  }

.headerText{
  margin-bottom: 0em;
}

/*Pacient img*/

.cutomerImg{
  background-color: #ffebee;
  height: 100%;
  margin: 0;
  padding-bottom: 1em;
}

.cutomerImg img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.carouselObtimized {
  width: 26%; /* Adjust the width as needed */
  height: auto; /* Maintain aspect ratio */
  margin: 0 auto; /* Center the carousel */
  padding: 1em; /* Add some padding if needed */
}

/* General iframe styling */
iframe {
    width: 100%;
    height: auto;
    max-width: 800px; /* Limit the width for larger screens */
    margin: 0 auto;
    display: block;
    aspect-ratio: 16 / 9; /* Maintain the aspect ratio */
}

.carouselObtimized{
  margin-top: -0.5em;
}

/*Phone css*/
@media only screen and (max-width: 900px) {
  .headerImageContainer {
    height: auto; /* Match the height behavior of the PC view */
    min-height: 15svh;
    background-position: 20% 51%; /* Ensure the background position is consistent */
  }

  .mainBanner {
    margin-top: 2em; /* Match the PC margin */
    margin-left: 4em; /* Match the PC margin */
    text-align: left; /* Ensure text alignment is consistent */
    font-size: 1rem; /* Adjust font size for readability on smaller screens */
  }

  .mainBanner h1 {
    font-size: 10vw; /* Keep the same font size as PC */
    opacity: 0.5; /* Match the PC opacity */
    font-weight: 300; /* Ensure font weight is consistent */
  }

  .mainBanner h4 {
    margin-top: -4vw; /* Match the PC margin */
    font-size: 4vw; /* Keep the same font size as PC */
    font-weight: 300; /* Ensure font weight is consistent */
  }

  .carouselObtimized {
    width: 100%; /* Make it full width for smaller screens */
    padding: 0.5em; /* Adjust padding for smaller screens */
  }

  .video_high {
    width: 100%;
    border: none;
    background: none;
    height: 100%;
  }

  iframe {
    max-width: 100%; /* Ensure it fits within the screen */
    height: auto; /* Maintain aspect ratio */
  }
}

/* Styling for larger screens (computers) */
@media (min-width: 769px) {
  iframe {
    max-width: 70%; /* Make it smaller for computer view */
    height: auto;
  }
}