/* ============================================
   KNOT - 在宅専門看護・リハビリキャリア
   Design Philosophy: Kashiwa Sato inspired
   Minimalism / Bold Typography / Strategic Whitespace
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;

  --accent: #c8161d;
  --accent-dark: #a01118;

  --font-main: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  color: var(--black);
  background: var(--white);
  line-height: 1.8;
  font-weight: 400;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease;
}

.header.scrolled {
  border-bottom-color: var(--gray-200);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.header__logo-knot {
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.08em;
  color: var(--accent);
  line-height: 1;
  position: relative;
}

.header__logo-main {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gray-600);
  line-height: 1.3;
  border-left: 2px solid var(--gray-200);
  padding-left: 12px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header__nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.3s ease;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: width 0.4s var(--ease-out-expo);
}

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

.header__nav-link--cta {
  background: var(--black);
  color: var(--white);
  padding: 10px 24px;
  font-weight: 700;
  transition: background 0.3s ease, transform 0.3s ease;
}

.header__nav-link--cta::after {
  display: none;
}

.header__nav-link--cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.header__hamburger span {
  display: block;
  height: 2px;
  background: var(--black);
  transition: all 0.4s var(--ease-out-expo);
  transform-origin: center;
}

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

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

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

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: var(--white);
}

.hero__bg-text {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  font-size: clamp(200px, 25vw, 400px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--gray-100);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 680px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: var(--white);
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}

.hero__badge-icon {
  color: var(--accent);
  font-size: 16px;
  font-weight: 900;
}

.hero__title {
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.hero__title-line {
  display: block;
}

.hero__title-line--sub {
  font-size: 0.45em;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--white);
  background: var(--black);
  display: inline-block;
  padding: 4px 16px;
  margin-bottom: 8px;
}

.hero__title-line--service {
  color: var(--black);
}

.hero__title-line--accent {
  color: var(--accent);
  position: relative;
}

.hero__title-line--knot {
  color: var(--accent);
  font-size: 1.15em;
  letter-spacing: 0.12em;
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.15em;
}

.hero__title-reading {
  font-size: 0.28em;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: 0.15em;
  align-self: center;
}

.hero__lead {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 2;
  color: var(--gray-600);
  margin-bottom: 28px;
  font-weight: 300;
}

.hero__lead strong {
  color: var(--black);
  font-weight: 700;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero__point {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  letter-spacing: 0.02em;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--black);
  color: var(--white);
  padding: 18px 40px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.hero__cta::after {
  content: '→';
  transition: transform 0.4s var(--ease-out-expo);
}

.hero__cta:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(200, 22, 29, 0.2);
}

.hero__cta:hover::after {
  transform: translateX(4px);
}

/* Hero Visual - Network Animation */
.hero__visual {
  position: relative;
  width: 380px;
  height: 380px;
  flex-shrink: 0;
}

.hero__anim {
  width: 100%;
  height: 100%;
}

/* 中心コア - 脈動 */
.anim-core {
  animation: corePulse 3s ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% { r: 12; opacity: 1; }
  50% { r: 14; opacity: 0.8; }
}

/* パルスリング */
.anim-pulse-1 {
  animation: pulseRing 3s ease-out infinite;
}

.anim-pulse-2 {
  animation: pulseRing 3s ease-out infinite 1.5s;
}

@keyframes pulseRing {
  0% { r: 12; opacity: 0.6; stroke-width: 2; }
  100% { r: 60; opacity: 0; stroke-width: 0.5; }
}

/* 軌道リング回転 */
.anim-orbit-1 {
  animation: orbitSpin 30s linear infinite;
  transform-origin: 200px 200px;
}

.anim-orbit-2 {
  animation: orbitSpin 50s linear infinite reverse;
  transform-origin: 200px 200px;
}

