/* ===================================================================
   index.html (トップページ) 固有スタイル
   =================================================================== */

/* ===== HERO ===== */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 100px 5% 60px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('../../../background.jpg') center/cover no-repeat;
  background-attachment: fixed;
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(6, 28, 54, 0.78) 0%, rgba(8, 40, 74, 0.6) 32%, rgba(14, 95, 168, 0.34) 60%, rgba(14, 95, 168, 0.16) 100%);
  z-index: 1;
}
.hero-clouds {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.cloud {
  position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, 0.7); filter: blur(40px);
  animation: drift linear infinite;
}
.cloud:nth-child(1) { width: 500px; height: 200px; top: 15%; left: -100px; animation-duration: 30s; opacity: 0.6; }
.cloud:nth-child(2) { width: 300px; height: 120px; top: 40%; right: -50px; animation-duration: 24s; animation-delay: -8s; opacity: 0.5; }
.cloud:nth-child(3) { width: 400px; height: 160px; bottom: 20%; left: 20%; animation-duration: 36s; animation-delay: -15s; opacity: 0.4; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(60px); } }

.hero-shape {
  position: absolute; right: -5%; top: 0; bottom: 0; width: 48%;
  background: linear-gradient(160deg, rgba(14, 95, 168, 0.06) 0%, rgba(46, 156, 202, 0.1) 100%);
  clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 0;
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  max-width: 1200px; width: 100%; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff; padding: 5px 14px; border-radius: 50px;
  font-size: 0.72rem; letter-spacing: 0.12em; margin-bottom: 24px;
  animation: fadeUp 0.7s ease both;
  font-family: 'Outfit', sans-serif; font-weight: 600;
  backdrop-filter: blur(6px);
}
.hero-badge::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--sky); animation: pulse 2s infinite;
}
.hero-catch {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #bfe3f8; font-weight: 500; letter-spacing: 0.05em;
  margin-bottom: 10px;
  animation: fadeUp 0.7s 0.1s ease both;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}
.hero-h1 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700; line-height: 1.35;
  color: #fff; margin-bottom: 20px;
  animation: fadeUp 0.7s 0.2s ease both;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.hero-h1 em { font-style: normal; color: #8fd0ef; }
.hero-desc {
  font-size: 0.95rem; color: rgba(255, 255, 255, 0.88); line-height: 1.95;
  margin-bottom: 36px;
  animation: fadeUp 0.7s 0.3s ease both;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}
.hero-btns {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: fadeUp 0.7s 0.4s ease both;
}

/* hero visual side */
.hero-visual {
  display: flex; align-items: center; justify-content: center;
  animation: fadeUp 0.9s 0.2s ease both;
}
.hero-card-stack { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1/1; }
.hcard {
  position: absolute; border-radius: 20px; padding: 28px;
  box-shadow: 0 8px 32px rgba(14, 95, 168, 0.12);
}
.hcard-main {
  inset: 10% 0 0 10%; background: #fff;
  border: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.hcard-main-bg {
  position: absolute; inset: 0;
  background: linear-gradient(145deg, #e8f4fb, #cce7f5);
  z-index: 0;
}
.hcard-main-content { position: relative; z-index: 1; }
.hcard-main-content .label {
  font-size: 0.7rem; color: var(--sky); letter-spacing: 0.12em;
  font-family: 'Outfit', sans-serif; font-weight: 600; margin-bottom: 8px;
}
.hcard-main-content .value {
  font-family: 'Outfit', sans-serif; font-size: 2.4rem; font-weight: 800;
  color: var(--blue); line-height: 1; margin-bottom: 4px;
}
.hcard-main-content .desc { font-size: 0.8rem; color: var(--muted); }
.hcard-sub1 {
  top: 0; left: 0; width: 44%; aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  animation: float 6s ease-in-out infinite;
}
.hcard-sub1 .icon { font-size: 2rem; }
.hcard-sub1 .text { font-size: 0.72rem; color: rgba(255, 255, 255, 0.85); font-weight: 500; }
.hcard-sub2 {
  bottom: 0; right: 0; width: 50%; background: #fff;
  border: 1px solid var(--border); padding: 20px;
  animation: float 7s 1s ease-in-out infinite;
}
.hcard-sub2 .tag { font-size: 0.65rem; color: var(--sky); letter-spacing: 0.1em; font-family: 'Outfit', sans-serif; margin-bottom: 6px; }
.hcard-sub2 .num { font-family: 'Outfit', sans-serif; font-size: 1.8rem; font-weight: 800; color: #0a2540; }
.hcard-sub2 .unit { font-size: 0.75rem; color: var(--muted); }

/* scroll hint */
.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: fadeUp 1s 0.8s ease both; z-index: 1;
}
.scroll-hint span { font-size: 0.6rem; letter-spacing: 0.15em; color: rgba(255, 255, 255, 0.75); }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85), transparent); animation: scrollAnim 2s ease-in-out infinite; }
@keyframes scrollAnim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== TAGLINE BAND ===== */
.tagline-band {
  background: var(--blue); padding: 20px 5%;
  display: flex; align-items: center; justify-content: center;
  gap: 24px; overflow: hidden;
}
.tagline-band .phrase {
  font-size: 0.9rem; color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.12em; white-space: nowrap;
  display: flex; align-items: center; gap: 32px;
  animation: marquee 28s linear infinite;
}
.tagline-band .sep { color: rgba(255, 255, 255, 0.3); font-size: 0.7rem; }

