/* ============================================
   株式会社YDN all エコ - Corporate Website
   Fresh Blue Theme + Image Heavy Design
   ============================================ */

:root {
  --primary: #2b7de9;
  --primary-light: #5a9ef0;
  --primary-dark: #1a5bb8;
  --primary-deep: #0f3d7a;
  --accent: #f5a623;
  --accent-light: #ffebc8;
  --accent-hover: #e09510;
  --green: #27ae60;
  --green-light: #e8f8ef;
  --white: #ffffff;
  --sky: #f0f7ff;
  --sky-deep: #dceafa;
  --gray-50: #f8f9fb;
  --gray-100: #f0f2f5;
  --gray-200: #e2e6eb;
  --gray-300: #cbd2da;
  --gray-500: #8a919a;
  --gray-700: #4a5260;
  --text: #2b3040;
  --text-light: #5c6578;
  --shadow-sm: 0 2px 8px rgba(43, 125, 233, 0.06);
  --shadow: 0 4px 24px rgba(43, 125, 233, 0.1);
  --shadow-lg: 0 12px 40px rgba(43, 125, 233, 0.15);
  --radius: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-en: "Montserrat", sans-serif;
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-serif: "Noto Serif JP", serif;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-jp);
  color: var(--text);
  line-height: 1.8;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-light);
}

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

.pc-only { display: inline; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Image placeholder fallback */
.img-placeholder {
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
}

.img-placeholder svg {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  min-width: 48px;
  min-height: 48px;
  flex-shrink: 0;
  flex-grow: 0;
  fill: var(--primary-light);
  opacity: 0.3;
}

/* ============================================
   Header
   ============================================ */
.header {
  background: var(--white);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 16px rgba(43, 125, 233, 0.1);
}

.header-top {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  padding: 7px 0;
}

.header-top-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}

.header-top a {
  color: rgba(255,255,255,0.85);
  font-size: 12px;
}

.header-top a:hover {
  color: var(--white);
}

.header-top .top-tel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.header-top .top-tel svg {
  width: 14px;
  height: 14px;
  fill: var(--accent);
}

.header-top .top-hours {
  font-size: 11px;
  opacity: 0.75;
}

.header-main {
  border-bottom: 1px solid var(--gray-200);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-img {
  height: 54px;
  width: auto;
}

.logo-placeholder {
  width: 42px;
  height: 42px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
}

.logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.logo-text small {
  display: block;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 400;
  color: var(--gray-500);
  letter-spacing: 0.08em;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 24px 16px;
  position: relative;
  display: block;
  transition: color var(--transition);
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
  transition: width var(--transition);
}

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

.nav a:hover::after {
  width: 100%;
}

.nav-contact {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: 50px;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  margin-left: 8px;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-contact::after {
  display: none !important;
}

.nav-contact:hover {
  background: var(--primary-dark) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

.header-tel-sp {
  display: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5.5px, 5.5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5.5px, -5.5px);
}

/* ============================================
   Hero - Full visual with image
   ============================================ */
.hero {
  margin-top: 106px;
  position: relative;
  height: 80vh;
  min-height: 520px;
  max-height: 720px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  background: var(--primary-deep);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero-image .img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e6fd9 0%, #4d9af5 40%, #7bb8f9 70%, #a8d4ff 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 15, 40, 0.92) 0%, rgba(5, 30, 70, 0.8) 50%, rgba(15, 50, 110, 0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.hero-en {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-desc {
  font-size: 16px;
  line-height: 2;
  opacity: 0.9;
  max-width: 560px;
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero-accent-line {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 28px 0;
  border-radius: 2px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll span {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

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

/* ============================================
   Generated Visual Assets
   ============================================ */
.visual-showcase {
  position: relative;
  display: none;
  background:
    linear-gradient(180deg, var(--white) 0%, #f5f9ff 100%);
  padding: 48px 0 64px;
}

.visual-showcase--home {
  margin-top: -1px;
}

.visual-showcase--recruit {
  padding: 40px 0 8px;
  background: linear-gradient(180deg, #f4f9ff 0%, var(--white) 100%);
}

.visual-showcase-frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(43, 125, 233, 0.16);
  box-shadow: 0 18px 50px rgba(15, 61, 122, 0.14);
}

.visual-showcase-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.service-visual {
  display: none;
  margin: -24px auto 44px;
  max-width: 980px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(43, 125, 233, 0.14);
  box-shadow: 0 14px 36px rgba(43, 125, 233, 0.12);
}

.service-visual img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* ============================================
   Section Common
   ============================================ */
.section {
  padding: 100px 0;
  position: relative;
}

.section--sky {
  background: var(--sky);
}

.section--gray {
  background: var(--gray-50);
}

.section--image {
  position: relative;
  color: var(--white);
}

.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-bg .img-placeholder {
  width: 100%;
  height: 100%;
}

.section-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 61, 122, 0.85);
}

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

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title .en {
  display: block;
  font-family: var(--font-en);
  font-size: 44px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.section--image .section-title .en {
  color: var(--white);
}

.section-title h2 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.1em;
}

.section--image .section-title h2 {
  color: rgba(255,255,255,0.7);
}

.section-title::after {
  display: none;
}

/* ============================================
   Philosophy - with background image
   ============================================ */
.philosophy-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-catch {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.9;
  margin-bottom: 36px;
  letter-spacing: 0.06em;
}

.philosophy-text {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 2.2;
}

.philosophy-text + .philosophy-text {
  margin-top: 1.2em;
}

.philosophy-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.value-item {
  text-align: center;
  padding: 36px 24px 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.value-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
}

.value-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.value-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--accent);
}

.value-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.value-item p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ============================================
   Message / 代表挨拶
   ============================================ */
.message-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  max-width: 920px;
  margin: 0 auto;
  align-items: start;
}

.message-photo {
  text-align: center;
}

.message-photo-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.message-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.message-photo-placeholder .img-placeholder {
  width: 100%;
  height: 100%;
}

.message-name {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin-top: 20px;
}

.message-name strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--primary-dark);
  margin-top: 6px;
  letter-spacing: 0.06em;
}