.anim-orbit-3 {
  animation: orbitFade 8s ease-in-out infinite;
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

@keyframes orbitFade {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* ノード浮遊 */
.anim-node {
  animation: nodeFloat 6s ease-in-out infinite;
}

.anim-node-1 {
  animation: nodeOrbit1 12s ease-in-out infinite;
  transform-origin: 200px 200px;
}

.anim-node-2 {
  animation: nodeOrbit2 16s ease-in-out infinite;
  transform-origin: 200px 200px;
}

.anim-node-3 {
  animation: nodeFloat 8s ease-in-out infinite 1s;
}

.anim-node-4 {
  animation: nodeFloat 7s ease-in-out infinite 2s;
}

.anim-node-5 {
  animation: nodeFloat 10s ease-in-out infinite 0.5s;
}

@keyframes nodeOrbit1 {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(30deg); }
}

@keyframes nodeOrbit2 {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-25deg); }
}

@keyframes nodeFloat {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-8px); }
}

/* 接続線 */
.anim-line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: lineAppear 2s var(--ease-out-expo) forwards;
}

.anim-line-1 { animation-delay: 0.3s; }
.anim-line-2 { animation-delay: 0.6s; }
.anim-line-3 { animation-delay: 0.9s; }
.anim-line-4 { animation-delay: 1.2s; }

@keyframes lineAppear {
  to { stroke-dashoffset: 0; }
}

/* 十字マーク - 医療の象徴 */
.anim-cross {
  animation: crossFade 4s ease-in-out infinite;
}

.anim-cross:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes crossFade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__scroll span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  color: var(--gray-400);
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: var(--gray-300);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* --- MESSAGE SECTION --- */
.message {
  padding: 160px 0;
  background: var(--gray-50);
  position: relative;
}

.message__content {
  max-width: 800px;
  position: relative;
}

.message__number {
  font-size: 120px;
  font-weight: 900;
  color: var(--gray-100);
  line-height: 1;
  margin-bottom: -40px;
  position: relative;
  z-index: 0;
}

.message__title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.message__title strong {
  color: var(--accent);
}

.message__text {
  font-size: 16px;
  line-height: 2.2;
  color: var(--gray-600);
  font-weight: 300;
}

.message__text strong {
  color: var(--black);
  font-weight: 700;
}

/* --- PHOTOS SECTION --- */
.photos {
  padding: 0;
  background: var(--white);
}

.photos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.photos__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.photos__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo), filter 0.6s ease;
  filter: brightness(0.9);
}

.photos__item:hover .photos__img {
  transform: scale(1.05);
  filter: brightness(1);
}

.photos__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 100%);
  color: var(--white);
  transform: translateY(8px);
  opacity: 0;
  transition: all 0.5s var(--ease-out-expo);
}

.photos__item:hover .photos__caption {
  transform: translateY(0);
  opacity: 1;
}

.photos__caption-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--white);
  padding: 4px 10px;
  margin-bottom: 8px;
}

.photos__caption p {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

/* --- SECTION HEADER --- */
.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header__number {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.section-header__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header__sub {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gray-400);
}

.section-header--light .section-header__title {
  color: var(--white);
}

.section-header--light .section-header__number,
.section-header--light .section-header__sub {
  color: var(--gray-400);
}

/* --- STRENGTHS --- */
.strengths {
  padding: 160px 0;
  background: var(--white);
}

.strengths__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--gray-200);
}

.strength-card {
  background: var(--white);
  padding: 48px 36px;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.strength-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.10;
  transition: opacity 0.5s var(--ease-out-expo);
  pointer-events: none;
  z-index: 0;
}

.strength-card[data-card="1"]::after { background-image: url('../images/strength-01.jpg'); }
.strength-card[data-card="2"]::after { background-image: url('../images/strength-02.jpg'); }
.strength-card[data-card="3"]::after { background-image: url('../images/strength-03.jpg'); }
.strength-card[data-card="4"]::after { background-image: url('../images/strength-04.jpg'); }
.strength-card[data-card="5"]::after { background-image: url('../images/strength-05.jpg'); }
.strength-card[data-card="6"]::after { background-image: url('../images/strength-06.jpg'); }

.strength-card:hover::after {
  opacity: 0.18;
}

.strength-card > * {
  position: relative;
  z-index: 1;
}

.strength-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width 0.6s var(--ease-out-expo);
  z-index: 2;
}

