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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden; /* prevent horizontal scroll on all devices */
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  line-height: 1.8;
  overflow-x: hidden;
  background: #fff;
  min-width: 0;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul, ol { list-style: none; }

/* スクリーンリーダー専用（スパム対策フィールド非表示） */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ==========================================
   VARIABLES
========================================== */
:root {
  --primary:      #111111;
  --accent:       #c9a84c;
  --accent-dark:  #a8873a;
  --text:         #333333;
  --text-light:   #777777;
  --bg:           #ffffff;
  --bg-light:     #f7f7f7;
  --header-h:     80px;
  --ease:         0.35s ease;
  --radius:       4px;
  --shadow:       0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg:    0 16px 48px rgba(0,0,0,0.15);
}

/* ==========================================
   CONTAINER
========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ==========================================
   SECTION COMMON
========================================== */
.section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-en {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  letter-spacing: 0.06em;
}

.section-line {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto;
}

.section-header.light .section-title { color: #fff; }
.section-header.light .section-en    { color: var(--accent); }
.section-line.gold                   { background: var(--accent); }

/* ==========================================
   HEADER
========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: height var(--ease), box-shadow var(--ease);
}

.header.scrolled {
  height: 64px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  display: inline-block;
  font-family: 'Noto Serif JP', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -2px;
  transition: font-size var(--ease);
}

.header.scrolled .logo-mark { font-size: 24px; }

.logo-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* PC Nav */
.nav-list {
  display: flex;
  align-items: center;
}

.nav-link {
  display: block;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--primary);
  position: relative;
  transition: color var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--ease);
}

.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { width: 60%; }

.nav-contact {
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--radius);
  padding: 10px 20px;
  margin-left: 10px;
}
.nav-contact::after { display: none; }
.nav-contact:hover  { background: var(--accent) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all var(--ease);
  transform-origin: center;
}

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

/* Mobile Nav */
.nav { transition: all var(--ease); }

/* ==========================================
   HERO
========================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active { opacity: 1; }

/* Backgrounds */
.hero-bg {
  position: absolute;
  inset: 0;
  transform: scale(1.06);
  transition: transform 8s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active .hero-bg { transform: scale(1); }

.hero-bg-1 {
  background-color: #0d1117;
  background-image:
    linear-gradient(135deg, rgba(10,10,20,0.68) 0%, rgba(20,20,40,0.55) 100%),
    url('https://images.unsplash.com/photo-1521737852567-6949f3f9f2b5?w=1920&q=80&fit=crop');
}

.hero-bg-2 {
  background-color: #150a00;
  background-image:
    linear-gradient(135deg, rgba(15,8,0,0.65) 0%, rgba(35,18,0,0.52) 100%),
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&q=80&fit=crop');
}

.hero-bg-3 {
  background-color: #00101f;
  background-image:
    linear-gradient(135deg, rgba(0,12,28,0.65) 0%, rgba(0,22,45,0.52) 100%),
    url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1920&q=80&fit=crop');
}

/* Content */
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 10%;
  padding-top: var(--header-h);
}

.hero-sub {
  display: block;
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.hero-slide.active .hero-sub {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(26px, 4.5vw, 58px);
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease 0.55s, transform 0.8s ease 0.55s;
}

.hero-slide.active .hero-title {
  opacity: 1;
  transform: translateY(0);
}

.hero-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease 0.8s, transform 0.8s ease 0.8s, background 0.3s ease;
}

.hero-slide.active .hero-btn {
  opacity: 1;
  transform: translateY(0);
}

.hero-btn:hover { background: var(--accent-dark); }

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 10%;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--ease);
}

.hero-dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: 4px;
}

/* Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.hero-scroll-text {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.5);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero-scroll-line {
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================
   ABOUT
========================================== */
.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-heading {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.65;
  margin-bottom: 28px;
}

.about-text p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 2;
  margin-bottom: 16px;
}

.btn-primary {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 36px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  transition: background var(--ease);
}

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

/* About Visual Frame */
.about-visual { display: flex; justify-content: center; }

.about-frame {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
}

.about-frame::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 2px solid var(--accent);
  z-index: 1;
  pointer-events: none;
}

.about-frame::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 100%;
  height: 100%;
  background: var(--accent);
  opacity: 0.15;
  z-index: -1;
}

.about-frame-inner {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(10,10,20,0.42) 0%, rgba(5,5,15,0.32) 100%),
    url('../images/matsumoto_about.jpg');
  background-size: cover;
  background-position: center top;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-frame-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.12) 0%, transparent 70%);
}

