@charset "UTF-8";

/* Opening movie: branded first paint, then managed overlay. */
html.is-opening-pending,
html.is-opening-pending body {
  min-height: 100%;
  background: #1A1C57 !important;
}

html.is-opening-pending body > :not(.site_opening) {
  visibility: hidden !important;
}

html.is-opening-pending::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 19998;
  background:
    radial-gradient(circle at 52% 40%, rgba(255, 255, 255, 0.12) 0%, rgba(26, 28, 87, 0.96) 42%, #080b1b 100%),
    #1A1C57;
}

html.is-opening-pending::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 19999;
  width: clamp(320px, 30vw, 420px);
  aspect-ratio: 4 / 1;
  background-image: url("../images/横組み_白抜き_AlphaBloom様.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.28));
}

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

.site_opening {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid !important;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 52% 40%, rgba(255, 255, 255, 0.12) 0%, rgba(26, 28, 87, 0.96) 42%, #080b1b 100%),
    #1A1C57 !important;
  opacity: 1;
  visibility: visible !important;
  transition: opacity 0.72s ease, visibility 0.72s ease;
  pointer-events: auto !important;
}

.site_opening.is-hiding {
  opacity: 0;
  visibility: hidden !important;
  pointer-events: none !important;
}

.site_opening_movie {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.72s ease, transform 4.2s ease;
}

.site_opening.is-video-ready .site_opening_movie {
  opacity: 0.72 !important;
  transform: scale(1);
}

.site_opening.is-video-fallback .site_opening_movie {
  opacity: 0 !important;
}

.site_opening_scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 20, 0.36), rgba(6, 8, 20, 0.58));
}

.site_opening_brand {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(76vw, 460px);
  transform: translateY(8px);
  opacity: 0;
  animation: abOpeningBrand 0.75s ease 0.12s forwards;
}

.site_opening_brand img {
  display: block;
  width: clamp(320px, 30vw, 420px) !important;
  max-width: 76vw !important;
  height: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 18px 42px rgba(0, 0, 0, 0.32));
}

.site_opening_brand span {
  display: none;
  color: #fff;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.site_opening_skip {
  position: absolute;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 36px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

@keyframes abOpeningBrand {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MV: stable crossfade with the first image visible immediately. */
body#home .mv_slider {
  background: #101116 !important;
}

body#home .mv_img_wrap {
  display: block !important;
  opacity: 0;
  z-index: 0;
  animation: abMvCrossfade 18s linear infinite !important;
  transition: none !important;
  transform: none !important;
}

body#home .mv_img_wrap:first-child {
  opacity: 1;
  z-index: 1;
  animation-delay: 0s !important;
}

body#home .mv_img_wrap:nth-child(2) {
  animation-delay: 6s !important;
}

body#home .mv_img_wrap:nth-child(3) {
  animation-delay: 12s !important;
}

body#home .mv_img_wrap img {
  opacity: 1 !important;
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

@keyframes abMvCrossfade {
  0%, 30% {
    opacity: 1;
    z-index: 1;
  }
  38%, 92% {
    opacity: 0;
    z-index: 0;
  }
  100% {
    opacity: 1;
    z-index: 1;
  }
}

/* Unified reveal motion. */
.ab-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.64s ease,
    transform 0.64s ease;
  transition-delay: var(--ab-delay, 0ms);
  will-change: opacity, transform;
}

.ab-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body#home .top_strength_mix .top_strength_bar {
  background: conic-gradient(from 0deg, #1A1C57 0 51.1%, #A7354A 51.1% 96.6%, #9aa2b7 96.6% 100%) !important;
  transform: none !important;
}

body#home .top_strength_mix .top_strength_bar,
body#home .top_strength_mix.js-reveal .top_strength_bar,
body#home .top_strength_mix.js-reveal.is-visible .top_strength_bar {
  opacity: 1 !important;
  transform: none !important;
}

/* Budget section: quieter figures and clearer hierarchy. */
body#home .budget_guide_intro h4 {
  font-size: clamp(24px, 2.4vw, 30px) !important;
  line-height: 1.5 !important;
}

body#home .budget_card {
  padding: 26px 24px !important;
  border-radius: 10px !important;
}

body#home .budget_card h4 {
  margin-bottom: 10px !important;
  font-size: 21px !important;
}

body#home .budget_price {
  margin-bottom: 14px !important;
  color: #1A1C57 !important;
  font-family: "Noto Sans JP", sans-serif !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1.45 !important;
}

body#home .budget_price span {
  margin-left: 4px;
  color: #687084 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body#home .budget_card p:not(.budget_card_en):not(.budget_price) {
  font-size: 14px !important;
  line-height: 1.85 !important;
}

body#home .budget_card a {
  min-height: 46px !important;
}

