:root {
  --color-primary: #ffdd00;
  --color-secondary: #000;
  --color-text: #000;
  --color-border: #e2e2e2;
}

html {
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  text-wrap: balance;
}

body {
  background-color: #000;
  font-family: scandia-web, Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}

body:has(.modal.open) {
  overflow: hidden;
}

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

a {
  font-weight: 500;
}

.color_white {
  color: #fff;
}

.container {
  max-width: 1248px;
  margin: 0 auto;
}

.container.sm {
  max-width: 1024px;
}

.button {
  outline: 0;
  border: none;
  padding: 16px 40px;
  background-color: var(--color-secondary);
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;

  &:hover {
    background-color: var(--color-primary);
    color: var(--color-secondary);
  }

  &.sm {
    font-size: 14px;
    padding: 14px 24px;
  }
}

.button.on_primary:hover {
  background-color: #fff;
}

.button.sticky {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 1000;
}

.button_mt {
  margin-top: 30px;
}

.bg_reversed {
  background-color: var(--color-primary);
  color: var(--color-secondary);
}

.bg_white {
  background-color: #f7f5f0;
  color: var(--color-text);
}

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

.list_bullet li {
  &::before {
    content: "・";
  }
}

.header_logo {
  position: fixed;
  top: 0;
  left: 0;
  width: 80px;
  z-index: 2;
}

.hero {
  position: relative;
  background-image: url("../images/hero.jpg");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  padding: 0 30px 80px 120px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  opacity: 0;
  animation: fadeIn 1.4s ease forwards;

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.5) 100%
    );
  }

  .container {
    position: relative;
    display: flex;
    width: 100%;
    align-items: flex-end;
    gap: 64px;
  }
}

.hero_title {
  font-size: clamp(48px, 8vw, 108px);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeIn 1.2s ease forwards;
  animation-delay: 0.8s;
}

.form_fv {
  background-color: var(--color-primary);
  padding: 0 24px;
  flex: 1;
  flex-shrink: 0;
  min-width: 380px;

  iframe {
    width: 100%;
    height: 720px;
  }
}

.section_title {
  font-size: 62px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-top: 10px;
  margin-bottom: 75px;
}

.section_subtitle {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-top: 10px;
  margin-bottom: 15px;

  &.sm {
    font-size: 16px;
  }
}

.paragraph {
  margin-top: 0;
  margin-bottom: 20px;
}

.section {
  padding: 100px 30px 100px 120px;
}

.box {
  display: flex;
  align-items: flex-start;

  &.align_center {
    align-items: center;
  }

  .section_title,
  .section_subtitle {
    margin-top: 10px;
    margin-bottom: 15px;
  }

  .list_bullet {
    margin: 20px 0;
  }
}

.box.pc_reversed {
  flex-direction: row-reverse;
}

.box_textarea {
  width: 50%;
  padding: 0 3.84%;
}

.box_imagearea {
  width: 50%;
  padding: 0 3.84%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.box_image {
  width: 85%;
  margin: 0 auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center;
}

.box_list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.divider {
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
}

.modal {
  opacity: 0;
  pointer-events: none;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  inset: 0;
  overflow: auto;
  padding: 40px 0;

  transition: opacity 0.4s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal_container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal_card {
  width: 88%;
  max-width: 900px;
  background-color: #fff;
  color: var(--color-text);
  border-radius: 8px;
}

.modal_header {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.modal_title {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 500;
}

.modal_close {
  width: 28px;
  height: 28px;
  cursor: pointer;
  position: relative;

  &::before,
  &::after {
    content: "";
    width: 100%;
    height: 4px;
    background-color: var(--color-border);
    position: absolute;
    top: 50%;
    left: 0;
  }

  &::before {
    transform: translateY(-50%) rotate(45deg);
  }

  &::after {
    transform: translateY(-50%) rotate(-45deg);
  }
}

.modal_content {
  padding: 20px 40px;

  p {
    margin: 16px 0;
    line-height: 1.72;
  }
}

.modal_footer {
  border-top: 1px solid var(--color-border);
  padding: 20px;
  display: flex;
  justify-content: flex-end;
}

.section.markets {
  text-align: center;
  background-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.85) 100%
    ),
    url("../images/bg_markets.jpg");
  background-size: cover;
  flex-wrap: wrap;
  background-attachment: fixed;

  .inner {
    max-width: 75%;
    margin: 0 auto;
  }
}

.market_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 20px;

  li {
    width: 33%;
    font-weight: 700;
    margin-bottom: 20px;
  }
}

