/* リセット & ベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --light-blue: #66C6E4;
  --dark-blue: #29385B;
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --text-dark: #333333;
  --text-light: #666666;
  --light-blue-hover: #7DD3F0;
  --dark-blue-hover: #3A4A6B;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.2);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
  /* 拡大縮小時の文字の不自然な変化を防ぐ */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ロゴはCSSテキストで表現するため、画像関連のスタイルは不要 */

/* スクロールバーのスタイリング */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--light-blue), var(--dark-blue));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--dark-blue), var(--light-blue));
}

/* 選択テキストのスタイリング */
::selection {
  background-color: var(--light-blue);
  color: var(--white);
}

::-moz-selection {
  background-color: var(--light-blue);
  color: var(--white);
}

/* アニメーション定義 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

/* パフォーマンス最適化 */
.service-item,
.knowledge-item,
.problem-item,
.btn-detail,
.btn-recruit {
  will-change: transform;
}

/* スムーズなトランジション */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(15px, 2vw, 20px);
  width: 100%;
  box-sizing: border-box;
}

/* ヘッダー */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--dark-blue);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  background: var(--dark-blue);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(12px, 1.5vw, 15px) clamp(15px, 2vw, 20px);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 30px);
  width: 100%;
  justify-content: flex-end;
}

/* ヘッダー用の小さなロゴ（必要に応じて追加可能） */
.logo-small {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 1.8vw, 16px);
  background: linear-gradient(135deg, var(--dark-blue), var(--light-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.logo-small:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: clamp(20px, 2.5vw, 30px);
  order: 1;
}

/* デスクトップでのドロップダウンメニュー */
@media (min-width: 769px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    right: clamp(15px, 2vw, 20px);
    width: auto;
    min-width: 250px;
    background: var(--dark-blue);
    flex-direction: column;
    align-items: stretch;
    padding: clamp(15px, 2vw, 20px);
    border-radius: clamp(8px, 1vw, 10px);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    gap: 0;
    margin-top: clamp(10px, 1.2vw, 15px);
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu li {
    width: 100%;
    margin-bottom: clamp(8px, 1vw, 10px);
  }

  .nav-menu li:last-child {
    margin-bottom: 0;
  }

  .nav-menu a {
    display: block;
    width: 100%;
    padding: clamp(10px, 1.2vw, 12px) clamp(15px, 2vw, 20px);
    border-radius: clamp(5px, 0.6vw, 6px);
    text-align: left;
  }

  .nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background: var(--dark-blue);
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(30px, 4vw, 40px) clamp(20px, 3vw, 30px);
    transition: right 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    gap: 0;
  }

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

  .nav-menu li {
    width: 100%;
    margin-bottom: clamp(15px, 2vw, 20px);
  }

  .nav-menu a {
    display: block;
    width: 100%;
    padding: clamp(12px, 1.5vw, 15px);
    border-radius: clamp(6px, 0.8vw, 8px);
  }
}

.nav-menu a {
  text-decoration: none;
  color: var(--white);
  font-size: clamp(12px, 1.5vw, 14px);
  transition: all 0.3s ease;
  position: relative;
  padding: clamp(3px, 0.5vw, 5px) 0;
  font-weight: 500;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: rgba(255, 255, 255, 0.9);
}

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