.about-kanji {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(80px, 12vw, 130px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -6px;
  line-height: 1;
  position: relative;
  z-index: 1;
  opacity: 0.9;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}

/* ==========================================
   企業理念
========================================== */
.philosophy {
  position: relative;
  overflow: hidden;
}

.philosophy-inner {
  background: var(--primary);
  padding: 120px 0;
  position: relative;
}

.philosophy-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent 0px, transparent 40px,
    rgba(201,168,76,0.03) 40px, rgba(201,168,76,0.03) 41px
  );
}

.philosophy-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.philosophy-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 20px;
  border-radius: 2px;
  margin-bottom: 40px;
}

.philosophy-main {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .philosophy-inner { padding: 80px 0; }
  .philosophy-main  { letter-spacing: 0.02em; }
}

/* ==========================================
   MESSAGE — 代表メッセージ
========================================== */
.message {
  background: #0d1117;
  position: relative;
  overflow: hidden;
}

.message::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(201,168,76,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(201,168,76,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.message .section-header { position: relative; }
.message .section-title  { color: #f5f0e8; }
.message .section-en     { color: var(--accent); }
.message .section-line   { background: var(--accent); }

.message-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  align-items: start;
  margin-top: 60px;
  position: relative;
}

.message-phrase {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(18px, 2.4vw, 25px);
  color: #f5f0e8;
  line-height: 1.8;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(201,168,76,0.35);
  letter-spacing: 0.04em;
}

.message-text p {
  font-size: 15px;
  line-height: 2.4;
  color: rgba(245,240,232,0.75);
  margin-bottom: 16px;
}

.message-sign {
  margin-top: 44px;
  font-size: 14px;
  color: rgba(245,240,232,0.55);
  text-align: right;
  letter-spacing: 0.1em;
}

.message-sign strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #f5f0e8;
  margin-top: 6px;
  letter-spacing: 0.12em;
}

.message-photo-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(13,17,23,0.5) 100%),
    url('../images/matsumoto_about.jpg');
  background-size: cover;
  background-position: center 20%;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,168,76,0.2);
}

@media (max-width: 900px) {
  .message-body {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .message-photo-wrap {
    max-width: 260px;
    margin: 0 auto;
  }
}

/* ==========================================
   MEMBER
========================================== */
.member { background: #f8f6f3; }

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 36px;
  margin-top: 60px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.member-card {
  text-align: center;
}

.member-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center top;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  margin-bottom: 20px;
}

.member-info {
  padding: 0 8px;
}

.member-role {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.35);
  padding: 3px 12px;
  border-radius: 2px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.member-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
}

/* メンバー写真なしのプレースホルダー */
.member-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.member-photo--placeholder .member-initial {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -2px;
  opacity: 0.85;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
  .member-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 560px;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .member-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 340px;
    gap: 20px;
  }
}

/* ==========================================
   MISSION / VISION / VALUE — DRAMATIC
========================================== */
.mvv-block {
  padding: 96px 0;
  min-height: 52vh;
  display: flex;
  align-items: center;
}

