/* =============================================
   株式会社小野組 共通スタイル v2
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
  --navy:      #1B3F6B;
  --navy-dark: #132E50;
  --sky:       #3A7DC9;
  --sky-light: #EBF3FB;
  --accent:    #C8913A;
  --text:      #2A2A2A;
  --text-mid:  #555;
  --text-light:#888;
  --border:    #DDE4EC;
  --bg:        #FFFFFF;
  --bg-gray:   #F6F8FA;
  --ff:        'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif;
  --max:       1080px;
  --radius:    6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--ff); color: var(--text); background: var(--bg); line-height: 1.8; font-size: 15px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ─── HEADER ─── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 20px;
}
.logo a { display: flex; flex-direction: column; line-height: 1.2; }
.logo-ja { font-size: 16px; font-weight: 700; color: var(--navy); letter-spacing: .05em; }
.logo-en { font-size: 10px; color: var(--text-light); letter-spacing: .15em; }

/* Desktop nav */
.global-nav { margin-left: auto; }
.global-nav ul { display: flex; gap: 2px; align-items: center; }
.global-nav ul li a {
  display: block; padding: 6px 10px; font-size: 13px;
  color: var(--text-mid); border-radius: var(--radius);
  transition: color .2s, background .2s; white-space: nowrap;
}
.global-nav ul li a:hover,
.global-nav ul li.current a { color: var(--navy); background: var(--sky-light); }
.nav-contact a { background: var(--navy) !important; color: #fff !important; padding: 6px 14px !important; border-radius: var(--radius) !important; }
.nav-contact a:hover { background: var(--navy-dark) !important; }

.header-tel { font-size: 11px; color: var(--text-light); white-space: nowrap; border-left: 1px solid var(--border); padding-left: 16px; }
.header-tel strong { display: block; font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.2; }

/* ─── HAMBURGER BUTTON ─── */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px; cursor: pointer;
  background: none; border: none; padding: 4px;
  margin-left: auto; border-radius: var(--radius);
  transition: background .2s;
}
.hamburger:hover { background: var(--bg-gray); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE NAV OVERLAY ─── */
.mobile-nav {
  display: none;
  position: fixed; inset: 64px 0 0 0;
  background: rgba(19,46,80,.97);
  z-index: 150; flex-direction: column;
  padding: 32px 24px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav ul { list-style: none; }
.mobile-nav ul li { border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-nav ul li a {
  display: block; padding: 18px 0;
  font-size: 17px; color: rgba(255,255,255,.9);
  font-weight: 500; letter-spacing: .05em;
  transition: color .2s, padding-left .2s;
}
.mobile-nav ul li a:hover { color: #fff; padding-left: 8px; }
.mobile-nav .mobile-tel {
  margin-top: 32px; padding: 20px;
  background: rgba(255,255,255,.08); border-radius: var(--radius);
  text-align: center;
}
.mobile-nav .mobile-tel span { display: block; font-size: 11px; color: rgba(255,255,255,.5); letter-spacing: .1em; margin-bottom: 6px; }
.mobile-nav .mobile-tel a { font-size: 24px; font-weight: 700; color: #fff; }

/* ─── PAGE BANNER ─── */
.page-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 40px 24px; color: #fff;
}
.page-banner-inner { max-width: var(--max); margin: 0 auto; }
.page-banner h1 { font-size: clamp(20px, 3vw, 28px); font-weight: 700; margin-bottom: 6px; }
.page-banner .breadcrumb { font-size: 12px; color: rgba(255,255,255,.55); }
.page-banner .breadcrumb a { color: rgba(255,255,255,.55); }
.page-banner .breadcrumb span { color: rgba(255,255,255,.9); }

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, #1E5294 100%);
  color: #fff; padding: 80px 24px 72px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { max-width: var(--max); margin: 0 auto; position: relative; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25); border-radius: 20px;
  padding: 4px 14px; font-size: 12px; letter-spacing: .1em; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(22px, 3.5vw, 36px); font-weight: 700; line-height: 1.6; margin-bottom: 20px; }
.hero-desc { font-size: 14px; color: rgba(255,255,255,.8); line-height: 1.9; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 12px 28px; border-radius: var(--radius); font-size: 14px; font-weight: 700;
  transition: opacity .2s, transform .2s;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.btn-outline-white {
  display: inline-block; border: 1px solid rgba(255,255,255,.5);
  color: #fff; padding: 12px 28px; border-radius: var(--radius); font-size: 14px;
  transition: background .2s;
}
.btn-outline-white:hover { background: rgba(255,255,255,.12); }
.btn-navy {
  display: inline-block; background: var(--navy); color: #fff;
  padding: 12px 36px; border-radius: var(--radius); font-size: 14px; font-weight: 500;
  transition: background .2s, transform .2s;
}
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-1px); }
.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--sky); font-size: 13px; font-weight: 500;
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.link-more:hover { border-color: var(--sky); }

/* ─── SECTION ─── */
.sec { padding: 72px 24px; }
.sec-gray { background: var(--bg-gray); }
.sec-heading { margin-bottom: 40px; }
.sec-heading .ja { display: block; font-size: clamp(20px, 2.5vw, 26px); font-weight: 700; color: var(--navy); }
.sec-heading .en { display: block; font-size: 11px; color: var(--text-light); letter-spacing: .2em; margin-top: 4px; }

/* ─── ABOUT ─── */
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; }
.about-img img { width: 100%; border-radius: var(--radius); box-shadow: 0 4px 20px rgba(0,0,0,.12); }
.about-text p { color: var(--text-mid); font-size: 14.5px; line-height: 2; margin-bottom: 16px; }

