/* =============================================
   Horizon Innovation — common.css
   全ページ共通スタイル（このファイル → ページ別CSS の順で読み込む）
   リセット / ボタン / ヘッダー / フッター / reveal 等の共通ルールを集約。
   ページ固有の差異（ブランド色など）があるルールは各ページCSS側に残し、
   後から読み込まれるページCSSが上書きする。
============================================= */

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

body {
  font-family: var(--font-sans);
  color: var(--gray);
  background: var(--cream);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

ul { list-style: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-101%);
  transition: transform var(--transition);
  z-index: -1;
}

.btn:hover::before { transform: translateX(0); }

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(13, 27, 42, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--side-pad);
  height: 70px;
  max-width: calc(var(--max-w) + var(--side-pad) * 2);
  margin: 0 auto;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
}

.header__nav-list a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition-fast);
  position: relative;
  padding-bottom: 2px;
}

.header__nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.header__nav-list a:hover { color: var(--white); }

.header__nav-list a:hover::after { width: 100%; }

.header__nav-cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 2px;
  font-weight: 500 !important;
}

.header__nav-cta::after { display: none !important; }

.header__nav-item.has-dropdown {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.header__dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,0.85);
}

.header__dropdown-arrow {
  display: block;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition-fast);
}

.header__dropdown-toggle[aria-expanded="true"] .header__dropdown-arrow {
  transform: rotate(-135deg);
}

.header__dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  min-width: 190px;
  background: rgba(13, 27, 42, 0.97);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 0;
  display: none;
  flex-direction: column;
  z-index: 200;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.header__dropdown.open { display: flex; }

.header__dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.header__dropdown a::after { display: none; }

.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 1001;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}

.header__hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }

.header__hamburger.open span:nth-child(2) { opacity: 0; }

.header__hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.page-hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.page-hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.5);
  animation: scrollPulse 2s 1.8s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

.page-hero__scroll-text {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.6);
}

.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: clamp(50px, 7vw, 80px) 0 0;
}

.footer__inner {
  max-width: calc(var(--max-w) + var(--side-pad) * 2);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 40px;
}

.footer__logo {
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.footer__tagline {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer__nav a {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}

.footer__nav a:hover { color: var(--white); }

.footer__nav-item--brand {
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__subnav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 6px 28px;
  padding-left: 16px;
}

.footer__subnav a {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
}

.footer__subnav a:hover { color: var(--white); }

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.footer__social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(203,164,94,0.08);
}

.footer__social-link svg { width: 16px; height: 16px; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}

.footer__copy {
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.08s; }

.reveal-delay-2 { transition-delay: 0.16s; }

.reveal-delay-3 { transition-delay: 0.24s; }

.reveal-delay-4 { transition-delay: 0.32s; }

.reveal-delay-5 { transition-delay: 0.40s; }

html { scroll-behavior: smooth; font-size: 16px; }

.page-hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  animation: fadeInUp 0.8s 0.75s both;
}

@media (max-width: 900px) {
.header__nav { display: none; }

.header__hamburger { display: flex; }

.header__nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(13,27,42,0.97);
    align-items: center;
    justify-content: center;
    z-index: 999;
  }

.header__nav.open .header__nav-list {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

.header__nav.open .header__nav-list a { font-size: 1.1rem; }

.header__nav-item.has-dropdown {
    flex-direction: column;
  }

.header__dropdown {
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    align-items: center;
    padding: 12px 0 0;
    gap: 16px;
  }

.header__dropdown a {
    padding: 0;
    text-align: center;
    font-size: 0.95rem;
  }

.footer__top { grid-template-columns: 1fr 1fr; }

.footer__social { grid-column: span 2; }
}

@media (max-width: 640px) {
.page-hero__features { gap: 6px; }
}
