/* ==========================================================================
   CSS CUSTOM PROPERTIES
   ========================================================================== */
:root {
  --c-primary: #0068b7;
  --c-primary-light: #e6f0f8;
  --c-accent: #8dc63f;
  --c-marker: #ffeb3b;
  
  --bg-main: #FFFFFF;
  --bg-sub: #F8F9FA;
  
  --text-main: #333333;
  --text-sub: #666666;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-pill: 999px;
  
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 104, 183, 0.15);
  
  --font-base: 'Noto Sans JP', sans-serif;
  --font-en: 'Montserrat', sans-serif;
  
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: var(--font-base); color: var(--text-main); background: var(--bg-main);
  line-height: 1.8; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.container { width: min(1300px, calc(100% - 30px)); margin: 0 auto; }
.section-padding { padding: 100px 0; }
.bg-sub { background-color: var(--bg-sub); }

.text-center { text-align: center; }
.marker {
  background: linear-gradient(transparent 60%, var(--c-marker) 90%);
  font-weight: 700;
  padding: 0 4px;
}
.text-primary { color: var(--c-primary); }

.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 {
  font-size: clamp(26px, 4vw, 40px); font-weight: 900;
  color: var(--c-primary); line-height: 1.4; margin-bottom: 16px;
}
.section-head p { color: var(--text-sub); font-weight: 500; font-size: 17px; }

/* ==========================================================================
   SCROLL PROGRESS BAR
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--c-primary), var(--c-marker));
  z-index: 2000;
  transition: width 0.1s linear;
}

/* ==========================================================================
   HEADER & HAMBURGER MENU
   ========================================================================== */
header {
  position: fixed; top: 0; width: 100%; height: 80px; z-index: 1000;
  display: flex; align-items: center; background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: all 0.3s ease;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 60px; height: 60px; margin-left: 1rem;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.logo-text { font-weight: 900; font-size: 22px; color: var(--c-primary); line-height: 1.1; }
.logo-text span { display: block; font-size: 11px; color: var(--text-sub); }

.header-right { display: flex; align-items: center; gap: 24px; margin-right: 1rem; }

.nav-links { display: flex; align-items: center; gap: 24px; font-weight: 700; font-size: 15px; }
.nav-links a:not(.btn-nav) { color: var(--text-main); transition: color 0.3s; }
.nav-links a:not(.btn-nav):hover { color: var(--c-primary); }

.btn-nav {
  background: var(--c-primary); color: #fff; padding: 12px 28px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 14px; transition: opacity 0.3s; white-space: nowrap;
}
.btn-nav:hover { opacity: 0.8; }

/* 言語切り替えスイッチ */
.lang-switch { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.lang-switch a { display: flex; align-items: center; gap: 4px; color: var(--text-sub); transition: opacity 0.3s; text-decoration: none; }
.lang-switch a:hover { opacity: 0.7; }
.lang-switch a.active { color: var(--text-main); }
.lang-switch img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 2px rgba(0,0,0,0.2); }
.lang-switch .divider { color: #ccc; }

/* ハンバーガーボタン */
.nav-toggle {
  display: none; width: 30px; height: 20px; position: relative; background: none; border: none; cursor: pointer; z-index: 1001;
}
.nav-toggle span {
  display: block; position: absolute; height: 3px; width: 100%; background: var(--c-primary); border-radius: 2px; transition: all 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 8px; }
.nav-toggle span:nth-child(3) { top: 16px; }
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding-top: 80px; position: relative; background: var(--bg-sub);
  width: 100%; overflow: hidden;
}
.hero-inner {
  display: flex; flex-direction: column; align-items: center; width: 100%;
}
.hero-image {
  width: 100%; height: 300px; position: relative;
  background: url('img/top_img1.avif') center/cover no-repeat;
}
.hero-image::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(0, 104, 183, 0.4);
}
.hero-image2 {
  width: 100%; height: 500px; position: relative;
  background: url('img/top_img2.jpg') center/cover no-repeat;
}

