html {
  scroll-behavior: smooth;
}

:root {
  --font-noto-sans: 'Noto Sans JP', sans-serif;
  --font-josefin-sans: 'Josefin Sans', sans-serif;
  --color-primary: #153c7f;
  --color-white: #ffffff;
  --color-black: #333333;
  --color-gray: #616d7a;
  --color-light-gray: #e5e7eb;
  --bg-dark-blue: #06265e;
  --bg-light-blue: #e7eef6;
}

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

body {
  font-family: var(--font-noto-sans);
  color: var(--color-black);
  background-color: var(--color-white);
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.main {
  padding-top: 80px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

.section-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.section-title__en {
  font-family: var(--font-josefin-sans);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.08em;
  color: transparent;
  background-image: url('../images/section-title-bg.png');
  background-size: cover;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
}

.section-title__ja {
  font-family: var(--font-noto-sans);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

.section-title__ja span {
  font-size: 24px;
}

.section-title--light {
  width: fit-content;
  flex-shrink: 0;
}

.section-title--light .section-title__en {
  background-image: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--color-white);
}

.section-title--light .section-title__ja {
  color: var(--color-white);
}

/* Header */
.header {
  padding: 0 40px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  margin: 0 auto;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header__logo a {
  display: block;
  width: 120px;
}

.header__logo img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.header__nav-list {
  display: flex;
  gap: 48px;
}

.header__nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header__nav-en {
  font-family: var(--font-josefin-sans);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.header__nav-ja {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.header__contact-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 56px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 1000px;
  padding: 8px 0;
  transition: opacity 0.2s;
}

.header__contact-btn:hover {
  opacity: 0.7;
}

.header__contact-en {
  font-family: var(--font-josefin-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 1000px;
  transition: opacity 0.2s;
}

.header__contact-ja {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.header__hamburger,
.header__drawer {
  display: none;
}

/* FV */
.fv {
  position: relative;
  height: 551px;
  color: var(--color-white);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 140px;
}

.fv__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/fv_bg.png');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.fv__bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 38, 94, 0.3);
  z-index: -1;
}

.fv__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  opacity: 0;
  transition: opacity 0.3s;
}

.fv__title-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fv__title-en {
  font-family: var(--font-josefin-sans);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-shadow: 0px 0px 10px rgba(51, 51, 51, 0.5);
  border-bottom: 1px solid var(--color-white);
  padding-bottom: 4px;
  width: fit-content;
}

.fv__title-ja {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-shadow: 0px 0px 10px rgba(51, 51, 51, 0.5);
}

.fv__company-name {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.1em;
  width: 100%;
  text-shadow: 0px 0px 10px rgba(51, 51, 51, 0.5);
}

.fv__company-name span {
  font-family: var(--font-josefin-sans);
}

.fv__contact-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 340px;
  height: 60px;
  background-color: var(--color-white);
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 1000px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fv__contact-btn.visible {
  opacity: 1;
  transform: translateY(0);
}

.fv__contact-btn:hover {
  opacity: 0.7;
}

/* About */
.about {
  padding: 40px 20px 80px;
}
.about__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  padding: 20px;
  background: #b9c4d9;
  max-width: 800px;
  margin: 0 auto;

  &:hover {
    cursor: pointer;
  }
}

.about__content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 24px 40px;
}

.about__title-group {
  padding-right: 40px;
  border-right: 1px solid var(--color-primary);
}

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

.about__read-more {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-josefin-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding-left: 40px;
}

.about__read-more-circle {
  transition: transform 0.5s ease;
}

.about__container:hover .about__read-more-circle {
  transform: translate(-50%, -50%) rotate(360deg);
}

.about__read-more-circle,
.about__read-more-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.about__read-more-icon {
  position: relative;
  width: 64px;
  height: 64px;
}

/* Service */
.service {
  background-color: rgba(21, 60, 127, 0.1);
  padding: 80px 20px;
}

.service__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  max-width: 1000px;
  margin: 0 auto;
}

.service__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  position: relative;
  z-index: 1;
  flex-direction: column;
  gap: 24px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.service-card:nth-child(1) {
  background-image: url('../images/service-bg.png');
}
.service-card:nth-child(1)::after {
  background-color: rgba(8, 44, 107, 0.7);
}

.service-card:nth-child(2) {
  background-image: url('../images/service-bg.png');
}
.service-card:nth-child(2)::after {
  background-color: rgba(13, 101, 17, 0.7);
}
.service-card:nth-child(3) {
  background-image: url('../images/service-bg.png');
}
.service-card:nth-child(3)::after {
  background-color: rgba(201, 161, 4, 0.7);
}

.service-card__inner {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.service-card__title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding-right: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-white);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.service-card__icon {
  width: 40px;
  height: 40px;
  position: relative;
}
.service-card__icon img {
  position: absolute;
}

.service-card__text {
  font-size: 16px;
  letter-spacing: 0.08em;
  padding: 0 12px;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.service-card__list-item a {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: underline;
}

/* service-card フェードアップ用 */
.service-card.is-hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Creator */
.creator {
  padding: 80px 20px;
}
.creator__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}
.creator__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.creator-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.creator-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.creator-card__img {
  width: 110px;
  height: 110px;
  object-fit: cover;
}

.creator-card__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.creator-card__name-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.creator-card__name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}
.creator-card__job {
  font-size: 16px;
  color: var(--color-gray);
  letter-spacing: 0.08em;
}
.creator-card__works {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.creator-card__work-item {
  background-color: var(--color-light-gray);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #9ca3af;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  aspect-ratio: 1/1;
}

/* Works */
.works {
  padding: 80px 0 0 30px;
  overflow-x: hidden;
  position: relative;
}

.works__inner {
  padding: 64px 0 64px 64px;
  display: flex;
  flex-direction: column;
  gap: 64px;
  position: relative;
  max-width: 1000px;
  margin-inline: auto;
}

.works__inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  background-image: url('../images/works-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.works__grid {
  display: flex;
  gap: 24px;
  width: 100%;
  justify-content: center;
}

.works-card {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  max-width: 340px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.works-card__img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
}

.works-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.works-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s ease;
}

