/* ============================================
   FLOWER PHARMACY RECRUIT - Custom Styles
   ============================================ */

:root {
  /* Base */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F7F7F7;
  --color-text: #1A1A1A;
  --color-text-sub: #666666;
  --color-border: #E5E5E5;

  /* Corporate Navy */
  --color-corp-navy: #1F2C5C;

  /* CTA */
  --color-accent: #1A1A1A;
  --color-accent-fg: #FFFFFF;

  /* Flower 6 Colors */
  --flower-red: #E63946;
  --flower-orange: #F4A261;
  --flower-yellow: #E9C46A;
  --flower-green: #2A9D8F;
  --flower-blue: #264653;
  --flower-purple: #6A4C93;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-feature-settings: "palt";
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

.font-serif-jp {
  font-family: 'Noto Serif JP', serif;
}

.font-inter {
  font-family: 'Inter', sans-serif;
}

/* ============== Hero Section ============== */
.hero-bg-text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-style: italic;
  font-size: clamp(80px, 18vw, 280px);
  line-height: 0.9;
  color: #F2F2F2;
  letter-spacing: -0.04em;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.hero-headline {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.hero-headline .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
}

/* ============== Character Floating ============== */
@keyframes float-y {
  0%, 100% { transform: translateY(-8px); }
  50% { transform: translateY(8px); }
}
@keyframes float-y-delay {
  0%, 100% { transform: translateY(8px); }
  50% { transform: translateY(-8px); }
}

.char-float {
  animation: float-y 3.2s ease-in-out infinite;
}
.char-float-delay {
  animation: float-y-delay 3.6s ease-in-out infinite;
}

/* ============== Section Number ============== */
.section-num {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.section-num::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: currentColor;
  margin-right: 12px;
  vertical-align: middle;
}

/* ============== Chapter Card ============== */
.chapter-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--color-border);
}

.chapter-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
}

.chapter-card:hover::before {
  opacity: 1;
}

.chapter-card:hover {
  transform: translateY(-8px);
}

.chapter-card .chapter-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}

.chapter-card:hover .chapter-accent {
  width: 100%;
}

.chapter-card .chapter-arrow {
  transform: translateX(0);
  transition: transform 0.4s ease;
}

.chapter-card:hover .chapter-arrow {
  transform: translateX(8px);
}

/* ============== Number Counter ============== */
.counter-value {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ============== CTA Button ============== */
.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-accent-fg);
  padding: 24px 64px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: all 0.4s ease;
  overflow: hidden;
}

.cta-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.cta-btn:hover::after {
  left: 100%;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.cta-btn-sm {
  padding: 12px 32px;
  font-size: 13px;
}

/* ============== Header ============== */
.header-fixed {
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.header-scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

/* ============== Reveal Animation ============== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============== Timeline ============== */
.timeline-item {
  position: relative;
  padding-left: 80px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: -40px;
  width: 1px;
  background: var(--color-border);
}

.timeline-item:last-child::before {
  bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 16px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-text);
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px var(--color-text);
  z-index: 2;
}

.timeline-time {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--color-text-sub);
}

/* ============== Marquee for Hero BG Text ============== */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}

/* ============== Interview Cards ============== */
.interview-card {
  background: #fff;
  transition: transform 0.5s ease;
}
.interview-card:hover {
  transform: translateY(-6px);
}
.interview-card .interview-img {
  overflow: hidden;
}
.interview-card .interview-img img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.interview-card:hover .interview-img img {
  transform: scale(1.06);
}

