/*
 * ===============================================
 * common
 * ===============================================
 */
html {
  font-family: 'Noto Sans JP', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: 0.05em;
  background: #00339f;
}

section {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto;
  background-color: #fff;
}

mark {
  font-weight: 700;
  color: red;
  background: linear-gradient(transparent 70%, yellow 70%);
}

img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/*
 * ===============================================
 * classes
 * ===============================================
 */

.link-button {
  position: relative;
  display: flex;
  width: calc(100% - 40px);
  max-width: 420px;
  margin: 0 auto;
  transform: translateY(-50%);

  /* animation: anime-effect-shine-first 3s infinite; */
}

/* 
.link-button::after,
.link-button::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  content: '';
  background: #fff;
  background: linear-gradient(110deg, hsl(0deg 0% 100% / 0%) 25%, #fff 45%, #fff 55%, hsl(0deg 0% 100% / 0%) 75%);
  opacity: 0.7;
  transform: translateX(-100%);
}

.link-button::before {
  animation: anime-effect-shine-second 3s infinite;
}

.link-button::after {
  animation: anime-effect-shine-second 3s 0.3s infinite;
} */

.link-button figure {
  width: 100%;
  box-shadow: 5px 5px 0 rgb(0 0 0 / 50%);
  transition: 300ms;
  animation: clickable 3s infinite;
}

.link-button:hover figure {
  box-shadow: 2px 2px 0 rgb(0 0 0 / 50%);
}

/* .link-button figure img {
  animation: anime-effect-shine-first 3s infinite;
} */

.medal {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: -60px auto 0;
  font-size: 27px;
  font-weight: 700;
  color: white;
  background-color: black;
  border-radius: 9999px;
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

.medal::before {
  position: absolute;
  inset: 0;
  width: 64px;
  height: 64px;
  margin: auto;
  content: '';
  border: 1px solid white;
  border-radius: 9999px;
}

.medal.is-active {
  opacity: 1;
  transform: scale(1);
}

.animate-bounce {
  animation: bounce 1s infinite;
}

/* 
 * ===============================================
 * main-visual
  * ===============================================
 */
#main-visual {
  position: relative;
  max-width: none;
  padding: 0;
  background: #00339f;
}

#main-visual > figure {
  overflow: hidden;
  background: #00339f;
}

#main-visual > figure img {
  width: calc(100% + 1px);
}

#main-visual .effect {
  position: absolute;
  width: 21.75%;
  height: 8%;
  overflow: hidden;

  /* background: rgb(0 0 0 / 25%); */
}

#main-visual .effect-01 {
  top: 63.75%;
  left: 15.25%;
}

#main-visual .effect-02 {
  top: 63.75%;
  left: 39%;
}

#main-visual .effect-03 {
  top: 63.75%;
  left: 62.75%;
}

@media screen and (width <= 768px) {
  #main-visual .effect {
    width: 38.25%;
    height: 6.25%;
  }

  #main-visual .effect-01 {
    top: 68.75%;
    left: 10%;
  }

  #main-visual .effect-02 {
    top: 68.75%;
    left: 51.5%;
  }

  #main-visual .effect-03 {
    top: 76.75%;
    left: 30.5%;
    width: 38.75%;
    height: 6.5%;
  }
}

#main-visual .effect::after,
#main-visual .effect::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  content: '';
  background: #fff;
  background: linear-gradient(110deg, hsl(0deg 0% 100% / 0%) 25%, #fff 45%, #fff 55%, hsl(0deg 0% 100% / 0%) 75%);
  transform: translateX(-100%);
}

#main-visual .effect::before {
  animation: anime-effect-shine-second 3s infinite;
}

#main-visual .effect::after {
  animation: anime-effect-shine-second 3s 0.3s infinite;
}

/* 
 * ===============================================
 * news
  * ===============================================
 */
#news {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  padding-bottom: 25px;
  background-image: url('../_images/news-bg.webp');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
}

#news .news-tip {
  width: 80px;
  margin-top: -40px;
}

#news .news-title {
  /* 360-100:24-36 */
  font-size: clamp(1.5rem, 1.0781rem + 1.875vw, 2.25rem);
  font-weight: 700;
  text-align: center;
}

#news .news-title span {
  display: inline-block;
}

#news .news-description {
  max-width: 700px;

  /* 360-100:16-20 */
  font-size: clamp(1rem, 0.8594rem + 0.625vw, 1.25rem);
  line-height: 1.635;
}

#news .news-graph {
  width: 100%;
  max-width: 700px;
  padding: 25px;
  background-color: #fff;
}

