/* ===== Career Portal - Style ===== */

:root {
  --color-primary: #e7380e;
  --color-primary-dark: #c42d09;
  --color-primary-light: #faefe9;
  --color-accent: #1a1a1a;
  --color-bg: #faf8f6;
  --color-bg-alt: #f0edea;
  --radius: 20px;
  --radius-sm: 12px;
}

body {
  background: var(--color-bg);
}

/* ===== Header ===== */
.header {
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.header.scrolled {
  background: rgba(250, 248, 246, 0.95);
  backdrop-filter: blur(12px);
}

/* ===== Header Dropdown Trigger ===== */
.nav-dropdown-trigger {
  background: none;
  border: none;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-text-light);
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-trigger:hover {
  color: var(--color-primary);
}

.nav-dropdown-trigger .dropdown-icon {
  font-size: 1.0rem;
  transition: transform 0.3s ease;
}

.nav-dropdown-trigger[aria-expanded="true"] .dropdown-icon {
  transform: rotate(180deg);
}

/* ===== Positions Dropdown Panel ===== */
.positions-dropdown {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  min-width: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  z-index: 1001;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.positions-dropdown.active {
  opacity: 1;
  max-height: 600px;
}

.positions-dropdown-inner {
  width: min(1120px, 100%);
  max-width: 1120px;
  margin-inline: auto;
  padding: 40px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
  min-width: 0;
}

.dropdown-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-light);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.dropdown-job {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.2s ease;
  min-width: 0;
  box-sizing: border-box;
}

.dropdown-job:hover {
  background: var(--color-bg);
}

.dropdown-job-tag {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.dropdown-job-tag.employee {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.dropdown-job-tag.partner {
  background: #ecf0f3;
  color: #2c3e50;
}

.dropdown-job-title {
  font-size: 1.5rem;
  font-weight: 700;
  grid-column: 2;
}

.dropdown-job-desc {
  font-size: 1.2rem;
  color: var(--color-text-light);
  grid-column: 2;
}

.dropdown-job-arrow {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 1.6rem;
  color: var(--color-text-light);
  transition: transform 0.2s ease, color 0.2s ease;
}

.dropdown-job:hover .dropdown-job-arrow {
  transform: translateX(4px);
  color: var(--color-primary);
}

/* Dropdown overlay — handled by JS outside-click */

@media (max-width: 960px) {
  .positions-dropdown-inner {
    padding: 24px 16px;
  }
}

@media (max-width: 767px) {
  .nav-dropdown-trigger {
    display: none;
  }
}

/* ===== Hero ===== */
.portal-hero {
  padding: 160px 0 80px;
  max-width: none;
  margin: 0 auto;
  background: url("../public/hero-career-bg.png") center center / cover no-repeat;
  position: relative;
}

.portal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(250, 248, 246, 0.9);
}

.portal-hero .container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: end;
  position: relative;
  z-index: 1;
}

.hero-main h1 {
  font-size: 4.4rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-main h1 .thin {
  font-weight: 400;
  display: block;
  font-size: 2.0rem;
  letter-spacing: 0;
  color: var(--color-text-light);
  margin-bottom: 8px;
  font-family: "Noto Sans JP", sans-serif;
}

.hero-aside {
  font-size: 1.5rem;
  line-height: 2.0;
  color: var(--color-text-light);
  border-left: 2px solid var(--color-primary);
  padding: 24px 24px 24px 20px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
}

/* ===== Section shared ===== */
.portal-section {
  padding: 80px 0 96px;
  background: var(--color-bg);
}

.portal-section.alt {
  background: var(--color-bg-alt);
}

.section-label {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.section-lead {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 1.5rem;
  line-height: 1.9;
  color: var(--color-text-light);
  max-width: 640px;
}

/* ===== Why Luxy ===== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--color-border);
}

.why-item {
  padding: 40px 32px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.why-item:nth-child(odd) {
  border-right: 1px solid var(--color-border);
}

.why-item .num {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}

.why-item h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  line-height: 1.45;
}

.why-item p {
  font-size: 1.4rem;
  line-height: 1.85;
  color: var(--color-text-light);
}

/* ===== Positions ===== */
.positions-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 48px;
}

.positions-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.position-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  background: var(--color-white);
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.2s ease;
}

.position-row:hover {
  background: var(--color-bg);
}

.position-tag {
  font-size: 1.2rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.position-tag.employee {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.position-tag.partner {
  background: #ecf0f3;
  color: #2c3e50;
}

.position-title {
  font-size: 1.6rem;
  font-weight: 700;
}

.position-desc {
  font-size: 1.3rem;
  color: var(--color-text-light);
  text-align: right;
  white-space: nowrap;
}

.position-arrow {
  font-size: 1.8rem;
  color: var(--color-text-light);
  transition: transform 0.2s ease;
}

.position-row:hover .position-arrow {
  transform: translateX(4px);
  color: var(--color-primary);
}

/* ===== Numbers ===== */
.numbers-row {
  display: flex;
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.number-item {
  flex: 1;
  padding: 40px 24px;
  text-align: center;
  border-right: 1px solid var(--color-border);
}

.number-item:last-child {
  border-right: none;
}

.number-item .value {
  font-family: "Poppins", sans-serif;
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.1;
}

.number-item .value .unit {
  font-size: 1.6rem;
  font-weight: 400;
}

.number-item .label {
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-top: 8px;
}

/* ===== CEO ===== */
.ceo-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  margin-top: 48px;
  align-items: start;
}

.ceo-photo {
  width: 200px;
  height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-alt);
}

.ceo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ceo-text blockquote {
  font-size: 1.6rem;
  line-height: 2.0;
  margin-bottom: 20px;
  padding: 0;
  border: none;
  color: var(--color-text);
}

.ceo-text .ceo-name {
  font-size: 1.4rem;
  font-weight: 700;
}

.ceo-text .ceo-role {
  font-size: 1.3rem;
  color: var(--color-text-light);
}

/* ===== Video Embed ===== */
.media-video {
  margin-top: 48px;
  margin-bottom: 48px;
}

.video-embed {
  position: relative;
  width: 100%;
  max-width: 720px;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-channel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.video-channel:hover {
  text-decoration: underline;
}

/* note embed 2-column variant */
.note-embed-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 767px) {
  .note-embed-grid--2col {
    grid-template-columns: 1fr;
  }
}

/* ===== Note Embeds ===== */
.note-embed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.note-embed-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

@media (max-width: 1099px) {
  .note-embed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .note-embed-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Note Links ===== */
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.note-card {
  text-decoration: none;
  color: var(--color-text);
  display: block;
  padding: 24px;
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.note-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.note-card .note-category {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.note-card h3 {
  font-size: 1.5rem;
  line-height: 1.55;
  margin-bottom: 8px;
}

.note-card .note-date {
  font-size: 1.2rem;
  color: var(--color-text-light);
}

.note-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.note-more:hover {
  text-decoration: underline;
}

/* ===== Media Blog Card ===== */
.media-blog {
  display: block;
  margin-top: 48px;
  padding: 32px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.media-blog:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.media-blog-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.media-blog-img {
  width: 280px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.media-blog-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.media-blog-desc {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.media-blog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
}

.media-blog:hover .media-blog-link {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .media-blog-inner {
    flex-direction: column;
    gap: 20px;
  }

  .media-blog-img {
    width: 100%;
    max-width: 280px;
  }
}

/* ===== Flow ===== */
.flow-note {
  font-size: 1.4rem;
  color: var(--color-text-light);
  margin-top: 12px;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-primary);
  display: inline-block;
}

.flow-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.flow-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flow-link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.flow-link-tag {
  font-size: 1.1rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  white-space: nowrap;
}

.flow-link-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.flow-link-arrow {
  font-size: 1.6rem;
  color: var(--color-text-light);
  transition: transform 0.2s ease, color 0.2s ease;
}

.flow-link-card:hover .flow-link-arrow {
  transform: translateX(4px);
  color: var(--color-primary);
}

@media (max-width: 767px) {
  .flow-links {
    flex-direction: column;
  }
}

.flow-list {
  display: flex;
  gap: 0;
  margin-top: 48px;
  counter-reset: flow;
}

.flow-item {
  flex: 1;
  text-align: center;
  padding: 32px 20px;
  position: relative;
  counter-increment: flow;
}

.flow-item::before {
  content: counter(flow);
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.08);
  line-height: 1;
  margin-bottom: 12px;
}

.flow-item h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.flow-item p {
  font-size: 1.3rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.flow-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: var(--color-border);
}

/* ===== CTA ===== */
.portal-cta {
  padding: 80px 0;
  text-align: center;
  background: var(--color-bg);
}

.portal-cta .section-lead {
  margin-bottom: 12px;
}

.portal-cta .section-desc {
  margin: 0 auto 32px;
  text-align: center;
}

/* ===== Footer ===== */
.portal-footer {
  background: var(--color-accent);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
  text-align: center;
  font-size: 1.3rem;
}

.portal-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin: 0 16px;
}

.portal-footer a:hover {
  color: #fff;
}

.footer-nav {
  margin-bottom: 16px;
}

/* ===== Floating Note CTA ===== */
.floating-note {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 997;
  display: flex;
  flex-direction: column;
  width: 200px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14);
  text-decoration: none;
  color: var(--color-text);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: floatingNoteBounceIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s both;
}

.floating-note:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.floating-note-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.floating-note-body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.floating-note-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  flex-shrink: 0;
}

.floating-note-text {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
}

@keyframes floatingNoteBounceIn {
  0% {
    opacity: 0;
    transform: translateY(80px);
  }
  40% {
    opacity: 1;
    transform: translateY(-12px);
  }
  55% {
    transform: translateY(6px);
  }
  70% {
    transform: translateY(-4px);
  }
  85% {
    transform: translateY(2px);
  }
  100% {
    transform: translateY(0);
  }
}

/* SP floating note: see responsive section below */

/* ===== Osaka Highlights ===== */
.osaka-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.osaka-item {
  padding: 40px 32px;
  border-right: 1px solid var(--color-border);
}

.osaka-item:last-child {
  border-right: none;
}

.osaka-item .num {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}

.osaka-item h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  line-height: 1.45;
}

.osaka-item p {
  font-size: 1.4rem;
  line-height: 1.85;
  color: var(--color-text-light);
}

/* ===== Animations ===== */

/* 1. Hero text entrance */
.hero-main h1 .thin {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s ease 0.2s forwards;
}

.hero-main h1 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s ease 0.5s forwards;
}

