@charset "UTF-8";

/* 全体 */
.about-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  color: #333;
  font-family: "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,sans-serif;
  line-height: 1.8;
}

/* ヘッダー */
.about-header {
  text-align: center;
  padding-top: 60px;
  margin-bottom: 40px;
}
.about-title {
  position: relative;
  display: inline-block;
  font-size: 1.8rem;
  font-weight: bold;
  padding-bottom: 8px;
}
.about-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #333;
}

/* キャッチコピー */
.about-catchcopy {
  margin-bottom: 60px;
}
.catchcopy-text {
  font-size: 1.4rem;
  font-weight: bold;
  text-align: center;
  line-height: 1.5;
}

/* リード */
.about-lead {
  text-align: center;
  margin-bottom: 80px;
}
.engawa-logo-yoko {
  display: block;
  margin: 0 auto 40px;
  max-width: 300px;
  width: 100%;
}
.lead-texts {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}
.lead-texts p {
  margin-bottom: 1.5em;
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
}

/* 波線 */
.about-wave {
  text-align: center;
  margin: 60px 0;
}
.wave-img {
  max-width: 100%;
  width: 100%;
}

/* PROJECT */
.about-projects {
}
.section-heading {
  text-align: center;
  position: relative;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 40px;
}
.section-heading::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 2px;
  background-color: #333;
}

/* 2カラム（PC/タブレット）、スマホで1カラム */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 20px;
}
@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* 各カード */
.project-card {
  text-align: left;
}

/* ロゴ枠 */
.project-logo-box {
  border: 1px solid #ddd;
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
  background: #fff; /* 白バック */
}
.project-logo-box img {
  max-width: 100%;
  height: auto;
}

/* タイトル */
.project-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 12px;
}

/* 説明文 */
.project-description {
  font-size: 0.95rem;
  color: #555;
  margin: 0 0 24px;
  line-height: 1.6;
}

/* ボタン */
.project-button {
  display: inline-block;
  font-size: 0.9rem;
  color: #fff;
  background-color: #333;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 3px;
  transition: background-color 0.3s;
}
.project-button:hover {
  background-color: #555;
}

/* お問い合わせ：白バック化 */
.about-contact {
  text-align: center;
  padding: 60px 0;
  background-color: #fff; /* グレー→白 */
  margin-bottom: 60px;
}
.contact-text {
  font-size: 1rem;
  margin-bottom: 24px;
  line-height: 1.6;
}
.contact-button {
  display: inline-block;
  font-size: 1rem;
  color: #fff;
  background-color: #333;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 4px;
  transition: background-color 0.3s;
}
.contact-button:hover {
  background-color: #555;
}

/* レスポンシブその他 */
@media (max-width: 480px) {
  .about-title { font-size: 1.4rem; }
  .catchcopy-text { font-size: 1rem; }
  .engawa-logo-yoko { max-width: 200px; margin-bottom: 20px; }
  .lead-texts p { font-size: 0.9rem; margin-bottom: 1em; }
  .project-button { font-size: 0.85rem; padding: 6px 12px; }
  .contact-button { font-size: 0.9rem; padding: 8px 16px; }
}



/* ① グリッドレイアウトを強制適用 */
.about-page .about-projects .project-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 40px !important;
  margin-top: 20px !important;
}

/* ② スマホ時は１カラムに */
@media screen and (max-width: 767px) {
  .about-page .about-projects .project-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ③ 各カードをグリッドアイテムに */
.about-page .about-projects .project-card {
  width: 100% !important;
  box-sizing: border-box !important;
}





/* プロジェクトカードを縦並びフレックスに */
.about-page .project-card {
  display: flex;
  flex-direction: column;
}

/* ロゴ枠を同じサイズに＆枠線を5pxに */
.about-page .project-logo-box {
  border: 5px solid #ddd !important;
  width: 100%;
  height: 160px;              /* 高さは調整可 */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: #fff;
}
.about-page .project-logo-box img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

/* ボタンを中央揃え */
.about-page .project-button {
  display: inline-block !important;  /* 幅は中身に合わせる */
  margin: 0 auto 24px;               /* カード内で中央揃え */
  width: auto !important;            /* 幅100%を解除 */
  padding: 10px 20px !important;     /* 必要に応じて調整 */
  text-align: center;
}

/* グリッド：PC/タブレット2カラム、スマホ1カラム */
.about-page .project-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 40px !important;
}
@media screen and (max-width: 767px) {
  .about-page .project-grid {
    grid-template-columns: 1fr !important;
  }
}

/* お問い合わせは白バック */
.about-page .about-contact {
  background-color: #fff !important;
}
