/* teko-regular*/
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Teko";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/teko/teko-v22-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

html {
  font-size: 16px;
  background-color: #f0ffe3;
  font-family: "Teko", sans-serif;
}

body {
  margin: 0;
  overflow-y: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
a,
p {
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

.flex {
  display: flex;
}

.text-right {
  display: block;
  width: 100%;
  text-align: right;
}

.margin-x-auto {
  margin-left: auto;
  margin-right: auto;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.layout-wrapper {
  display: flex;
}

/* 共通CSS */
/* main部 */
.site-content {
  min-height: 100dvh;
  width: calc(100% - 240px);
  padding: 3rem;
  box-sizing: border-box;
  margin-left: 240px;
}

/* 背景右上画像 */
.background-image-top {
  position: absolute;
  top: -60px;
  right: 0;
  width: 300px;
  z-index: -1;
}

/* 背景左下画像 */
.background-image-bottom {
  position: absolute;
  bottom: -7rem;
  left: -3rem;
  width: 300px;
  z-index: -1;
}

/* セクション共通 */
.page-section {
  max-width: 800px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
}

.section-title {
  font-size: 2rem;
}

.section-content {
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* ページタイトル */
.page-title-section {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.page-title {
  font-size: 3rem;
  text-align: center;
}

.page-title-comment {
  font-size: 1.5rem;
  font-weight: normal;
  text-align: center;
  margin: 0;
}

/* アニメーション */
/* フェードイン(下から) */
.animation-fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* フェードイン(上から) */
.animation-fade-in-down {
  animation: fadeInDown 1s ease-out forwards;
}

@keyframes fadeInDown {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* フェードイン(右から) */
.animation-fade-in-right {
  animation: fadeInRight 1s ease-out forwards;
}

@keyframes fadeInRight {
  0% {
    transform: translateX(20px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* フェードイン(左から) */
.animation-fade-in-left {
  animation: fadeInLeft 1s ease-out forwards;
}

@keyframes fadeInLeft {
  0% {
    transform: translateX(-20px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ワイプ */
.animation-wipe {
  animation: wipe-in-left 1.5s ease-out forwards;
}
@keyframes wipe-in-left {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0); /* 左から隠す */
  }
  60% {
    opacity: 1;
    clip-path: inset(0 0 0 0); /* 完全に表示 */
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@media screen and (max-width: 767px) {
  html {
    font-size: 14px;
  }
	
  /* 共通CSS */
  .layout-wrapper {
    display: block;
  }

  .site-content {
    position: static;
    width: 100%;
    padding: 50px 30px 0 30px;
    margin-left: 0;
    overflow: visible;
  }

  .page-title-section {
    gap: 0;
    margin-bottom: 1rem;
  }

  .page-title {
    font-size: 3.5rem !important;
    padding: 0;
  }

  .page-title-comment {
    font-size: 1.25rem !important;
    width: 100% !important;
    text-align: center !important;
  }
}
