/* ==========================================================================
   index2026.html - トップページ
   PC専用（スマホサイトは別）。ウィンドウ内に収まる非スクロールレイアウト。
   min-width:1140px / min-height:700px を下回る場合はスクロールを許可する。
   ========================================================================== */

:root {
  --color-primary: #33345c;
  --color-secondary: #053e94;
  --color-tertiary: #005bac;
  --color-main-left: #ff0000;
  --color-main-right: #ffff00;

  --container-min-width: 1140px;
  --container-min-height: 700px;
  --footer-top-height: 72px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", sans-serif;
}

.container {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

body.is-loaded .container {
  opacity: 1;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background-color: #fff;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.loader__logo {
  width: 300px;
  height: auto;
}

.loader__text {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: #999;
}

body.is-loaded .loader {
  opacity: 0;
  pointer-events: none;
}

/* -----------------------------------------------------------------------
   コンテナ
   container が 100%×100vh を占め、min-width/min-height を下回る
   ウィンドウサイズではその分だけ横 or 縦スクロールが発生する。
   ----------------------------------------------------------------------- */
.container {
  width: 100%;
  height: 100vh;
  min-width: var(--container-min-width);
  min-height: var(--container-min-height);
  display: flex;
  flex-direction: column;
}

/* -----------------------------------------------------------------------
   main エリア
   ----------------------------------------------------------------------- */
.main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

.main-left,
.main-right {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-left {
  width: 50%;
  position: relative;
  background-image: url("../images/main/mv_home.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.main-left .logo {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 160px;
  height: auto;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.6))
    drop-shadow(0 0 3px rgba(255, 255, 255, 0.35));
}

.main-right {
  width: 50%;
  position: relative;
  background-color: #fff;
  container-type: inline-size;
  container-name: main-right;
}

.lang-switch {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 8px 22px;
  border-radius: 999px;
  background-color: var(--color-tertiary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.5s ease-in-out;
}

.lang-switch:hover {
  background-color: rgba(0, 91, 172, 0.8);
}

.main-right__content {
  width: 100%;
  padding: 0 40px;
  text-align: center;
}

.main-copy {
  margin: 0 0 28px;
  font-size: 2.2rem; /* cqw未対応ブラウザ向けフォールバック */
  font-size: clamp(1.7rem, 6.5cqw, 3rem);
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.5;
  background-image: linear-gradient(
    70deg,
    var(--color-tertiary) 48%,
    color-mix(in srgb, var(--color-tertiary), #fff 55%) 50%,
    var(--color-tertiary) 52%
  );
  background-size: 500% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: main-copy-shine 20s infinite;
}

@keyframes main-copy-shine {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.sub-copy {
  margin: 0 0 60px;
  font-size: 1.25rem;
  line-height: 1.6;
  color: #595959;
}

.cta-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-btn {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 460px;
  padding: 16px 24px;
  border: 2px solid var(--color-primary);
  border-radius: 0;
  color: var(--color-primary);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  box-shadow: 4px 4px 0 0 color-mix(in srgb, var(--color-tertiary), transparent 10%);
  transition: color 0.3s ease-in-out;
}

.cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-in-out;
}

.cta-btn:hover {
  color: #fff;
}

.cta-btn:hover::before {
  transform: scaleX(1);
}

.cta-btn__arrow {
  transition: transform 0.2s ease-in-out;
}

.cta-btn:hover .cta-btn__arrow {
  transform: translateX(6px);
}

@media (max-height: 786px) {
  .lang-switch {
    top: 20px;
  }
  .main-copy {
    margin: 15px 0 15px;
    line-height: 1.25;
  }
  .sub-copy {
    margin: 0 0 20px;
    line-height: 1.5;
  }
  .cta-list {
    gap: 20px;
  }
}

/* -----------------------------------------------------------------------
   footer エリア（上下2段）
   ----------------------------------------------------------------------- */
.footer-top,
.footer-bottom {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-top {
  height: var(--footer-top-height);
  background-color: var(--color-primary);
  overflow: hidden;
}

/* -----------------------------------------------------------------------
   footer-top マーキー（右から左へ流れるテキスト）
   同じ内容の .marquee__group を2つ並べ、track を -50% まで動かすことで
   途切れなくループする。
   ----------------------------------------------------------------------- */
.marquee {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee__track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  animation: marquee-scroll 96s linear infinite;
}

.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee__item {
  white-space: nowrap;
  color: #fff;
  font-size: 1.075rem;
  letter-spacing: 0.05em;
  padding: 0 32px;
}

.marquee__sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.075rem;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.footer-bottom {
    padding: 20px 0;
    position: relative;
    /* background-color: rgba(146, 155, 227, 0.1); */
}

.copyright {
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.55);
}

.sns {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
}

.sns a {
  display: block;
  line-height: 1;
}

.sns i {
  font-size: 30px;
  color: var(--color-primary);
  transition: color 0.3s ease-in-out;
}

.sns a:hover i {
  color: var(--color-secondary);
}

/* 仮のエリアラベル（実装確認用。コンテンツ確定後は削除してよい） */
.area-label {
  margin: 0;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(0, 0, 0, 0.55);
  line-height: 1.6;
}

.main-left .area-label,
.main-right .area-label {
  font-size: 1.1rem;
}

.area-label span {
  font-size: 0.85em;
  font-weight: 400;
}