/* ===== NEWS ===== */
#news { background: var(--white); padding: 80px 5%; }
#news .inner-wrap { max-width: 1200px; }
.news-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.news-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px 28px; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit; transition: background 0.2s;
}
.news-item:nth-child(odd) { border-right: 1px solid var(--border); }
.news-item:nth-last-child(-n+2) { border-bottom: none; }
.news-item:hover { background: var(--bg); }
.news-item:hover .news-title { color: var(--blue); }
.news-date { font-family: 'Outfit', sans-serif; font-size: 0.78rem; color: var(--muted); white-space: nowrap; padding-top: 3px; min-width: 88px; }
.news-cat {
  display: inline-block; font-size: 0.65rem; padding: 2px 10px;
  border-radius: 50px; margin-bottom: 6px; font-family: 'Outfit', sans-serif;
  letter-spacing: 0.08em;
}
.cat-info { background: rgba(14, 95, 168, 0.08); color: var(--blue); border: 1px solid rgba(14, 95, 168, 0.15); }
.cat-recruit { background: rgba(46, 156, 202, 0.1); color: var(--sky); border: 1px solid rgba(46, 156, 202, 0.2); }
.cat-biz { background: rgba(16, 185, 129, 0.08); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.news-title { font-size: 0.88rem; font-weight: 500; line-height: 1.65; transition: color 0.2s; }
.news-more { display: flex; justify-content: flex-end; margin-top: 24px; }

/* ===== ABOUT ===== */
#about { background: var(--bg); padding: 100px 5%; }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; max-width: 1100px; margin: 0 auto; }
.about-visual { position: relative; }
.about-img-wrap {
  aspect-ratio: 4/3; border-radius: 24px; overflow: hidden;
  background: linear-gradient(145deg, #cce7f5, #a8d8f0);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.overlay-text {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px);
  border-radius: 12px; padding: 18px 22px;
  box-shadow: 0 4px 16px rgba(14, 95, 168, 0.08);
}
.overlay-text .quote {
  font-size: 1.05rem; font-weight: 700; color: var(--blue); line-height: 1.5; margin-bottom: 4px;
}
.overlay-text .author { font-size: 0.72rem; color: var(--muted); }
.about-stat {
  position: absolute; top: -16px; right: -16px;
  background: var(--blue); color: #fff; border-radius: 16px;
  padding: 16px 22px; text-align: center;
  box-shadow: 0 8px 24px rgba(14, 95, 168, 0.25);
}
.about-stat .n { font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 800; line-height: 1; }
.about-stat .l { font-size: 0.68rem; color: rgba(255, 255, 255, 0.75); margin-top: 2px; }

.about-text .section-tag { margin-bottom: 10px; }
.about-text .section-h2 { margin-bottom: 16px; }
.about-text p { font-size: 0.93rem; color: var(--text); line-height: 2; margin-bottom: 16px; }
.about-values { display: flex; flex-direction: column; gap: 12px; margin: 28px 0 32px; }
.value-item { display: flex; gap: 14px; align-items: flex-start; }
.value-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: rgba(14, 95, 168, 0.08); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.value-text h4 { font-size: 0.9rem; font-weight: 700; color: #0a2540; margin-bottom: 2px; }
.value-text p { font-size: 0.8rem; color: var(--muted); line-height: 1.6; margin: 0; }

/* ===== SERVICES ===== */
#services { background: var(--white); padding: 100px 5%; }
#services .inner-wrap { max-width: 1200px; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 52px; }
.services-grid.services-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin-left: auto; margin-right: auto; }
.service-card {
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  background: var(--white);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(14, 95, 168, 0.1); }
.service-card-top {
  padding: 36px 28px 28px;
  background: linear-gradient(145deg, var(--bg2), var(--lightsky));
  position: relative; overflow: hidden; min-height: 160px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.service-card-top::before {
  content: attr(data-num);
  position: absolute; top: -10px; right: -10px;
  font-family: 'Outfit', sans-serif; font-size: 5rem; font-weight: 800;
  color: rgba(14, 95, 168, 0.07); line-height: 1;
}
.service-icon { font-size: 2rem; margin-bottom: 12px; }
.service-card h3 {
  font-size: 1rem; font-weight: 700; color: #0a2540;
  padding: 0 28px; margin: 20px 0 10px;
}
.service-card p { font-size: 0.83rem; color: var(--text); line-height: 1.85; padding: 0 28px 28px; }
a.service-card { cursor: pointer; }
a.service-card h3::after {
  content: ' →';
  font-size: 0.85rem;
  color: var(--sky);
  opacity: 0;
  transition: opacity 0.2s;
}
a.service-card:hover h3::after { opacity: 1; }

/* ===== RECRUIT BANNER ===== */
#recruit-banner {
  background: linear-gradient(135deg, #0a2540, var(--blue));
  padding: 80px 5%; position: relative; overflow: hidden;
}
#recruit-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}
.recruit-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  max-width: 1200px; margin: 0 auto; flex-wrap: wrap;
}
.recruit-text .tag { font-family: 'Outfit', sans-serif; font-size: 0.7rem; color: rgba(255, 255, 255, 0.6); letter-spacing: 0.18em; margin-bottom: 12px; }
.recruit-text h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: #fff; line-height: 1.35; margin-bottom: 12px; }
.recruit-text p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.7); line-height: 1.85; }
.recruit-btns { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-item:nth-child(odd) { border-right: none; }
  .news-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .news-item:last-child { border-bottom: none; }
  .recruit-inner { flex-direction: column; }
  .recruit-btns { flex-direction: row; }
}
@media (max-width: 768px) {
  .services-grid.services-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-h1 { font-size: 1.8rem; }
  .tagline-band .phrase { font-size: 0.78rem; }
  #news, #about, #services { padding: 64px 5%; }
  .recruit-btns { flex-direction: column; }
}