#news .news-graph figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: #808080;
  text-align: right;
}

/* 
 * ===============================================
 * point 1
  * ===============================================
 */
#point-1 {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  padding-bottom: 30px;
  overflow-x: hidden;
}

#point-1 .point-1-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: calc(100% + 40px);
  padding: 30px 0 120px;
  color: white;
  background-color: red;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 70px), 50% 100%, 0 calc(100% - 70px));
}

#point-1 .point-1-head-text-small {
  /* 360-100:20-30 */
  font-size: clamp(1.25rem, 0.8984rem + 1.5625vw, 1.875rem);
}

#point-1 .point-1-head-text-large {
  position: relative;
  z-index: 1;
  width: fit-content;

  /* 360-100:40-60 */
  font-size: clamp(2.5rem, 2.0078rem + 2.1875vw, 3.375rem);
  font-weight: 700;
}

#point-1 .point-1-head-text-large::after {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 12px;
  content: '';
  background-color: yellow;
  border-radius: 9999px;
  clip-path: inset(0 100% 0 0);
  transform: rotate(-2deg) translateY(20px);
  transition: clip-path 300ms ease;
  transition-delay: 300ms;
}

#point-1 .point-1-head-text-large.is-active::after {
  clip-path: inset(0 0 0 0);
}

#point-1 .point-1-title {
  max-width: 700px;
  margin: 0 auto;

  /* 360-100:32-46 */
  font-size: clamp(2rem, 1.4375rem + 2.5vw, 3rem);
  font-weight: 700;
  text-align: center;
}

#point-1 .point-1-title span {
  display: inline-block;
}

#point-1 .point-1-description {
  max-width: 700px;

  /* 360-100:16-20 */
  font-size: clamp(1rem, 0.8594rem + 0.625vw, 1.25rem);
  line-height: 1.635;
}

#point-1 .point-1-supply {
  position: relative;
  width: calc(100% + 40px);
  max-width: 700px;
  padding: 15px 0;
  margin-right: -40px;
  overflow: hidden;
}

#point-1 .point-1-supply-label {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50%;
  max-width: 330px;
  transform: translateX(100%);
  transition: transform 500ms ease;
  transition-delay: 300ms;
}

#point-1 .point-1-supply-label.is-active {
  transform: translateX(0);
}

#point-1 .point-1-table {
  width: 100%;
  max-width: 700px;
}

/*
 * ===============================================
 * point 2
 * ===============================================
 */
#point-2 {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  padding-bottom: 30px;
  background: #e8eff5;
}

#point-2 .point-2-head {
  width: calc(100% + 40px);
  padding: 0 0 100px;
  background-color: white;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 70px), 50% 100%, 0 calc(100% - 70px));
}

#point-2 .point-2-image {
  position: relative;
  max-width: 450px;
  margin: 0 auto;
}

#point-2 .point-2-image::after {
  position: absolute;
  right: 2px;
  bottom: 2px;
  font-size: 14px;
  color: white;
  text-shadow: 0 0 2px black;
  content: 'image';
}

#point-2 .point-2-title {
  max-width: 740px;
  margin: 0 auto;

  /* 360-100:32-46 */
  font-size: clamp(2rem, 1.4375rem + 2.5vw, 3rem);
  font-weight: 700;
  text-align: center;
}

#point-2 .point-2-title span {
  display: inline-block;
}

#point-2 .point-2-description {
  max-width: 700px;

  /* 360-100:16-20 */
  font-size: clamp(1rem, 0.8594rem + 0.625vw, 1.25rem);
  text-align: center;
}

#point-2 .point-2-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 600px;
  overflow: hidden;
}

#point-2 .point-2-list .point-2-list-item {
  padding: 10px 15px;
  padding-left: calc(1.25em + 5px);

  /* 360-100:16-20 */
  font-size: clamp(1rem, 0.8594rem + 0.625vw, 1.25rem);
  color: #00329f;
  text-indent: -1.25em;
  letter-spacing: 0;
  background-color: white;
  border: 1px solid currentcolor;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(90%);
  transition:
    transform 500ms ease,
    opacity 500ms ease;
}

#point-2 .point-2-list .point-2-list-item:nth-child(1) {
  transition-delay: 0ms;
}

#point-2 .point-2-list .point-2-list-item:nth-child(2) {
  transition-delay: 100ms;
}

#point-2 .point-2-list .point-2-list-item:nth-child(3) {
  transition-delay: 200ms;
}

#point-2 .point-2-list .point-2-list-item:nth-child(4) {
  transition-delay: 300ms;
}