.section.own {
  .section_subtitle {
    margin-top: 30px;
  }
}

.section.inquiry {
  @media screen and (min-width: 1025px) {
    text-align: center;
  }
  iframe {
    width: 100%;
    max-width: 680px;
    height: 780px;
  }
  .button_wrapper {
    margin-top: 20px;
    text-align: center;
  }
}

.footer {
  padding: 60px 30px 100px 120px;
  text-align: center;
}

.footer_top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
}

.footer_nav {
  display: flex;
  justify-content: flex-end;
  gap: 60px;
}

.footer_bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-direction: row-reverse;
  margin-top: 40px;
}

.footer_sub_nav {
  display: flex;
  justify-content: center;
}

.footer_sub_nav_item a {
  font-weight: 400;
  font-size: 12px;
}

.copyright {
  font-size: 12px;
}

.page_top {
  width: 48px;
  height: 35px;
  background-color: #333;
  position: fixed;
  bottom: 0;
  left: 75px;
  transition: opacity 0.2s ease;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;

  &:hover {
    opacity: 0.8;
  }

  &::before,
  &::after {
    content: "";
    width: 10px;
    height: 2px;
    position: absolute;
    top: 18px;
    background-color: #fff;
  }

  &::before {
    left: 16px;
    transform: rotate(-45deg);
  }

  &::after {
    right: 16px;
    transform: rotate(45deg);
  }

  &.show {
    opacity: 1;
    pointer-events: auto;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.scrollAnimation {
  transition: opacity 0.8s ease, transform 0.8s ease;
  &.fadeIn {
    opacity: 0;
  }
  &.fadeIn.in {
    opacity: 1;
  }

  &.fadeInDown {
    opacity: 0;
    transform: translateY(-20px);
  }

  &.fadeInDown.in {
    opacity: 1;
    transform: translateY(0);
  }

  &.fadeInUp {
    opacity: 0;
    transform: translateY(20px);
  }

  &.fadeInUp.in {
    opacity: 1;
    transform: translateY(0);
  }

  &.fadeInLeft {
    opacity: 0;
    transform: translateX(20px);
  }

  &.fadeInLeft.in {
    opacity: 1;
    transform: translateX(0);
  }

  &.fadeInRight {
    opacity: 0;
    transform: translateX(-20px);
  }

  &.fadeInRight.in {
    opacity: 1;
    transform: translateX(0);
  }
}

.glink {
  font-weight: 400;

  &:first-child::after {
    content: "/";
    margin: 0 4px;
    font-weight: normal;
  }

  &.gt-current-lang {
    font-weight: bold;
  }
}

/* Tablet & Smartphone */
@media screen and (max-width: 1024px) {
  .button {
    font-size: 14px;
    padding: 17px 24px;
  }

  .header_logo {
    width: 60px;
  }

  .hero {
    background-attachment: scroll;
    align-items: flex-start;
    padding-top: 140px;
    padding-left: 80px;
    padding-right: 20px;

    .container {
      flex-direction: column;
    }
  }

  .hero_title {
    font-size: 34px;
    animation-delay: 0s;
  }

  .form_fv {
    padding-left: 0;
    padding-inline-end: 0;
    min-width: 0;

    iframe {
      height: 800px;
    }
  }

  .section_title {
    font-size: 28px;
    margin-bottom: 40px;
  }

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

  .section_subtitle {
    font-size: 28px;
  }

  .section {
    padding: 80px 20px 80px 80px;
  }

  .box,
  .box.pc_reversed {
    flex-direction: column;
  }

  .box_textarea,
  .box_imagearea {
    width: 100%;
    padding: 0;
  }

  .box_imagearea {
    margin-top: 20px;
  }

  .box_image {
    width: 100%;
  }

  .section.markets {
    text-align: left;
    background-attachment: scroll;

    .inner {
      max-width: 100%;
    }
  }

  .market_list {
    li {
      width: 100%;
    }
  }

  .modal_card {
    width: 96%;
    border-radius: 0;
  }

  .footer {
    padding: 40px 20px 60px;
  }

  .footer_top {
    flex-direction: column;
    gap: 28px;
  }

  .footer_nav {
    flex-direction: column;
    gap: 20px;
  }

  .footer_bottom {
    flex-direction: column;
    gap: 20px;
  }

  .footer_sub_nav {
    width: 100%;
  }

  .footer_sub_nav_item {
    width: 50%;
  }

  .page_top {
    left: 0;
  }
}