.strength-card:hover {
  background: var(--white);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.strength-card:hover::before {
  width: 100%;
}

.strength-card__number {
  font-size: 48px;
  font-weight: 900;
  color: var(--gray-100);
  line-height: 1;
  margin-bottom: 24px;
  transition: color 0.4s ease;
}

.strength-card:hover .strength-card__number {
  color: var(--gray-200);
}

.strength-card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.strength-card__text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--gray-500);
  font-weight: 300;
}

/* --- PHILOSOPHY --- */
.philosophy {
  padding: 160px 0;
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.philosophy__inner {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.philosophy__left {
  flex-shrink: 0;
  width: 320px;
}

.philosophy__number {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gray-500);
  margin-bottom: 32px;
}

.philosophy__title-main {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.philosophy__right {
  padding-top: 24px;
  flex: 1;
}

.philosophy__text {
  font-size: 16px;
  line-height: 2.4;
  font-weight: 300;
  color: var(--gray-300);
}

.philosophy__text strong {
  color: var(--white);
  font-weight: 700;
}

.philosophy__company {
  margin-top: 32px;
  font-size: 13px;
  color: var(--gray-500);
  letter-spacing: 0.04em;
}

.philosophy__image {
  flex-shrink: 0;
  width: 280px;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.85;
  transition: opacity 0.5s ease;
}

.philosophy__image:hover {
  opacity: 1;
}

.philosophy__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- FLOW --- */
.flow {
  padding: 160px 0;
  background: var(--gray-50);
}

.flow__steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.flow-step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.flow-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--black);
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
  margin: 0 auto 24px;
  transition: background 0.3s ease;
}

.flow-step:hover .flow-step__num {
  background: var(--accent);
}

.flow-step__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.flow-step__text {
  font-size: 13px;
  line-height: 1.8;
  color: var(--gray-500);
  font-weight: 300;
}

.flow-step__arrow {
  width: 40px;
  height: 56px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-step__arrow::after {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--gray-300);
}

.flow-step__arrow::before {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--gray-300);
  border-right: 2px solid var(--gray-300);
  transform: translateY(-50%) rotate(45deg);
}

/* --- CONTACT --- */
.contact {
  padding: 160px 0;
  background: var(--gray-900);
  color: var(--white);
}

.contact__lead {
  text-align: center;
  font-size: 16px;
  line-height: 2;
  color: var(--gray-400);
  font-weight: 300;
  margin-bottom: 64px;
}

/* --- FORM --- */
.form {
  max-width: 640px;
  margin: 0 auto;
}

.form__group {
  margin-bottom: 32px;
}

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

.form__group--half {
  flex: 1;
}

.form__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--gray-300);
}

.form__required {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 2px 6px;
  letter-spacing: 0.05em;
}

.form__input,
.form__select {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: var(--font-main);
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  color: var(--white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23737373' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form__input::placeholder {
  color: var(--gray-600);
}

.form__input:focus,
.form__select:focus {
  border-color: var(--white);
  box-shadow: 0 0 0 1px var(--white);
}

.form__input.error,
.form__select.error {
  border-color: var(--accent);
}

.form__error {
  font-size: 12px;
  color: var(--accent);
  margin-top: 6px;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form__error.visible {
  opacity: 1;
}

.form__select:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Radio Buttons */
.form__radio-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.form__radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  cursor: pointer;
  transition: all 0.3s ease;
}

.form__radio:hover {
  border-color: var(--gray-500);
}

.form__radio input {
  display: none;
}

.form__radio-mark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-600);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.3s ease;
}

.form__radio-mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform 0.3s var(--ease-out-expo);
}

.form__radio input:checked ~ .form__radio-mark {
  border-color: var(--accent);
}

.form__radio input:checked ~ .form__radio-mark::after {
  transform: translate(-50%, -50%) scale(1);
}

.form__radio input:checked ~ .form__radio-text {
  color: var(--white);
}

.form__radio-text {
  font-size: 14px;
  color: var(--gray-400);
  transition: color 0.3s ease;
}

/* Checkbox */
.form__agreement {
  margin-bottom: 40px;
  text-align: center;
}