/* Contact page: lighter, easier form experience. */
body.contact_modern_page main {
  background: linear-gradient(180deg, #f7f8fb 0%, #fff 100%) !important;
}

body.contact_modern_page .contact_modern_wrap {
  max-width: 1160px !important;
}

body.contact_modern_page .contact_modern_shell {
  grid-template-columns: minmax(280px, 0.82fr) minmax(560px, 1.18fr) !important;
  gap: 28px !important;
  align-items: start !important;
}

body.contact_modern_page .contact_modern_intro {
  position: sticky;
  top: 98px;
  padding: 28px 26px !important;
  color: #1b1d25 !important;
  background:
    linear-gradient(145deg, rgba(26, 28, 87, 0.08), rgba(255, 255, 255, 0.96) 46%, rgba(167, 53, 74, 0.06)),
    #fff !important;
  border: 1px solid #dfe3ed !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 44px rgba(26, 28, 87, 0.09) !important;
}

body.contact_modern_page .contact_modern_intro_kicker {
  color: #1A1C57 !important;
  letter-spacing: 0.08em !important;
}

body.contact_modern_page .contact_modern_intro h3 {
  margin-bottom: 14px !important;
  color: #101116 !important;
  font-size: clamp(24px, 2.3vw, 30px) !important;
  line-height: 1.55 !important;
}

body.contact_modern_page .contact_modern_intro_text {
  color: #4b4f5d !important;
  font-size: 14px !important;
  line-height: 1.9 !important;
}

body.contact_modern_page .contact_modern_cards {
  gap: 9px !important;
}

body.contact_modern_page .contact_modern_cards span {
  color: #1A1C57 !important;
  background: #fff !important;
  border: 1px solid #dfe3ed !important;
  border-left: 3px solid #1A1C57 !important;
  border-radius: 8px !important;
  font-size: 13px !important;
}

body.contact_modern_page .contact_modern_reply {
  color: #343846 !important;
  background: #f7f8fb !important;
  border: 1px solid #dfe3ed !important;
  border-left: 3px solid #A7354A !important;
}

body.contact_modern_page .contact_modern_form {
  padding: 30px 32px 28px !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 44px rgba(26, 28, 87, 0.08) !important;
}

body.contact_modern_page .contact_modern_form .contact_tool_ttl {
  font-size: 23px !important;
  line-height: 1.5 !important;
}

body.contact_modern_page .contact_form dl {
  grid-template-columns: minmax(150px, 180px) minmax(0, 1fr) !important;
  gap: 18px !important;
  padding: 16px 0 !important;
}

body.contact_modern_page .contact_form dt,
body.contact_modern_page .contact_form .formlist_tit {
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  writing-mode: horizontal-tb !important;
  letter-spacing: 0 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

body.contact_modern_page .contact_form input[type="text"],
body.contact_modern_page .contact_form input[type="email"],
body.contact_modern_page .contact_form select,
body.contact_modern_page .contact_form textarea {
  min-height: 48px !important;
  padding: 12px 14px !important;
  border-radius: 9px !important;
  font-size: 15px !important;
}

body.contact_modern_page .hissu,
body.contact_modern_page .nini {
  min-height: 18px !important;
  padding: 3px 7px !important;
  font-size: 10px !important;
}

body.contact_modern_page .form_b .btn_effect01 {
  min-height: 54px !important;
  background: #1A1C57 !important;
  border-color: #1A1C57 !important;
  box-shadow: 0 14px 28px rgba(26, 28, 87, 0.18) !important;
}

body.contact_modern_page .form_b .btn_effect01:hover {
  background: #A7354A !important;
  border-color: #A7354A !important;
}

@media screen and (max-width: 1024px) {
  body.contact_modern_page .contact_modern_shell {
    grid-template-columns: 1fr !important;
  }

  body.contact_modern_page .contact_modern_intro {
    position: static !important;
  }
}

@media screen and (max-width: 768px) {
  html.is-opening-pending::after,
  .site_opening_brand img {
    width: min(280px, 72vw) !important;
  }

  .site_opening_brand {
    width: min(76vw, 300px);
  }

  body#home .mv_img_wrap {
    animation: none !important;
  }

  body#home .mv_img_wrap:first-child {
    display: block !important;
    opacity: 1 !important;
  }

  body#home .mv_img_wrap:nth-child(n+2) {
    display: none !important;
  }

  body.contact_modern_page .contact_modern_form,
  body.contact_modern_page .contact_modern_intro {
    padding: 24px 18px !important;
  }

  body.contact_modern_page .contact_form dl {
    display: block !important;
    padding: 15px 0 !important;
  }

  body.contact_modern_page .contact_form dt,
  body.contact_modern_page .contact_form .formlist_tit {
    margin-bottom: 8px !important;
    white-space: normal !important;
  }

  body#home .budget_card {
    padding: 24px 20px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.is-opening-pending::before,
  html.is-opening-pending::after,
  .site_opening,
  .site_opening *,
  body#home .mv_img_wrap,
  .ab-reveal {
    animation: none !important;
    transition: none !important;
  }

  .ab-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
