/* ==========================================================================
   SCH JAPAN (www.sch-japan.com) - Main Stylesheet
   Static Version - Clean HTML5 / CSS3
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Amethysta&family=Roboto:wght@300;400;500;700&display=swap');

/* --------------------------------------------------
   1. Reset & Global Base
-------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Meiryo", "MS P Gothic", "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
  background-color: #f7f8f8;
  overflow-x: hidden;
}

/* --------------------------------------------------
   2. Fixed Hero Background Area
-------------------------------------------------- */
.hero-bg-area {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-image: url('../images/bg-hero.jpg');
  background-size: cover;
  background-position: 66.69% 38.53%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* --------------------------------------------------
   3. Site Header & Top Navigation
-------------------------------------------------- */
.site-header {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

.header-top {
  max-width: 1042px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  max-height: 48px;
  width: auto;
  display: block;
}

/* Top Primary Nav */
.top-nav {
  display: flex;
  align-items: center;
}

.top-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 15px;
}

.top-nav-list li a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.95rem;
  color: #333333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.top-nav-list li a:hover,
.top-nav-list li.active a {
  color: #025296;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 110;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #025296;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --------------------------------------------------
   4. Sub Navigation Bar (Deep Blue #025296)
-------------------------------------------------- */
.sub-navbar {
  background-color: #025296;
  width: 100%;
}

.sub-navbar-container {
  max-width: 1042px;
  margin: 0 auto;
  padding: 0 20px;
}

.sub-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: flex-end; /* Push all items to the right */
}

.sub-nav-menu > li {
  position: relative;
}

.sub-nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 13px 20px;
  font-size: 0.95rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sub-nav-menu > li > a:hover,
.sub-nav-menu > li.active > a {
  background-color: #333333;
  color: #ffffff;
}

.nav-arrow {
  font-size: 0.65rem;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

/* Dropdown Menu */
.sub-nav-menu .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background-color: #025296;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 105;
}

.sub-nav-menu > li:hover .dropdown-menu,
.sub-nav-menu > li:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 12px 20px;
  font-size: 0.9rem;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease;
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover,
.dropdown-menu li.active a {
  background-color: #333333;
  color: #ffffff;
}

/* --------------------------------------------------
   5. Hero Title Section (Home Page)
-------------------------------------------------- */
.hero-title-section {
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  background: transparent;
}

.hero-title-text {
  font-family: "Amethysta", Georgia, serif;
  font-size: 90px;
  font-weight: normal;
  font-style: normal;
  color: #ffffff;
  text-shadow: 1px 1px 6px #292929;
  text-align: center;
  margin: 0;
  line-height: 1.1;
  letter-spacing: 1px;
}

/* --------------------------------------------------
   6. Headings (Matching Original Website Typography)
-------------------------------------------------- */
/* H1: Centered, 30px, #025296, Amethysta font, normal weight */
h1,
h1.page-title {
  font-family: "Amethysta", Georgia, "Hiragino Kaku Gothic ProN", "Meiryo", serif;
  font-size: 30px;
  font-weight: normal;
  font-style: normal;
  text-align: center;
  text-transform: none;
  color: #025296;
  margin: 0 0 24px 0;
  line-height: 1.3;
}

/* H2: Left-aligned, 24px, #025296, Amethysta font, normal weight */
h2,
h2.section-title {
  font-family: "Amethysta", Georgia, "Hiragino Kaku Gothic ProN", "Meiryo", serif;
  font-size: 24px;
  font-weight: normal;
  font-style: normal;
  text-align: left;
  text-transform: none;
  color: #025296;
  margin: 28px 0 16px 0;
  line-height: 1.35;
}

/* H3: Centered, 20px, #025296, Amethysta font, normal weight */
h3,
h3.sub-title {
  font-family: "Amethysta", Georgia, "Hiragino Kaku Gothic ProN", "Meiryo", serif;
  font-size: 20px;
  font-weight: normal;
  font-style: normal;
  text-align: center;
  color: #025296;
  margin: 24px 0 16px 0;
  line-height: 1.4;
}

/* --------------------------------------------------
   7. Main Content Section
-------------------------------------------------- */
.main-content-section {
  background-color: #f7f8f8;
  width: 100%;
  padding: 10px 0 60px 0;
  flex: 1;
}

.content-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 25px;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  margin-bottom: 25px;
  font-size: 0.85rem;
  color: #798486;
}

.breadcrumb-nav ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.breadcrumb-nav li {
  display: flex;
  align-items: center;
}

.breadcrumb-nav li + li::before {
  content: ">";
  margin-right: 8px;
  color: #999999;
}

.breadcrumb-nav a {
  color: #74A72D;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
  color: #025296;
}

.breadcrumb-nav span.current {
  color: #555555;
}

p {
  margin: 0 0 18px 0;
  line-height: 1.8;
  color: #333333;
}

.text-lead {
  font-size: 1.125rem; /* 18px */
  line-height: 1.8;
  color: #333333;
}

hr.divider {
  border: 0;
  border-top: 1px solid #d5dbdb;
  margin: 35px 0;
}

.spacer-sm { height: 20px; }
.spacer-md { height: 35px; }
.spacer-lg { height: 50px; }

/* Content Images */
.content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
}

