﻿

/* ===============================
   色の統一ガイドライン
=============================== */

/* 本文用テキスト色 */
body {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

/* メインカラー（見出し・リンクなど） */
h2.title,
a,
a:visited {
  color: #005bab;
}

/* アクセントカラー：ホバー時やマークに */
a:hover,
h2.title::after {
  color: #a3cc00;
  background-color: #a3cc00;
}

/* 補足テキスト（パンくずなど） */
#list_cnt {
  color: #777;
}




/* Reset and base styles */
/*-------------------------------------------------------
----ヘッダー---------------------------------------------
-------------------------------------------------------*/
/* 強制的に白背景に変更する */
/* ナビのブロック高さ確保 */
#gn_cnt {
  overflow: visible;
  height: auto;
  padding-bottom: 1rem;
}

/* float解除の保険 */
#gn_cnt::after {
  content: "";
  display: block;
  clear: both;
}

#top-image-back {
  margin: 0;
  padding: 0;
  background-color: #fff;
}

#list_cnt {
  max-width: 960px;
  margin: 0;                /* ← 中央寄せを解除 */
  margin-left: 0 !important;
  margin-right: auto !important;
  padding: 12px 16px;
  font-size: 0.9rem;
  box-sizing: border-box;
  text-align: left !important; /* 念のため左寄せ指定を強調 */
}

/* パンくずリストの幅制限 */
#topicPath {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.6;
  list-style: none;
  padding: 0;
  margin: 0;
}


#topicPath li {
  display: inline;
  font-size: 0.8rem;
}
#topicPath li a {
  color: #555;
  text-decoration: none;
}
#topicPath li::after {
  content: "›";
  margin: 0 0.5rem;
  color: #ccc;
}
#topicPath li:last-child::after {
  content: "";
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px; /* 任意の余白 */
  box-sizing: border-box;
}

.container, .main-content {
  max-width: 100%;
  padding: 0 16px;
  margin: 0 auto;
}

/* imgが親要素を超えてはみ出さないように */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* パンくずリスト表示調整 */
.breadcrumb, .breadcrumb-wrap, .breadcrumb-list {
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 8px 16px;
  background-color: #f4f6f9;
  color: #333;
  display: block;
}

/* リスト構造で表示されている場合 */
.breadcrumb li,
.breadcrumb-list li {
  display: inline;
  margin-right: 8px;
}

.breadcrumb li::after,
.breadcrumb-list li::after {
  content: "›"; /* 区切り記号 */
  margin-left: 8px;
  color: #999;
}

.breadcrumb li:last-child::after,
.breadcrumb-list li:last-child::after {
  content: "";
}


#list_cnt {
  max-width: 960px;
  margin: 0 auto; /* ←これが中央寄せの原因（2回目に登場） */
  padding: 12px 16px;
  font-size: 0.9rem;
  box-sizing: border-box;
}


#header {
  margin: 0 auto;
  font-weight: bold;
  text-align: left;
  overflow: visible !important;
  height: auto !important;

  /* 固定ヘッダー用スタイル */
  position: static !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background-color: #fff; /* 背景が透けないように白で上書き */
}

/* タイトル・電話部分 */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

/* ナビ部分 */
.header-nav {
  text-align: center;
  margin-top: 10px;
}

.header-inner {
  width: 100%; /* ←こちらに統一しておくと、containerとずれにくくなります */
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

#header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap; /* ← ここで折り返し許可 */
  gap: 10px;        /* ← 要素間にスペース */
}

/*タイトル*/
#title {
  width: 333px;
  height: 58px;
}

#title a {
  display: block;
  width: 100%;
  height: 100%;
  background: url(../img/title.gif) no-repeat center center;
  background-size: contain;
  text-indent: -9999px;   /* ← テキストを画面外に */
  white-space: nowrap;    /* ← テキスト折返し防止 */
  overflow: hidden;
}

/*お問い合わせ*/
#tel-address {
  float: none;
  text-align: right;
}

#title, #tel-address {
  flex: 0 0 auto; /* ← 要素の幅を内容に合わせる */
  width: auto;    /* ← 幅を100%ではなく内容ベースに */
  max-width: none; /* ← モバイルで縮小しないように */
}

#contents {
  width: 100%;
  float: none;
  display: block;
}

.contents_main {
  max-width: 900px;
  margin: 0 auto 30px;
  padding: 0 20px;
}