.message-text p {
  font-size: 15px;
  line-height: 2.1;
  margin-bottom: 24px;
  color: var(--text);
}

.message-text p:last-child {
  margin-bottom: 0;
}

/* 写真なしレイアウト */
.message-content--no-photo {
  display: block;
  max-width: 780px;
  margin: 0 auto;
}

.message-content--no-photo .message-text {
  border-left: 4px solid var(--primary);
  padding-left: 32px;
}

.message-sign {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text-light);
  text-align: right;
}

.message-sign strong {
  font-size: 22px;
  color: var(--primary-dark);
  letter-spacing: 0.06em;
  margin-left: 8px;
}

/* ============================================
   Service - Image + Text layout
   ============================================ */
.service-block {
  display: grid;
  grid-template-columns: 420px 1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.service-block:nth-child(even) {
  grid-template-columns: 1fr 420px;
}

.service-block:nth-child(even) .service-image {
  order: 2;
}

.service-block:last-child {
  margin-bottom: 0;
}

.service-image {
  position: relative;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-image .img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.service-image-label {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  letter-spacing: 0.06em;
}

.service-body {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-body-header {
  margin-bottom: 20px;
}

.service-number {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.service-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.service-brand {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--primary-light);
  letter-spacing: 0.1em;
  font-weight: 500;
}

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

.service-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.feature {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: var(--sky);
  border-radius: var(--radius);
  border: 1px solid rgba(43, 125, 233, 0.08);
}

.feature-icon {
  width: 36px;
  height: 36px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 16px;
  height: 16px;
  fill: var(--primary);
}

.feature h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.feature p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
}

.service-items h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.item-tags span {
  display: inline-block;
  padding: 4px 12px;
  background: var(--sky);
  color: var(--primary);
  font-size: 11px;
  font-weight: 500;
  border-radius: 50px;
  border: 1px solid rgba(43, 125, 233, 0.12);
}


/* ============================================
   Company Info
   ============================================ */
.company-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.company-table th,
.company-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  font-size: 15px;
  vertical-align: top;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

.company-table th {
  width: 180px;
  font-weight: 600;
  color: var(--primary);
  background: var(--sky);
  white-space: nowrap;
}

.company-table td {
  color: var(--text);
}

.table-note {
  font-size: 13px;
  color: var(--text-light);
}

/* ============================================
   Contact - with background image
   ============================================ */
.contact-lead {
  text-align: center;
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  line-height: 2;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.contact-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
}

.contact-icon {
  margin-bottom: 14px;
}

.contact-icon svg {
  fill: var(--primary);
}

.contact-box .label {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.contact-box .value {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.contact-box .value a {
  color: var(--primary);
}

.contact-box .value.email {
  font-size: 16px;
}

.contact-box .note {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 8px;
}

.contact-address {
  text-align: center;
  margin-top: 32px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.contact-address strong {
  color: var(--white);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #1a2a42;
  color: rgba(255, 255, 255, 0.7);
}

.footer-main {
  padding: 64px 0 48px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-company-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.footer-company-sub {
  font-family: var(--font-en);
  font-size: 10px;
  opacity: 0.5;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.footer-info {
  font-size: 13px;
  line-height: 2;
  opacity: 0.6;
}

.footer-info a {
  color: rgba(255,255,255,0.7);
}

.footer-info a:hover {
  color: var(--primary-light);
}

.footer-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
  color: var(--white) !important;
  opacity: 1 !important;
}

.footer-tel svg {
  width: 18px;
  height: 18px;
  fill: var(--primary-light);
}

.footer-hours {
  font-size: 12px;
  opacity: 0.5;
  margin-top: 4px;
}

.footer-nav {
  display: flex;
  gap: 48px;
  padding-top: 8px;
}

.footer-nav-col h4 {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
  position: relative;
  padding-bottom: 10px;
}

.footer-nav-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--primary-light);
  border-radius: 1px;
}

.footer-nav-col a {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  padding: 5px 0;
  transition: color var(--transition), padding-left var(--transition);
}

.footer-nav-col a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
}

.footer .copyright {
  font-family: var(--font-en);
  font-size: 11px;
  opacity: 0.35;
  letter-spacing: 0.06em;
}

/* ============================================
   Recruit Page
   ============================================ */
.page-hero {
  margin-top: 106px;
  position: relative;
  height: 360px;
  overflow: hidden;
}

.page-hero-image {
  position: absolute;
  inset: 0;
}

.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-image .img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2b7de9 0%, #5a9ef0 50%, #7bb8f9 100%);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 61, 122, 0.7);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
}

.page-hero h1 {
  font-family: var(--font-en);
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}

.page-hero p {
  font-size: 14px;
  opacity: 0.8;
}

.recruit-section {
  padding: 56px 0;
}

.recruit-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
  letter-spacing: 0.02em;
}

.recruit-section p,
.recruit-section li {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
}

.recruit-section ul {
  list-style: none;
  margin: 16px 0;
}

.recruit-section ul li {
  padding: 6px 0 6px 22px;
  position: relative;
}

.recruit-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.5;
}