.content-image-center {
  margin-left: auto;
  margin-right: auto;
}

.image-card {
  margin-bottom: 25px;
  margin-left: 0px;
  margin-right: 0px;
}

/* --------------------------------------------------
   8. Grid & Cards (Services, Products)
-------------------------------------------------- */
.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 30px 0;
}

.service-card {
  background: #ffffff;
  border: 1px solid #e2e6e6;
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.service-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
  align-self: center;
}

.service-card h3 {
  font-family: "Amethysta", Georgia, serif;
  font-size: 20px;
  font-weight: normal;
  text-align: center;
  color: #025296;
  margin: 0 0 12px 0;
}

.service-card p {
  flex: 1;
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 20px;
}

/* Call to Action Button */
.btn-cta {
  display: inline-block;
  background-color: #337ab7;
  color: #ffffff;
  padding: 10px 20px;
  font-size: 0.95rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  align-self: flex-start;
  transition: background-color 0.2s ease;
}

.btn-cta:hover {
  background-color: #23527c;
  color: #ffffff;
}

/* Product Section (parts) */
.product-item {
  margin-bottom: 45px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e2e6e6;
}

.product-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.product-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.product-thumb {
  flex-shrink: 0;
  width: 220px;
}

.product-thumb img {
  max-width: 100%;
  height: auto;
  display: block;
}

.product-info {
  flex: 1;
}

.product-info h3 {
  font-family: "Amethysta", Georgia, serif;
  font-size: 24px;
  font-weight: normal;
  text-align: left;
  color: #025296;
  margin-top: 0;
  margin-bottom: 12px;
}

/* News / Announcements */
.news-item {
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e0e5e5;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item h2 {
  font-family: "Amethysta", Georgia, serif;
  font-size: 24px;
  font-weight: normal;
  text-align: left;
  color: #025296;
  margin-bottom: 12px;
}

.news-item p {
  font-size: 0.95rem;
  color: #444444;
}

/* --------------------------------------------------
   9. Recruit Page Layout (Side-by-side 2 Columns)
-------------------------------------------------- */
.recruit-two-column {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 35px;
  margin: 25px 0 35px 0;
}

.recruit-col-image {
  flex: 0 0 50%;
  max-width: 50%;
}

.recruit-col-image img {
  width: 100%;
  max-width: 503px;
  height: auto;
  display: block;
  border-radius: 4px;
  margin: 0;
}

.recruit-col-text {
  flex: 1;
}

.recruit-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recruit-points li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: #333333;
}

.recruit-points li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: #025296;
  font-weight: bold;
}

.recruit-link-box {
  background: #ffffff;
  border: 1px solid #d5dbdb;
  padding: 20px;
  border-radius: 4px;
  margin: 25px 0;
}

.recruit-link-box a {
  color: #025296;
  text-decoration: underline;
  font-weight: 500;
}