.hero-content-wrapper {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 90%; max-width: 800px; z-index: 10;
}
.hero-content {
  text-align: center; color: white;
}
.hero-content h1 {
  font-size: clamp(32px, 5vw, 60px); font-weight: 900; line-height: 1.4;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3); margin-bottom: 24px;
}
.hero-content p {
  font-size: clamp(16px, 2.5vw, 22px); font-weight: 700;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5); line-height: 1.6;
}

.country-tags {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  transform: translateY(-50%); position: relative; z-index: 10;
  width: 100%; padding: 0 15px;
}
.country-tag {
  background: white; color: var(--text-main); font-weight: 700; font-size: 16px;
  padding: 10px 24px 10px 16px; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 10px; border: 1px solid #eee;
}
.flag-icon {
  width: 24px; height: 16px; object-fit: cover; border-radius: 2px;
  box-shadow: 0 0 3px rgba(0,0,0,0.15);
}

/* ==========================================================================
   ABOUT & FIELDS (特定技能とは・対応19分野)
   ========================================================================== */
.ssw-header-banner {
  background: var(--c-primary); color: white; text-align: center;
  padding: 60px 20px; position: relative; margin-bottom: 50px;
}
.ssw-header-banner h2 {
  font-size: clamp(30px, 5vw, 44px); font-weight: 900; color: white; margin: 0; letter-spacing: 0.05em;
}
.ssw-header-banner::after {
  content: ""; position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  border-width: 20px 20px 0; border-style: solid; border-color: var(--c-primary) transparent transparent transparent; z-index: 10;
}

.ssw-intro-text {
  text-align: center; margin: 0 auto 50px; line-height: 2; font-size: 18px; color: var(--text-main); font-weight: 700; max-width: 800px;
}

.ssw-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.ssw-card {
  background: #F4F6F8; border-radius: 16px; padding: 50px 30px 40px; text-align: center; position: relative; margin-top: 20px;
}
.ssw-badge {
  position: absolute; top: -24px; left: 50%; transform: translateX(-50%); background: var(--c-primary); color: white;
  padding: 14px 48px; border-radius: 999px; font-weight: 700; font-size: 22px; white-space: nowrap; box-shadow: 0 4px 10px rgba(0, 104, 183, 0.2);
}
.ssw-target { font-size: 22px; font-weight: 700; margin-bottom: 20px; color: var(--text-main); }
.ssw-target span { font-size: 60px; color: var(--c-primary); line-height: 1; margin: 0 4px; }
.ssw-desc { font-size: 16px; color: var(--text-main); line-height: 1.8; font-weight: 700; margin-bottom: 30px; }

.ssw-fields-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; min-height: 100px; align-content: flex-start; }
.ssw-fields-list span {
  background: white; color: var(--text-sub); font-size: 15px; font-weight: 700; padding: 8px 14px; border-radius: 6px; border: 1px solid #EAEAEA;
}
.ssw-fields-list span.all-fields { font-size: 17px; padding: 12px 0; background: transparent; border: none; color: var(--c-primary); width: 100%; }

.ssw-box {
  background: white; border: 1px solid var(--c-primary-light); color: var(--c-primary); font-weight: 700; font-size: 18px; padding: 18px; border-radius: 8px; width: 100%; display: block;
}

.ssw-footer-text { text-align: center; margin-top: 60px; }
.ssw-footer-text h3 { font-size: 24px; line-height: 1.6; }

/* ==========================================================================
   CTA BUTTON
   ========================================================================== */
.cta-wrap { text-align: center; margin: 50px 0; width: 100%; }
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--c-accent); color: white; padding: 22px 50px;
  border-radius: var(--radius-pill); font-weight: 900; font-size: 22px;
  box-shadow: 0 6px 15px rgba(141, 198, 63, 0.4); transition: transform 0.3s;
  cursor: pointer; border: 2px solid #fff; width: fit-content; max-width: 100%;
}
.btn-cta:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(141, 198, 63, 0.5); }
.btn-cta .icon-hand { font-size: 30px; animation: point 1.5s infinite alternate; }
@keyframes point { 0% { transform: translateY(0); } 100% { transform: translateY(-5px); } }

