/* ===================================================
   base.css
   リセット・共通スタイル・ヘッダー
   全セクションに影響する基本部分だけをここに置く
   =================================================== */

/* --- リセット --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-jp);
  color: var(--color-text-main);
  background: var(--color-snow);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- ヘッダー --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 251, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 216, 242, 0.3);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo-icon {
  width: 32px;
  height: 32px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(227, 184, 90, 0.3));
  transition: transform 0.3s ease;
}

.header__logo:hover .header__logo-icon {
  transform: rotate(15deg);
}

.header__logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-blue-4), var(--color-blue-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header__logo-textwrap {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}

.header__logo-ruby {
  font-family: var(--font-jp);
  font-size: 9px;
  font-weight: 500;
  color: var(--color-text-sub);
  letter-spacing: 0.15em;
}

.header__cta {
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-white);
  background: var(--grad-cta);
  padding: 10px 20px;
  border-radius: 9999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.header__cta:hover {
  box-shadow: var(--shadow-cta);
  transform: translateY(-1px);
}

/* --- 共通アニメーション --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- PCヘッダー --- */
@media (min-width: 768px) {
  .header {
    padding: 16px 48px;
  }

  .header__logo-icon {
  width: 40px;
  height: 40px;
}

.header__logo-text {
  font-size: 24px;
}

  .header__cta {
    font-size: 14px;
    padding: 12px 28px;
  }
}
