html {
  overflow-x: hidden;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.8;
  background-color: #fff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}


h1 {
  font-family: 'Anton', sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #000000;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  text-align: center;
  margin-bottom: 1.5rem;
  margin-top: 80px;
}

/* 共通ページヘッダー */
.page-header {
  padding: 60px 20px;
  text-align: center;
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-header h1 {
  font-family: 'Noto Sans JP', sans-serif;
  /* class.css didn't specify font, but access/contact might have. class.css has h1 size 42px. Let's stick to class.css source primarily but ensure font is correct. class.html uses Noto Sans JP. */
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 2px;
  padding-top: 40px;
  margin-bottom: 20px;
  color: #1a1a1a;
  text-shadow: none;
  /* Reset shadow from generic h1 */
  text-transform: none;
  /* Reset transform if needed, though class.css didn't have it. style.css h1 has uppercase. */
  margin-top: 0;
  /* Override generic h1 margin-top */
}

.page-header p {
  font-size: 16px;
  color: #666666;
  letter-spacing: 1px;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  width: auto;
}

.ex1 {
  font-size: 5px;
  line-height: 10px;
}


.center {
  text-align: center;
}

.back-home {
  text-align: center;
}

.cta-button {
  background-color: #e63946;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #c02735;
  transform: scale(1.1, 1.1);
  transition: all 0.3s ease
}

.slideshow {
  position: relative;
  width: 100%;
  height: 500px;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: fade 9s infinite;
}

.slide:nth-child(1) {
  animation-delay: 0s;
}

.slide:nth-child(2) {
  animation-delay: 3s;
}

.slide:nth-child(3) {
  animation-delay: 6s;
}



@keyframes fade {
  0% {
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  33% {
    opacity: 1;
  }

  41% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.social-buttons {
  padding: 40px 0;
  text-align: center;
}

.social-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 30px;
  margin: 0 10px;
}

.social-button svg {
  display: block;
  margin: auto;
  transform: translate(-5%, 5%);
}


/* パソコン用の追加スタイル */
@media (min-width: 1024px) {
  body {
    padding-top: 80px;
    /* ヘッダーの高さ分の余白を確保 */
    background-color: #fff;
  }

  .about-section {
    margin: 60px auto;
    max-width: 1000px;
    /* パソコンでは幅を広く */
    padding: 0px 40px;
    font-size: 16px;
  }

  .about-section h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .about-section p {
    font-size: 16px;
    line-height: 1.8;
  }

  .about-section ul {
    font-size: 16px;
  }

  .slideshow {
    height: 1000px;
  }


  h1 {
    font-size: 2.5rem;
    margin-top: 100px;
    margin-bottom: 2rem;
  }


  .social-buttons {
    margin: 60px 0 40px 0;
  }

  .social-button {
    width: 60px;
    height: 60px;
    margin: 0 15px;
  }

  .sns-icon {
    width: 40px;
    height: 40px;
  }

  #fb-root {
    margin: 60px 0;
  }

  .center-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
  }
}

/* タブレット用の調整 */
@media (min-width: 768px) {
  body {
    padding-top: 80px;
  }

  .about-section {
    max-width: 900px;
    padding: 0px 30px;
  }

  .slideshow {
    height: 400px;
    margin: 0px 0px 40px 0px;
  }

  /* 帯関連のレスポンシブ設定は削除しました */
}

/* スマホ用（600px以下） */
@media (max-width: 874px) {
  .slideshow {
    height: 1000px;
    margin: -350px 0px;
  }
}

/* スマホ用（768px以下） */
@media (max-width: 768px) {
  .page-header {
    padding: 40px 20px;
  }

  .page-header h1 {
    font-size: 28px;
    padding-top: 20px;
  }

  .page-header p {
    max-width: 19em;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    /* Or center, depending on preference, but usually left for readable blocks */
    word-wrap: break-word;
    display: inline-block;
    /* Helps with centering the block itself while keeping text left aligned if desired, or just block */
  }
}