/* ==========================================================================
   WHY US
   ========================================================================== */
.reason-row {
  display: flex; align-items: center; gap: 50px; margin-bottom: 70px;
}
.reason-row:nth-child(even) { flex-direction: row-reverse; }
.reason-img { flex: 1; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); width: 100%; }
.reason-img img { width: 100%; height: 320px; object-fit: cover; }
.reason-text { flex: 1; }
.reason-num {
  color: var(--c-primary); font-size: 22px; font-weight: 900; font-family: var(--font-en);
  margin-bottom: 8px; display: block;
}
.reason-text h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; line-height: 1.5; }
.reason-text p { font-size: 16px; color: var(--text-sub); }

/* ==========================================================================
   PROCESS 
   ========================================================================== */
.process-flow {
  display: flex; justify-content: space-between; align-items: center; margin-top: 40px; flex-wrap: wrap; gap: 15px;
}
.process-step {
  flex: 1; min-width: 200px; background: white; border: 1px solid var(--c-primary-light);
  border-radius: var(--radius-md); padding: 0 0 24px 0; text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.process-step:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-md);
}
.process-img {
  width: 100%; height: 180px; margin-bottom: 20px;
  overflow: hidden;
}
.process-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.process-step:hover .process-img img {
  transform: scale(1.05);
}
.process-step h4 { 
  font-size: 18px; font-weight: 700; margin: 0; 
  padding: 0 16px; 
}

/* 矢印のデザイン調整 */
.process-arrow {
  font-size: 30px; color: var(--c-primary); font-weight: bold;
  display: flex; align-items: center; justify-content: center;
}
.process-arrow::after {
  content: "➔"; 
}

/* ==========================================================================
   CASE STUDIES & INTERVIEWS
   ========================================================================== */
.cases-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px;
}
.case-card {
  background: white; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--c-primary-light);
}
.case-img { width: 100%; height: 240px; object-fit: cover; }
.case-body { padding: 30px; }
.case-badge {
  background: var(--c-primary-light); color: var(--c-primary); padding: 6px 14px;
  border-radius: var(--radius-pill); font-size: 14px; font-weight: 700; margin-bottom: 16px; display: inline-block;
}
.case-body h4 { font-size: 20px; margin-bottom: 14px; line-height: 1.4; }
.case-body p { font-size: 16px; color: var(--text-sub); }

/* ==========================================================================
   INFORMATION (お知らせ)
   ========================================================================== */
.info-wrapper {
  max-width: 800px; margin: 0 auto; background: white;
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--c-primary-light);
  padding: 40px;
}
.info-list { list-style: none; padding: 0; margin: 0; }
.info-item {
  display: flex; align-items: flex-start; gap: 20px; padding: 24px 0;
  border-bottom: 1px solid #eee;
}
.info-item:last-child { border-bottom: none; padding-bottom: 0; }
.info-item:first-child { padding-top: 0; }
.info-meta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; min-width: 220px; }
.info-date { font-family: var(--font-en); font-weight: 700; color: var(--text-sub); }
.info-category {
  background: var(--c-primary); color: white; font-size: 13px; font-weight: 700;
  padding: 6px 16px; border-radius: var(--radius-pill); text-align: center;
}
.info-category.cat-event { background: var(--c-accent); }
.info-title {
  font-size: 17px; font-weight: 700; color: var(--text-main); line-height: 1.5;
  transition: color 0.3s; text-decoration: none;
}
.info-title:hover { color: var(--c-primary); text-decoration: underline; }

/* ==========================================================================
   COMPANY PROFILE
   ========================================================================== */
