/* ベース */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Meiryo", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f7f7f7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.darken-image {
  filter: brightness(50%);
}

/* レイアウト */
.container {
  width: 90%;
  max-width: 1080px;
  margin: 0 auto;
}

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #ddd;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.logo span {
  font-weight: 700;
  font-size: 1.1rem;
}

.logo img {
  max-width: 70px;
  height: auto;
  display: block;
}

.global-nav a {
  margin-left: 1rem;
  font-size: 0.95rem;
}

.global-nav a:hover {
  text-decoration: underline;
}

/* ヒーロー */
.hero {
  position: relative;
  background-image: url("../index/7468643a5c3cb771163b9e31910fb54e.jpg"); /* ここは実際の画像ファイル名に変更 */
  background-size: cover;
  background-position: center;
  opacity: 0.85; /* オーバーレイの不透明度 */
  /*pointer-events: none; /* 要素の上を通過できるようにする */
  /*z-index: 1; /* 画像の上に表示する */
  color: #fff;
  padding: 120px 0 100px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  text-align: center;
  font-weight: bold;
  font-size: 4.0rem;
  margin-bottom: 1.0rem;

}

.hero-inner {
  position: relative;
  text-align: left;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.hero-buttons .btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  margin-right: 0.7rem;
  font-size: 0.95rem;
}

.btn.primary {
  background-color: #1f7ae0;
  color: #fff;
}

.btn.primary:hover {
  opacity: 0.9;
}

.btn.ghost {
  border: 1px solid #fff;
  color: #fff;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

/*したレベルのヘッダー*/
.lowheader {
  background-color: #107096;
  color: #fff;
  padding: 15px 0;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
}

.lowheader h1 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.lowheader p {
  font-size: 2.0rem;
  margin-bottom: 1.5rem;
}


/* セクション共通 */
.section {
  padding: 105px 0;
  background: #fff;
}

.section ul{
    display: flex;
    justify-content: center;
  }

  .section li {
    list-style: none; 
}

.section-alt {
  background: #f0f3f7c0;
}

.section-alt ul{
    display: flex;
    justify-content: center;
  }

  .section-alt li {
    list-style: none; 
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #1f7ae0;
  padding-left: 0.6rem;
}

/* カード */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 1.2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.card h3 {
  margin-top: 0;
}

/* 特長リスト */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  margin-bottom: 0.6rem;
  padding-left: 1.4rem;
  position: relative;
}

.feature-list li::before {
  content: "■";
  position: absolute;
  left: 0;
  top: 0.2rem;
  font-size: 0.7rem;
  color: #1f7ae0;
}

/* 会社概要テーブル */
.company-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.company-table th,
.company-table td {
  border: 1px solid #ddd;
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
}

.company-table th {
  width: 30%;
  background: #f5f5f5;
}

/* 表示行数調整 */
.text-box {
    max-height: 300px;     /* 初期状態で表示する高さ */
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .text-box.open {
    max-height: 1300px;    /* 十分大きくして全体表示 */
  }

  #moreBtn {
    margin-top: 10px;
    cursor: pointer;
  }

/* お問い合わせ */
.contact-mail a {
  font-weight: 600;
  color: #1f7ae0;
}

/* フッター */
.site-footer {
  background: #222;
  color: #ccc;
  padding: 20px 0;
  font-size: 0.85rem;
  text-align: center;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 0.5rem 0;
  }

  .global-nav {
    margin-top: 0.3rem;
  }

  .hero {
    padding: 100px 0 70px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }
}