.form__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.form__checkbox input {
  display: none;
}

.form__checkbox-mark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-600);
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.form__checkbox-mark::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: 2px solid var(--white);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) scale(0);
  transition: transform 0.3s var(--ease-out-expo);
}

.form__checkbox input:checked ~ .form__checkbox-mark {
  background: var(--accent);
  border-color: var(--accent);
}

.form__checkbox input:checked ~ .form__checkbox-mark::after {
  transform: rotate(45deg) scale(1);
}

.form__checkbox-text {
  font-size: 14px;
  color: var(--gray-400);
}

.form__link {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

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

/* Submit Button */
.form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 20px;
  background: var(--accent);
  color: var(--white);
  border: none;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-main);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.form__submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-dark);
  transition: left 0.4s var(--ease-out-expo);
  z-index: 0;
}

.form__submit:hover::before {
  left: 0;
}

.form__submit-text,
.form__submit-arrow {
  position: relative;
  z-index: 1;
}

.form__submit-arrow {
  transition: transform 0.4s var(--ease-out-expo);
}

.form__submit:hover .form__submit-arrow {
  transform: translateX(4px);
}

.form__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form__submit:disabled::before {
  display: none;
}

/* --- MODAL --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.modal__content {
  position: relative;
  background: var(--white);
  color: var(--black);
  padding: 64px 48px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.5s var(--ease-out-expo);
}

.modal.active .modal__content {
  transform: translateY(0);
}

.modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--black);
  color: var(--white);
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 24px;
}

.modal__title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 16px;
}

.modal__text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.modal__announcement {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: center;
}

.modal__announcement-main {
  font-size: 14px;
  line-height: 1.8;
  color: var(--dark);
  margin-bottom: 16px;
}

.modal__announcement-main strong {
  color: var(--accent);
  font-size: 16px;
}

.modal__phone-info {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
}

.modal__phone-label {
  font-size: 11px;
  color: var(--gray-500);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.modal__phone-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 8px;
}

.modal__phone-number a {
  color: var(--dark);
  text-decoration: none;
}

.modal__phone-number svg {
  color: var(--accent);
}

.modal__phone-note {
  font-size: 11px;
  color: var(--gray-500);
  line-height: 1.6;
}

.modal__btn {
  display: inline-block;
  padding: 14px 48px;
  background: var(--black);
  color: var(--white);
  border: none;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  transition: background 0.3s ease;
}

.modal__btn:hover {
  background: var(--accent);
}

/* --- FOOTER --- */
.footer {
  padding: 64px 0 32px;
  background: var(--black);
  color: var(--white);
  border-top: 1px solid var(--gray-800);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__service-name {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.footer__desc {
  font-size: 11px;
  color: var(--gray-500);
}

.footer__info {
  text-align: right;
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.8;
}

.footer__copy {
  font-size: 11px;
  color: var(--gray-600);
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--gray-800);
}

/* --- SCROLL ANIMATIONS --- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .philosophy__inner {
    flex-direction: column;
    gap: 48px;
  }

  .philosophy__left {
    width: 100%;
  }

  .philosophy__image {
    width: 100%;
    max-height: 300px;
  }

  .strengths__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .header__inner {
    padding: 0 24px;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 0;
    transition: right 0.5s var(--ease-out-expo);
  }

  .header__nav.active {
    right: 0;
  }

  .header__nav-link {
    font-size: 18px;
    padding: 20px 0;
    font-weight: 700;
  }

  .header__nav-link--cta {
    margin-top: 20px;
    padding: 16px 40px;
  }

  .header__hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 100px 0 60px;
  }

  .hero__inner {
    flex-direction: column;
    padding: 0 24px;
  }

  .hero__visual {
    width: 240px;
    height: 240px;
    margin-top: 32px;
    order: 2;
  }

  .hero__bg-text {
    font-size: 120px;
    right: -10%;
  }

  .hero__scroll {
    display: none;
  }

  .hero__points {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
  }

  .hero__lead {
    margin-bottom: 24px;
  }

  .hero__cta {
    width: 100%;
    justify-content: center;
    padding: 16px 32px;
  }

  /* Message */
  .message {
    padding: 100px 0;
  }

  .message__number {
    font-size: 80px;
    margin-bottom: -24px;
  }

  /* Photos */
  .photos__grid {
    grid-template-columns: 1fr;
  }

  .photos__item {
    aspect-ratio: 16 / 9;
  }

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

  /* Strengths */
  .strengths {
    padding: 100px 0;
  }

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

  .strength-card {
    padding: 36px 28px;
  }

  /* Philosophy */
  .philosophy {
    padding: 100px 0;
  }

  .philosophy__title-main {
    font-size: 24px;
  }

  /* Flow */
  .flow {
    padding: 100px 0;
  }

  .flow__steps {
    flex-direction: column;
    gap: 0;
    align-items: center;
  }

  .flow-step {
    padding: 24px;
    width: 100%;
  }

  .flow-step__arrow {
    width: 56px;
    height: 32px;
    transform: rotate(90deg);
  }

  /* Contact */
  .contact {
    padding: 100px 0;
  }

  .form__row {
    flex-direction: column;
    gap: 0;
  }

  .form__group--half {
    margin-bottom: 32px;
  }

  .form__radio-group {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer__info {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .header__logo-main {
    font-size: 12px;
  }

  .hero__title {
    font-size: 36px;
  }

  .section-header {
    margin-bottom: 48px;
  }
}

/* ===== JOB TICKER ===== */
.job-ticker {
  background: var(--dark);
  color: var(--white);
  padding: 10px 0;
  overflow: hidden;
  position: relative;
}

.job-ticker__inner {
  display: flex;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.job-ticker__label {
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  margin-right: 16px;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.job-ticker__track {
  overflow: hidden;
  flex: 1;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.job-ticker__content {
  display: flex;
  gap: 48px;
  animation: tickerScroll 30s linear infinite;
  white-space: nowrap;
}

.job-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.job-ticker__item:hover {
  opacity: 0.7;
}

.job-ticker__item-type {
  background: rgba(255,255,255,0.15);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
}

.job-ticker__item-title {
  font-weight: 500;
}

.job-ticker__item-area {
  color: var(--gray-300);
  font-size: 12px;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== JOB SEARCH ===== */
.job-search {
  padding: 120px 0;
  background: var(--gray-50);
}

.job-search__filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 48px;
  padding: 32px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.job-search__filter-group {
  flex: 1;
  min-width: 160px;
}

.job-search__label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.job-search__select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23666'/%3E%3C/svg%3E") no-repeat right 12px center;
  transition: border-color 0.3s ease;
}

.job-search__select:focus {
  outline: none;
  border-color: var(--accent);
}

.job-search__btn {
  padding: 10px 32px;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.job-search__btn:hover {
  background: var(--accent);
}

.job-search__results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.job-card {
  background: var(--white);
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
  overflow: hidden;
}

.job-card__body {
  padding: 24px;
}

.job-card__photo {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.job-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.job-card:hover .job-card__photo img {
  transform: scale(1.05);
}

.job-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(200,22,29,0.08);
  transform: translateY(-2px);
}

.job-card__header {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.job-card__tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--gray-50);
  color: var(--gray-500);
  font-weight: 500;
}

.job-card__tag--type {
  background: rgba(200,22,29,0.08);
  color: var(--accent);
}

.job-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
}

.job-card__facility {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.job-card__info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

.job-card__salary {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.job-card__area {
  font-size: 12px;
  color: var(--gray-400);
}

.job-search__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
  font-size: 15px;
}

/* Job Detail Modal */
.job-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.job-modal.is-active {
  display: flex;
}

.job-modal__content {
  background: var(--white);
  border-radius: 12px;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 48px;
}

.job-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.job-modal__close:hover {
  background: var(--gray-200);
}

.job-modal__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.job-modal__facility {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.job-modal__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.job-modal__section {
  margin-bottom: 20px;
}

.job-modal__section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-500);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.job-modal__section-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--dark);
}

.job-modal__cta {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  margin-top: 32px;
  transition: background 0.3s ease;
}

.job-modal__cta:hover {
  background: #a01118;
}

.job-modal__tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.job-modal__tag {
  display: inline-block;
  background: #f0f4f8;
  color: #334155;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.job-modal__section-sub {
  font-size: 13px;
  color: #64748b;
  line-height: 1.7;
  margin-top: 6px;
  padding-left: 8px;
  border-left: 2px solid #e2e8f0;
}

.job-modal__gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 16px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.job-modal__gallery-item {
  flex-shrink: 0;
  width: 200px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid #e2e8f0;
}

.job-modal__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.job-modal__gallery-item img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .job-ticker__content {
    animation-duration: 20s;
  }

  .job-search__filters {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }

  .job-search__filter-group {
    min-width: 100%;
  }

  .job-search__results {
    grid-template-columns: 1fr;
  }

  .job-modal__content {
    padding: 28px;
    max-height: 90vh;
  }
}

/* ===== PRIVACY POLICY MODAL ===== */
.privacy-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.privacy-modal.is-active {
  display: flex;
}

.privacy-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.privacy-modal__content {
  position: relative;
  background: var(--white);
  border-radius: 12px;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  animation: privacyFadeIn 0.3s ease;
}

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

.privacy-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid var(--gray-100);
  flex-shrink: 0;
}

.privacy-modal__title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--dark);
}

