/* =========================
   Reset & Base
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  color: #222;
  line-height: 1.7;
  background-color: #fff;
}

a {
  color: #1f4fd8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* =========================
   Layout
========================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
   Header
========================= */
.header {
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

/*
.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
*/

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================
   ヘッダーロゴ
   ========================== */
.logo img {
  height: 40px;      /* 基準サイズ */
  width: auto;
  display: block;
}

/* Navigation */
.nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav a {
  font-size: 14px;
  color: #222;
}

.nav a:hover {
  color: #1f4fd8;
}

/* =========================
   Hero
========================= */
.hero {
  padding: 80px 0;
  background: #f7f9fc;
}

.hero h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 16px;
  color: #555;
  max-width: 600px;
}

/* ==========================
   index：コンセプト系レ parts
   ========================== */
.concept,
.strength,
.target {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 0;
}

.concept p {
  font-size: 16px;
  line-height: 1.8;
}

.strength ul,
.target ul {
  margin-top: 24px;
  padding-left: 20px;
}

.strength li,
.target li {
  margin-bottom: 12px;
  line-height: 1.7;
}

/* セクション見出し */
section h2 {
  font-size: 24px;
  margin-bottom: 24px;
  border-left: 4px solid #005bac;
  padding-left: 12px;
}

/* ==========================
   index：導線ボタン
   ========================== */
.btn-area {
  text-align: center;
  margin-top: 40px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background-color: #005bac;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

.btn:hover {
  opacity: 0.85;
}


/* ==========================
   会社概要テーブル
   ========================== */
.company-table th {
  width: 160px;          /* ← ここで間隔が広がる */
  vertical-align: top;   /* 上寄せ */
  text-align: left;      /* 左寄せ（念のため明示） */
  padding-top: 0px;     /* 上に少し余白（好みで調整） */
}

.company-table td {
  padding-left: 24px;   /* tdの左に余白を取る */
}

.company-table th,
.company-table td {     /* td、trそれぞれの項目の隙間を空ける */
  padding-top: 16px;
  padding-bottom: 16px;
}

/* ==========================
   お問い合わせテーブル（PC）
   ========================== */
.contact-table {
  width: 100%;
  border-collapse: collapse;
}

.contact-table th {
  width: 180px;
  vertical-align: top;
  text-align: left;
  padding: 16px 0;
}

.contact-table td {
  padding: 16px 0 16px 24px;
}

.contact-table input,
.contact-table textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
}

.contact-table textarea {
  min-height: 140px;
}

.contact-submit {
  margin-top: 32px;
  text-align: center;
}
/*  */
.contact-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #555;
  text-align: center;
}

/* フォームと電話の区切り */
.contact-divider {
  margin: 3rem 0;
  border-top: 1px solid #ddd;
}

/* 電話ブロックは既存定義があれば不要 */
.contact-tel {
  padding: 1.5rem;
  text-align: center;
  background: #f9f9f9;
}

.form-submit {
  text-align: right;
  margin-top: 1.5rem;
}

/* ==========================
   価格表 共通スタイル
   ========================== */
.price-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 0;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.price-table th,
.price-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
}

.price-table th {
  background-color: #f7f9fc;
  font-weight: 600;
}

.price-note {
  margin-top: 12px;
  font-size: 14px;
  color: #555;
}

/* =========================
   Footer
========================= */
.footer {
  background: #f2f2f2;
  padding: 30px 0;
  margin-top: 80px;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer p {
  font-size: 13px;
  color: #666;
}

.footer-nav a {
  font-size: 13px;
  color: #666;
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    height: auto;
    padding: 15px 20px;
    gap: 10px;
  }

  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .hero {
    padding: 50px 0;
  }

  .hero h2 {
    font-size: 26px;
  }
}

/* ==========================
   モバイル共通ベース
   ========================== */
/* ベース設定 */

@media screen and (max-width: 768px) {

  body {
    font-size: 16px;
    line-height: 1.7;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

}

/* ヘッダー・ナビ（全ページ共通） */

@media screen and (max-width: 768px) {

  .header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    margin-bottom: 12px;
  }

  .nav ul {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .nav li {
    margin: 0;
  }

  .nav a {
    display: block;
    padding: 12px 0;
    border-top: 1px solid #e5e5e5;
  }

}

/* 見出し・セクション余白（全ページ） */

@media screen and (max-width: 768px) {

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 20px;
    margin-bottom: 16px;
  }

  section {
    padding: 32px 0;
  }

}

/* indesページ用 */

@media screen and (max-width: 768px) {

  .concept,
  .strength,
  .target {
    padding: 32px 0;
  }

  section h2 {
    font-size: 20px;
  }

  .concept p {
    font-size: 15px;
  }

  .btn {
    width: 100%;
    padding: 14px 0;
  }
}

/* 事業内容・施工実績 */

@media screen and (max-width: 768px) {

  .service-list,
  .works-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

}

/* 会社概要テーブル */

@media screen and (max-width: 768px) {

  .company-table,
  .company-table tbody,
  .company-table tr,
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table tr {
    margin-bottom: 24px;
  }

  .company-table th {
    width: auto;
    padding: 0 0 8px 0;
    font-weight: 600;
  }

  .company-table td {
    padding: 0;
  }

}

/* お問合せテーブル */

@media screen and (max-width: 768px) {

  .contact-table,
  .contact-table tbody,
  .contact-table tr,
  .contact-table th,
  .contact-table td {
    display: block;
    width: 100%;
  }

  .contact-table tr {
    margin-bottom: 24px;
  }

  .contact-table th {
    width: auto;
    padding: 0 0 8px 0;
    font-weight: 600;
  }

  .contact-table td {
    padding: 0;
  }
}


/* フォーム（お問い合わせ） */

@media screen and (max-width: 768px) {

  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    width: 100%;
    font-size: 16px;
  }

  .contact-form textarea {
    min-height: 140px;
  }

}

/* 価格表 */

@media screen and (max-width: 768px) {

  .price-table th,
  .price-table td {
    padding: 12px;
  }

  .price-section h3 {
    margin-top: 32px;
  }
}


/* フッター*/

@media screen and (max-width: 768px) {

  .footer {
    text-align: center;
  }

  .footer p {
    font-size: 14px;
  }

}