/*-------------------------------------------------------
----ヒーローセクション-----------------------------------
-------------------------------------------------------*/
.hero {
  aspect-ratio: 16 / 9; 
  width: 100%;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url("../img/top.jpg") no-repeat center center;
  background-size: cover;
  display: flex;
  margin-top: 40px;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-text h1 {
  font-size: 4rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeIn 3s ease forwards;
}

.hero-text p {
  font-size: 1.3rem;
  color: #fff;
  margin-top: 1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1s ease forwards;
  animation-delay: 1s;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*-------------------------------------------------------
----特徴セクション：画像サイズを 600x800 に固定--------
-------------------------------------------------------*/
.features-alt {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  background: #f5f7fa;
  overflow: hidden; /* ←画像・文字のはみ出し防止 */
}

.feature-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;  /* wrap を無効にすることで横並びに固定 */
  max-width: 1000px; /* 中央寄せ制限 */
  margin: 0 auto 40px;
  gap: 30px;
}

.features-alt,
.feature-alt {
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

.features-alt h2 {
  text-align: center;
  font-size: 2rem;
  color: #005bab;
  margin-bottom: 40px;
}

.feature-alt.reverse {
  flex-direction: row-reverse;
}

.feature-img {
  width: 400px;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-img img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.feature-text {
  flex: 1;
  min-width: 300px;
  max-width: 480px;
  padding: 10px;
}

.feature-text, .feature-img {
  box-sizing: border-box;
  max-width: 100%;
  word-break: break-word;
}

.feature-text h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
}

.feature-text p {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
}
.section {
  border-bottom: 1px solid #ccc;
  padding-bottom: 40px;
  margin-bottom: 40px;
}

/*-------------------------------------------------------
----施工実績ハイライト セクション--------------------------
-------------------------------------------------------*/
.works-highlight {
  padding: 60px 20px;
  background-color: transparent;
  margin: 40px auto;
  max-width: 1100px;
}

.works-highlight h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #004080;
}

.works-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.work-card {
  width: 400px;
  height: 300px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  text-align: center;
  padding-bottom: 10px;
}

.work-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.work-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 12px 12px 0 0;
}

.work-card h3 {
  margin: 10px 0 5px;
  font-size: 1.1rem;
  color: #005bab;
}

.work-card p {
  font-size: 0.95rem;
  color: #444;
  margin: 0 10px;
  line-height: 1.6;
}

.cert {
  padding: 60px 20px;
  background-color: #f0f8ff;
  text-align: center;
}

.cert h2 {
  font-size: 2rem;
  color: #005bab;
  margin-bottom: 20px;
}

.cert-intro {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.8;
  color: #333;
}

.cert-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 1000px;     /* コンテナの横幅を制限 */
  margin: 0 auto;        /* 中央に寄せる */
}

.cert-logos img {
  width: calc(100% / 5 - 16px);  /* ← 5個並べるための幅指定（間隔に応じて調整） */
  max-width: 130px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.cert-logos img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.general-plan {
  margin-top: 30px;
  background-color: #fff; /* 背景を白にして視認性向上 */
  padding: 20px;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.general-plan:hover {
  transform: scale(1.05);
  color: inherit !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.general-plan a:hover {
  color: inherit !important;
  text-decoration: none; /* 下線も外したい場合 */
}

.btn {
  display: inline-block;
  padding: 10px 20px;

  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #005a99;  /* ← ホバー時の濃い色 */
}

.work-boxes a.work {
  text-decoration: none;
  color: inherit;
  width: 300px;
  background: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  display: block;
}

.work-boxes a.work:hover {
  transform: scale(1.03);
}

.information {
  background: #fff;
  padding: 60px 20px;
  text-align: center;
}

.information h2 {
  font-size: 1.8rem;
  color: #005bab;
  margin-bottom: 20px;
}

.important {
  background: #fff0e5;
  border: 2px solid #e55e00;
  padding: 15px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #b33e00;
  margin: 0 auto 25px;
  max-width: 700px;
  border-radius: 8px;
  line-height: 1.7;
}

.info-list {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.info-list li {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  font-size: 1rem;
  color: #333;
}

.info-list .date {
  font-weight: bold;
  margin-right: 10px;
  color: #666;
}

.info-banner {
  background: linear-gradient(to right, #eaf8ff, #d6f0ff);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 0 auto 1.5rem; /* 中央配置 */
  max-width: 800px;        /* 横幅制限 */
  justify-content: center; /* 内容も中央寄せ */
  text-align: center;
}

.info-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.footer-info {
  background-color: #f9f9f9;
  padding: 30px 20px;
  font-size: 0.95rem;
  color: #333;
  border-top: 2px solid #ccc;
  line-height: 1.8;
  text-align: center;
}

.footer-info h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #005bab;
}

.footer-info a {
  color: #005bab;
  text-decoration: underline;
}

.top {
  position: fixed;
  bottom: 60px;
  right: 20px;
  font-size: 0.95rem;
  color: #005bab;
  font-weight: bold;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
  z-index: 1000;
}


.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
  gap: 20px;
}

.footer-block {
  flex: 1 1 280px;
  min-width: 250px;
}

.footer-block h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #005bab;
  border-bottom: 1px solid #005bab;
  padding-bottom: 5px;
}

.footer-block p {
  margin: 8px 0;
}

.footer-block a {
  color: #005bab;
  text-decoration: underline;
}




  .footer-inner {
    flex-direction: column;
    text-align: left;
    gap: 20px;
  }

.feature-alt {
  flex-direction: row;
}

.feature-img,
.feature-text {
  width: 50%;
  max-width: 100%;
}

  .info-banner {
    flex-direction: column;
    gap: 10px;
  }

  .company {
    overflow-x: auto;
  }

  .company table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
  }

  iframe {
    width: 100% !important;
    height: auto !important;
  }
}