.privacy-modal__close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-50);
  border-radius: 50%;
  font-size: 22px;
  color: var(--gray-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.privacy-modal__close:hover {
  background: var(--gray-100);
  color: var(--dark);
}

.privacy-modal__body {
  overflow-y: auto;
  padding: 28px 32px;
  flex: 1;
  font-size: 14px;
  line-height: 1.9;
  color: var(--gray-600);
}

.privacy-modal__intro {
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--dark);
  background: var(--gray-50);
  padding: 20px 24px;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.privacy-modal__section {
  margin-bottom: 28px;
}

.privacy-modal__section h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--dark);
  display: inline-block;
}

.privacy-modal__section p {
  margin-bottom: 10px;
}

.privacy-modal__section ul {
  margin: 10px 0;
  padding-left: 20px;
}

.privacy-modal__section ul li {
  margin-bottom: 6px;
  position: relative;
  padding-left: 4px;
}

.privacy-modal__section ul li::marker {
  color: var(--accent);
}

.privacy-modal__table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}

.privacy-modal__table th,
.privacy-modal__table td {
  padding: 10px 14px;
  border: 1px solid var(--gray-100);
  text-align: left;
}

.privacy-modal__table th {
  background: var(--gray-50);
  font-weight: 700;
  color: var(--dark);
  width: 160px;
  white-space: nowrap;
}