/* --------------------------------------------------
   10. Contact Page Components
-------------------------------------------------- */
.contact-section-block {
  margin-bottom: 40px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.contact-info-card {
  background: #ffffff;
  padding: 20px;
  border: 1px solid #e2e6e6;
  border-radius: 4px;
}

.contact-info-card p {
  margin: 5px 0;
  font-size: 1.05rem;
}

/* Clean Contact Form */
.contact-form {
  background: #ffffff;
  padding: 30px;
  border: 1px solid #e2e6e6;
  border-radius: 4px;
  margin: 20px 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333333;
}

.form-label .required {
  color: #c9302c;
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: #025296;
  box-shadow: 0 0 5px rgba(2, 82, 150, 0.25);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-help-text {
  font-size: 0.85rem;
  color: #777777;
  margin-top: 6px;
}

.form-help-text a {
  color: #025296;
  text-decoration: underline;
}

.btn-submit {
  background-color: #025296;
  color: #ffffff;
  border: none;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-submit:hover {
  background-color: #013766;
}

/* Map Wrapper */
.map-container {
  width: 100%;
  height: 350px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e2e6e6;
  margin: 20px 0;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Links Page */
.links-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.links-list li {
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e2e6e6;
  border-radius: 4px;
  margin-bottom: 12px;
}

.links-list a {
  color: #025296;
  text-decoration: none;
  font-weight: 500;
}

.links-list a:hover {
  text-decoration: underline;
}

/* Sitemap Page */
.sitemap-tree {
  list-style: none;
  padding-left: 0;
  margin: 20px 0;
}

.sitemap-tree > li {
  margin-bottom: 15px;
}

.sitemap-tree a {
  color: #025296;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

.sitemap-tree a:hover {
  text-decoration: underline;
}

.sitemap-tree ul {
  list-style: disc;
  padding-left: 24px;
  margin-top: 8px;
}

.sitemap-tree ul li {
  margin-bottom: 6px;
}

/* Privacy Page */
.privacy-content {
  background: #ffffff;
  padding: 30px;
  border: 1px solid #e2e6e6;
  border-radius: 4px;
}

/* --------------------------------------------------
   11. Company Info Sidebar Area
-------------------------------------------------- */
.site-sidebar-section {
  background-color: #dce0e0;
  color: #555555;
  padding: 35px 0;
  width: 100%;
}

.sidebar-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 25px;
}

.sidebar-company-info {
  font-size: 0.95rem;
  line-height: 1.7;
}

.sidebar-company-info strong {
  font-size: 1.1rem;
  color: #222222;
  display: block;
  margin-bottom: 8px;
}

.sidebar-company-info p {
  margin: 4px 0;
  color: #555555;
}

/* --------------------------------------------------
   12. Site Footer
-------------------------------------------------- */
.site-footer {
  background-color: #000000;
  color: #798486;
  padding: 35px 0;
  width: 100%;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 25px;
  text-align: center;
}

.footer-meta-links {
  margin-bottom: 18px;
  font-size: 0.85rem;
}

.footer-meta-links a {
  color: #798486;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.2s ease;
}

.footer-meta-links a:hover {
  color: #ffffff;
}

.footer-separator {
  color: #444444;
}

.footer-copyright {
  font-size: 0.8rem;
  color: #666666;
  margin: 0;
}

/* --------------------------------------------------
   13. Responsive Breakpoints (Mobile & Tablet)
-------------------------------------------------- */
@media (max-width: 900px) {
  .hero-title-text {
    font-size: 64px;
  }

  .grid-2col {
    grid-template-columns: 1fr;
  }

  .product-layout {
    flex-direction: column;
  }

  .product-thumb {
    width: 100%;
    text-align: center;
  }

  .product-thumb img {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .top-nav {
    display: none;
  }

  .sub-navbar {
    display: none;
  }

  .sub-navbar.is-open {
    display: block;
  }

  .sub-nav-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .sub-nav-menu > li > a {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .sub-nav-menu .dropdown-menu {
    position: static;
    box-shadow: none;
    background-color: #013c70;
    padding-left: 15px;
  }

  .sub-nav-menu > li:hover .dropdown-menu {
    display: none;
  }

  .sub-nav-menu > li.open-mobile .dropdown-menu {
    display: block;
  }

  .hero-title-section {
    min-height: 220px;
    padding: 30px 15px;
  }

  .hero-title-text {
    font-size: 42px;
  }

  h1, h1.page-title {
    font-size: 26px;
  }

  h2, h2.section-title {
    font-size: 22px;
  }

  h3, h3.sub-title {
    font-size: 18px;
  }

  .recruit-two-column {
    flex-direction: column;
    gap: 20px;
  }

  .recruit-col-image {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .content-container {
    padding: 0 15px;
  }

  .sidebar-container {
    padding: 0 15px;
  }

  .footer-container {
    padding: 0 15px;
  }
}
