* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
}

/* ヘッダー */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

/* ナビゲーション全体のコンテナ */
.global-nav {
  margin-left: auto;
  /* 右寄せにする場合 */
}

/* リスト（ul）のスタイル */
.nav-list {
  display: flex;
  /* 横並びにする */
  list-style: none;
  /* ・を消す */
  margin: 0;
  padding: 0;
  gap: 20px;
  /* メニュー同士の間隔 */
}

/* リンク（a）のスタイル */
.nav-list li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  display: block;
  /* クリック範囲を広げる */
}

.nav-list li a:hover {
  color: #0073aa;
  /* ホバー時の色 */
}

/* 現在表示しているページのメニューを目立たせる（WordPressが自動で current-menu-item クラスを付けてくれます） */
.nav-list .current-menu-item a {
  color: #0073aa;
  border-bottom: 2px solid #0073aa;
}

/* ベースレイアウト */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヒーローセクション */
.hero-section {
  background-color: #f0f4f8;
  /* 薄い青グレー */
  padding: 80px 0;
  text-align: center;
  margin-bottom: 60px;
}

.hero-desc {
  margin-bottom: 30px;
  font-size: 1.2rem;
}

.hero-cta .btn {
  margin: 0 10px;
}

/* ボタン共通 */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s;
}

.btn:hover {
  opacity: 0.8;
}

.btn-primary {
  background: #0073aa;
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: #0073aa;
  border: 1px solid #0073aa;
}

.btn-outline {
  border: 1px solid #333;
  color: #333;
  padding: 10px 40px;
}

/* 案件グリッド（カード型レイアウト） */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  /* レスポンシブ対応 */
  gap: 30px;
  margin-bottom: 40px;
}

/* 案件カード */
.project-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* カード画像エリア */
.card-image {
  height: 180px;
  background-color: #eee;
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ステータスバッジ */
.status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  font-size: 12px;
  color: #fff;
  border-radius: 4px;
  z-index: 10;
}

.status-badge.new {
  background-color: #28a745;
}

.status-badge.contracted {
  background-color: #dc3545;
}

/* 赤色 */

.type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  font-size: 12px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  z-index: 10;
}

/* カード情報エリア */
.card-body {
  padding: 15px;
}

.card-title {
  font-size: 18px;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.card-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: #666;
}

.card-meta li {
  margin-bottom: 5px;
}

.card-meta .price {
  font-weight: bold;
  color: #0073aa;
  font-size: 16px;
  margin-top: 10px;
}

/* もっと見るボタン */
.view-more {
  text-align: center;
  margin-bottom: 60px;
}





/* リセット・共通 */
.project-item {
  display: flex;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.project-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 左側：画像 */
.project-image {
  width: 35%;
  position: relative;
  background: #eee;
  min-height: 250px;
  /* 画像がない場合の高さ確保 */
}

.project-image a {
  display: block;
  height: 100%;
  width: 100%;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.type-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 4px;
}

/* 右側：コンテンツ */
.project-content {
  width: 65%;
  padding: 20px 25px;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 20px;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

.project-title a {
  color: #333;
  text-decoration: none;
}

/* 基本情報リスト */
.info-section {
  margin-bottom: 15px;
}

.info-label {
  font-size: 14px;
  color: #888;
  margin: 0 0 8px 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 4px;
}

.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* 2列表示 */
  gap: 8px 20px;
  margin: 0;
}

.spec-row {
  display: flex;
  align-items: baseline;
  font-size: 14px;
}

.spec-row dt {
  color: #666;
  width: 5em;
  /* ラベル幅固定 */
  flex-shrink: 0;
}

.spec-row dd {
  margin: 0;
  font-weight: 500;
}

.spec-row dd.price {
  color: #d32f2f;
  font-weight: bold;
}

/* 事業者情報（下部グレーエリア） */
.provider-info {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  margin-top: auto;
  /* 下寄せ */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.provider-info .info-label {
  display: none;
  /* デザイン上ラベルが不要なら消す */
}

.provider-details {
  flex: 1;
}

.provider-name {
  margin: 0;
  font-weight: bold;
  font-size: 15px;
}

.provider-meta {
  margin: 4px 0 0 0;
  font-size: 12px;
  color: #666;
}

/* 詳細ボタン */
.btn-detail {
  background: #fff;
  border: 1px solid #0073aa;
  color: #0073aa;
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-detail:hover {
  background: #0073aa;
  color: #fff;
}

/* レスポンシブ対応（スマホ） */
@media (max-width: 768px) {
  .project-item {
    flex-direction: column;
  }

  .project-image,
  .project-content {
    width: 100%;
  }

  .project-image {
    height: 200px;
  }

  .spec-list {
    grid-template-columns: 1fr;
    /* 1列にする */
  }

  .provider-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .action-area {
    width: 100%;
    text-align: right;
  }
}



/* 問い合わせ */
.scroll-contents {
  margin: 1em auto;
  padding: 10px;
  height: 250px;
  width: 90%;
  border: 1px solid #CCC;
  overflow: auto;
  text-align: center;
  background: #ffffff;
}

[data-name="agreement"] {
  margin: 1em auto;
  text-align: center;
}