#point-2 .point-2-list li.is-active {
  opacity: 1;
  transform: translateY(0);
}

#point-2 .point-2-note {
  max-width: 600px;

  /* 360-100:14-18 */
  font-size: clamp(0.875rem, 0.7344rem + 0.625vw, 1.125rem);
  line-height: 1.635;
}

/*
 * ===============================================
 * point 3
 * ===============================================
 */
#point-3 {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  padding-bottom: 100px;
  background: white;
  background-image: linear-gradient(0deg, rgb(255 255 195 / 100%) 0%, white 35%);
}

#point-3 .point-3-head {
  width: calc(100% + 40px);
  padding: 0 0 100px;
  background-color: #e8eff5;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 70px), 50% 100%, 0 calc(100% - 70px));
}

#point-3 .point-3-image {
  position: relative;
  max-width: 450px;
  margin: 0 auto;
}

#point-3 .point-3-image::after {
  position: absolute;
  right: 2px;
  bottom: 2px;
  font-size: 14px;
  color: black;
  content: 'image';
}

#point-3 .point-3-title {
  max-width: 700px;
  margin: 0 auto;

  /* 360-100:32-46 */
  font-size: clamp(2rem, 1.4375rem + 2.5vw, 3rem);
  font-weight: 700;
  text-align: center;
}

#point-3 .point-3-title span {
  display: inline-block;
}

#point-3 .point-3-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 500px;
  overflow: hidden;
}

#point-3 .point-3-list li {
  display: flex;
  gap: 10px;
  align-items: stretch;
  opacity: 0;
  transform: translateY(90%);
  transition:
    transform 500ms ease,
    opacity 500ms ease;
}

#point-3 .point-3-list .point-3-list-item:nth-child(1) {
  transition-delay: 0ms;
}

#point-3 .point-3-list .point-3-list-item:nth-child(2) {
  transition-delay: 100ms;
}

#point-3 .point-3-list .point-3-list-item:nth-child(3) {
  transition-delay: 200ms;
}

#point-3 .point-3-list li.is-active {
  opacity: 1;
  transform: translateY(0);
}

#point-3 .point-3-list li figure {
  flex-shrink: 0;
  width: 140px;
}

#point-3 .point-3-list li div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 27px;
}

#point-3 .point-3-list-text-large {
  /* 360-100:18-24 */
  font-size: clamp(1.125rem, 0.9141rem + 0.9375vw, 1.5rem);
  font-weight: 600;
}

#point-3 .point-3-list-text-small {
  margin-top: 5px;
  font-size: 12px;
}

/*
 * ===============================================
 * flow
 * ===============================================
 */
#flow {
  position: relative;
  padding-bottom: 30px;
  background-color: #63b6cd;
}

#flow::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: auto;
  pointer-events: none;
  content: '';
  background-image: url('../_images/flow-bg.webp');
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: auto 200px;
}

#flow .flow-title {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

#flow .flow-title-text {
  /* 360-100:32-46 */
  font-size: clamp(2rem, 1.4375rem + 2.5vw, 3rem);
  font-weight: 700;
  color: white;
  text-align: center;
}

#flow .flow-title-icon {
  width: 64px;
}

#flow .flow-steps {
  max-width: 700px;
  padding: 30px 20px 150px;
  margin: 25px auto 0;
  background-color: white;
  background-image: linear-gradient(#efefef 1px, transparent 1px), linear-gradient(to right, #efefef 1px, transparent 1px);
  background-position: -20px -20px;
  background-size: 40px 40px;
}

#flow .flow-steps-block {
  max-width: 450px;
  margin: 0 auto;
  opacity: 0;
  transition: opacity 500ms ease;
  transition-delay: 200ms;
}

#flow .flow-steps-block.is-active {
  opacity: 1;
}

#flow .flow-steps-block::after {
  display: flex;
  width: 60px;
  height: 30px;
  margin: 25px auto;
  content: '';
  background-color: #63b6cd;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
}

#flow .flow-steps-block:last-child::after {
  display: none;
}

#flow .flow-steps-block dt {
  /* 360-100:21-28 */
  font-size: clamp(1.3125rem, 1.0664rem + 1.0938vw, 1.75rem);
}

#flow .flow-steps-block dd {
  margin-top: 10px;

  /* 360-100:16-18 */
  font-size: clamp(1rem, 0.9297rem + 0.3125vw, 1.125rem);
  line-height: 1.635;
}

/*
 * ===============================================
 * faq
 * ===============================================
 */