/* ============== Mobile Menu ============== */
.menu-overlay {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.menu-overlay.is-open {
  visibility: visible;
  opacity: 1;
}

.hamburger span {
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============== Footer ============== */
.footer-link {
  position: relative;
  display: inline-block;
}
.footer-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}
.footer-link:hover::after {
  width: 100%;
}

/* ============== Flower Color Utilities (差し色) ============== */
.flower-red { color: var(--flower-red); }
.flower-orange { color: var(--flower-orange); }
.flower-yellow { color: var(--flower-yellow); }
.flower-green { color: var(--flower-green); }
.flower-blue { color: var(--flower-blue); }
.flower-purple { color: var(--flower-purple); }

.bg-flower-red { background-color: var(--flower-red); }
.bg-flower-orange { background-color: var(--flower-orange); }
.bg-flower-yellow { background-color: var(--flower-yellow); }
.bg-flower-green { background-color: var(--flower-green); }
.bg-flower-blue { background-color: var(--flower-blue); }
.bg-flower-purple { background-color: var(--flower-purple); }

/* ============== Scroll indicator ============== */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: rgba(0,0,0,0.2);
  overflow: hidden;
}
.scroll-indicator::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-text);
  animation: scroll-down 2s ease-in-out infinite;
}
@keyframes scroll-down {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* ============== Responsive ============== */
@media (max-width: 768px) {
  .section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .cta-btn {
    padding: 20px 40px;
    width: 100%;
    max-width: 320px;
  }
}

@media (min-width: 769px) {
  .section-padding {
    padding-top: 120px;
    padding-bottom: 120px;
  }
}

/* Selection */
::selection {
  background: var(--color-text);
  color: #fff;
}

/* ============== Hero Badge (Black Box Sub-copy) ============== */
.hero-badge {
  position: relative;
  border-left: 3px solid var(--flower-yellow);
  box-shadow: 8px 8px 0 0 rgba(26, 26, 26, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hero-badge::before {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flower-yellow);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}
.hero-badge:hover {
  transform: translate(-2px, -2px);
  box-shadow: 12px 12px 0 0 rgba(26, 26, 26, 0.12);
}

/* ============== Floating LINE Button ============== */
.floating-line {
  box-shadow: 0 8px 24px rgba(6, 199, 85, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: floating-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s backwards;
}
@keyframes floating-pop {
  0% { transform: translateY(80px) scale(0.6); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.floating-line:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(6, 199, 85, 0.5), 0 6px 16px rgba(0, 0, 0, 0.2);
}
.floating-line-pulse {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 2px solid #06C755;
  animation: line-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes line-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* LINE CTA Button shadow effect */
.line-cta-btn {
  box-shadow: 0 8px 24px rgba(6, 199, 85, 0.35);
  transition: all 0.4s ease;
}
.line-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(6, 199, 85, 0.45);
}

/* ヘッダー LINE ボタン: スクロール後の小型化 */
.header-scrolled .header-line-btn {
  padding-top: 8px;
  padding-bottom: 8px;
}

/* ============== Store Card ============== */
.store-card {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}
.store-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border-color: #1A1A1A;
}
.store-card .store-img {
  position: relative;
}

/* ============ STORE CARDS ============ */
.store-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.18);
  border-color: #1A1A1A;
}
.store-card .store-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.08) 100%);
  pointer-events: none;
}
.store-card dl dt {
  font-size: 10px;
  letter-spacing: 0.15em;
}
.store-card a[href^="https://www.google"]:hover i.fa-arrow-up-right-from-square {
  transform: translate(2px, -2px);
  transition: transform 0.3s ease;
}

/* Store tag color binding */
.bg-flower-red { background-color: var(--flower-red); }
.bg-flower-orange { background-color: var(--flower-orange); }
.bg-flower-yellow { background-color: var(--flower-yellow); color: #1A1A1A; }
.bg-flower-green { background-color: var(--flower-green); }
.bg-flower-blue { background-color: var(--flower-blue); }
.bg-flower-purple { background-color: var(--flower-purple); }

@media (max-width: 768px) {
  .store-card .store-img { aspect-ratio: 16 / 11; }
}

/* ============ OFFICIAL LOGO ============ */
.header-logo-mark {
  transition: transform 0.4s ease;
}
.header-logo-mark:hover {
  transform: rotate(36deg);
}
.footer-logo-mark {
  box-shadow: 0 2px 12px rgba(255,255,255,0.1);
}

/* ============ HEADER LOGO (official mark) ============ */
.header-logo-mark {
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.05));
}
.header-logo-mark:hover {
  transform: rotate(15deg) scale(1.05);
}
.header-fixed.scrolled .header-logo-mark {
  height: 36px;
}

/* Footer logo background plate */
.footer-logo-mark {
  background: white;
  border-radius: 6px;
  padding: 4px;
  transition: transform 0.4s ease;
}
.footer-logo-mark:hover {
  transform: rotate(-15deg);
}

/* Subtle bloom animation on hero scroll into view */
@keyframes logo-bloom {
  0% { transform: scale(0.8) rotate(-30deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.header-logo-mark {
  animation: logo-bloom 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ============ COMPANY PAGE — HISTORY TIMELINE ============ */
.history-timeline {
  position: relative;
}
.history-item {
  position: relative;
  transition: transform 0.4s ease;
}
.history-item:hover {
  transform: translateX(4px);
}
.history-dot {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.history-item:hover .history-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 6px rgba(26, 26, 26, 0.08);
}
.history-item.is-highlight .history-dot {
  width: 20px;
  height: 20px;
  left: -44px;
}
@media (min-width: 768px) {
  .history-item.is-highlight .history-dot {
    left: -56px;
  }
}
.history-item.is-highlight {
  padding-left: 4px;
  border-left: 0;
}

/* ceo portrait subtle lift */
.history-timeline + div {
  transition: transform 0.4s ease;
}

/* Subtle bg flower color helpers (for history-dot) */
.bg-flower-gray { background-color: #999; }

/* ============ INTERVIEW (PEOPLE) PAGE ============ */
.staff-card {
  transition: transform 0.4s ease;
}
.staff-card:hover {
  transform: translateY(-4px);
}
.staff-card .group-hover\:scale-105 {
  will-change: transform;
}