.btn-inquiry {
  background: var(--dark-blue);
  color: var(--white) !important;
  padding: clamp(6px, 0.8vw, 8px) clamp(15px, 2vw, 20px);
  border-radius: clamp(5px, 0.6vw, 6px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  font-size: clamp(12px, 1.4vw, 14px);
}

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

.btn-inquiry:hover {
  background: var(--dark-blue-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-inquiry:hover::before {
  left: 100%;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: clamp(8px, 1vw, 10px);
  z-index: 1001;
  position: relative;
  order: 2;
}

.menu-toggle span {
  width: clamp(22px, 2.5vw, 25px);
  height: 2px;
  background-color: var(--white);
  margin: clamp(2px, 0.3vw, 3px) 0;
  transition: 0.3s;
  display: block;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(clamp(5px, 0.6vw, 6px), clamp(5px, 0.6vw, 6px));
}

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(clamp(5px, 0.6vw, 6px), clamp(-5px, -0.6vw, -6px));
}

/* ヒーローセクション */
.hero {
  padding: clamp(60px, 8vw, 80px) clamp(15px, 2vw, 20px) clamp(40px, 5vw, 50px);
  text-align: center;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  /* スマホでも崩れないように */
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ヒーローセクションの背景を統一 */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(248, 251, 255, 0.3) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-bg-decoration {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(102, 198, 228, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 clamp(15px, 2vw, 20px);
  box-sizing: border-box;
}

.hero-tagline {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 300;
  color: var(--text-dark);
  margin-bottom: clamp(30px, 4vw, 40px);
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
}

.hero-logo {
  margin: clamp(30px, 4vw, 40px) 0;
  padding: clamp(10px, 1.5vw, 15px);
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  position: relative;
  z-index: 2;
  isolation: isolate;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ロゴテキストコンテナ */
.logo-text-container {
  display: inline-flex;
  align-items: baseline;
  gap: clamp(8px, 1vw, 12px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  animation: fadeIn 1s ease-out;
}

/* Tonari部分 */
.logo-tonari {
  font-size: clamp(36px, 5vw, 56px);
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
  animation: logoSlideInLeft 0.8s ease-out;
}

.logo-tonari::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--light-blue), transparent);
  transform: scaleX(0);
  transform-origin: left;
  animation: logoUnderline 1s ease-out 0.5s forwards;
}

/* Biz部分 */
.logo-biz {
  font-size: clamp(32px, 4.5vw, 48px);
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--dark-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
  animation: logoSlideInRight 0.8s ease-out;
  font-weight: 600;
}

.logo-biz::before {
  content: '';
  position: absolute;
  top: -5px;
  right: -5px;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, var(--light-blue), transparent);
  border-radius: 50%;
  opacity: 0;
  animation: logoDot 1s ease-out 0.8s forwards;
}

/* ローダー用ロゴ */
.loader-logo .logo-text-container {
  animation: logoFloat 2s ease-in-out infinite;
}

.loader-logo .logo-tonari,
.loader-logo .logo-biz {
  animation: none;
}

/* ロゴアニメーション */
@keyframes logoSlideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes logoSlideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes logoUnderline {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes logoDot {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ホバー効果 */
.hero-logo:hover .logo-tonari {
  transform: translateY(-2px);
}

.hero-logo:hover .logo-biz {
  transform: translateY(-2px) scale(1.05);
}

.information {
  margin-top: clamp(30px, 4vw, 40px);
  padding: clamp(20px, 2.5vw, 25px);
  border-top: 2px solid rgba(102, 198, 228, 0.15);
  background: rgba(255, 255, 255, 0.8);
  border-radius: clamp(8px, 1vw, 12px);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

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

.info-label {
  font-size: 12px;
  color: var(--light-blue);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  position: relative;
  display: inline-block;
  padding-left: 20px;
}

.info-label::before {
  content: '●';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8px;
}

.info-content {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.info-date {
  font-size: clamp(13px, 1.5vw, 14px);
  color: var(--dark-blue);
  margin-bottom: clamp(6px, 0.8vw, 8px);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.info-text {
  font-size: clamp(14px, 1.6vw, 15px);
  color: var(--text-dark);
  line-height: 1.7;
}

/* Conceptセクション */
.concept {
  padding: clamp(40px, 6vw, 60px) clamp(15px, 2vw, 20px);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  position: relative;
}


.concept::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--light-blue), transparent);
}

.section-label {
  font-size: clamp(12px, 1.5vw, 14px);
  color: var(--text-light);
  text-transform: lowercase;
  margin-bottom: clamp(12px, 1.5vw, 18px);
  font-weight: 400;
  letter-spacing: 0.1em;
  position: relative;
  display: inline-block;
  padding-left: clamp(15px, 2vw, 20px);
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 2px;
  background: linear-gradient(90deg, var(--light-blue), transparent);
  transform: translateY(-50%);
}

.section-title {
  font-size: clamp(24px, 3.5vw, 32px);
  color: var(--text-dark);
  margin-bottom: clamp(15px, 2vw, 25px);
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: clamp(8px, 1.2vw, 12px);
  text-align: center;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--light-blue), var(--dark-blue));
  border-radius: 2px;
}

.concept-content {
  max-width: 800px;
  margin: 0 auto clamp(30px, 4vw, 40px);
  text-align: center;
}

.concept-text {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-dark);
  margin-bottom: clamp(20px, 2.5vw, 25px);
  line-height: 1.9;
  letter-spacing: 0.01em;
  position: relative;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.concept-text::before {
  content: '“';
  position: absolute;
  left: 0;
  top: -5px;
  font-size: 40px;
  color: var(--light-blue);
  opacity: 0.3;
  font-family: serif;
  line-height: 1;
}

.concept-visual {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3vw, 30px);
  margin-top: clamp(25px, 4vw, 35px);
  flex-wrap: wrap;
}

.circle {
  width: clamp(60px, 9vw, 90px);
  height: clamp(60px, 9vw, 90px);
  border: clamp(2px, 0.3vw, 3px) solid var(--light-blue);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(102, 198, 228, 0.1), rgba(102, 198, 228, 0.05));
  position: relative;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-sm);
}

