/***********************************************
  RESET & BASE
***********************************************/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  background-color: #f5f8fa; /* やや青みのある明るい背景 */
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/***********************************************
  FADE-IN ANIMATION (クラス)
***********************************************/
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/***********************************************
  HEADER
***********************************************/
.site-header {
  background-color: #003366; /* ビジネス感ある濃紺 */
  color: #fff;
  padding: 10px 0;
  position: sticky; /* スクロールしても上に固定したい場合 */
  top: 0;
  z-index: 999;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo img {
  max-height: 60px;
}
.site-nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}
.site-nav a:hover {
  opacity: 0.8;
}

/***********************************************
  MAIN VISUAL
***********************************************/
.main-visual {
  background-size: cover;
  background-position: center;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  text-align: center;
}
.main-visual .catch-copy {
  font-size: 2.4rem;
  font-weight: bold;
  text-shadow: 0 0 6px rgba(0,0,0,0.4);
  padding: 0 20px; /* 文字が左右ぎりぎりにならないための余白 */
}

/***********************************************
  SERVICES
***********************************************/
.services-summary {
  text-align: center;
  padding: 60px 0;
}
.services-summary h2 {
  font-size: 1.8rem;
  margin-bottom: 40px;
  color: #003366;
}
.service-items {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.service-box {
  width: 350px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 6px;
  padding: 20px;
  min-height: 170px; /* 文章量の差による高さバラつきを揃えたい時 */
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.service-box img {
  max-width: 80px;
  margin-bottom: 10px;
}
.service-box h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #003366;
}
.service-box p {
  font-size: 0.95rem;
  color: #555;
}
.more-link {
  margin-top: 20px;
}

/***********************************************
  ★サービスページ縦長対策 (追加部分)
***********************************************/

/* 2) 画面幅が広いとき、サービスボックスを複数列で並べる例 */
  .services-grid {
    margin: 0 auto;
    display: grid;
    /* 3列レイアウトにしたい場合 */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    justify-items: center; /* カードを中央寄せ */
  }

/***********************************************
  ABOUT SUMMARY
***********************************************/
.about-summary {
  text-align: center;
  padding: 60px 0;
}
.about-summary h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #003366;
}
.about-summary p {
  max-width: 800px;
  margin: 0 auto 20px auto;
  font-size: 1rem;
  color: #555;
}

/***********************************************
  PAGE HEADER (共通)
***********************************************/
.page-header {
  padding: 40px 0;
}
.page-header h1 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 20px;
}

/***********************************************
  TABLE
***********************************************/
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
table th, table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}
table th {
  width: 30%;
  background-color: #f5f5f5;
}

/***********************************************
  CONTACT FORM
***********************************************/
.contact-form {
  padding: 40px 0;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: inline-block;
  margin-bottom: 5px;
  font-weight: bold;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.required {
  color: red;
  margin-left: 5px;
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #006699; /* ボタンのアクセントカラー */
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s, transform 0.3s;
}
.btn:hover {
  background-color: #005580;
  transform: translateY(-2px);
}

/***********************************************
  FOOTER
***********************************************/
.site-footer {
  background: #333;
  color: #fff;
  padding: 30px 0;
  text-align: center;
}
.site-footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}
.site-footer a:hover {
  color: #fff;
}

/***********************************************
  RESPONSIVE
***********************************************/
@media (max-width: 768px) {
  .main-visual {
    height: 50vh;
  }
  .main-visual .catch-copy {
    font-size: 1.6rem;
  }
  .service-items {
    flex-direction: column;
    align-items: center;
  }
  .service-box {
    width: 90%;
    max-width: 350px;
  }
}

