html {
  font-family:"ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro",Osaka, "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}

main {
  width: 950px;
  max-width: 95vw;
  margin: 0 auto;
  border: 2px solid #bfbfbf;

  @media (max-width: 1023px) and (orientation: portrait) {
    border: 0;
  } 
}

header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 10px;
}

#sail-wordmark {
  height: 50px;
  background-image: url('./img/Sail_Wordmark_Blue_RGB.png');
  background-repeat: no-repeat;
  background-size: contain;
}

#wordmark-and-tagline {
  display: flex;
  flex-direction: column;
}

.sail-button-container {
  align-content: center;
}

.sail-button {
  align-content: center;
  background-color: #3269f5;
  border-radius: 20px;
  box-sizing: border-box;
  color: white;
  display: block;
  font-size: 1.3em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  width: 100%;
  height: 60px;
  margin: 0 auto;
  padding: 5px;

  @media (max-width: 1023px) and (orientation: portrait) {
    font-size: 1.1em;
  }
}

#body-part-one {
  width: 100%;
  height: fit-content;
}

.body-gray {
  background-color: #ececec;
}

.body-white {
 background-color: white;
}

.body-section {
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

.row {
  display: flex;
  flex-wrap: wrap;

  @media (max-width: 1023px) and (orientation: portrait) {
    flex-direction: column;

    &:nth-child(even) {
      flex-direction: column-reverse;
    }
  }
}

.row-image {
  width: 50%;
}

.caption {
  display: flex;
  flex-direction: column;
  width: 50%;

  @media (max-width: 1023px) and (orientation: portrait) {
    width: 100%;
  }
}

.caption-title {
  font-size: 28px;
  font-weight: bold;
}

#image-one {
  background-image: url('./img/iStock-862703904.jpg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position-y: bottom;
  position: relative;

  @media (max-width: 1023px) and (orientation: portrait) {
    width: 100%;
    aspect-ratio: 1/1;
  }
}

#image-two {
  background-image: url('./img/iStock-1365112392.jpg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position-x: right;

  @media (max-width: 1023px) and (orientation: portrait) {
    width: 100%;
    aspect-ratio: 1/1;
  }
}

.trial-explanation {
  text-align: center;
}

.trial-explanation-text {
  width: fit-content;
  margin: 20px auto;
  background-color: yellow;
}

.red-text {
  color: red;
}

#button-two {
  width: 75%;
  margin: 0 auto;
}

#image-carousel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 10px;
}

.carousel-item {
  background-color: white;
  height: 350px;
  width: 250px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.carousel-image {
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  width: 200px;
  height: 200px;
  aspect-ratio: 1/1;
  margin: 0 auto;
}

#carousel-image-one {
  background-image: url('./img/sail-image-one.png');
}

#carousel-image-two {
  background-image: url('./img/sail-image-two.png');
}

#carousel-image-three {
  background-image: url('./img/sail-image-three.png');
}

.carousel-caption {
  text-align: center;
}

#ribbon-carousel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ribbon-carousel-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.ribbon-image {
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  width: 250px;
  height: 100px;
  aspect-ratio: 1/1;
  margin: auto;
}

#ribbon-one {
  background-image: url('./img/check1.jpg');
}

#ribbon-two {
  background-image: url('./img/check2.jpg');
}

#ribbon-three {
  background-image: url('./img/check3.jpg');
}

#ribbon-four {
  background-image: url('./img/check4.jpg');
}

#ribbon-five {
  background-image: url('./img/check5.jpg');
}

#ribbon-six {
  background-image: url('./img/check6.jpg');
}

.body-beige {
  background-color: #fcf7ec ;
  padding: 20px;
  width: 100%;
}

#sewa-katsu {
  display: flex;
  justify-content: space-around;
}

.sewa-katsu-image {
  background-repeat: no-repeat;
  background-size: contain;
  width: 200px;
  aspect-ratio: 1/1;
  align-self: center;
  margin: 0 auto;
}

#sewa-katsu-one {
  background-image: url('./img/sewa-katsu-one.png');
}

#sewa-katsu-two {
  background-image: url('./img/sewa-katsu-two.png');
}

#sewa-katsu-three {
  background-image: url('./img/sewa-katsu-three.png');
  background-position: center;
}

#sewa-katsu-four {
  background-image: url('./img/sewa-katsu-four.png');
}

#how-to-use {
  width: 100%;
  padding: 20px;
}

#explanation-container {
  display: flex;
  align-items: center;
  justify-content: space-around;

  @media (max-width: 1023px) and (orientation: portrait) {
    flex-direction: column;
  }
}

.explanation-item {
  width: 250px;
  height: 150px;
  border: 5px solid #3269f5;
  border-radius: 10px;
  font-weight: bold;
  padding: 10px;
}

.explanation-title {
  font-size: 24px;
}

.arrow {
  width: 0; 
  height: 0; 
  border-top: 30px solid transparent;
  border-bottom: 30px solid transparent; 
  
  border-left: 30px solid #3269f5; 

  @media (max-width: 1023px) and (orientation: portrait) {
    border-top: 30px solid #3269f5; 
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    margin-top: 20px;
  }
}

#user-voices {
  width: 100%;
  padding: 20px;
}

.user-voice {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;

  &:not(:last-child) {
    margin-bottom: 50px;
  }

  @media (max-width: 1023px) and (orientation: portrait) {
    gap: 0;
  }
}

.user-and-name {
  display: grid;
  grid-template-rows: auto auto;
}

.user-photo {
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  width: 150px;
  height: 150px;
  aspect-ratio: 1/1;
  margin: auto;
}

#user-1 {
  background-image: url('./img/金子さま.png');
}

#user-2 {
  background-image: url('./img/小西さま.png');
}

#user-3 {
  background-image: url('./img/堀野さま.png');
}

#user-4 {
  background-image: url('./img/鈴木さま.png');
}

.user-opinion {
  width: 700px;
  max-width: 100%;
  flex-grow: 1;

  p {
    margin-top: 0;
  }
}

.emphasized {
  font-weight: bold;
  font-size: 1.5em;
}

footer {
  font-weight: bold;
  
  a {
    text-decoration: none;
  }
}

.footer-link-blue {
  color: #3269f5;
}

.footer-link-black {
  color: black;
}

#price {
  background-color: yellow;
  position: absolute;
  bottom: -50px;
  left: 50%;
  font-weight: bold;
  font-size: 26px;
  rotate: 10deg;
}
