/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Form Elements Reset (from Tailwind CSS) */
button,
input,
textarea,
select {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

/* Base Styles (from globals.css) */
html,
body {
  width: 100%;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  background-color: #f6f8fa;
  color: rgba(35, 45, 58, 0.8);
  word-break: break-all;
  font-family:
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Noto Sans JP",
    "Noto Sans CJK JP",
    "BIZ UDPGothic",
    Meiryo,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

@media (min-width: 1024px) {
  html,
  body {
    font-size: 18px;
  }
}

a {
  text-underline-offset: 0.25em;
}

div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
img,
header,
footer,
nav,
section,
article,
p,
blockquote,
span,
input,
textarea,
figure,
figcaption,
main,
pre {
  word-break: break-word;
}

/* Hide password reveal/clear buttons in IE/Edge */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

body {
  min-height: 100vh;
}

/* Typography - Font Sizes */
.text-h1 {
  font-size: 2.125rem;
  line-height: 1.4;
  font-weight: 700;
}

.text-h2 {
  font-size: 1.875rem;
  line-height: 1.4;
  font-weight: 700;
}

.text-h3 {
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 700;
}

.text-h4 {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
}

.text-h5 {
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 700;
}

.text-base1-title {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
}

.text-base2-title {
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 700;
}

.text-base3-title {
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 700;
}

.text-base1 {
  font-size: 1rem;
}

.text-base2 {
  font-size: 0.875rem;
}

.text-base3 {
  font-size: 0.75rem;
}

.text-button {
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.5px;
  font-weight: 700;
}

/* Colors - Text Colors */
.text-accent-primary {
  color: #0080de;
}

.text-accent-secondary {
  color: rgba(0, 128, 222, 0.1);
}

.text-caution-primary {
  color: #f12222;
}

.text-background-header {
  color: #232d3a;
}

.text-background-page {
  color: #f6f8fa;
}

.text-main-100 {
  color: rgba(35, 45, 58, 1);
}

.text-main-80 {
  color: rgba(35, 45, 58, 0.8);
}

.text-main-40 {
  color: rgba(35, 45, 58, 0.4);
}

.text-main-10 {
  color: rgba(35, 45, 58, 0.1);
}

.text-main-5 {
  color: rgba(35, 45, 58, 0.05);
}

.text-base-100 {
  color: rgba(255, 255, 255, 1);
}

.text-base-80 {
  color: rgba(255, 255, 255, 0.8);
}

.text-base-40 {
  color: rgba(255, 255, 255, 0.4);
}

/* Font Weight */
.font-bold {
  font-weight: 700;
}

.font-normal {
  font-weight: 400;
}

.font-light {
  font-weight: 300;
}

/* Text Align */
.text-left {
  text-align: left;
}

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

.text-right {
  text-align: right;
}

.text-justify {
  text-align: justify;
}

/* Text Decoration */
.underline {
  text-decoration: underline;
}

.no-underline {
  text-decoration: none;
}

.line-through {
  text-decoration: line-through;
}

/* Colors - Background Colors */
.bg-accent-primary {
  background-color: #0080de;
}

.bg-accent-secondary {
  background-color: rgba(0, 128, 222, 0.1);
}

.bg-caution-primary {
  background-color: #f12222;
}

.bg-background-header {
  background-color: #232d3a;
}

.bg-background-page {
  background-color: #f6f8fa;
}

.bg-main-100 {
  background-color: rgba(35, 45, 58, 1);
}

.bg-main-80 {
  background-color: rgba(35, 45, 58, 0.8);
}

.bg-main-40 {
  background-color: rgba(35, 45, 58, 0.4);
}

.bg-main-10 {
  background-color: rgba(35, 45, 58, 0.1);
}

.bg-main-5 {
  background-color: rgba(35, 45, 58, 0.05);
}

.bg-base-100 {
  background-color: rgba(255, 255, 255, 1);
}

.bg-base-80 {
  background-color: rgba(255, 255, 255, 0.8);
}

.bg-base-40 {
  background-color: rgba(255, 255, 255, 0.4);
}

/* Layout Container */
.layout-container {
  display: grid;
  min-height: 100vh;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
}

/* Header Wrapper */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Header */
.header {
  position: relative;
  height: 3.5rem;
  width: 100%;
  background-color: rgba(255, 255, 255, 1);
}

/* Logo */
.logo {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  width: 8rem;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Header Border */
.header-border {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background-color: rgba(35, 45, 58, 0.1);
}

/* Content Area */
.content {
  position: relative;
}

.content-placeholder {
  padding: 2rem;
  text-align: center;
  color: rgba(35, 45, 58, 0.8);
}

/* BigBar */
.bigbar {
  position: relative;
  min-height: 12rem;
  width: 100%;
  padding-bottom: 2rem;
  padding-top: 4rem;
}

.bigbar-background-color {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(35, 45, 58, 1);
}

.bigbar-background-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  height: 100%;
  max-width: 800px;
  object-fit: cover;
}

.bigbar-content {
  position: relative;
  width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
  max-width: 45rem;
}

.bigbar-title {
  word-break: keep-all;
  font-size: 1.875rem;
  line-height: 1.4;
  font-weight: 700;
  color: rgba(255, 255, 255, 1);
}

.bigbar-title span {
  display: inline-block;
}

.bigbar-comment {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 1);
}

.bigbar-children {
  margin-top: 1rem;
}

/* Footer Wrapper */
.footer-wrapper {
  /* Empty wrapper, just for grid structure */
}

/* Footer */
.footer {
  position: relative;
  min-height: 12rem;
  overflow: hidden;
}

/* Footer Background */
.footer-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("./footer_background.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Spacer */
.spacer-4 {
  height: 4rem;
}

.spacer-3 {
  height: 3rem;
}

.spacer-2 {
  height: 2rem;
}

.spacer-1-5 {
  height: 1.5rem;
}

.spacer-1 {
  height: 1rem;
}

.spacer-0-5 {
  height: 0.5rem;
}

.spacer-0-25 {
  height: 0.25rem;
}

/* BasicContainer */
.basic-container {
  position: relative;
  width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
  max-width: 64rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(35, 45, 58, 0.1);
  background-color: rgba(255, 255, 255, 1);
}

.basic-container-inner {
  width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
  max-width: 45rem;
}

/* FormValidationMessage */
.form-validation-message {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  color: #f12222;
}

/* AlertMessageBox */
.alert-message-box {
  margin-bottom: 3rem;
  border-radius: 0.5rem;
  border: 2px solid #f12222;
  background-color: rgba(255, 255, 255, 1);
  padding: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  color: #f12222;
}

/* Footer Content */
.footer-content {
  position: relative;
}

/* Footer Logo */
.footer-logo {
  margin-left: auto;
  margin-right: auto;
  height: 1.5rem;
  width: auto;
}

.footer-logo img {
  display: block;
  height: 100%;
  width: auto;
  margin: 0 auto;
}

/* FormInputText */
.form-input-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 2px solid rgba(35, 45, 58, 0.1);
}

.form-input-wrapper.error {
  border-color: #f12222;
}

.form-input-wrapper:focus-within {
  border-color: rgba(35, 45, 58, 0.4);
}

.form-input-wrapper.error:focus-within {
  border-color: #f12222;
}

.form-input-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 1);
}