/* ─── NEWS ─── */
.news-list { border-top: 1px solid var(--border); }
.news-item {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 16px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.news-date { color: var(--text-light); font-size: 12px; white-space: nowrap; }
.news-link a { color: var(--text); transition: color .2s; }
.news-link a:hover { color: var(--sky); }
.news-more { text-align: right; margin-top: 16px; }
.news-more a { font-size: 13px; color: var(--sky); }

/* ─── WORKS GRID (top) ─── */
.works-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 32px; }
.work-item { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/3; background: var(--bg-gray); display: block; }
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.work-item:hover img { transform: scale(1.06); }
.works-btn { text-align: center; }

/* ─── INFO STRIP ─── */
.info-strip { background: var(--navy); color: #fff; padding: 48px 24px; }
.info-strip-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
.info-card h3 { font-size: 11px; letter-spacing: .15em; color: rgba(255,255,255,.5); margin-bottom: 10px; font-weight: 400; }
.info-card p, .info-card a { font-size: 14px; color: rgba(255,255,255,.85); line-height: 1.9; }

/* ─── COMPANY TABLE ─── */
.def-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.def-table th {
  background: var(--bg-gray); color: var(--navy); font-weight: 500;
  padding: 14px 18px; border: 1px solid var(--border); text-align: left;
  width: 160px; white-space: nowrap; vertical-align: top;
}
.def-table td { padding: 14px 18px; border: 1px solid var(--border); color: var(--text-mid); line-height: 1.8; }

/* ─── HISTORY ─── */
.history-list { position: relative; padding-left: 32px; }
.history-list::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.history-item { position: relative; margin-bottom: 24px; }
.history-item::before { content: ''; position: absolute; left: -28px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); }
.history-year { font-size: 12px; color: var(--text-light); margin-bottom: 2px; }
.history-text { font-size: 14px; color: var(--text-mid); }

/* ─── CONCEPT ─── */
.concept-tagline { font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.7; margin-bottom: 32px; padding: 24px; background: var(--sky-light); border-radius: var(--radius); }
.concept-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; margin-bottom: 24px; border-left: 4px solid var(--navy); }
.concept-card h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.concept-card ul li { padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--text-mid); font-size: 14px; padding-left: 20px; position: relative; }
.concept-card ul li:last-child { border-bottom: none; }
.concept-card ul li::before { content: '一、'; position: absolute; left: 0; color: var(--navy); font-weight: 700; }

/* ─── SERVICE / WORKS FILTER ─── */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 40px; padding: 20px;
  background: var(--bg-gray); border-radius: var(--radius);
}
.filter-btn {
  padding: 8px 18px; font-size: 13px; font-family: var(--ff);
  border: 1px solid var(--border); border-radius: 20px;
  background: var(--bg); color: var(--text-mid);
  cursor: pointer; transition: all .2s;
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.works-category { margin-bottom: 56px; transition: opacity .3s; }
.works-category.hidden { display: none; }
.category-title {
  font-size: 16px; font-weight: 700; color: var(--navy);
  border-bottom: 2px solid var(--navy); padding-bottom: 10px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.category-title::before { content: ''; display: block; width: 6px; height: 20px; background: var(--accent); border-radius: 3px; }
.works-grid-full { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.work-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: box-shadow .2s, transform .2s; display: block; }
.work-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); }
.work-card .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-gray); }
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.work-card:hover .thumb img { transform: scale(1.06); }
.work-card .info { padding: 10px 12px; }
.work-card .info p { font-size: 12px; color: var(--text-mid); line-height: 1.6; }