.hero-aside {
  opacity: 0;
  transform: translateX(30px);
  animation: fadeSlideLeft 0.8s ease 0.9s forwards;
}

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

@keyframes fadeSlideLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 2. Why grid stagger */
.why-item.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.why-item.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.why-item.reveal:nth-child(1) { transition-delay: 0s; }
.why-item.reveal:nth-child(2) { transition-delay: 0.15s; }
.why-item.reveal:nth-child(3) { transition-delay: 0.3s; }
.why-item.reveal:nth-child(4) { transition-delay: 0.45s; }

/* Osaka items stagger */
.osaka-item.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.osaka-item.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.osaka-item.reveal:nth-child(1) { transition-delay: 0s; }
.osaka-item.reveal:nth-child(2) { transition-delay: 0.15s; }
.osaka-item.reveal:nth-child(3) { transition-delay: 0.3s; }

/* 3. Position rows slide in */
.position-row {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.2s ease;
}

.position-row.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* 4. Note cards hover tilt + stagger */
.note-card {
  transition: border-color 0.2s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.note-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: var(--shadow-md);
}

.note-card.reveal:nth-child(1) { transition-delay: 0s; }
.note-card.reveal:nth-child(2) { transition-delay: 0.12s; }
.note-card.reveal:nth-child(3) { transition-delay: 0.24s; }

