/* 
 * 株式会社ハウレス コーポレートサイト
 * スタイルシート
 */

:root {
  --primary-color: #0056b3;
  --secondary-color: #004085;
  --accent-color: #ff6b00;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --border-color: #e0e0e0;
  --footer-color: #2c3e50;
}

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* ヘッダー */
.header {
  position: fixed;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 10px 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
}

.logo a {
  color: var(--text-color);
}

.nav-menu {
  display: flex;
  list-style-type: none;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  cursor: pointer;
}

/* ヒーローセクション */
.hero {
  height: 100vh;
  background-color: var(--light-gray);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  width: 50%;
  padding: 0 50px;
  z-index: 1;
}

.hero-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-text {
  margin-bottom: 30px;
  font-size: 18px;
}

.hero-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.hero-btn:hover {
  background-color: var(--secondary-color);
  color: white;
}

.hero-image {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background-color: #ddd;
  background-size: cover;
  background-position: center;
}

/* セクション共通 */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

/* 事業内容セクション */
.services {
  background-color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  border: 1px solid var(--border-color);
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-img {
  height: 200px;
  background-color: #eee;
  background-size: cover;
  background-position: center;
}

.service-content {
  padding: 20px;
}

.service-title {
  font-size: 22px;
  margin-bottom: 15px;
}

.service-text {
  margin-bottom: 20px;
}

.service-link {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
}

/* 会社概要セクション */
.about {
  background-color: var(--light-gray);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-title {
  font-size: 28px;
  margin-bottom: 20px;
}

.about-info {
  margin-top: 30px;
}

.info-item {
  display: flex;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.info-label {
  width: 120px;
  font-weight: 500;
}

.info-value {
  flex: 1;
}

.about-image {
  flex: 1;
  height: 400px;
  background-color: #ddd;
  border-radius: 5px;
  background-size: cover;
  background-position: center;
}

/* お問い合わせセクション */
.contact {
  background-color: white;
}

.contact-content {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-title {
  font-size: 28px;
  margin-bottom: 20px;
}

.contact-text {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-item i {
  font-size: 24px;
  color: var(--primary-color);
  margin-right: 15px;
}

.contact-form {
  flex: 1;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
}

textarea.form-control {
  height: 150px;
  resize: vertical;
}

.submit-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: var(--secondary-color);
}

/* フッター */
.footer {
  background-color: var(--footer-color);
  color: white;
  padding: 50px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-info {
  flex: 1;
  max-width: 300px;
}

.footer-links {
  display: flex;
  flex: 2;
  justify-content: space-around;
}

.footer-links-col h3 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
}

.footer-links-col h3::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
  bottom: -10px;
  left: 0;
}

.footer-menu {
  list-style-type: none;
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu a {
  color: #ddd;
}

.footer-menu a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 992px) {
  .hero-content {
    width: 60%;
  }
  
  .hero-image {
    width: 40%;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-image {
    width: 100%;
  }
  
  .contact-content {
    flex-direction: column;
  }
}

@media screen and (max-width: 768px) {
  .hero {
    height: auto;
    padding: 120px 0 60px;
  }
  
  .hero-content {
    width: 100%;
    padding: 0 20px;
    text-align: center;
  }
  
  .hero-image {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    margin: 15px 0;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-info {
    margin-bottom: 30px;
    max-width: 100%;
  }
  
  .footer-links {
    flex-direction: column;
  }
  
  .footer-links-col {
    margin-bottom: 30px;
  }
}
