/* 全体のスタイル */
body {
  background-image: url("./img/background-page-up.png");
  background-repeat: repeat;
  background-size: auto;
  color: #333;
  font-family: '游ゴシック', 'Yu Gothic', '游ゴシック体', YuGothic, sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
}

footer {
  background-color: #333;
  color: white;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding: 20px;
}

h1 {
  margin: 0;
}

h3 {
  color: #2ca6e0;
  margin: 0 0 20px;
}

header {
  margin: 0;
}

html {
  padding: 0;
}

img {
  aspect-ratio: attr(width) / attr(height);
  height: auto;
  width: 100%;
}

section {
  margin-bottom: 60px;
}

.align-left {
  text-align: left;
}

.business-stages {
  margin: 3em auto;
  max-width: 600px;
}

.business-stages-header {
  background-color: #01609b;
  display: grid;
  min-height: 100px;
  place-items: center;
  width: 100%;
}

.business-stages-header h3 {
  color: white;
  margin: 0;
  padding: 20px;
  text-align: center;
}

.button {
  background-color: #FFD270;
  border-radius: 5px;
  color: black;
  display: inline-block;
  padding: .5em 3em;
  text-decoration: none;
}
.button:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);;
  opacity: .9;
}

.card {
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
}
.card h3 {
  background-color: #01609b;
  color: white;
  margin: -20px -20px 20px;
  padding: 20px;
}

.display-none {
  display: none;
}

.font-size-0-9 {
  font-size: .9em;
}
.font-size-1-1 {
  font-size: 1.1em;
}
.font-size-1-2 {
  font-size: 1.2em;
}
.font-size-1-3 {
  font-size: 1.3em;
}
.font-size-1-4 {
  font-size: 1.4em;
}
.font-size-1-5 {
  font-size: 1.5em;
}

.footer-content {
  text-align: center;
}

.footer-links {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); /* デスクトップでは最大4列まで可変 */
  justify-content: center;
  list-style: none;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0;
  width: 100%;
}
.footer-links a {
  color: white;
  display: block;
  padding: 10px;
  text-decoration: none;
  width: 100%;
}
.footer-links a:hover {
  background-color: #ddd;
  color: #333;
}
.footer-links li {
  align-items: center;
  display: flex;
  flex: 1;
  justify-content: center;
}
.footer-links li:last-child {
  margin-right: 0;
}

.header-img-desktop,
.header-img-mobile {
  display: block;
  width: 100%;
}

.intro {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
}
.intro-img {
  margin-left: 20px;
  width: 50%;
}
.intro-text {
  flex: 1;
  text-align: left;
}
.intro-text h3 {
  color: #01609b;
  margin: 0;
}

.list-style-none {
  list-style: none;
}

.many-people {
  position: relative;
  width: 90%;
  z-index: 1;
}
.many-people-txt {
  margin-bottom: -3.5em;
  position: relative;
  width: 100%;
  z-index: 2;
}

.margin-0 {
  margin: 0;
}

.page-bottom {
  background-color: #def5fd;
  padding-top: 2em;
  width: 100%;
}
.page-bottom-container {
  display: grid;
  gap: 2em;
  grid-template-columns: repeat(2, 1fr);
  margin: 0 auto;
  max-width: 1200px;
  padding: 2em;
}

.page-up {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 2em;
}

.points-list {
  margin-top: 20px;
}

/* スクリーンリーダー用スタイル */
.sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.testimonial-card {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: 1.5em;
}

.testimonial-card-header {
  background-color: #ededed;
  min-height: 2em;
  padding-top: 2em;
  padding: 0;
  position: relative;
  text-align: center;
}
.testimonial-card-body {
  padding: .5em 1em;
}

.testimonials {
  display: grid;
  gap: 1em;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2em;
}
.testimonials .avatar {
  border-radius: 50%;
  display: block;
  left: 50%;
  margin: 0 auto;
  position: absolute;
  top: 0;
  transform: translate(-50%, -30%);
  width: 4em;
}

.youtube {
  padding-bottom: 56.25%; /* 16:9のアスペクト比 */
  position: relative;
  overflow: hidden;
  width: 100%;
}
.youtube iframe {
  border: 0;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.width-100 {
  width: 100%;
}
.width-100px {
  width: 100px;
}


@media screen and (max-width: 768px) {
  .hand-shake {
    width: 85%;
  }

  .header-img-desktop {
    display: none;
  }

  .intro {
    flex-direction: column;
  }

  .intro-img {
    margin-left: 0;
    margin-top: 20px;
    width: 100%;
  }

  .many-people {
    width: 75%;
  }
  .many-people-txt {
    width: 80%;
  }

  .mobile-br::after {
    content: "\A";
    white-space: pre;
  }

  .page-bottom-container {
    grid-template-columns: 1fr;
  }

  .testimonials {
    grid-template-columns: 1fr;
  }
}

@media screen and (min-width: 768px) {
  body {
    background-size: 80%;
  }

  .business-stages-header,
  .business-stages {
    grid-column: 1 / -1; /* 全幅を取るように設定 */
  }

  .card {
    grid-column: span 1; /* 各カードが1列を占めるように設定 */
  }

  .header-img-mobile {
    display: none;
  }

  .many-people-txt {
    margin-bottom: -5.5em;
  }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
  .youtube {
    background-color: #1a1a1a;
  }
}
