@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");
@font-face {
  font-family: "夜すがら手書きフォント1.2";
  src: url(./Font/夜すがら手書きフォント1.2/yosugaraver1_2.ttf)
    format("truetype");
  font-weight: bold;
  font-style: normal;
}

:root {
  --bg-color: #fff;

  --btn-color: #fdfdfd; /* button color*/
  --btn-bg: #000; /* button bg color*/

  --primary-text-color: #000;
  --header-link-hover: #000;
  --input-hover-bd-color: #000;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* ヘッダーの高さ分のパディングを追加 */
  font-family: "夜すがら手書きフォント1.2", sans-serif;
  /* スクロールアンカーを追加 */
  scroll-snap-type: y proximity;
}

section {
  scroll-snap-align: start;
  scroll-margin-top: 80px;
}

header {
  /* background-color: #fff;
    color: #000; */
  color: #4b4b4b;
}

header > .collapsible-header {
  display: flex;
  gap: 1rem;
  width: 100%;
  background-color: inherit;
  place-content: center;
  overflow: hidden;
  transition: width 0.3s ease;
}

.animated-collapse {
  transition: width 0.3s ease;
}

.header-links {
  display: flex;
  align-items: center;
  min-width: fit-content;
  border-radius: 5px;
  padding: 5px 10px;
  transition: background-color 0.5s, color 0.5s;
  cursor: pointer;
  text-decoration: none;
}

.header-links:hover {
  color: #000000;
  /* background-color: var(--header-link-hover); */
}

.primary-text-color {
  color: var(--primary-text-color);
}

.signup-img-section {
  background-image: url("../assets/images/home/darkbg.png");
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover;
}

.edge-gradient {
  background: rgb(28, 28, 28);
  background: linear-gradient(
    83deg,
    #ffffff 0%,
    #ffffff00 20%,
    #ffffff00 80%,
    rgb(255, 255, 255) 100%
  );
}

.scroller {
  /* width: max-content;
    flex-wrap: nowrap; */
  animation: scroll 40s forwards linear infinite;
}

.scroller[data-direction="right"] {
  animation-direction: reverse;
}

.scroller[data-direction="left"] {
  animation-direction: forwards;
}

.scroller[data-direction="left"] {
  animation-direction: forwards;
}

.scroller[data-speed="fast"] {
  animation-duration: 30s;
}

.scroller[data-speed="slow"] {
  animation-duration: 80s;
}

.opacity-0 {
  opacity: 0 !important;
}

.opacity-100 {
  opacity: 100 !important;
}

.btn {
  padding: 10px 15px;
  width: max-content;
  border-radius: 5px;
  color: var(--btn-color);
  background-color: var(--btn-bg);
  justify-content: center;
  align-items: center;
  display: flex;
  cursor: pointer;
}

.btn:hover {
}

.btn:disabled {
  cursor: default;
}

.input {
  padding: 10px;
  background-color: transparent;
  border-radius: 5px;
  /* outline: none; */
  min-width: 100px;
  border: 1px solid #818080;
  /* transition: border 0.3s; */
}

.input:active,
.input:focus,
.input:focus-within {
  border: 1px solid var(--input-hover-bd-color) !important;
}

.carousel-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  max-width: 800px;
}

.carousel {
  display: inline-block;
  animation: scroll 10s linear infinite;
}

.carousel-img {
  display: inline-block;
  margin: 0 20px;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.footer-link.header-links {
  color: #000000 !important; /* フッターのリンクを強制的に黒に */
}

.footer-link {
  color: #000000;
  transition: color 0.3s;
}

.footer-link:hover {
  color: #000000;
  opacity: 0.7;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  z-index: 10;
}

/* Position the "next button" to the right */
.next {
  right: 0px;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Style for the collapsible content such as faq commonly known as: accordion */

.faq {
  background-color: #fff;
  color: #000000;
  border: 1px solid #000;
}

.faq-accordion {
  background-color: inherit;
  color: #000000;
  cursor: pointer;
  padding: 15px 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  transition: height 0.4s;
}

.faq .content {
  padding: 0px 18px;
  color: #232323;
  height: max-content;
  overflow: hidden;
  background-color: transparent;
  text-align: justify;
  max-height: 0px;
  transition: max-height 0.4s, padding 0.4s;
}

.faq-accordion .active,
.faq-accordion:hover {
  /* background-color: #2e2c2c; */
}

.scroll-link {
  cursor: pointer;
}

.slideshow-container {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

.swiper-slide img {
  max-height: 240px;
  transition: transform 0.3s ease;
}

.swiper-slide-active img {
  transform: scale(1.05);
}

@media not all and (min-width: 1024px) {
  header .collapsible-header {
    position: fixed;
    right: 0px;
    flex-direction: column;
    opacity: 0;
    height: 100vh;
    min-height: 100vh;
    height: 100dvh;
    width: 0vw;
    justify-content: space-between;
    padding: 5px;
    padding-top: 5%;
    padding-bottom: 5%;
    place-items: end;
    background-color: #040404;
    color: #ffffff;
    overflow-y: auto;
    box-shadow: 3px 0px 3px 2px #9f9f9f;
  }

  .header-links {
    color: rgb(255, 255, 255);
  }
}