.company-wrapper {
  background: white; padding: 40px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); border: 1px solid var(--c-primary-light); max-width: 800px; margin: 0 auto;
}
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td { padding: 20px 10px; border-bottom: 1px solid #eee; text-align: left; font-size: 16px; }
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: none; }
.company-table th { width: 30%; color: var(--c-primary); font-weight: 700; }

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.contact-form {
  background: white; max-width: 700px; margin: 0 auto; padding: 40px;
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--c-primary-light);
}
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 10px; font-size: 16px; }
.form-group label span { color: red; margin-left: 4px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 16px; border: 1px solid #ccc; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 16px; transition: border-color 0.3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--c-primary); outline: none;
}
.form-group textarea { resize: vertical; min-height: 140px; }
.btn-submit {
  background: var(--c-primary); color: white; padding: 18px; border: none;
  border-radius: var(--radius-pill); font-weight: 700; font-size: 18px;
  cursor: pointer; width: 100%; transition: all 0.3s;
}
.btn-submit:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: #f0f7f7; padding: 60px 0 20px; border-top: 1px solid #eee; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; text-decoration: none; }
.footer-address { font-size: 14px; color: var(--text-sub); line-height: 1.8; }
.footer-title { font-size: 16px; font-weight: 700; color: var(--c-primary); margin-bottom: 20px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { line-height: 1.4; margin-bottom: 12px; }
.footer-links a { font-size: 14px; color: var(--text-sub); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--c-primary); text-decoration: underline; }
.footer-bottom { text-align: center; border-top: 1px solid #ddd; padding-top: 20px; font-size: 12px; color: #999; }

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   RESPONSIVE DESIGN (スマホ用最適化)
   ========================================================================== */
@media (max-width: 900px) {
  .pc-only { display: none; }
  
  .header-right { gap: 12px; margin-right: 15px; }
  .logo-icon { width: 40px; height: 40px; margin-left: 10px; }
  .logo-text { font-size: 18px; }
  .logo span { display: none; } /* スマホでは会社名を隠してスッキリさせる */

  /* スマホ版言語切り替え */
  .lang-switch { font-size: 11px; gap: 6px; }
  .lang-switch img { width: 18px; height: 12px; }
  .lang-switch a { gap: 3px; }
  
  /* ハンバーガーメニューの展開 */
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 80px; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.98); box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    flex-direction: column; align-items: center; gap: 20px; text-align: center;
    overflow: hidden; max-height: 0; padding: 0; transition: all 0.4s ease;
  }
  .nav-links.active { max-height: 500px; padding: 20px 0; }
  
  .btn-nav { width: 90%; max-width: 300px; padding: 14px 24px; font-size: 15px; margin-top: 10px; }
  
  .section-padding { padding: 60px 0; }
  .section-head { margin-bottom: 30px; }
  
  .hero-image { height: 300px; }
  .hero-image2 { height: 250px; } 
  .hero-content h1 { font-size: 26px; margin-bottom: 16px; }
  .hero-content p { font-size: 15px; }
  
  .country-tags { gap: 8px; transform: translateY(-30%); }
  .country-tag { padding: 8px 16px 8px 12px; font-size: 13px; gap: 8px; }
  .flag-icon { width: 20px; height: 14px; }
  
  .ssw-intro-text { font-size: 16px; margin: 0 15px 40px; text-align: left; }
  .ssw-cards, .cases-grid { grid-template-columns: 1fr; gap: 60px; margin-top: 20px; }
  .ssw-card { padding: 50px 20px 30px; }
  .ssw-badge { font-size: 18px; padding: 10px 30px; top: -20px; }
  .ssw-target span { font-size: 48px; }
  .ssw-footer-text h3 { font-size: 20px; }
  
  .reason-row, .reason-row:nth-child(even) { flex-direction: column; gap: 20px; margin-bottom: 40px; }
  .reason-img img { height: 200px; }
  .reason-text h3 { font-size: 18px; }
  
  .process-flow { flex-direction: column; }
  .process-arrow { margin: 15px 0; }
  .process-arrow::after { content: "⬇"; }
  .process-img { height: 200px; }

  /* インフォメーション最適化 */
  .info-wrapper { padding: 24px 20px; }
  .info-item { flex-direction: column; gap: 12px; padding: 20px 0; }
  .info-meta { min-width: auto; width: 100%; justify-content: flex-start; }
  
  .btn-cta { font-size: 18px; padding: 16px 20px; width: 100%; box-sizing: border-box; }
  
  .contact-form { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .footer-logo { justify-content: center; }
}