.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0;
}

.timeline-item {
  padding: 20px;
  background: #ffffff;
  border-left: 5px solid #007acc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.timeline-item .year {
  font-weight: bold;
  font-size: 1.1rem;
  color: #007acc;
  display: block;
  margin-bottom: 5px;
}

/* =========================================
   施工実績ページ専用スタイル
========================================= */
.sekou-page h2.title {
  font-size: 2rem;
  color: #005bab;
  text-align: center;
  border-bottom: 2px solid #005bab;
  padding-bottom: 0.5rem;
  margin: 2rem 0 1rem;
  position: relative;
}

.sekou-page h2.title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: transparent; /* 緑線を非表示に */
  margin: 10px auto 0;
  border-radius: 2px;
}

.sekou-page .client-block h3 {
  font-size: 1.5rem;
  color: #333;
  border-left: 5px solid #005bab;
  padding-left: 12px;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.sekou-page p {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.5rem;
}

.sekou-page ul.work-list {
  padding-left: 1.5rem;
  list-style: disc;
  line-height: 1.8;
  font-size: 1rem;
  color: #444;
  margin-bottom: 2rem;
}


#container {
  max-width: 960px; /* 必要に応じて調整可能（例: 960px, 1200px） */
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.gn li a {
  text-indent: 0 !important;
  color: #fff;             /* 白背景なら #333 や #005bab もOK */
  font-weight: bold;
  padding: 10px 15px;
  display: inline-block;
  background-color: #005bab; /* 青系の背景色にして見やすく */
  border-radius: 5px;
  margin: 0 5px;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

/* ホバー効果 */
.gn li a:hover {
  background-color: #003f7d;
  color: #fff;
}
.gn li a span {
  text-indent: 0;
  display: inline;
}

/* レスポンシブロゴ */
#title {
  width: 333px;
  height: 58px;
}


/* レスポンシブ電話画像 */
#tel-address {
  background: url(../img/tel.gif) no-repeat center center;
  background-size: contain;
  width: 297px;
  height: 65px;
  text-indent: -9999px;
  overflow: hidden;
}

/* ===== ナビゲーション 修正セット ===== */

/* ナビゲーションボタン */
ul.gn {
  display: inline-flex;
  flex-wrap: nowrap;  /* ← モバイル対応 */
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  margin: 0 auto;
  list-style: none;
  background-color: #fff;
}
/* メニュー各項目 */
ul.gn li {
  display: inline-block !important;
  flex-shrink: 0;  /* ← 項目を縮小させない */
  margin: 6px;
}

/* 各リンク */
ul.gn li a {
  text-indent: 0 !important;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  padding: 10px 20px;
  background-color: #005bab;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* ホバー時 */
ul.gn li a:hover {
  background-color: #0000FF;
  color: #fff;

}
ul.gn li a {
  position: relative;
  overflow: hidden;
}

ul.gn li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

ul.gn li a:hover::after {
  width: 80%;
}


/* すべてのページ要素を最大幅に統一 */
#header .container,
#gn_cnt .container,
#top-image-back .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* ロゴ＋電話部分の並び */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;  /* ← モバイルでも自然に折返し可 */
  gap: 10px;
}

/* ナビ部分を下段に独立 */
.header-nav {
  margin-top: 10px;
  text-align: center;
}

/* ナビゲーションボタン */
ul.gn {
  display: inline-flex;
  flex-wrap: nowrap;  /* ← モバイル対応 */
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  margin: 0 auto;
  list-style: none;
  background-color: #fff;
}

/* ヘッダー上段：ロゴとTEL */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;  /* ← ナビと被らないよう確実にスペース確保 */
}

/* ナビゲーション全体 */
.header-nav {
  clear: both;
  margin-top: 0;         /* 安全のため一度ゼロに */
  padding-top: 0;
  text-align: center;
}

/* グローバルナビ（横並び） */
ul.gn {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  padding: 10px 0;
  list-style: none;
  background-color: transparent;
  position: relative;    /* ← 安全のための基準 */
  z-index: 1;            /* ← 必要なら調整 */
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 20px; /* ← 重要！ナビとの重なり防止スペース */
  z-index: 2;
  position: relative;
}

.header-nav {
  clear: both;
  padding-top: 10px;
  margin-top: 0;
  z-index: 1;
  position: relative;
}

/* 全画面幅でのレイアウト安定用 */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 24px; /* ← これでTELとナビが被らなくなる */
  position: relative;
  z-index: 2;
}

.header-nav {
  display: block;
  width: 100%;
  clear: both;
  padding-top: 8px;
  position: relative;
  z-index: 1;
}

ul.gn {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 0;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
  position: relative;
}

/* タイトルとTEL：横並び */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  padding-bottom: 16px;
}

/* ナビゲーション：下段に横並び */
.header-nav {
  display: block;
  width: 100%;
  clear: both;
  margin-top: 0;
  padding-top: 0;
  text-align: center;
}

/* ナビのボタンリスト */
ul.gn {
  display: inline-flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 0;
  margin: 0 auto;
  flex-wrap: wrap;
  list-style: none;
}

