/* ============================================
   株式会社京谷商会 - Corporate Site Stylesheet
   ============================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Segoe UI", sans-serif;
  color: #333;
  line-height: 1.8;
  background: #fff;
  padding-top: 60px;
}
a { color: #1a4a8a; text-decoration: none; transition: color 0.2s; }
a:hover { color: #0d2d5c; }
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 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background-color: #1a4a8a;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}
.header-brand { display: flex; align-items: center; gap: 0.7rem; color: #fff; }
.header-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, #1a4a8a, #3b82f6);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: #fff; flex-shrink: 0;
}
.header-name { display: block; font-size: 0.95rem; font-weight: 700; line-height: 1.3; }
.header-sub { display: block; font-size: 0.6rem; opacity: 0.75; line-height: 1.2; }

/* Fixed nav */
.fixed-nav {
  position: fixed; top: 0; right: 0; height: 60px;
  display: flex; align-items: center; padding: 0 1.5rem; z-index: 1002;
}
.fixed-nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer; padding: 0.3rem; }
.fixed-nav-links { display: flex; gap: 1.5rem; }
.fixed-nav-links a { color: rgba(255,255,255,0.85); font-size: 0.85rem; font-weight: 500; transition: color 0.2s; }
.fixed-nav-links a:hover { color: #fff; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: #f5f8fc; }
.section-title {
  font-size: 1.6rem; font-weight: 700; text-align: center;
  margin-bottom: 0.5rem; color: #1a4a8a;
}
.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: #1a4a8a; 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: linear-gradient(135deg, #0f2b5e 0%, #1a4a8a 40%, #2563eb 100%);
  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: #1a4a8a; font-weight: 600; background: #f5f8fc; }

/* Content area */
.content-area { max-width: 800px; margin: 0 auto; padding: 2rem 0; }
.content-area h3 {
  font-size: 1.3rem; color: #1a4a8a; margin: 2rem 0 1rem;
  padding-bottom: 0.3rem; border-bottom: 2px solid #1a4a8a;
}
.content-area p { margin-bottom: 1rem; }

/* Footer */
.site-footer {
  background: #111827;
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.7rem; }
.footer-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #1a4a8a, #3b82f6);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: #fff; flex-shrink: 0;
}
.footer-name { display: block; color: #fff; font-size: 0.95rem; font-weight: 700; }
.footer-tagline { display: block; font-size: 0.7rem; color: #60a5fa; }
.footer-col h3 {
  font-size: 0.7rem; color: #9ca3af; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 0.6rem;
}
.footer-col a { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.65); margin-bottom: 0.4rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px; margin: 2rem auto 0; padding-top: 1rem;
  border-top: 1px solid #333; display: flex; justify-content: space-between;
  font-size: 0.72rem; color: #9ca3af;
}
.footer-bottom a { color: #9ca3af; }
.footer-bottom a:hover { color: #fff; }

/* 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: #1a4a8a; color: #fff; }
.btn-primary:hover { background: #0d2d5c; }

/* Responsive */
@media (max-width: 768px) {
  .fixed-nav-toggle { display: block; }
  .fixed-nav-links {
    display: none; position: absolute; top: 60px; right: 0;
    background: #1a4a8a; flex-direction: column; padding: 1rem 1.5rem; min-width: 200px;
    border-radius: 0 0 0 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  .fixed-nav-links.open { display: flex; }
  .fixed-nav-links a { padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .page-header { padding: 2rem 1.5rem; }
  .page-header h2 { font-size: 1.6rem; }
  .section { padding: 2.5rem 0; }
  .info-table th { width: 120px; }
  .news-item { flex-direction: column; gap: 0.2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}