/* 5. Flow items pop in */
.flow-item.reveal {
  opacity: 0;
  transform: scale(0.8) translateY(20px);
}

.flow-item.reveal.revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.flow-item.reveal:nth-child(1) { transition-delay: 0s; }
.flow-item.reveal:nth-child(2) { transition-delay: 0.15s; }
.flow-item.reveal:nth-child(3) { transition-delay: 0.3s; }
.flow-item.reveal:nth-child(4) { transition-delay: 0.45s; }

/* 6. Wave SVG gentle sway */
.section-wave,
.section-wave-bottom {
  animation: waveSway 6s ease-in-out infinite alternate;
}

@keyframes waveSway {
  0% { transform: scaleY(1); }
  100% { transform: scaleY(1.15); }
}

.section-wave-bottom {
  animation: waveSwayFlip 6s ease-in-out infinite alternate;
}

@keyframes waveSwayFlip {
  0% { transform: rotate(180deg) scaleY(1); }
  100% { transform: rotate(180deg) scaleY(1.15); }
}

/* 7. Hero background slow zoom */
.portal-hero {
  overflow: hidden;
}

.portal-hero::after {
  content: "";
  position: absolute;
  inset: -20px;
  background: inherit;
  background-size: cover;
  animation: heroZoom 20s ease-in-out infinite alternate;
  z-index: 0;
}

