﻿

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

/* 本文用テキスト色 */
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 {
  margin-bottom: 2px; /* 下に空間を作る */
}

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

#list_cnt {
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
}

#topicPath {
  padding: 2px 10px;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.1;
  background-color: #f4f6f8;
  border-left: 4px solid #005bab;
  border-radius: 0 6px 6px 0;
  box-shadow: inset 0 -1px 0 #ddd;
  text-align: left;
}



.breadcrumb,
#header,
body {
  background-color: #fff !important;
}



#header {
  margin: 0 auto;
  height: 142px;
  font-weight: bold;
  text-align: left;
  background: url(../img/head-back.gif) repeat-x;

  /* 固定ヘッダー用スタイル */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background-color: #fff; /* 背景が透けないように白で上書き */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body {
  padding-top: 180px; /* 固定されたヘッダーの高さ分のスペース確保 */
}


.header-inner {
	position:relative;top:28px;
	margin:0 auto;
	width:962px;
}


/*タイトル*/
#title a {
	float:left;
	display:block;
	width:333px;
	height:58px;
	background:url(../img/title.gif) no-repeat;
	text-indent:-9999px;
	text-decoration:none;
	overflow:hidden;
}

/*お問い合わせ*/
#tel-address {
	float:right;
	display:block;
	position:relative;top:-8px;
	width:297px;
	height:65px;
	text-indent:-9999px;
	text-decoration:none;
	background:url(../img/tel.gif) no-repeat;
}

#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;
  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;
}

.feature-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1000px; /* 中央寄せ制限 */
  margin: 0 auto 40px;
  gap: 30px;
}

.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;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

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

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

.feature-text p {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
}


/*-------------------------------------------------------
----施工実績ハイライト セクション--------------------------
-------------------------------------------------------*/
.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;
}

@media screen and (max-width: 768px) {
  .header-inner {
    width: 100%;
    padding: 0 10px;
  }

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

  .feature-alt,
  .feature-alt.reverse {
    flex-direction: column;
  }

  .feature-img,
  .feature-text {
    width: 100%;
    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;
}