.mvv-block--mission { background: #111111; }
.mvv-block--vision  { background: #0b1626; }
.mvv-block--value   { background: #1c1200; }

.mvv-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
}

.mvv-inner--rev     { direction: rtl; }
.mvv-inner--rev > * { direction: ltr; }

.mvv-deco-en {
  display: block;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(60px, 9vw, 120px);
  font-style: italic;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  letter-spacing: -0.02em;
}

.mvv-deco-ja {
  display: block;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.28em;
  margin-top: 18px;
  font-weight: 500;
}

.mvv-phrase {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(18px, 2.4vw, 28px);
  color: #fff;
  line-height: 1.5;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.mvv-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 2.1;
  margin-top: 28px;
  padding-left: 4px;
  letter-spacing: 0.06em;
}

@media (max-width: 900px) {
  .mvv-block { padding: 72px 0; min-height: auto; }
  .mvv-inner,
  .mvv-inner--rev {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 28px;
  }
  .mvv-deco-en { font-size: clamp(48px, 14vw, 80px); }
}

/* ==========================================
   STATS
========================================== */
.stats {
  background: var(--primary);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 24px;
  background: var(--primary);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background var(--ease);
}

.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.5s ease;
}

.stat-item:hover { background: #1a1a1a; }
.stat-item:hover::after { width: 70%; }

.stat-num {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ==========================================
   SERVICE
========================================== */
.service { background: var(--bg-light); }

/* 大見出し */
.service-heading {
  margin-bottom: 56px;
}

.service-en-big {
  font-size: clamp(56px, 9vw, 110px);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -3px;
}

.service-ja-big {
  font-size: 16px;
  color: var(--text-light);
  letter-spacing: 0.2em;
  margin-top: 4px;
}

/* 縦並び行レイアウト */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.service-row {
  display: grid;
  grid-template-columns: 55% 1fr;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--ease);
}

.service-row:hover { box-shadow: var(--shadow-lg); }

/* 画像エリア */
.service-row-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.service-img-1 {
  background-image:
    linear-gradient(135deg, rgba(13,17,23,0.72) 0%, rgba(26,26,46,0.60) 100%),
    url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?w=900&q=80&fit=crop');
}
.service-img-2 {
  background-image:
    linear-gradient(135deg, rgba(21,10,0,0.72) 0%, rgba(45,21,0,0.60) 100%),
    url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?w=900&q=80&fit=crop');
}
.service-img-3 {
  background-image:
    linear-gradient(135deg, rgba(0,21,8,0.72) 0%, rgba(0,45,20,0.60) 100%),
    url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=900&q=80&fit=crop');
}
.service-img-4 {
  background-image:
    linear-gradient(135deg, rgba(10,0,21,0.72) 0%, rgba(24,0,45,0.60) 100%),
    url('https://images.unsplash.com/photo-1568992687947-868a62a9f521?w=900&q=80&fit=crop');
}

.service-icon {
  width: 72px;
  height: 72px;
  opacity: 0.7;
  transition: transform var(--ease), opacity var(--ease);
}

.service-row:hover .service-icon {
  transform: scale(1.1);
  opacity: 0.9;
}

/* バッジ */
.service-row-badge {
  position: absolute;
  bottom: 28px;
  right: 0;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 28px;
  letter-spacing: 0.05em;
}

/* テキストエリア */
.service-row-body {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-row-body h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.service-row-body p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 2;
  margin-bottom: 24px;
}

.service-row-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  display: inline-block;
  transition: letter-spacing var(--ease);
}

.service-row-link:hover { letter-spacing: 0.05em; }

/* レスポンシブ */
@media (max-width: 768px) {
  .service-row { grid-template-columns: 1fr; }
  .service-row-img { min-height: 200px; }
  .service-row-body { padding: 28px 24px; }
  .service-en-big { letter-spacing: -1px; }
}

/* ==========================================
   RECRUIT
========================================== */
.recruit {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.recruit-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #111 0%, #1a1a2e 50%, #0d0d0d 100%);
}

.recruit-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent 0px, transparent 40px,
    rgba(201,168,76,0.03) 40px, rgba(201,168,76,0.03) 41px
  );
}

.recruit .container {
  position: relative;
  z-index: 1;
}

.recruit-body {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.recruit-catch {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 700;
  color: #fff;
  line-height: 1.55;
  margin-bottom: 28px;
}

.recruit-text {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  line-height: 2;
  margin-bottom: 44px;
}

.btn-gold {
  display: inline-block;
  padding: 16px 52px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  transition: background var(--ease), transform var(--ease);
}

.btn-gold:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
}

/* ==========================================
   NEWS
========================================== */
.news-list {
  max-width: 900px;
  margin: 0 auto;
}

.news-item { border-bottom: 1px solid #eee; }
.news-item:first-child { border-top: 1px solid #eee; }

.news-link {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  transition: color var(--ease);
}

.news-date {
  font-size: 13px;
  color: var(--text-light);
  white-space: nowrap;
  min-width: 80px;
  font-weight: 500;
}

.news-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 2px;
  white-space: nowrap;
  min-width: 68px;
  text-align: center;
}

.tag-service { border-color: var(--accent);  color: var(--accent); }
.tag-recruit { border-color: #2d7d46;        color: #2d7d46; }
.tag-result  { border-color: #1a56a0;        color: #1a56a0; }

.news-title {
  font-size: 15px;
  color: var(--text);
  flex: 1;
  transition: color var(--ease);
}

.news-link:hover .news-title { color: var(--accent); }

/* ==========================================
   CONTACT
========================================== */
.contact { background: var(--bg-light); }

.contact-desc {
  text-align: center;
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 48px;
  line-height: 1.9;
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 56px 60px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group { margin-bottom: 24px; }

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.required {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: #fdfdfd;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

/* バリデーションエラー */
.form-input.field-error,
.form-select.field-error,
.form-textarea.field-error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.10);
}

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

.form-textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.8;
}

.form-submit {
  text-align: center;
  margin-top: 8px;
}

.btn-submit {
  padding: 16px 72px;
  background: var(--primary);
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}

.btn-submit:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* Success Message */
.form-success {
  display: none;
  text-align: center;
  padding: 72px 48px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}

.success-icon {
  font-size: 52px;
  color: var(--accent);
  margin-bottom: 24px;
  line-height: 1;
}

.form-success p {
  font-size: 16px;
  color: var(--text);
  line-height: 2;
}

/* ==========================================
   FOOTER
========================================== */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.65);
  padding: 72px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand { max-width: 280px; }

.footer-logo-mark {
  display: block;
  font-family: 'Noto Serif JP', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 14px;
}

.footer-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-nav a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.55);
  transition: color var(--ease);
}