.circle-animate {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.circle:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--dark-blue);
}

.circle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--light-blue), transparent);
  opacity: 0.3;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.circle:hover::before {
  opacity: 0.5;
}

/* Serviceセクション */
.service {
  padding: clamp(40px, 6vw, 60px) clamp(15px, 2vw, 20px);
  background: linear-gradient(180deg, #f8fbff 0%, var(--light-gray) 100%);
  position: relative;
}

.service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--light-blue), transparent);
}

.service-heading {
  font-size: clamp(22px, 3vw, 28px);
  color: var(--text-dark);
  text-align: center;
  margin-bottom: clamp(12px, 1.5vw, 18px);
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: clamp(8px, 1.2vw, 12px);
}

.service-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--light-blue), var(--dark-blue));
  border-radius: 2px;
}

.service-intro {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--text-light);
  text-align: center;
  max-width: clamp(600px, 70vw, 700px);
  margin: 0 auto clamp(25px, 3vw, 35px);
  line-height: 1.8;
}

.service-item {
  background-color: var(--white);
  padding: clamp(25px, 3vw, 35px);
  margin-bottom: clamp(25px, 3vw, 35px);
  border-radius: clamp(10px, 1.2vw, 12px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 198, 228, 0.05), transparent);
  transition: left 0.6s ease;
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-item:hover::before {
  left: 100%;
}

.service-card {
  border-top: 3px solid transparent;
  transition: border-color 0.3s ease;
}

.service-card:hover {
  border-top-color: var(--light-blue);
}

.service-item-header {
  margin-bottom: clamp(15px, 2vw, 22px);
  text-align: center;
}

.service-item-title {
  font-size: clamp(20px, 2.8vw, 26px);
  color: var(--text-dark);
  margin-bottom: clamp(8px, 1vw, 10px);
  font-weight: 600;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, var(--text-dark), var(--dark-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-item-subtitle {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--text-light);
  margin-bottom: clamp(25px, 3vw, 30px);
  text-align: center;
}

.service-visual {
  display: flex;
  gap: clamp(10px, 1.2vw, 15px);
  margin-bottom: clamp(20px, 2.5vw, 25px);
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
}

.visual-block {
  flex: 1;
  min-width: clamp(100px, 14vw, 140px);
  max-width: clamp(140px, 18vw, 180px);
  height: clamp(120px, 16vw, 160px);
  background: linear-gradient(135deg, var(--light-blue), var(--dark-blue));
  border-radius: clamp(8px, 1.2vw, 12px);
  opacity: 0.9;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.2vw, 15px);
}

