@charset "utf-8";

:root {
  --primary: #1a5276;
  --primary-dark: #0e3a54;
  --primary-light: #2980b9;
  --accent: #e67e22;
  --accent-dark: #d35400;
  --text: #333;
  --text-light: #666;
  --white: #fff;
  --gray-50: #f8f9fa;
  --gray-100: #f0f1f3;
  --gray-200: #e0e2e6;
  --gray-800: #1a1a2e;
  --gray-900: #0f0f1a;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Noto Sans JP', 'メイリオ', 'Hiragino Sans', sans-serif;
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

.sp-only { display: none; }

/* ============================================
   ヘッダー
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: #ffffff;
  backdrop-filter: none;
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}

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

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}

.nav-link:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.nav-link--cta {
  background: var(--accent);
  color: var(--white);
  margin-left: 8px;
}

.nav-link--cta:hover {
  background: var(--accent-dark);
  color: var(--white);
}

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

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

/* ============================================
   ヒーロー
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3a5a7c 0%, #4a7a9b 50%, #5a8aaa 100%);
  overflow: hidden;
}

.hero-logo-overlay {
  position: absolute;
  inset: 0;
  background: url('../img/IndexTop1.png') center/cover no-repeat;
  opacity: 0.08;
  z-index: 1;
}

.hero-code {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  opacity: 0.5;
}

.hero-code-col {
  position: absolute;
  top: 0;
  font-family: 'Courier New', Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  white-space: pre;
  pointer-events: none;
}

.hero-code-col pre {
  margin: 0;
  font: inherit;
  color: inherit;
}

.hero-code-col--1 { left: 3%; top: 0; max-height: 42%; overflow: hidden; color: rgba(130,220,255,0.7); }
.hero-code-col--2 { right: 3%; left: auto; top: 0; max-height: 42%; overflow: hidden; color: rgba(255,220,150,0.7); }
.hero-code-col--3 { left: 3%; bottom: 0; top: auto; max-height: 42%; overflow: hidden; color: rgba(180,255,180,0.7); }
.hero-code-col--4 { right: 3%; left: auto; bottom: 0; top: auto; max-height: 42%; overflow: hidden; color: rgba(200,180,255,0.7); }

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 850px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 8px 24px 8px 16px;
  margin-bottom: 24px;
}

.hero-badge-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.hero-badge-text {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-align: left;
  line-height: 1.3;
}

.hero-badge-text small {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
}

.hero-sub {
  font-size: 16px;
  font-weight: 600;
  color: #f5c06b;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 24px;
}

.hero-catchphrase {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin-bottom: 56px;
  text-align: justify;
  word-break: break-all;
  max-width: 770px;
  margin-left: auto;
  margin-right: auto;
}

.hero-desc--sub {
  margin-top: -36px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  min-width: 180px;
  text-align: center;
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(230,126,34,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}

.btn-lg {
  padding: 18px 48px;
  font-size: 16px;
}

/* ============================================
   セクション共通
   ============================================ */
.section {
  padding: 96px 0;
}

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

.section--dark {
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.section--cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

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

.section-subtitle {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.2em;
  margin-bottom: 48px;
}

.section-subtitle--light {
  color: rgba(255,255,255,0.5);
}

.section-lead {
  text-align: justify;
  word-break: break-all;
  max-width: 740px;
  margin: -16px auto 48px;
  color: var(--text-light);
  font-size: 15px;
}

/* ============================================
   私たちについて
   ============================================ */
.about-content {
  max-width: 740px;
  margin: 0 auto;
  text-align: justify;
  word-break: break-all;
}

.about-text {
  font-size: 16px;
  line-height: 2;
  margin-bottom: 16px;
}

.about-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 12px;
}

.about-signature {
  text-align: right;
  margin-top: 40px;
  font-size: 15px;
  line-height: 1.8;
}

/* ============================================
   実績・数字
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

.stat-card {
  text-align: center;
  padding: 32px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  transition: transform var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-number {
  font-size: 56px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-unit {
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
}

.stat-label {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.results-section {
  margin-bottom: 48px;
  text-align: center;
}

.results-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 24px;
}

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

.results-item {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 24px;
  font-size: 15px;
  color: var(--white);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.results-item-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.results-more {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.tech-stack {
  text-align: center;
}

.tech-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.8);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 750px;
  margin: 0 auto;
}

.tech-tag {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  transition: all var(--transition);
}

.tech-tag:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--accent);
  color: var(--white);
}

/* ============================================
   事業内容
   ============================================ */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 40px;
}

.service-item--reverse {
  flex-direction: row-reverse;
}

.service-item-img {
  flex-shrink: 0;
  width: 320px;
}

.service-item-img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.service-item-body {
  flex: 1;
}

.service-item-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}

.service-item-text {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.9;
}

/* ============================================
   会社概要
   ============================================ */
.company-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

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

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

.company-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}

