:root {
  --dark-gray: #2C2C2C;
  --light-gray: #F2F2F2;
  --accent: #FF9147;
  --accent-hover: #FF7F2A;
  --bg-color: var(--light-gray);
  --text-color: var(--dark-gray);
  --card-bg: white;
  --card-text: #666;
  --nav-bg: white;
  --nav-shadow: rgba(0, 0, 0, 0.1);
  --card-shadow: rgba(0, 0, 0, 0.1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #1e1e1e;
    --text-color: #f4f4f4;
    --card-bg: #2b2b2b;
    --card-text: #999;
    --nav-bg: #2b2b2b;
    --nav-shadow: rgba(0, 0, 0, 0.3);
    --card-shadow: rgba(0, 0, 0, 0.3);
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
body {
  background-color: var(--bg-color);
  color: var(--text-color);
}
nav {
  background: var(--nav-bg);
  box-shadow: 0 2px 10px var(--nav-shadow);
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-color);
  text-decoration: none;
}
.contact-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}
.contact-btn:hover {
  background: var(--accent-hover);
}
.hero {
  padding: 5rem 5%;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  line-height: 1.3;
}
.hero-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.card {
  background: var(--card-bg);
  box-shadow: 0 4px 15px var(--card-shadow);
  padding: 1.5rem;
  border-radius: 20px;
  flex: 1;
  max-width: 300px;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}
.card:hover {
  transform: translateY(-5px);
}
.icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon img {
  max-width: 80px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
}
.card h3 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--card-text);
  font-size: 0.9rem;
}
@media (max-width: 768px) {
  .hero-cards {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 100%;
  }
  .hero h1 {
    font-size: 2rem;
  }
}
footer {
  background: var(--dark-gray);
  color: white;
  padding: 3rem 5%;
  margin-top: auto;
  /* メインコンテンツが少ない場合でも下部に固定 */
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}
.footer-left {
  flex: 1;
}
.footer-logo a {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--text-color);
  text-decoration: none;
}
.footer-address {
  color: #999;
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-right {
  flex: 1;
  text-align: right;
}
.footer-links {
  margin-bottom: 1.5rem;
}
.footer-links a {
  color: white;
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: var(--accent);
}
.copyright {
  color: #999;
  font-size: 0.8rem;
}
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-right {
    text-align: center;
  }
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  .footer-links a {
    margin: 0;
  }
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
@media (prefers-color-scheme: dark) {
  .contact-btn {
    background: var(--accent);
  }
  .contact-btn:hover {
    background: var(--accent-hover);
  }
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--card-shadow);
  }
  .footer-links a:hover {
    color: var(--accent);
  }
}