.visual-illustration {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-illustration svg {
  width: 100%;
  height: 100%;
  max-width: clamp(80px, 12vw, 120px);
  max-height: clamp(80px, 12vw, 120px);
}

.visual-block::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.visual-block:hover {
  transform: scale(1.05) translateY(-5px);
  opacity: 1;
  box-shadow: var(--shadow-md);
}

.visual-block:hover::before {
  opacity: 1;
}

.visual-block:hover .visual-illustration svg {
  transform: scale(1.1);
  transition: transform 0.4s ease;
}

.visual-illustration svg {
  transition: transform 0.4s ease;
}

.visual-illustration svg text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.visual-block-animate {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.service-item-description {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--text-dark);
  line-height: 1.9;
  margin-bottom: clamp(18px, 2.5vw, 25px);
  letter-spacing: 0.01em;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn-detail {
  display: inline-block;
  background: linear-gradient(135deg, var(--dark-blue), var(--light-blue));
  color: var(--white);
  padding: clamp(10px, 1.2vw, 12px) clamp(25px, 3vw, 30px);
  text-decoration: none;
  border-radius: clamp(6px, 0.8vw, 8px);
  font-size: clamp(13px, 1.5vw, 14px);
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

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

.btn-detail:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-detail:hover::before {
  left: 100%;
}

.btn-detail-enhanced {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.problems-section {
  margin-top: clamp(35px, 4vw, 45px);
  text-align: center;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(15px, 2vw, 20px);
  margin: clamp(25px, 3vw, 35px) 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.problem-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(12px, 1.5vw, 15px);
  text-align: left;
  padding: clamp(12px, 1.5vw, 15px);
  border-radius: clamp(6px, 0.8vw, 8px);
  transition: all 0.3s ease;
}

.problem-item-hover:hover {
  background-color: rgba(102, 198, 228, 0.05);
  transform: translateX(5px);
}

.problem-icon {
  width: clamp(35px, 4vw, 40px);
  height: clamp(35px, 4vw, 40px);
  background: linear-gradient(135deg, var(--light-blue), var(--dark-blue));
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.problem-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background-color: var(--white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.problem-icon-animate {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.problem-item:hover .problem-icon {
  transform: scale(1.2) rotate(5deg);
  box-shadow: var(--shadow-md);
}

.problem-text {
  font-size: clamp(13px, 1.6vw, 15px);
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  text-align: left;
  flex: 1;
}

.problem-item:hover .problem-text {
  color: var(--dark-blue);
}

/* Knowledgeセクション */
.knowledge {
  padding: 100px 20px;
  background: linear-gradient(180deg, var(--light-gray) 0%, #ffffff 100%);
  position: relative;
}

.knowledge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--light-blue), transparent);
}

.knowledge-heading {
  font-size: 28px;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 50px;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 15px;
}

.knowledge-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--light-blue), var(--dark-blue));
  border-radius: 2px;
}

.knowledge-list {
  max-width: 900px;
  margin: 0 auto 40px;
}

.knowledge-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
  padding: 25px;
  padding-bottom: 30px;
  border-bottom: 1px solid #E0E0E0;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.knowledge-card:hover {
  background-color: rgba(102, 198, 228, 0.03);
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

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

.knowledge-icon {
  width: clamp(45px, 5vw, 50px);
  height: clamp(45px, 5vw, 50px);
  background: linear-gradient(135deg, var(--light-blue), var(--dark-blue));
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.knowledge-icon::before {
  content: '📚';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
}

.knowledge-icon-animate {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.knowledge-card:hover .knowledge-icon {
  transform: scale(1.15) rotate(5deg);
  box-shadow: var(--shadow-md);
}

.knowledge-content {
  flex: 1;
}

.knowledge-title {
  font-size: clamp(18px, 2.2vw, 20px);
  color: var(--text-dark);
  margin-bottom: clamp(6px, 0.8vw, 8px);
  font-weight: 600;
  transition: color 0.3s ease;
}

.knowledge-card:hover .knowledge-title {
  color: var(--light-blue);
}

.knowledge-text {
  font-size: clamp(13px, 1.5vw, 14px);
  color: var(--text-light);
  margin-bottom: clamp(6px, 0.8vw, 8px);
  line-height: 1.6;
}

.knowledge-date {
  font-size: clamp(11px, 1.3vw, 12px);
  color: var(--text-light);
}

.knowledge .btn-detail {
  display: block;
  text-align: center;
  margin-top: 20px;
}

/* Recruitセクション */
.recruit {
  padding: clamp(40px, 6vw, 60px) clamp(15px, 2vw, 20px);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  position: relative;
}

.recruit::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--light-blue), transparent);
}

.recruit-heading {
  font-size: clamp(22px, 3vw, 28px);
  color: var(--text-dark);
  text-align: center;
  margin-bottom: clamp(12px, 1.5vw, 18px);
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: clamp(8px, 1.2vw, 12px);
}

.recruit-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--light-blue), var(--dark-blue));
  border-radius: 2px;
}