#faq {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  padding-top: 30px;
  padding-bottom: 60px;
}

#faq .faq-label {
  /* 360-100:18-32 */
  font-size: clamp(1.125rem, 0.9141rem + 0.9375vw, 1.5rem);
  font-weight: 600;
  color: #00329f;
  text-align: center;
}

#faq .faq-title {
  margin-top: 10px;

  /* 360-100:32-44 */
  font-size: clamp(2rem, 1.5781rem + 1.875vw, 2.75rem);
  font-weight: 700;
  text-align: center;
}

#faq .faq-item {
  width: 100%;
  max-width: 700px;
  margin-top: 30px;
  background: #fff;
  border: 2px solid #333;
}

#faq .faq-question {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  color: #fff;
  cursor: pointer;
  background-color: #333;
}

#faq .faq-question-label {
  position: absolute;
  top: 0;
  left: -2px;
  padding: 5px 20px;
  font-size: 1.2rem;
  background-color: #333;
  border-radius: 4px 4px 0 0;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  transform: translateY(-100%);
}

#faq .faq-question-text {
  /* 360-100:16-18 */
  font-size: clamp(1rem, 0.9297rem + 0.3125vw, 1.125rem);
  font-weight: 600;
}

#faq .faq-question-icon {
  width: 20px;
  height: 20px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translateY(-5px);
  transition: transform 300ms ease;
}

#faq details[open] .faq-question-icon {
  transform: rotate(225deg) translateY(-5px);
}

#faq .faq-answer {
  padding: 20px;
}

#faq .faq-answer-header {
  display: flex;
  gap: 15px;
  align-items: center;
}

#faq .faq-answer-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;

  /* 360-100:16-18 */
  font-size: clamp(1rem, 0.9297rem + 0.3125vw, 1.125rem);
  font-weight: bold;
  color: #fff;
  background-color: #ec1c24;
}

#faq .faq-answer-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #ec1c24;
}

#faq .faq-answer-body {
  margin-top: 10px;

  /* 360-100:16-18 */
  font-size: clamp(1rem, 0.9297rem + 0.3125vw, 1.125rem);
  line-height: 1.635;
}

/*
 * ===============================================
 * footer
 * ===============================================
 */
footer {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  padding: 30px 0;
  background-color: #e5e5e5;
}

footer figure.logo {
  max-width: 300px;
}

footer ul.links {
  display: flex;
  justify-content: center;
}

footer ul.links li.links-item {
  padding: 0 5px;
  border-left: 1px solid #000;
}

footer ul.links li.links-item:first-child {
  border: 0;
}

footer ul.links li.links-item a {
  font-size: 14px;
}

footer ul.links li.links-item a:hover {
  text-decoration: underline;
}

footer p {
  font-size: 12px;
  color: #808080;
}

/*
 * ===============================================
 * bottom-menu
 * ===============================================
 */
#bottom-menu {
  position: sticky;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: flex;
  gap: 1px;
  width: 100%;
  background: #fff;
  border-top: 1px solid white;
  box-shadow: -3px 0 3px rgb(0 0 0 / 25%);
}

#bottom-menu a {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  height: 80px;
  font-weight: 500;
  color: white;
  background: red;
}

#bottom-menu a img {
  width: 36px;
}

@media screen and (width > 768px) {
  #bottom-menu {
    display: none;
  }
}

/* 
 * ===============================================
 * floating-button
 * ===============================================
 */
#floating-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  font-size: 20px;
  font-weight: bold;
  color: white;
  background-color: red;
  border: 2px solid yellow;
  border-radius: 9999px;
  box-shadow: 0 0 0 6px red;
  transition: transform 300ms ease;
}

#floating-button:hover {
  transform: scale(1.1);
}

@media screen and (width <= 768px) {
  #floating-button {
    display: none;
  }
}

/* 
 * ===============================================
 * animation
 * ===============================================
 */
@keyframes anime-effect-shine-first {
  0% {
    filter: brightness(1);
  }

  15% {
    filter: brightness(1.2);
  }

  60% {
    filter: brightness(1.2);
  }

  100% {
    filter: brightness(1);
  }
}

@keyframes anime-effect-shine-second {
  0% {
    transform: translateX(-100%);
  }

  25% {
    transform: translateX(100%);
  }

  50% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes clickable {
  0% {
    transform: scale(1);
  }

  5% {
    transform: scale(0.95);
  }

  10% {
    transform: scale(1);
  }

  15% {
    transform: scale(0.95);
  }

  20% {
    transform: scale(1);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }

  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}