.form-input-field {
  position: relative;
  display: block;
  height: 3.5rem;
  width: 100%;
  appearance: none;
  background-color: rgba(255, 255, 255, 1);
  padding: 1.25rem 1rem 0 1rem;
  font-weight: 600;
  color: rgba(35, 45, 58, 1);
  outline: none;
  border: none;
}

.form-input-field:-webkit-autofill,
.form-input-field:-webkit-autofill:hover,
.form-input-field:-webkit-autofill:focus,
.form-input-field:autofill,
.form-input-field:autofill:hover,
.form-input-field:autofill:focus,
.form-input-field:-moz-autofill,
.form-input-field:-moz-autofill:hover,
.form-input-field:-moz-autofill:focus {
  color: rgba(35, 45, 58, 1);
  -webkit-text-fill-color: rgba(35, 45, 58, 1);
  font-weight: 600;
}

.form-input-field::placeholder {
  font-weight: 400;
  color: rgba(35, 45, 58, 0.4);
  opacity: 0;
  transition: opacity 0.2s ease-linear;
}

.form-input-field:focus::placeholder {
  opacity: 1;
}

.form-input-label {
  pointer-events: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1rem;
  right: 2rem;
  margin-top: auto;
  margin-bottom: auto;
  display: block;
  height: 1em;
  transform-origin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(35, 45, 58, 0.8);
  transition: transform 0.2s ease;
}

.form-input-field:focus + .form-input-label,
.form-input-field:not(:placeholder-shown) + .form-input-label,
.form-input-field:-webkit-autofill + .form-input-label,
.form-input-field:autofill + .form-input-label {
  transform: translateY(-1rem) scale(0.85);
}

.form-input-password-toggle {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  opacity: 0.8;
}

.form-input-password-toggle img {
  width: 100%;
  height: 100%;
}

/* FormCheckButton */
.form-check-button {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  vertical-align: middle;
  outline: none;
  cursor: pointer;
}

.form-check-button::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 0.25rem;
  border: 2px solid rgba(35, 45, 58, 0.8);
  background-color: transparent;
  box-sizing: border-box;
}

.form-check-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  display: block;
  height: 0.5rem;
  width: 0.25rem;
  transform: rotate(45deg);
  border-bottom: 0 solid transparent;
  border-right: 0 solid transparent;
}

.form-check-button:checked::before {
  background-color: #0080de;
  border-color: #0080de;
}