.recruit-intro {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-dark);
  text-align: center;
  max-width: clamp(600px, 70vw, 700px);
  margin: 0 auto clamp(25px, 3vw, 35px);
  line-height: 1.9;
  letter-spacing: 0.01em;
}

.recruit-buttons {
  display: flex;
  justify-content: center;
  gap: clamp(15px, 2vw, 25px);
  max-width: clamp(500px, 60vw, 600px);
  margin: 0 auto;
  flex-wrap: wrap;
}

.btn-recruit {
  flex: 1;
  padding: clamp(15px, 2vw, 20px) clamp(30px, 4vw, 40px);
  text-decoration: none;
  border-radius: clamp(8px, 1vw, 10px);
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 500;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.btn-recruit::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-recruit:hover::before {
  width: 300px;
  height: 300px;
}

.btn-recruit-contract {
  background: linear-gradient(135deg, var(--light-blue), var(--dark-blue));
  color: var(--white);
}

.btn-recruit-contract:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.btn-recruit-intern {
  background-color: var(--white);
  color: var(--light-blue);
  border: 2px solid var(--light-blue);
}

.btn-recruit-intern:hover {
  background: linear-gradient(135deg, var(--light-blue), var(--dark-blue));
  color: var(--white);
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.btn-recruit-enhanced {
  position: relative;
}

.btn-recruit-enhanced::after {
  content: '→';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
}

.btn-recruit-enhanced:hover::after {
  opacity: 1;
  right: 15px;
}

/* CTAセクション */
.cta {
  padding: clamp(35px, 5vw, 50px) clamp(15px, 2vw, 20px);
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.btn-cta {
  display: block;
  max-width: clamp(300px, 40vw, 400px);
  margin: 0 auto;
  padding: clamp(15px, 2vw, 20px) clamp(30px, 4vw, 40px);
  background-color: var(--white);
  color: var(--dark-blue);
  text-decoration: none;
  text-align: center;
  border-radius: clamp(10px, 1.2vw, 12px);
  font-size: clamp(18px, 2.2vw, 20px);
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

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

.btn-cta:hover {
  background: linear-gradient(135deg, var(--light-blue), var(--white));
  color: var(--dark-blue);
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-xl);
}

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

/* フッター */
.footer {
  padding: 40px 20px;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  text-align: right;
  border-top: 1px solid rgba(102, 198, 228, 0.1);
}

.copyright {
  font-size: clamp(13px, 1.5vw, 14px);
  color: var(--text-light);
  font-weight: 500;
}

/* リップル効果 */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ローディングアニメーション */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  width: auto;
  height: auto;
  margin: 0 auto clamp(20px, 3vw, 30px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-logo .logo-text-container {
  animation: logoFloat 2s ease-in-out infinite;
}

.loader-spinner {
  width: clamp(40px, 5vw, 50px);
  height: clamp(40px, 5vw, 50px);
  margin: 0 auto clamp(15px, 2vw, 20px);
  border: clamp(3px, 0.4vw, 4px) solid rgba(102, 198, 228, 0.2);
  border-top-color: var(--light-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-text {
  color: var(--text-dark);
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: 500;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

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

/* スクロールトップボタン */
.scroll-to-top {
  position: fixed;
  bottom: clamp(20px, 3vw, 30px);
  right: clamp(20px, 3vw, 30px);
  width: clamp(45px, 5vw, 50px);
  height: clamp(45px, 5vw, 50px);
  background: linear-gradient(135deg, var(--light-blue), var(--dark-blue));
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(18px, 2vw, 20px);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-lg);
}

/* TOPへ戻るボタン（ページ下部） */
.btn-back-to-top {
  display: block;
  max-width: 300px;
  margin: clamp(40px, 6vw, 60px) auto;
  padding: clamp(15px, 2vw, 18px) clamp(30px, 4vw, 40px);
  background: var(--dark-blue);
  color: var(--white);
  text-decoration: none;
  text-align: center;
  border-radius: clamp(8px, 1vw, 10px);
  font-size: clamp(15px, 1.8vw, 16px);
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

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

.btn-back-to-top:hover {
  background: var(--dark-blue-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-back-to-top:hover::before {
  left: 100%;
}

.btn-back-to-top i {
  margin-right: 8px;
}

.scroll-to-top:active {
  transform: translateY(-3px) scale(1.05);
}

@media (max-width: 768px) {
  .scroll-to-top {
    width: clamp(40px, 5vw, 45px);
    height: clamp(40px, 5vw, 45px);
    bottom: clamp(15px, 2vw, 20px);
    right: clamp(15px, 2vw, 20px);
    font-size: clamp(16px, 2vw, 18px);
  }
}

/* レスポンシブ対応 */
/* モバイル用のスタイルは上記の@media (max-width: 768px)で既に定義済み */

  .hero {
    padding: 80px 15px 50px;
  }

  .hero-container {
    padding: 0 15px;
  }

  .hero-tagline {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .hero-logo {
    margin: clamp(25px, 4vw, 30px) 0;
    padding: clamp(10px, 1.5vw, 15px);
  }

  .logo-text-container {
    gap: clamp(6px, 0.8vw, 8px);
  }

  .logo-tonari {
    font-size: clamp(28px, 4vw, 36px);
  }

  .logo-biz {
    font-size: clamp(24px, 3.5vw, 32px);
  }

  .hero-logo {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .logo-small {
    width: 45px;
    height: 45px;
  }

  /* 拡大縮小時の文字サイズ調整 */
  html {
    font-size: 14px;
  }
  
  @media (min-width: 481px) {
    .problems-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: clamp(12px, 2vw, 18px);
    }
  }
  
  @media (max-width: 480px) {
    .problems-grid {
      grid-template-columns: 1fr !important;
      gap: clamp(15px, 3vw, 20px);
    }
    
    .service-visual {
      flex-wrap: wrap !important;
    }
    
    .visual-block {
      min-width: calc(50% - 8px) !important;
      max-width: calc(50% - 8px) !important;
    }
  }

  .recruit-buttons {
    flex-direction: column;
  }

  .concept-visual {
    gap: clamp(15px, 2vw, 20px);
    margin-top: clamp(20px, 3vw, 25px);
  }

  .circle {
    width: clamp(50px, 7vw, 70px);
    height: clamp(50px, 7vw, 70px);
  }

  .service-visual {
    flex-wrap: nowrap !important;
    gap: clamp(8px, 1.2vw, 12px);
  }

  .visual-block {
    min-width: calc(33.333% - 8px) !important;
    max-width: calc(33.333% - 8px) !important;
    height: clamp(110px, 15vw, 140px) !important;
  }
  
  @media (max-width: 480px) {
    .service-visual {
      flex-wrap: wrap !important;
    }
    
    .visual-block {
      min-width: calc(50% - 6px) !important;
      max-width: calc(50% - 6px) !important;
    }
  }

  .visual-illustration svg {
    max-width: clamp(140px, 18vw, 160px);
    max-height: clamp(140px, 18vw, 160px);
  }
  
  /* 拡大縮小時の文字サイズ調整 */
  html {
    font-size: 14px;
  }

  .section-title {
    font-size: 26px;
  }

  .service-heading,
  .knowledge-heading,
  .recruit-heading {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 15px 60px;
    min-height: auto;
  }

  .hero-container {
    padding: 0 15px;
  }

  .hero-logo {
    margin: 30px 0;
    padding: 15px;
  }

  .logo-tonari {
    font-size: clamp(24px, 3.5vw, 28px);
  }

  .logo-biz {
    font-size: clamp(20px, 3vw, 24px);
  }

  .hero-logo {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .logo-small {
    font-size: clamp(12px, 1.5vw, 14px);
  }

  .section-title {
    font-size: 24px;
  }

  .service-item {
    padding: 30px 20px;
  }

  .visual-block {
    height: clamp(100px, 14vw, 130px) !important;
    min-width: calc(33.333% - 8px) !important;
    max-width: calc(33.333% - 8px) !important;
  }
  
  @media (min-width: 481px) {
    .problems-grid {
      grid-template-columns: repeat(2, 1fr) !important;
    }
  }
  
  @media (max-width: 480px) {
    .visual-block {
      min-width: calc(50% - 6px) !important;
      max-width: calc(50% - 6px) !important;
    }
    
    .problems-grid {
      grid-template-columns: 1fr !important;
    }
  }

  .visual-illustration svg {
    max-width: clamp(120px, 15vw, 140px);
    max-height: clamp(120px, 15vw, 140px);
  }

  /* 拡大縮小時の文字サイズ調整 */
  html {
    font-size: 13px;
  }
}

/* 非常に小さいスマホ（320px以下）対応 */
@media (max-width: 320px) {
  .hero {
    padding: 70px 10px 40px;
  }

  .hero-container {
    padding: 0 10px;
  }

  .logo-img {
    max-width: 200px;
    width: 80%;
    max-width: min(200px, 80vw);
  }

  .hero-logo {
    margin: 20px 0;
    padding: 10px;
  }

  .hero-tagline {
    font-size: 20px;
    margin-bottom: 25px;
  }

  /* 拡大縮小時の文字サイズ調整 */
  html {
    font-size: 12px;
  }
}

/* 追加のリッチなアニメーション */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ホバー時の拡大アニメーション */
.service-item:hover,
.knowledge-card:hover {
  animation: fadeInScale 0.3s ease;
}

/* インタラクティブな要素の強化 */
.btn-detail,
.btn-recruit,
.btn-cta {
  position: relative;
  overflow: hidden;
}

.btn-detail::after,
.btn-recruit::after,
.btn-cta::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-detail:hover::after,
.btn-recruit:hover::after,
.btn-cta:hover::after {
  width: 300px;
  height: 300px;
}

/* フォーカス時のアニメーション */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  animation: pulse 0.3s ease;
  box-shadow: 0 0 0 3px rgba(102, 198, 228, 0.2);
}

/* スクロール時のフェードイン強化 */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}