/* ============================================
   採用情報
   ============================================ */
.recruit-content {
  max-width: 744px;
  margin: 0 auto;
}

.recruit-message {
  text-align: justify;
  word-break: break-all;
  margin-bottom: 48px;
}

.recruit-message h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary);
  text-align: center;
}

.recruit-message p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
}

.recruit-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
}

.recruit-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

.recruit-table {
  width: 100%;
  border-collapse: collapse;
}

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

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

.recruit-table td {
  max-width: 455px;
}

.recruit-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recruit-detail-list li {
  display: flex;
  line-height: 1.7;
}

.recruit-detail-list .bullet {
  flex-shrink: 0;
}

.recruit-detail-list li + li {
  margin-top: 6px;
}

.recruit-cta {
  text-align: center;
}

/* ============================================
   アクセス
   ============================================ */
.access-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

.access-address {
  font-size: 15px;
  line-height: 2;
  color: var(--text);
}

.access-map iframe {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ============================================
   お問い合わせ
   ============================================ */
.contact-lead {
  text-align: center;
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 48px;
}

.contact-cta-area {
  text-align: center;
}

.contact-phone-block {
  margin-top: 40px;
}

.contact-phone-label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.contact-phone-number {
  display: inline-block;
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

.contact-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition);
}

.contact-card:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--accent);
}

.contact-card h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.8);
}

.contact-link {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}

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

.contact-link--phone {
  font-size: 24px;
}

.contact-hours {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ============================================
   フッター
   ============================================ */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
  max-width: 1020px;
  margin: 0 auto 48px;
}

.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.8;
}

.footer h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-contact,
.footer-nav,
.footer-ika {
  flex: 1;
}

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

.footer-nav a {
  font-size: 13px;
  transition: color var(--transition);
}

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

.footer-contact p {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.footer-contact .footer-company-name {
  font-size: 16px;
  font-weight: 700;
}

.footer-ika-logo {
  max-width: 100%;
  height: auto;
  opacity: 0.9;
  transition: opacity var(--transition);
}

.footer-ika-logo:hover {
  opacity: 1;
}

.footer-ika-desc {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255,255,255,0.7);
  margin-top: 12px;
}

.footer-link-logo {
  margin-top: 20px;
}

.footer-link-name {
  display: block;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.08em;
}

.footer-link-name:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  max-width: 1020px;
  margin: 0 auto;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

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

/* ============================================
   ページトップボタン
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

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

.back-to-top:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
}

/* ============================================
   フェードインアニメーション
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   レスポンシブ
   ============================================ */
@media (max-width: 1024px) {
  .service-item-img {
    width: 260px;
  }

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

@media (max-width: 860px) {
  :root {
    --header-height: 64px;
  }

  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    transition: right var(--transition);
    z-index: 1000;
    padding: 80px 24px 40px;
    overflow-y: auto;
  }

  .nav.open {
    right: 0;
  }

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

  .nav-link {
    padding: 14px 16px;
    font-size: 16px;
    border-bottom: 1px solid var(--gray-100);
    border-radius: 0;
  }

  .nav-link--cta {
    margin-left: 0;
    margin-top: 16px;
    text-align: center;
    border-radius: var(--radius);
    border-bottom: none;
  }

  .hero-title {
    font-size: 36px;
  }

  .section {
    padding: 72px 0;
  }

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

  .company-layout {
    grid-template-columns: 1fr;
  }

  .company-image {
    order: -1;
  }

  .results-list {
    grid-template-columns: 1fr;
  }

  .access-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 48px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

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

  .hero-code-col--2,
  .hero-code-col--3,
  .hero-code-col--4 { display: none; }

  .hero-code-col--1 { left: 3%; max-height: 12%; font-size: 11px; }

  .hero-code { opacity: 0.2; }

  .hero-title {
    font-size: 28px;
  }

  .hero-sub {
    font-size: 14px;
  }

  .hero-catchphrase {
    font-size: 17px;
  }

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

  .hero-content {
    padding: 100px 20px 60px;
  }

  .section {
    padding: 56px 0;
  }

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

  .section-subtitle {
    margin-bottom: 32px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
  }

  .stat-number {
    font-size: 40px;
  }

  .stat-card {
    padding: 24px 12px;
  }

  .service-item,
  .service-item--reverse {
    flex-direction: column;
  }

  .service-item-img {
    width: 100%;
    max-width: 400px;
  }

  .company-table th,
  .company-table td {
    display: block;
    padding: 8px 16px;
  }

  .company-table th {
    padding-bottom: 0;
    border-bottom: none;
  }

  .recruit-card {
    padding: 24px 20px;
  }

  .recruit-table th,
  .recruit-table td {
    display: block;
    padding: 8px 12px;
  }

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


  .footer-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    max-width: 320px;
    margin: 0 auto 48px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* モバイルメニューオーバーレイ */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}
