/**
 * CSS File: common-header.css
 * 2026-07-08 | Refactored with Deep Color Palette
 */

/* ==============================================================================
 * 1. ベーススタイル（スマホ縦想定）
 * ============================================================================== */
.l-hero-hdr {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: var(--z_1-up);
}

.p-hero-hdr__bg,
.p-hero-hdr__overlay {
  position: absolute;
  inset: 0;
}

.p-hero-hdr__img {
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  object-fit: cover;
  position: absolute;
  top: -4px;
  left: 0px;
}

.p-hero-hdr__overlay {
  background: rgba(0, 0, 0, 0.2);
}

.p-hero-hdr__deco {
  position: absolute;
  top: 0;
  left: 0;
  z-index: var(--z_20-content);
  width: 100%;
  height: auto;
  pointer-events: none;
}

.p-hero-hdr__deco-reverse {
  position: absolute;
  bottom: 0;
  right: 0;
  top: auto;
  left: auto;
  z-index: var(--z_10-content);
  width: 100%;
  height: auto;
  pointer-events: none;
  transform: scale(-1);
}

.p-hero-hdr__logo {
  position: absolute;
  top: 10px;
  left: 5px;
  z-index: var(--z_20-content);
  width: 300px;
}

.p-hero-hdr__logo img {
  width: 100%;
}

.p-hero-hdr__cta {
  display: none;
  flex: 0 0 auto;
}

.p-hero-hdr__cta-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 34px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border-radius: 4px;
  text-decoration: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    filter 0.2s ease;
  box-sizing: border-box;
}

.p-hero-hdr__cta-item:hover {
  background: var(--main-color-1);
  opacity: 1;
}

.p-hero-hdr__cta-text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.75rem;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  display: block;
  transition: all 0.3s ease;
}

.p-hero-hdr__cta-item:hover .p-hero-hdr__cta-text {
  color: var(--sub-color-2);
  text-shadow: none;
}

.p-hero-hdr__cta-item:active {
  transform: translateY(2px) scale(0.95);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: all 0.1s;
}

.p-hero-hdr__cta-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.p-int-hero-hdr__visual-bubble {
  position: absolute;
  top: 50%;
  left: 25%;
  width: 200px;
  filter: sepia(100%) saturate(2500%) hue-rotate(320deg) brightness(90%);
  transform-origin: center center;
  animation: bubblePop 2s 3 ease-in-out forwards;
}

.p-int-hero-hdr__visual-bubble img {
  width: 100%;
  height: auto;
}

.p-hero-hdr__mobile-trigger {
  display: none;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: var(--z_990-tool);
  transition: opacity 0.3s ease;
}

.p-hero-hdr__hamburger {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  position: relative;
}

.p-hero-hdr__hamburger span {
  display: block;
  position: absolute;
  left: 7px;
  width: 30px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease-in-out;
}

.p-hero-hdr__hamburger span:nth-child(1) {
  top: 12px;
}
.p-hero-hdr__hamburger span:nth-child(2) {
  top: 21px;
}
.p-hero-hdr__hamburger span:nth-child(3) {
  top: 30px;
}

.p-hero-hdr__hamburger.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.p-hero-hdr__hamburger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.p-hero-hdr__hamburger.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@keyframes bubblePop {
  0% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.1) rotate(-8deg);
  }
  50% {
    transform: scale(0.95) rotate(0deg);
  }
  75% {
    transform: scale(1.05) rotate(8deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@media (max-width: 767px) {
  .p-header .p-header__nav,
  .p-header .p-header__mega-menu {
    display: none;
  }
}

/* ==============================================================================
 * 2. 横向き低画面レイアウト（スマホ横想定）
 * ============================================================================== */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .l-hero-hdr {
    height: 100vh;
    min-height: 100vh;
  }

  .p-hero-hdr__deco,
  .p-hero-hdr__deco-reverse {
    width: 75%;
  }

  .p-int-hero-hdr__nav.is-open {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
  }

  .p-int-hero-hdr__nav-inner,
  .p-int-hero-hdr__grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
  }

  .p-int-hero-hdr__btn {
    width: 45%;
    flex: 0 0 45%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .p-int-hero-hdr__visual-bubble {
    left: 50%;
  }
}

/* ==============================================================================
 * 3. タブレット以上の標準デスクトップレイアウト
 * ============================================================================== */
@media screen and (min-width: 768px) and (min-height: 501px) {
  .l-hero-hdr {
    min-height: 100vh;
    justify-content: flex-end;
    overflow: visible;
  }

  .p-hero-hdr__img {
    object-position: 30% 50%;
  }

  .p-hero-hdr__deco {
    width: 50%;
  }

  .p-hero-hdr__reverse {
    width: 50%;
  }

  .p-hero-hdr__mobile-trigger {
    display: none;
  }

  .p-hero-hdr__logo {
    width: 25%;
    left: 15px;
  }

  .p-hero-hdr__cta {
    display: flex;
    gap: 12px;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: var(--z_20-content);
  }

  .p-hero-hdr__cta-item {
    width: auto;
    height: auto;
    border-radius: 4px;
  }

  .p-hero-hdr__cta-text {
    font-size: 1rem;
  }

  .p-int-hero-hdr__visual-bubble {
    top: 38%;
    left: calc(67% - 550px);
    width: 300px;
  }
}

/* ==============================================================================
 * 4. 大型デスクトップレイアウト
 * ============================================================================== */
@media screen and (min-width: 1024px) and (min-height: 501px) {
  /* 共通継承のため、1024px以上で追加の差異・特有デザイン調整が必要な場合はここに記述 */
}
