/* ============================================
   株式会社京谷商会 - Corporate Site Stylesheet
   ============================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Hiragino Sans", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #333;
  line-height: 1.8;
  background: #fff;
}
a { color: #1a5c3a; text-decoration: none; transition: color 0.2s; }
a:hover { color: #0d3d25; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
  background: #1a5c3a;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.site-logo a { color: #fff; }
.site-logo small { display: block; font-size: 0.65rem; font-weight: 400; letter-spacing: 0.02em; opacity: 0.85; }

/* Navigation */
.nav-list { display: flex; gap: 2rem; }
.nav-list a {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-list a:hover,
.nav-list a.current { color: #fff; border-bottom-color: #fff; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #1a5c3a 0%, #2d8a5e 100%);
  color: #fff;
  text-align: center;
  padding: 5rem 1.5rem;
}
.hero h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: #f8faf9; }
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #1a5c3a;
}
.section-subtitle {
  text-align: center;
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
  letter-spacing: 0.1em;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.card h3 {
  font-size: 1.1rem;
  color: #1a5c3a;
  margin-bottom: 0.8rem;
}
.card p { font-size: 0.95rem; color: #555; }

/* News list */
.news-list { max-width: 800px; margin: 0 auto; }
.news-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  align-items: baseline;
}
.news-date {
  font-size: 0.85rem;
  color: #888;
  white-space: nowrap;
  min-width: 100px;
}
.news-title { font-size: 0.95rem; }
.news-title a:hover { text-decoration: underline; }

/* Page header (sub pages) */
.page-header {
  background: #1a5c3a;
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem;
}
.page-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.page-header p {
  font-size: 0.85rem;
  opacity: 0.8;
  letter-spacing: 0.1em;
}

/* Company info table */
.info-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
}
.info-table th,
.info-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 0.95rem;
}
.info-table th {
  width: 160px;
  color: #1a5c3a;
  font-weight: 600;
  background: #f8faf9;
}

/* Content area */
.content-area {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}
.content-area h3 {
  font-size: 1.3rem;
  color: #1a5c3a;
  margin: 2rem 0 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid #1a5c3a;
}
.content-area p { margin-bottom: 1rem; }

/* Footer */
.site-footer {
  background: #1a3a2a;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
}
.site-footer a { color: rgba(255,255,255,0.85); }
.footer-nav { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary { background: #1a5c3a; color: #fff; }
.btn-primary:hover { background: #0d3d25; }

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #1a5c3a;
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0;
  }
  .nav-list.open { display: flex; }
  .nav-list a { padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .hero { padding: 3rem 1.5rem; }
  .hero h2 { font-size: 1.6rem; }
  .section { padding: 2.5rem 0; }
  .info-table th { width: 120px; }
  .news-item { flex-direction: column; gap: 0.2rem; }
}
