:root {
  --color-primary: #1f97c8;
  --color-accent: #e8803f;
  --color-accent-hover: #db641a;
  --color-white-100: #ffffff;
  --color-white-200: #f5f5f5;
  --color-grey-100: #040000;
  --color-grey-300: #9e9e9e;
  --color-grey-500: #d9dee0;
  --color-grey-700: #f9f9f9;
  --color-navy-100: #1b294f;
  --color-navy-200: #0668ad;
  --color-gold-100: #eabb42;

  --radius-100: 4px;
  --radius-200: 8px;
  --radius-300: 12px;
  --radius-400: 16px;
  --radius-full: 63px;

  --background-color-primary: #03316a;
  --background-color-secondary: #f9f9f9;
  --background-color-tertiary: linear-gradient(336deg, #3f5694 9.88%, #0668ad 46.65%, #1faadd 76.66%);

  --font-family-ja: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', 'メイリオ', Meiryo, sans-serif;
  --font-family-en: 'din-2014', sans-serif;

  --font-color-main: var(--color-navy-100);
  --font-color-light: var(--color-white-100);

  --font-weight-normal: 400;
  --font-weight-bold: 700;

  --leading-trim: calc((1em - 1lh) / 2);

  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 40px;
  --spacing-3xl: 48px;
  --spacing-4xl: 64px;

  --shadow: 0 0 16px 0 rgba(0, 0, 0, 0.16);
}
.sp-only,
.sp-only--inline {
  display: none;
}

.tb-only,
.tb-only--inline {
  display: none;
}

.pc-only,
.pc-only--inline {
  display: none;
}

.block {
  padding: var(--spacing-3xl) 20px;
  margin-right: auto;
  margin-left: auto;
}

.box {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
}

@media (width >= 768px) {
  .block {
    padding: var(--spacing-4xl) 20px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .tb-only {
    display: block;
  }

  .tb-only--inline {
    display: inline-block;
  }
}

@media (width < 768px) {
  .sp-only {
    display: block;
  }

  .sp-only--inline {
    display: inline-block;
  }
}

@media (width >= 1200px) {
  .pc-only {
    display: block;
  }

  .pc-only--inline {
    display: inline-block;
  }
}

@media (width < 768px) {
  .sp-none {
    display: none !important;
  }
}

@media (width >= 768px) {
  .tb-none {
    display: none !important;
  }
}

@media (width >= 1200px) {
  .pc-none {
    display: none !important;
  }
}

html {
  font-size: 1rem;
  font-family: var(--font-family-ja);
  font-optical-sizing: auto;
  font-weight: var(--font-weight-normal);
  font-style: normal;
  color: var(--font-color-main);
  line-height: 1.5;
}

body {
  padding-top: 48px;
}

a {
  &:link,
  &:visited {
    color: var(--font-color-main);
    text-decoration: none;
  }
}

p {
  font-weight: var(--font-weight-normal);
  margin-block: var(--leading-trim);
  margin: 0;
  font-size: 14px;
  font-style: normal;
  line-height: 1.5;
}

img,
picture {
  height: auto;
  vertical-align: bottom;
}

figure {
  margin: 0;
  padding: 0;

  & img {
    width: 100%;
    height: auto;
  }
}

@media (width >= 1200px) {
  body {
    padding-top: 73px;
  }

  p {
    font-size: 18px;
  }
}

@keyframes fadeIn {
  0% {
    display: none;
    opacity: 0;
  }
  1% {
    display: flex;
    opacity: 0;
  }
  100% {
    display: flex;
    opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
    display: flex;
    opacity: 1;
  }
  100% {
    display: none;
    opacity: 0;
  }
}

.floating__cta {
  z-index: 10;
  display: none;
  opacity: 0;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  animation-duration: 0.3s;
}

.body:not(.hero-hidden) .floating__cta {
  animation-name: fadeOut;
  display: none;
  opacity: 0;
}

.body.hero-hidden {
  & .floating__cta {
    animation-name: fadeIn;
    display: flex;
    opacity: 1;
    gap: 10px;
    flex-direction: row;
  }
}

/*========= gradient label styles ===============*/

.gradient-label {
  display: inline-block;
  color: var(--color-white-100);
  line-height: 1.2;
  background: var(--background-color-tertiary);
}

.gradient-label--en {
  margin-block: var(--leading-trim);
  color: var(--color-white-100);
  background: var(--background-color-tertiary);
  line-height: 0.9;
  font-family: var(--font-family-en);
  font-weight: var(--font-weight-bold);
  padding: 0 2px;
  width: fit-content;
}

.gradient-label--white {
  position: relative;
  margin-block: var(--leading-trim);
  color: var(--color-white-100);
  background: var(--background-color-tertiary);
  line-height: 0.9;
  font-family: var(--font-family-en);
  font-weight: var(--font-weight-bold);
  padding: 0 2px;
  width: fit-content;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.gradient-label--white-wrapper {
  background-color: white;
  display: inline-block;
}

/*========= button styles ===============*/

.cta-button {
  position: relative;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  font-size: 18px;
  line-height: 1.2;
  font-weight: var(--font-weight-bold);

  &.small {
    padding: 12px 37px 12px 30px;
    font-size: 16px;
    width: fit-content;
  }

  &.extra-small {
    padding: 14px 0;
    font-size: 14px;
  }

  &:not(:root) {
    color: var(--color-white-100);
  }
}

.cta-button--icon {
  padding: 16px 13px 16px 16px;
  width: 100%;

  &::after {
    position: absolute;
    content: '';
    background-image: url('../images/arrow-circle-right.svg');
    width: 20px;
    height: 20px;
    right: var(--spacing-md);
    display: block;
  }
}

.cta-button--icon.fit {
  width: fit-content;
  white-space: nowrap;
  padding: 16px 46px 16px 31px;
}

.cta-button--primary {
  background-color: var(--color-accent);
}

.cta-button--secondary {
  background-color: var(--color-white-100);
  border: 1px solid var(--color-grey-500);
  &:not(:root) {
    color: var(--font-color-main);
  }
  &.cta-button--icon {
    &::after {
      background-image: url('../images/arrow-circle-right-dark.svg');
    }
  }
}

.note {
  font-size: 10px;
  color: var(--color-grey-300);
  line-height: 1.3;
}

.text-tight {
  letter-spacing: -1.2px;
}

.label {
  display: inline-block;
  width: fit-content;
  padding: 2px 8px;
  font-size: 14px;
  background-color: var(--background-color-secondary);
  line-height: 1;

  & span {
    background: var(--background-color-tertiary);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.column-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--spacing-2xl);

  & .column-title__label {
    font-size: 24px;
  }

  & h2 {
    font-size: 32px;
    line-height: 1.3;
    margin: 12px 0 0 0;
    text-align: center;
  }

  & p {
    margin-top: var(--spacing-md);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
  }
}

@media (width >= 1200px) {
  .column-title {
    & h2 {
      font-size: 40px;
      margin-top: 10px;
    }

    & p {
      font-size: 18px;
    }
  }
}