.footer-nav a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  flex-wrap: wrap;
}

.footer-policy {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  transition: color var(--ease);
}

.footer-policy:hover { color: var(--accent); }

.footer-sep {
  color: rgba(255,255,255,0.2);
  font-size: 12px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin-left: auto;
}

/* ==========================================
   PAGE TOP BUTTON
========================================== */
.page-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--accent);
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all var(--ease);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.page-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.page-top:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-4px);
}

/* ==========================================
   REVEAL ANIMATION
========================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

/* ==========================================
   RESPONSIVE — TABLET (≤1024px)
========================================== */
@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about-body {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .about-visual { order: -1; }
  .about-frame  { max-width: 300px; }

  .container { padding: 0 32px; }
}

/* ==========================================
   RESPONSIVE — MOBILE (≤768px)
========================================== */
@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .section { padding: 72px 0; }

  /* Header */
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--ease);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

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

  .nav-link {
    padding: 14px 24px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    letter-spacing: 0.12em;
  }

  .nav-contact {
    margin: 12px 24px 4px;
    text-align: center;
    border-bottom: none;
  }

  .hamburger { display: flex; }

  .logo-img  { height: 38px; }
  .logo-text { font-size: 13px; }

  /* Hero */
  .hero-content {
    padding: 0 6%;
    padding-top: var(--header-h);
  }

  .hero-dots  { left: 6%; bottom: 28px; }
  .hero-scroll { display: none; }

  /* Service */
  .service-grid { grid-template-columns: 1fr; }

  /* Contact Form */
  .contact-form { padding: 32px 20px; }
  .form-row     { grid-template-columns: 1fr; gap: 0; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 40px;
  }

  .footer-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-copy { margin-left: 0; }

  /* Page Top */
  .page-top { bottom: 20px; right: 20px; }
}

/* ==========================================
   COMPANY PROFILE
========================================== */
.company { background: #fff; }

.company-heading { margin-bottom: 56px; }

.company-en-big {
  font-size: clamp(36px, 7vw, 80px);
  font-weight: 900;
  color: #ebebeb;
  letter-spacing: 0.06em;
  line-height: 1;
}

.company-ja-big {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.14em;
  margin-top: 10px;
}

.company-table { border-top: 1px solid #e0e0e0; }

.company-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid #e0e0e0;
  align-items: baseline;
}

.company-label {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 400;
  letter-spacing: 0.1em;
}

.company-value {
  font-size: 16px;
  color: var(--primary);
  line-height: 1.9;
}

@media (max-width: 640px) {
  .company-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px 0;
  }
  .company-label { font-size: 13px; color: var(--accent); }
}

/* ==========================================
   RESPONSIVE — SMALL MOBILE (≤480px)
========================================== */
@media (max-width: 480px) {
  .container { padding: 0 20px; }

  .about-frame { max-width: 240px; }

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

  .stat-item { padding: 36px 16px; }

  /* Hero: prevent scale overflow */
  .hero { overflow: hidden; max-width: 100vw; }
  .hero-slider { overflow: hidden; }
  .hero-slide { overflow: hidden; }

  /* Hero title smaller on very small screens */
  .hero-title { font-size: clamp(22px, 7vw, 36px); margin-bottom: 28px; }
  .hero-btn   { padding: 12px 28px; font-size: 13px; }

  /* Section padding tighter */
  .section { padding: 60px 0; }

  /* MVV tighter */
  .mvv-block { padding: 56px 0; }
  .mvv-phrase { font-size: 17px; padding: 14px 18px; }
  .mvv-sub    { font-size: 13px; }

  /* Service rows tighter */
  .service-row-body { padding: 24px 20px 28px; }
  .service-row-body h3 { font-size: 18px; }
  .service-row-body p  { font-size: 14px; }

  /* Footer */
  .footer-nav ul { gap: 10px 16px; }
  .footer-nav a  { font-size: 12px; }

  /* Message */
  .message-phrase { font-size: 17px !important; }
}