/* ─── RECRUIT ─── */
.recruit-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.recruit-table th { background: var(--navy); color: #fff; font-weight: 500; padding: 14px 18px; border: 1px solid var(--navy); text-align: left; width: 180px; white-space: nowrap; vertical-align: top; }
.recruit-table td { padding: 14px 18px; border: 1px solid var(--border); color: var(--text-mid); line-height: 1.9; }
.recruit-note { margin-top: 24px; font-size: 13px; color: var(--text-light); line-height: 1.9; }

/* ─── ACCESS ─── */
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.access-card { background: var(--bg-gray); border-radius: var(--radius); padding: 24px; }
.access-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.access-card .address { font-size: 14px; color: var(--text-mid); line-height: 1.9; margin-bottom: 16px; }
.access-card .route { font-size: 13px; color: var(--text-mid); line-height: 2; }
.access-card .route strong { display: block; margin-top: 12px; margin-bottom: 2px; color: var(--navy); font-size: 12px; font-weight: 700; }
.map-wrap { border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; box-shadow: 0 2px 12px rgba(0,0,0,.08); }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.contact-info h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 12px; margin-top: 24px; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info p { font-size: 14px; color: var(--text-mid); line-height: 1.9; }
.contact-tel { font-size: 22px; font-weight: 700; color: var(--navy); }
.contact-tel span { font-size: 12px; font-weight: 400; color: var(--text-light); display: block; margin-bottom: 4px; }
.form-row { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-label .req { color: #c0392b; font-size: 11px; margin-left: 4px; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 10px 14px; font-size: 14px; font-family: var(--ff);
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg);
  color: var(--text); transition: border-color .2s; appearance: auto;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(58,125,201,.1); }
.form-input.error, .form-textarea.error, .form-select.error { border-color: #e74c3c; }
.form-error-msg { font-size: 12px; color: #e74c3c; margin-top: 4px; display: none; }
.form-error-msg.show { display: block; }
.form-textarea { height: 160px; resize: vertical; }
.form-submit {
  background: var(--navy); color: #fff; border: none; cursor: pointer;
  padding: 14px 48px; font-size: 15px; font-family: var(--ff); font-weight: 700;
  border-radius: var(--radius); transition: background .2s; display: block; margin: 0 auto;
}
.form-submit:hover { background: var(--navy-dark); }
.form-submit:disabled { opacity: .6; cursor: not-allowed; }
.form-note { font-size: 12px; color: var(--text-light); text-align: center; margin-top: 12px; }
.form-success {
  display: none; padding: 20px 24px; background: #eafaf1; border: 1px solid #2ecc71;
  border-radius: var(--radius); color: #27ae60; font-size: 14px; text-align: center; margin-top: 16px;
}

/* ─── PRIVACY ─── */
.privacy-section { margin-bottom: 40px; }
.privacy-section h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.privacy-section p, .privacy-section ul { font-size: 14px; color: var(--text-mid); line-height: 2; }
.privacy-section ul li { padding-left: 16px; position: relative; }
.privacy-section ul li::before { content: '・'; position: absolute; left: 0; }

/* ─── FOOTER ─── */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.7); padding: 48px 24px 32px; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 24px; }
.footer-logo { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-address { font-size: 13px; line-height: 2; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav ul li a { font-size: 13px; transition: color .2s; }
.footer-nav ul li a:hover { color: #fff; }
.footer-copy { font-size: 12px; text-align: center; color: rgba(255,255,255,.4); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .works-grid, .works-grid-full { grid-template-columns: repeat(3, 1fr); }
  .info-strip-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .global-nav { display: none; }
  .header-tel { display: none; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img { max-width: 300px; margin: 0 auto; }
  .works-grid, .works-grid-full { grid-template-columns: repeat(2, 1fr); }
  .info-strip-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 4px; }
  .contact-grid { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr; }
  .page-banner { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .sec { padding: 48px 16px; }
  .hero { padding: 56px 16px 48px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .filter-bar { gap: 6px; padding: 14px; }
  .filter-btn { padding: 6px 12px; font-size: 12px; }
}