.portal-hero::before {
  z-index: 1;
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* 8. Section label slide in */
.section-label {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-label.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Section lead fade up */
.section-lead {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
}

.section-lead.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Section desc fade up */
.section-desc {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.section-desc.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 9. CTA button pulse */
.portal-cta .btn {
  animation: ctaPulse 2.5s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(231, 56, 14, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(231, 56, 14, 0);
  }
}

/* CEO photo float */
.ceo-photo {
  animation: ceoFloat 4s ease-in-out infinite alternate;
}

@keyframes ceoFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* Number items bounce in */
.number-item.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.number-item.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.number-item.reveal:nth-child(1) { transition-delay: 0s; }
.number-item.reveal:nth-child(2) { transition-delay: 0.1s; }
.number-item.reveal:nth-child(3) { transition-delay: 0.2s; }
.number-item.reveal:nth-child(4) { transition-delay: 0.3s; }

/* Note more link arrow bounce */
.note-more:hover {
  text-decoration: none;
}

.note-more::after {
  content: "";
  display: inline-block;
  animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* ===== Responsive ===== */
@media (max-width: 1099px) {
  .portal-hero .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-main h1 {
    font-size: 3.2rem;
  }

  .hero-aside {
    max-width: 480px;
  }

  .position-row {
    grid-template-columns: auto 1fr auto;
  }

  .position-desc {
    display: none;
  }
}

@media (max-width: 767px) {
  .portal-hero {
    padding: 120px 0 80px;
  }

  .hero-main h1 {
    font-size: 2.6rem;
  }

  .hero-main h1 .thin {
    font-size: 1.6rem;
  }

  .section-lead {
    font-size: 2.2rem;
  }

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

  .why-item:nth-child(odd) {
    border-right: none;
  }

  .numbers-row {
    flex-wrap: wrap;
  }

  .number-item {
    flex: 0 0 50%;
    border-right: none;
  }

  .number-item:nth-child(odd) {
    border-right: 1px solid var(--color-border);
  }

  .ceo-block {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ceo-photo {
    width: 140px;
    height: 170px;
  }

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

  .flow-list {
    flex-direction: column;
    gap: 0;
  }

  .flow-item:not(:last-child)::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: 0;
    width: 60%;
    height: 1px;
    transform: translateX(-50%);
  }

  .position-row {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 20px;
  }

  .position-tag {
    grid-column: 1 / -1;
  }

  .positions-intro {
    flex-direction: column;
    align-items: start;
  }

  .br-pc {
    display: none;
  }

  .osaka-highlights {
    grid-template-columns: 1fr;
  }

  .osaka-item {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .osaka-item:last-child {
    border-bottom: none;
  }

  .floating-note {
    width: 120px;
  }

  .floating-note-img {
    height: 68px;
  }

  .floating-note-body {
    padding: 8px 10px;
    gap: 6px;
  }

  .floating-note-icon {
    width: 18px;
    height: 18px;
  }

  .floating-note-text {
    font-size: 1.0rem;
  }
}

/* ===== Portal Form ===== */
.portal-form {
  max-width: 480px;
  margin: 32px auto 0;
  text-align: left;
}

.portal-form .form-row {
  margin-bottom: 20px;
}

.portal-form label {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.portal-form .required {
  color: var(--color-primary);
}

.portal-form input,
.portal-form textarea,
.portal-form select {
  width: 100%;
  padding: 12px 16px;
  font-size: 1.5rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  transition: border-color 0.2s ease;
}

.portal-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b6b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.portal-form input:focus,
.portal-form textarea:focus,
.portal-form select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.portal-form textarea {
  resize: vertical;
}

.portal-form .btn {
  width: 100%;
  text-align: center;
}

.portal-form .form-note {
  text-align: center;
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-top: 12px;
}

/* ===== Thanks Page ===== */
.thanks-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks-heading {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  animation: fadeSlideUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.thanks-message {
  font-size: 1.5rem;
  line-height: 1.9;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

/* ===== JS-off fallback ===== */
.no-js .section-label,
.no-js .section-lead,
.no-js .section-desc,
.no-js .position-row,
.no-js .reveal,
.no-js .osaka-item.reveal,
.no-js .hero-main h1,
.no-js .hero-main h1 .thin,
.no-js .hero-aside {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

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