.recruit-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.recruit-table th,
.recruit-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  font-size: 14px;
  vertical-align: top;
}

.recruit-table tr:last-child th,
.recruit-table tr:last-child td {
  border-bottom: none;
}

.recruit-table th {
  width: 160px;
  font-weight: 600;
  color: var(--primary);
  background: var(--sky);
  white-space: nowrap;
}

.appeal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 28px 0;
}

.appeal-card {
  background: var(--sky);
  border: 1px solid rgba(43, 125, 233, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
}

/* ナビカード（リンク付きappeal-card）のボタン風スタイル */
a.appeal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  padding-bottom: 0;
  overflow: hidden;
}

a.appeal-card p {
  flex: 1;
}

a.appeal-card::after {
  content: "詳しく見る \2192";
  display: block;
  width: calc(100% + 48px + 4px);
  margin: 14px -26px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  background: var(--primary);
  padding: 10px 0;
  text-align: center;
  transition: background 0.3s;
  flex-shrink: 0;
}

a.appeal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  text-decoration: none;
}

a.appeal-card:hover::after {
  background: var(--primary-dark);
}

/* 福岡NEW OPENカードの枠色 */
a.appeal-card[href="#job-fukuoka"] {
  border-color: var(--accent);
}

a.appeal-card[href="#job-fukuoka"]:hover {
  border-color: var(--accent-hover);
}

a.appeal-card[href="#job-fukuoka"]::after {
  background: var(--accent);
}

a.appeal-card[href="#job-fukuoka"]:hover::after {
  background: var(--accent-hover);
}

.opening-badge {
  display: block;
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  margin-top: 2px;
  letter-spacing: 0.06em;
}

.appeal-card .icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
}

.appeal-card .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.appeal-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.appeal-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 52px 40px;
  text-align: center;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-box h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin-bottom: 12px;
  position: relative;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
  font-size: 15px;
  position: relative;
}

.cta-box .tel {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  position: relative;
  letter-spacing: 0.02em;
}

.cta-box .email-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  display: block;
  margin-top: 10px;
  position: relative;
}

/* ============================================
   Mobile Overlay / Nav
   ============================================ */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1050;
}

