/* Shared CSS for kyotanishokai.co.jp subdomain sites */
/* Lightning-inspired theme with #337ab7 base */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Hiragino Sans", "Noto Sans JP", -apple-system, sans-serif;
  color: #333;
  line-height: 1.8;
  background: #fff;
}

a { color: #337ab7; text-decoration: none; }
a:hover { color: #23527c; text-decoration: underline; }

img { max-width: 100%; height: auto; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
  background: #337ab7;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.site-logo:hover { color: #fff; text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

.main-nav { display: flex; gap: 0; }
.main-nav a {
  color: rgba(255,255,255,0.9);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.15s;
  text-decoration: none;
}
.main-nav a:hover { background: rgba(255,255,255,0.15); color: #fff; text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #337ab7 0%, #2c6da0 50%, #1a5276 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 1.5rem;
}
.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}
.hero .cta-btn {
  display: inline-block;
  margin-top: 1.5rem;
  background: #fff;
  color: #337ab7;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.hero .cta-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); text-decoration: none; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: #f8f9fa; }
.section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 2rem;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #337ab7;
}
.card p { font-size: 0.9rem; color: #555; line-height: 1.7; }

/* Blog list */
.blog-list { display: flex; flex-direction: column; gap: 1.5rem; }
.blog-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: box-shadow 0.15s;
}
.blog-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.blog-date {
  font-size: 0.8rem;
  color: #888;
  white-space: nowrap;
  min-width: 90px;
}
.blog-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}
.blog-title a { color: #333; }
.blog-title a:hover { color: #337ab7; }
.blog-loading { text-align: center; color: #888; padding: 3rem 0; }

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #555;
}
.form-group label .required {
  color: #dc3545;
  font-size: 0.8rem;
  margin-left: 0.3rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #337ab7;
  box-shadow: 0 0 0 2px rgba(51,122,183,0.15);
}
.form-group textarea { min-height: 150px; resize: vertical; }
.submit-btn {
  display: block;
  width: 100%;
  padding: 0.9rem;
  background: #337ab7;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.submit-btn:hover { background: #2c6da0; }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.form-status {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  display: none;
}
.form-status.success { display: block; background: #d4edda; color: #155724; }
.form-status.error { display: block; background: #f8d7da; color: #721c24; }

/* Company info */
.company-table { width: 100%; border-collapse: collapse; max-width: 700px; margin: 0 auto; }
.company-table th,
.company-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}
.company-table th {
  font-weight: 600;
  color: #555;
  width: 140px;
  white-space: nowrap;
}

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid #eee;
  padding: 1.2rem 0;
}
.faq-q {
  font-weight: 700;
  color: #337ab7;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.faq-q::before { content: "Q."; font-weight: 800; }
.faq-a {
  margin-top: 0.5rem;
  padding-left: 1.8rem;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Pricing table */
.price-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; max-width: 800px; margin-left: auto; margin-right: auto; }
.price-table th, .price-table td {
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  text-align: center;
  font-size: 0.9rem;
}
.price-table th { background: #337ab7; color: #fff; font-weight: 600; }
.price-table td { background: #fff; }
.price-table tr:nth-child(even) td { background: #f8f9fa; }
.price-highlight { font-weight: 700; color: #337ab7; font-size: 1.1rem; }

/* Footer */
.site-footer {
  background: #2c3e50;
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
  font-size: 0.85rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-group-title {
  text-align: center;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-company {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.8rem;
  color: #888;
}
.breadcrumb a { color: #337ab7; }

/* CTA banner */
.cta-banner {
  background: #337ab7;
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem;
}
.cta-banner h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.cta-banner p { opacity: 0.9; margin-bottom: 1.5rem; }
.cta-banner .cta-phone {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.cta-banner .cta-phone a { color: #fff; text-decoration: none; }
.cta-banner .cta-hours { font-size: 0.85rem; opacity: 0.7; margin-top: 0.3rem; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.5rem; }
  .hero { padding: 3rem 1.5rem; }
  .section { padding: 3rem 0; }
  .section-title { font-size: 1.3rem; }
  .card-grid { grid-template-columns: 1fr; }
  .blog-item { flex-direction: column; gap: 0.3rem; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #337ab7;
    flex-direction: column;
    padding: 0.5rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.8rem 1.5rem; }
  .company-table th { width: 100px; }
}