.privacy-modal__table td a {
  color: var(--accent);
  text-decoration: none;
}

.privacy-modal__section--contact {
  background: var(--gray-50);
  padding: 24px;
  border-radius: 8px;
}

.privacy-modal__contact-box {
  margin-top: 12px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--gray-100);
}

.privacy-modal__contact-box p {
  margin-bottom: 4px;
}

.privacy-modal__contact-box a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.privacy-modal__contact-box a:hover {
  text-decoration: underline;
}

.privacy-modal__updated {
  text-align: right;
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.privacy-modal__footer {
  padding: 20px 32px;
  border-top: 1px solid var(--gray-100);
  text-align: center;
  flex-shrink: 0;
}

.privacy-modal__btn {
  display: inline-block;
  padding: 14px 48px;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.privacy-modal__btn:hover {
  background: #333;
}

@media (max-width: 768px) {
  .privacy-modal {
    padding: 12px;
  }

  .privacy-modal__content {
    max-height: 90vh;
  }

  .privacy-modal__header {
    padding: 18px 20px;
  }

  .privacy-modal__title {
    font-size: 16px;
  }

  .privacy-modal__body {
    padding: 20px;
  }

  .privacy-modal__table th {
    width: 110px;
    font-size: 12px;
  }

  .privacy-modal__table td {
    font-size: 12px;
  }

  .privacy-modal__footer {
    padding: 16px 20px;
  }

  .privacy-modal__btn {
    width: 100%;
    padding: 14px;
  }
}