/*
Theme Name: ishizakikousan
Theme URI: https://www.ishizakikosan.com/
Description: Original theme for Ishizaki Kosan Co., Ltd.
Author: Antigravity
Version: 1.0.0
Text Domain: ishizakikousan
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
#header {
  background: #fff;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
}

.nav-desktop ul {
  display: flex;
  list-style: none;
}

.nav-desktop li {
  margin-left: 20px;
}

.nav-desktop a {
  font-weight: bold;
  font-size: 15px;
}

.nav-desktop a:hover {
  color: #0056b3;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-overlay {
  text-align: center;
  width: 100%;
  max-width: 1120px;
}

.hero-text-img {
  max-width: 500px;
  padding: 0 30px;
  margin: 0 0 0 auto;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  position: relative;
  display: inline-block;
}

.section-title .en {
  display: block;
  font-size: 14px;
  color: #888;
  margin-top: 5px;
}

/* Business Section */
.business-intro {
  background: #f9f9f9;
}

.business-intro-inner {
  display: flex;
  gap: 40px;
}

.business-intro-left {
  flex: 1;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.4;
  color: #0056b3;
}

.business-intro-right {
  flex: 2;
}

/* Business Content Grid */
.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.business-item {
  background: #004085;
  color: #fff;
  padding: 20px;
  text-align: center;
  border-radius: 4px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

/* Works Section */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.work-card {
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.work-image {
  height: 200px;
  overflow: hidden;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-content {
  padding: 15px;
}

.work-title {
  font-weight: bold;
  font-size: 18px;
}

.work-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #004085;
  color: #fff;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 4px;
  z-index: 10;
}

.page-header {
  background: #f4f4f4;
  padding: 60px 0;
  text-align: center;
}

.page-header h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.page-header .en {
  font-size: 16px;
  color: #888;
  letter-spacing: 0.1em;
}

.pagination {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  color: #333;
  transition: 0.3s;
}

.pagination a:hover, .pagination .current {
  background: #004085;
  color: #fff;
  border-color: #004085;
}

/* News Section */
.news-list {
  border-top: 1px solid #eee;
}

.news-item {
  display: flex;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.news-date {
  width: 120px;
  color: #888;
}

.news-title {
  flex: 1;
}

/* Footer */
#footer {
  background: #333;
  color: #fff;
  padding: 60px 0 20px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-info .logo img {
  height: 40px;
  margin-bottom: 20px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.copyright {
  text-align: center;
  margin-top: 40px;
  font-size: 12px;
  color: #aaa;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
  }

  .nav-desktop {
    display: none; /* In a real project, add a hamburger menu */
  }

  .business-intro-inner {
    flex-direction: column;
  }

  .hero {
    height: 60vh;
  }
}
