/* モバイルファーストデザイン - 易発株式会社 */

/* リセット・ベース設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ヘッダー */
.header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1000;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #0d3399;
}

.logo img {
  height: 50px;
  width: auto;
}

/* ナビゲーション */
.nav {
  display: none;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav a {
  color: #333;
  font-weight: 500;
  padding: 10px 15px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: #0d3399;
  border-bottom-color: #0d3399;
}

/* モバイルメニュー */
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #0d3399;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav a {
  display: block;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  color: #333;
  font-weight: 500;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: #0d3399;
  color: #fff;
}

/* 新しいヒーローセクション - 画像とテキストを分離 */
.hero-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hero-new-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hero-image {
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 200px;
  object-fit: cover;
}

.hero-content-below {
  width: 100%;
  max-width: 1200px;
  padding: 30px 20px;
  text-align: center;
  color: #333;
  background: #fff;
  position: relative;
  z-index: 10;
  margin-top: -5px; /* 画像との僅かな重複を防ぐ */
}

.hero-content-below h1 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.3;
  color: #0d3399;
}

.hero-content-below .subtitle {
  font-size: 14px;
  margin-bottom: 15px;
  color: #666;
}

.hero-content-below p {
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.8;
  color: #666;
}

/* ヒーロー大型テキストスタイル - サイズを調整 */
.hero-large-text {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  letter-spacing: 1px;
  color: #0d3399;
}

.hero-main-title {
  font-size: 20px;
  margin-bottom: 15px;
  color: #0d3399;
}