.mobile-nav-overlay.active {
  display: block;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: var(--white);
  z-index: 1060;
  transition: right var(--transition);
  padding: 100px 28px 40px;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-close span {
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-nav-close span:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-nav-close span:nth-child(2) {
  transform: rotate(-45deg);
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--gray-200);
}

.mobile-nav .mobile-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.mobile-nav .mobile-hours {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1000px) {
  .nav,
  .header-top {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-tel-sp {
    display: none;
  }

  .hero {
    margin-top: 72px;
  }

  .page-hero {
    margin-top: 72px;
  }

  .service-block,
  .service-block:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .service-block:nth-child(even) .service-image {
    order: 0;
  }

  .service-image .img-placeholder {
    min-height: 240px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-nav {
    gap: 32px;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .pc-only {
    display: none;
  }

  /* SP: translateXアニメーション無効化（横スクロール防止） */
  .anim.anim--left,
  .anim.anim--right {
    transform: translateY(30px);
  }

  .hero {
    height: auto;
    min-height: 420px;
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-desc {
    font-size: 13px;
    line-height: 1.9;
  }

  .hero-scroll {
    display: none;
  }

  .visual-showcase {
    padding: 28px 0 48px;
  }

  .visual-showcase--recruit {
    padding: 28px 0 0;
  }

  .visual-showcase-frame img {
    aspect-ratio: 4 / 3;
    object-position: center;
  }

  .service-visual {
    margin: -12px auto 32px;
  }

  .service-visual img {
    aspect-ratio: 4 / 3;
    object-position: center;
  }

  .section {
    padding: 72px 0;
  }

  .section-title {
    margin-bottom: 44px;
  }

  .section-title .en {
    font-size: 34px;
  }

  .philosophy-catch {
    font-size: 19px;
  }

  .philosophy-text {
    font-size: 13px;
  }

  .philosophy-values {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .message-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .message-photo {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .message-photo-placeholder {
    width: 140px;
    aspect-ratio: 3/4;
  }

  .service-body {
    padding: 28px 24px;
  }

  .service-name {
    font-size: 20px;
  }

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

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

  .footer-nav {
    flex-direction: column;
    gap: 24px;
  }

  .page-hero {
    height: 280px;
  }

  .page-hero h1 {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    height: 60px;
  }

  .hero {
    margin-top: 60px;
    padding: 48px 0;
    min-height: auto;
  }

  .page-hero {
    margin-top: 60px;
    height: 220px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero-desc {
    font-size: 12px;
  }

  .visual-showcase-frame img,
  .service-visual img {
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: var(--white);
  }

  .philosophy-catch {
    font-size: 17px;
  }

  .section-title .en {
    font-size: 28px;
  }

  .logo-text {
    font-size: 14px;
  }

  .logo-placeholder {
    width: 36px;
    height: 36px;
    font-size: 10px;
    border-radius: 6px;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 10px 16px;
  }

  .company-table th {
    padding-bottom: 4px;
    border-bottom: none;
    font-size: 13px;
  }

  .company-table td {
    padding-top: 0;
  }

  .recruit-table th,
  .recruit-table td {
    display: block;
    width: 100%;
  }

  .recruit-table th {
    border-bottom: none;
    padding-bottom: 4px;
  }

  .cta-box {
    padding: 36px 20px;
  }

  .cta-box .tel {
    font-size: 24px;
  }

  .contact-box .value {
    font-size: 20px;
  }

}

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

/* Base hidden state */
.anim {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.anim.anim--up {
  transform: translateY(40px);
}

.anim.anim--left {
  transform: translateX(-40px);
}

.anim.anim--right {
  transform: translateX(40px);
}

.anim.anim--scale {
  transform: scale(0.92);
}

/* Visible state */
.anim.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays */
.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }
.anim-delay-4 { transition-delay: 0.4s; }

/* Hero entrance animation */
.hero-content .hero-en,
.hero-content h1,
.hero-content .hero-accent-line,
.hero-content .hero-desc {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-content .hero-en { animation-delay: 0.2s; }
.hero-content h1 { animation-delay: 0.5s; }
.hero-content .hero-accent-line { animation-delay: 0.8s; }
.hero-content .hero-desc { animation-delay: 0.9s; }

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

/* Section title line animation */
.section-title .en {
  position: relative;
}

.section-title .en::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 2px;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.section--image .section-title .en::after {
  background: var(--accent);
}

.section-title.is-visible .en::after {
  width: 40px;
}

/* Counter animation for numbers (if any) */
@keyframes countPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .anim,
  .hero-content .hero-en,
  .hero-content h1,
  .hero-content .hero-accent-line,
  .hero-content .hero-desc {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .section-title .en::after {
    width: 40px !important;
    transition: none !important;
  }
}