.form-check-button:checked::after {
  border-bottom: 2px solid rgba(255, 255, 255, 1);
  border-right: 2px solid rgba(255, 255, 255, 1);
}

/* ButtonPrimary */
.button-primary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  width: 100%;
  appearance: none;
  border-radius: 0.5rem;
  padding: 0.75rem;
  border: none;
  cursor: pointer;
}

.button-primary-fit {
  width: fit-content;
}

.button-primary-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0.5rem;
  background-color: #0080de;
  transition: filter 0.15s;
}

.button-primary:hover .button-primary-bg {
  filter: brightness(1.1);
}

.button-primary-loading-wrapper {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0.5rem;
  margin-top: auto;
  margin-bottom: auto;
  width: 1rem;
  height: 1rem;
}

.button-primary-loading-spinner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid;
  border-top-color: rgba(255, 255, 255, 1);
  border-right-color: rgba(255, 255, 255, 0.4);
  border-bottom-color: rgba(255, 255, 255, 0.4);
  border-left-color: rgba(255, 255, 255, 1);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.button-primary-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  width: fit-content;
}

.button-primary-text {
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 1);
}

/* FormSubmitButtons Container */
.form-submit-buttons {
  margin-left: auto;
  margin-right: auto;
  display: grid;
  width: 100%;
  max-width: 20rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  justify-items: center;
  gap: 1rem;
}

/* Divider */
.divider {
  border-top: 1px solid rgba(35, 45, 58, 0.1);
}

/* Border Radius */
.rounded-4 {
  border-radius: 0.25rem;
}

.rounded-8 {
  border-radius: 0.5rem;
}

.rounded-10 {
  border-radius: 0.625rem;
}

/* Margin */
.m-0 {
  margin: 0;
}

.m-0-25 {
  margin: 0.25rem;
}

.m-0-5 {
  margin: 0.5rem;
}

.m-0-75 {
  margin: 0.75rem;
}

.m-1 {
  margin: 1rem;
}

.m-1-5 {
  margin: 1.5rem;
}

.m-2 {
  margin: 2rem;
}

.m-3 {
  margin: 3rem;
}

.m-4 {
  margin: 4rem;
}

/* Margin X (left and right) */
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mx-0 {
  margin-left: 0;
  margin-right: 0;
}

.mx-0-5 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.mx-1 {
  margin-left: 1rem;
  margin-right: 1rem;
}

.mx-1-5 {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.mx-2 {
  margin-left: 2rem;
  margin-right: 2rem;
}

/* Margin Y (top and bottom) */
.my-auto {
  margin-top: auto;
  margin-bottom: auto;
}

.my-0 {
  margin-top: 0;
  margin-bottom: 0;
}

.my-0-5 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.my-1 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.my-1-5 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.my-2 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Individual Margin */
.mt-0 {
  margin-top: 0;
}

.mt-0-5 {
  margin-top: 0.5rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mr-0 {
  margin-right: 0;
}

.mr-1 {
  margin-right: 1rem;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.ml-0 {
  margin-left: 0;
}

.ml-1 {
  margin-left: 1rem;
}

/* Padding */
.p-0-25 {
  padding: 0.25rem;
}

.p-0-5 {
  padding: 0.5rem;
}

.p-0-75 {
  padding: 0.75rem;
}

.p-1 {
  padding: 1rem;
}

.p-1-5 {
  padding: 1.5rem;
}

.p-2 {
  padding: 2rem;
}

.p-3 {
  padding: 3rem;
}

.p-4 {
  padding: 4rem;
}

/* Padding X (left and right) */
.px-0-5 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-1 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-1-5 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-2 {
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Padding Y (top and bottom) */
.py-0-5 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-1 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-1-5 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-2 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Individual Padding */
.pt-1 {
  padding-top: 1rem;
}

.pr-1 {
  padding-right: 1rem;
}

.pb-1 {
  padding-bottom: 1rem;
}

.pl-1 {
  padding-left: 1rem;
}

/* Position */
.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
}

/* Position Offset */
.top-0 {
  top: 0;
}

.right-0 {
  right: 0;
}

.bottom-0 {
  bottom: 0;
}

.left-0 {
  left: 0;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* Width */
.w-full {
  width: 100%;
}

.w-fit {
  width: fit-content;
}

/* Height */
.h-full {
  height: 100%;
}

.h-fit {
  height: fit-content;
}

/* Object Fit */
.object-cover {
  object-fit: cover;
}

.object-contain {
  object-fit: contain;
}

/* Opacity */
.opacity-0 {
  opacity: 0;
}

.opacity-20 {
  opacity: 0.2;
}

.opacity-40 {
  opacity: 0.4;
}

.opacity-60 {
  opacity: 0.6;
}

.opacity-80 {
  opacity: 0.8;
}

.opacity-100 {
  opacity: 1;
}