@charset "utf-8";

/* ==========================================
 Common
============================================*/

:root {
  --bs-link-color-rgb: #4550ac;
  --tl: clamp(22px, 2.2vw, 26px);
  --tm: clamp(18px, 1.31vw, 22px);
  --nm: clamp(14px, 1.1vw, 18px);
  --ts: clamp(12px, 0.87vw, 13px);
}

body {
  font-size: 14px;
}

/* ==========================================
 Layout
============================================*/

.container {
  box-shadow: unset;
  max-width: calc(100% - 40px);
  width: 393px;
}

.main {
  padding-block: 50px;
}

/* ==========================================
 Contents
============================================*/

.header {
  background: linear-gradient(var(--g-angle), var(--g-color-0) var(--g-position-0), var(--g-color-1) var(--g-position-1), var(--g-color-2) var(--g-position-2));
  display: flex;
  height: 100px;
  justify-content: center;
  align-items: center;
  --g-color-0: #22e1ff;
  --g-position-0: 0%;
  --g-color-1: #1d8fe1;
  --g-position-1: 49%;
  --g-color-2: #2a18df;
  --g-position-2: 100%;
  --g-color-3: #2a18df;
  --g-position-3: 100%;
  --g-color-4: #2a18df;
  --g-position-4: 100%;
  --g-color-5: #2a18df;
  --g-position-5: 100%;
  --g-color-6: #2a18df;
  --g-position-6: 100%;
  --g-color-7: #2a18df;
  --g-position-7: 100%;
  --g-color-8: #2a18df;
  --g-position-8: 100%;
  --g-color-9: #2a18df;
  --g-position-9: 100%;
  --g-color-10: #2a18df;
  --g-position-10: 100%;
  --g-color-11: #2a18df;
  --g-position-11: 100%;
  --g-angle: 135deg;
}

.page-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-align: center;
}

.logo {
  width: 216px;
  margin-bottom: 30px;
}

.form-label {
  font-size: 15px;
  font-weight: bold;
}

.form-control,
.form-select {
  font-size: 100%;
  padding: 1em;
}

#inputBirthYear {
  width: 6em;
}

#inputBirthMonth,
#inputBirthDate {
  width: 5em;
}

button[type="submit"] {
  background: linear-gradient(var(--g-angle), var(--g-color-0) var(--g-position-0), var(--g-color-1) var(--g-position-1), var(--g-color-2) var(--g-position-2));
  border-radius: 100vh;
  box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0em;
  line-height: 1.4;
  padding: 15px;
  text-align: center;
  border: none;
  width: 100%;
  max-width: 100%;
  --g-color-0: #22e1ff;
  --g-position-0: 0%;
  --g-color-1: #1d8fe1;
  --g-position-1: 48%;
  --g-color-2: #625eb1;
  --g-position-2: 100%;
  --g-color-3: #625eb1;
  --g-position-3: 100%;
  --g-color-4: #625eb1;
  --g-position-4: 100%;
  --g-color-5: #625eb1;
  --g-position-5: 100%;
  --g-color-6: #625eb1;
  --g-position-6: 100%;
  --g-color-7: #625eb1;
  --g-position-7: 100%;
  --g-color-8: #625eb1;
  --g-position-8: 100%;
  --g-color-9: #625eb1;
  --g-position-9: 100%;
  --g-color-10: #625eb1;
  --g-position-10: 100%;
  --g-color-11: #625eb1;
  --g-position-11: 100%;
  --g-angle: -225deg;
  transition: 0.4s cubic-bezier(0.4, 0.4, 0, 1);
}

button[type="submit"]:active {
  background: linear-gradient(var(--g-angle), var(--g-color-0) var(--g-position-0), var(--g-color-1) var(--g-position-1));
  transform: scale(1.1, 1.1);
  --g-color-0: #ff0055;
  --g-position-0: 0%;
  --g-color-1: #f94cff;
  --g-position-1: 100%;
  --g-color-2: #f94cff;
  --g-position-2: 100%;
  --g-color-3: #f94cff;
  --g-position-3: 100%;
  --g-color-4: #f94cff;
  --g-position-4: 100%;
  --g-color-5: #f94cff;
  --g-position-5: 100%;
  --g-color-6: #f94cff;
  --g-position-6: 100%;
  --g-color-7: #f94cff;
  --g-position-7: 100%;
  --g-color-8: #f94cff;
  --g-position-8: 100%;
  --g-color-9: #f94cff;
  --g-position-9: 100%;
  --g-color-10: #f94cff;
  --g-position-10: 100%;
  --g-color-11: #f94cff;
  --g-position-11: 100%;
  --g-angle: 45deg;
}

/*=====================================
ポップオーバー
=====================================*/

.popover {
  display: none;
  position: fixed;
  inset: 0;
  margin: auto;
  max-width: unset;
  width: min(82%, 500px);
  height: fit-content;
}

.popover__inner {
  position: relative;
  padding: 20px;
  border-radius: 20px;
  background-color: #fff;
}

/* .popover:popover-open {
  position: fixed;
  inset: 0;
  margin: auto;
  display: block;
} */

.popover__overlay {
  content: "";
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.popover__close {
  --sz: var(--tm);
  width: var(--sz);
  aspect-ratio: 1;
  position: absolute;
  top: 20px;
  right: 20px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background-color: transparent;
  z-index: 1;
}

.popover__heading {
  font-weight: bold;
  text-align: center;
  font-size: var(--tm);
  margin-bottom: 0.5em;
}

.popover__content {
  max-height: min(82vw, 400px);
  overflow-y: scroll;
}

.popover__content * {
  padding: 0;
  font-size: var(--ts);
  line-height: 1.5;
  margin-bottom: 0;
}

.popover th,
.popover td {
  display: block;
  margin-bottom: 1em;
}

.popover__content > p {
  margin-bottom: 1em;
}

.popover__close::before,
.popover__close::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 2px;
  background-color: #000;
}

.popover__close::before {
  transform: rotate(45deg);
}

.popover__close::after {
  transform: rotate(-45deg);
}

#popoverTrigger {
  padding: 0;
  border: 0;
  background-color: transparent;
  text-decoration: underline;
}