/* レガシーヒーローセクション（参考用・今後削除予定） */
.hero {
  background: url("images/hero-bg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-full-bg {
  background: url("images/hero-bg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-company {
  background: url("images/hero-bg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-contact {
  background: url("images/hero-bg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* ヒーローコンテンツスタイル */
.hero-content {
  text-align: center; /* ヒーローコンテンツ全体を中央揃え */
}

.hero-content h1 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero-content h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero-content h3 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.3;
}

.hero-content .subtitle {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-content p {
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-content div {
  font-size: 18px;
  margin: 20px 0;
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 15px 30px;
  background: #0d3399;
  color: #fff;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid #0d3399;
}

.btn:hover {
  background: transparent;
  color: #0d3399;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: #0d3399;
  border: 2px solid #fff;
}

.btn-white:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-orange {
  background: #f39800;
  border-color: #f39800;
}

.btn-orange:hover {
  background: transparent;
  color: #f39800;
}

/* セクション */
.section {
  padding: 40px 20px;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #0d3399;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #0d3399;
  margin: 10px auto;
}

.section-subtitle {
  font-size: 16px;
  text-align: center;
  margin-bottom: 40px;
  color: #666;
}

/* カードレイアウト */
.card-grid {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
  height: 200px;
  background: url("images/placeholder.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 25px;
  text-align: center; /* カードコンテンツを中央揃え */
}

.card-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #0d3399;
  text-align: center; /* カードタイトルを中央揃え */
}

.card-text {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 15px;
  text-align: center; /* カードテキストを中央揃え */
}

.card-text:last-child {
  margin-bottom: 0;
}

/* 代表メッセージ部分は左揃えを維持（contact-info内のh3は除外） */
.card-content h3:not(.contact-info h3) {
  text-align: left; /* 見出しは左揃え */
}

.card-content .card-text {
  text-align: left; /* メッセージ本文は左揃え */
}

/* ただし、事業内容の説明文は左揃え */
article.card .card-content .card-text {
  text-align: left;
}

/* 特別なセクション */
.bg-light {
  background: #f8f9fa;
}

.bg-blue {
  background: #0d3399;
  color: #fff;
}

.bg-blue .section-title {
  color: #fff;
}

.bg-blue .section-title::after {
  background: #fff;
}

/* お問い合わせセクション */
.contact-info {
  text-align: center;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 12px;
  margin: 40px 0;
}

.contact-phone {
  font-size: 28px;
  font-weight: bold;
  color: #0068b7;
  margin: 20px 0;
}

.contact-hours {
  color: #666;
  margin-top: 10px;
}

/* 現在の物件セクション - 簡略化後 */
.current-projects {
  background: #f39800;
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  margin: 30px 0;
}

.current-projects h3 {
  margin-bottom: 15px;
}

.project-details {
  background: #fff;
  color: #333;
  padding: 25px;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center; /* プロジェクト詳細を中央揃え */
}

/* ただし、プロジェクト詳細内の展開実績部分は左揃えを維持 */
.project-details div div {
  text-align: left;
}

.project-details div div h4 {
  text-align: left;
}

.project-details div div p {
  text-align: left;
}

/* フッター */
.footer {
  background: #333;
  color: #fff;
  padding: 40px 20px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #fff;
  padding: 8px 15px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.footer-nav a:hover {
  background: #0d3399;
}

.footer-copy {
  font-size: 14px;
  color: #ccc;
  border-top: 1px solid #555;
  padding-top: 20px;
}

/* レスポンシブ対応 */
@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }

  .nav {
    display: block;
  }

  .hero-content h1 {
    font-size: 48px;
  }

  .hero-content .subtitle {
    font-size: 24px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .hero-content-below {
    padding: 50px 40px;
  }

  .hero-content-below h1 {
    font-size: 32px;
  }

  .hero-content-below .subtitle {
    font-size: 18px;
  }

  .hero-content-below p {
    font-size: 16px;
  }

  .hero-large-text {
    font-size: 32px;
    letter-spacing: 2px;
  }

  .hero-main-title {
    font-size: 28px;
  }

  .section {
    padding: 60px 20px;
  }

  .section-title {
    font-size: 32px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-title {
    font-size: 20px;
  }

  .card-text {
    font-size: 15px;
  }

  .footer-nav ul {
    flex-wrap: nowrap;
  }
}

@media (min-width: 1024px) {
  .header-container {
    padding: 0 40px;
  }

  .hero,
  .hero-full-bg,
  .hero-company,
  .hero-contact {
    min-height: 70vh;
  }

  .hero-company {
    min-height: 50vh;
  }

  .hero-content h1 {
    font-size: 56px;
  }

  .hero-content-below {
    padding: 60px 40px;
  }

  .hero-content-below h1 {
    font-size: 40px;
  }

  .hero-large-text {
    font-size: 40px;
    letter-spacing: 3px;
  }

  .hero-main-title {
    font-size: 36px;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section {
    padding: 80px 40px;
  }

  .section-title {
    font-size: 36px;
  }
}

/* ユーティリティクラス */
.text-center {
  text-align: center;
}

.mt-30 {
  margin-top: 30px;
}

.mb-30 {
  margin-bottom: 30px;
}

.hidden {
  display: none;
}

/* アクセシビリティ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles */
a:focus,
button:focus {
  outline: 2px solid #0d3399;
  outline-offset: 2px;
}

/* フォームスタイル */
.contact-form {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
  font-size: 16px;
}

.form-group.required label::after {
  content: " *";
  color: #e74c3c;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #0d3399;
  box-shadow: 0 0 0 3px rgba(13, 51, 153, 0.1);
}

.form-control:invalid {
  border-color: #e74c3c;
}

.form-control::placeholder {
  color: #999;
}

select.form-control {
  cursor: pointer;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  gap: 20px;
}

.form-submit {
  text-align: center;
  margin-top: 40px;
}

.btn-submit {
  background: #0d3399;
  color: #fff;
  padding: 18px 40px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background: #0a2670;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 51, 153, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

.required-note {
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
  text-align: center;
}

.required-note .required-mark {
  color: #e74c3c;
  font-weight: bold;
}

/* テーブルスタイル */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table td {
  padding: 15px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  text-align: left; /* テーブルは左揃えを維持 */
}

table td:first-child {
  font-weight: bold;
  color: #0d3399;
  width: 150px;
  white-space: nowrap;
}

table tr:last-child td {
  border-bottom: none;
}

/* よくあるお問い合わせのQ&Aは左揃えを維持 */
.card-content div h3 {
  text-align: left;
}

.card-content div p {
  text-align: left;
}

/* お問い合わせの流れは中央表示の左揃え - 競合を避ける */
.section-container > div:not(.contact-flow-steps) > div {
  text-align: center;
}

/* 特定の中央揃え要素 - 優先度を上げる */
.card-content .contact-info h3 {
  text-align: center;
}

.card-content .contact-hours {
  color: #666;
  margin-top: 10px;
  text-align: center;
}

/* お問い合わせの流れのステップ要素 - 修正版 */
.contact-flow-steps {
  max-width: 600px;
  margin: 0 auto;
}

.contact-flow-steps > div {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  text-align: left;
}

.contact-flow-steps > div > div:first-child {
  width: 50px;
  height: 50px;
  background: #0d3399;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  margin-right: 20px;
  flex-shrink: 0;
}

.contact-flow-steps > div > div:last-child {
  flex: 1;
  padding-top: 5px;
}

.contact-flow-steps h3 {
  text-align: left;
  margin-bottom: 8px;
  color: #0d3399;
  font-size: 18px;
  font-weight: bold;
}

.contact-flow-steps p {
  text-align: left;
  margin: 0;
  color: #666;
  line-height: 1.6;
}

/* 特定の左揃えを維持する箇所 */
.company-message {
  text-align: left;
}

.access-details {
  text-align: left;
}

.faq-content {
  text-align: left;
}

@media (max-width: 767px) {
  table td:first-child {
    width: 120px;
    font-size: 14px;
  }

  table td {
    padding: 12px 8px;
    font-size: 14px;
  }
}