.works-card:hover .works-card__overlay {
  background-color: rgba(21, 60, 127, 0.7);
}

.works-card:hover .works-card__img {
  transform: scale(1.1);
}

.works-card__title {
  font-size: 24px;
  font-weight: 500;
  color: var(--color-white);
  text-shadow: 0px 0px 10px rgba(51, 51, 51, 0.5);
}

.works-card__icon {
  position: relative;
  width: 40px;
  height: 40px;
}

.works-card__icon-circle,
.works-card__icon-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.works-card__icon-circle {
  transition: transform 0.5s ease;
}

.works-card:hover .works-card__icon-circle {
  transform: translate(-50%, -50%) rotate(360deg);
}

/* works-card フェードアップ用 */
.works-card.is-hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Company */
.company {
  padding: 80px 20px;
}
.company__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}
.company__list {
  width: 100%;
}
.company__list-row {
  display: flex;
  border-bottom: 1px solid var(--color-light-gray);
}
.company__list-term {
  width: 206px;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 24px 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}
.company__list-desc {
  padding: 24px 12px 24px 40px;
  flex-grow: 1;
  letter-spacing: 0.08em;
}

.company__list-desc span {
  font-size: 24px;
}

/* CTA */
.cta {
  background-image: url('../images/fv_bg.png');
  background-size: cover;
  background-position: center;
  padding: 80px 20px;
  position: relative;
  z-index: 1;
}

.cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: rgba(6, 38, 94, 0.7); */
  z-index: -1;
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.cta__title-group {
  width: 100%;
  display: flex;
  /* flex-direction: column; */
  align-items: flex-end;
  gap: 64px;
}

.cta__text {
  color: var(--color-white);
  font-size: 16px;
  width: 100%;
  padding-bottom: 4px;
}

.cta__text br {
  display: none;
}

.cta__buttons {
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: var(--color-white);
  padding: 12px 0;
}

.cta-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 300px;
  padding: 24px 32px;
  border-right: 1px solid var(--color-primary);

  &:last-child {
    border-right: 0;
  }
}

.cta-button__en {
  font-family: var(--font-josefin-sans);
  font-size: 16px;
  letter-spacing: 0.2em;
  color: var(--color-white);
  background-color: var(--color-primary);
  padding: 6px 16px 2px;
  line-height: 1;
}

.cta-button__ja {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

/* Footer */
.footer {
  background-color: var(--color-primary);
  padding: 20px 0;
}

.footer__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  color: var(--color-white);
  text-align: center;
}

.footer__copyright {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
}

/* Modal */
.modal {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(51, 51, 51, 0.9);
}

.modal__content {
  position: relative;
  background-color: var(--color-white);
  padding: 40px;
  width: 100%;
  max-width: 500px;
  box-shadow: 4px 4px 16px 0px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.4s, opacity 0.4s;
}

.modal.is-open .modal__content {
  transform: scale(1);
  opacity: 1;
}

.modal__close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.modal__header .section-title {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-gray);
  width: 100%;
  align-items: center;
}

.modal__text {
  font-size: 16px;
  line-height: 1.75;
}

body.modal-open {
  overflow: hidden;
}

.modal__content--work-display {
  padding: 0;
  background: none;
  box-shadow: none;
  max-width: 50vw;
  max-height: 80vh;
  position: relative;
}

.modal__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border-radius: 50%;
  border: none;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.modal__nav-btn--prev {
  left: -80px;
}

.modal__nav-btn--next {
  right: -80px;
}

.modal__content--work-display .modal__close-btn {
  top: -30px;
  right: 0;
}

.modal__content--work-display .modal__close-btn path {
  stroke: var(--color-white);
}

.modal__work-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

/* ローディング画面 */
#loading {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #00053a;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s;
  overflow: hidden;
}
#loading video {
  width: 600px;
  max-width: 60vw;
  max-height: 60vh;
  display: block;
}

body.loading-active {
  overflow: hidden !important;
}

/* FVアニメーション用 */
.fv-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fv-animate.visible {
  opacity: 1;
  transform: translateY(0);
}
