:root {
  --color-main: #e60012;
  --color-dark: #000033;
  --color-white: #ffffff;
  --color-bg: #f4f4f4;
  --color-button: #198754
}

/* リセット & ベース設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: var(--color-bg);
}
a {
  text-decoration: none;
  color: inherit;
}
ul, ol {
  list-style: none;
}

h2, h4 {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

h3 {
  margin-top: 1.8em;
  margin-bottom: 0.5em;
  padding: 0.4em 0.5em;       /* テキスト上下:0.4em、左右:0.5em */
  color: #494949;            /* 見出し文字色 */
  background: #f9efed;       /* 見出し背景色 */
  border-left: solid 5px #e60012;   /* 左側ボーダー */
  border-bottom: solid 3px #d7d7d7; /* 下側ボーダー */
}

p, li, dd {
  margin-bottom: 1em;
}

/* ヘッダー */
.site-header {
  background: var(--color-white);
  color: var(--color-main);
  padding: 16px 0;
  position: sticky;           /* 固定表示 */
  top: 0;
  width: 100%;
  z-index: 100;
  transition: transform 0.3s ease-in-out;
  transform: translateY(0);
  will-change: transform;
}
/* スクロールダウン時にヘッダーを隠す */
.site-header.hidden {
  transform: translateY(-100%);
}

.header-wrap {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;                   /* タイトルとメニュー間の余白 */
}
.site-title {
  font-size: 1.5rem;
  margin: 0;
}

/* ハンバーガーボタン（モバイル用） */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  gap: 4px;
}
.hamburger .bar {
  width: 28px;
  height: 3px;
  background: #e60012;
  transition: transform 0.3s, opacity 0.3s;
}
/* 開閉時にハンバーガーを×アイコンに変形 */
.hamburger.is-active .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.is-active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* グローバルナビゲーション */
.site-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;           /* 幅狭時の折り返し対応 */
  gap: 16px;                 /* メニュー間の間隔 */
}
.site-nav ul li a {
  color: var(--color-dark);
  font-weight: 500;
}
.site-nav ul li a:hover {
  color: #ef9c99;
  text-decoration: underline;
  opacity: 0.8;
}

/* ヒーローセクション（パララックス効果付き） */
.hero {
  position: relative;
  height: 60vh;              /* ヒーローセクションの高さ */
  background-image: url('img/hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* パララックス効果 */
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--color-white);
  padding: 20px;
}
.hero .overlay h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5em;
}
.hero .overlay p {
  font-size: 1.2rem;
  margin-bottom: 1em;
}
/*.btn-primary {
  background: var(--color-main);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.3s;
}
.btn-primary:hover {
  background: #cc0010;
}*/

/* グラデーションボタン */
.btn-primary {
  /* 基本設定 */
  display: inline-block; /* 他の要素と並べつつ、大きさや余白を指定できるようにする */
  text-align: center;      /* 文字を中央揃えに */
  text-decoration: none;   /* リンクの下線を消す */
  color: #FFFFFF;          /* 文字色を白に */
  font-weight: bold;       /* 文字を太字に */
  font-size: 20px;         /* 文字の大きさ */
  padding: 10px 40px;      /* 内側の余白（上下18px、左右40px） */
  border: none;            /* 枠線をなくす */
  border-radius: 8px;      /* 角を少し丸くする */
  cursor: pointer;         /* マウスカーソルを手の形に */

  /* グラデーションの設定 */
  background: #198754; /* グラデーション非対応ブラウザ用の単色背景 */
  background: linear-gradient(to top, #136C45, #198754); /* 下から上へ、少し濃い緑からベース色へのグラデーション */

  /* 立体感を出すための影 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);

  /* アニメーションの設定 */
  transition: all 0.3s ease;
}

/* マウスが乗った時の設定 */
.btn-primary:hover {
  background: linear-gradient(to top, #198754, #1E9A60); /* ホバー時に少し明るいグラデーションに */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* 影を少し濃く、大きくする */
  transform: translateY(-3px); /* 少し上に浮き上がるような動き */
}

/* クリックした時の設定 */
.btn-primary:active {
  transform: translateY(0); /* 押した時に元の位置に戻る */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 影を浅くして、押し込んだように見せる */
}


/* メインコンテナ */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

/* セクションタイトル */
.section h3 {
  font-size: 1.8rem;
  color: var(--color-dark);
  margin-bottom: 1em;
  text-align: left;
}

/* メリットグリッド */
/* .grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
} */
.grid-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 auto;
}
.grid-3 .card {
  flex: 0 0 100%;
}
@media screen and (min-width: 768px) {
  .grid-3 .card {
    flex: 0 0 calc((100% - 40px) / 3);
  }
}

.card {
  background: var(--color-white);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.card img {
  width: 28%;
  margin-bottom: 0.75em;
}
.card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5em;
}
.card p {
  font-size: 0.95rem;
}

/* 補助金リスト */
.subsidy p {
  margin-bottom: 0.75em;
}
.subsidy ul {
  list-style: disc inside;
  margin-left: 1em;
}
.subsidy li {
  margin-bottom: 0.5em;
}

/* 導入の流れ */
.process ol {
  counter-reset: step;
  margin-left: 1em;
}
.process li {
  position: relative;
  margin-bottom: 1em;
  padding-left: 40px;
}
.process li:before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  line-height: 30px;
  background: var(--color-dark);
  color: var(--color-white);
  border-radius: 50%;
  text-align: center;
  font-weight: bold;
}

/* 施工事例グリッド */
/* .grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
} */

.grid-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 auto;
}
.grid-2 .case {
  flex: 0 0 100%;
}
@media screen and (min-width: 768px) {
  .grid-2 .case {
    flex: 0 0 calc((100% - 40px) / 3);
  }
}

.case {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.case img {
  width: 100%;
  display: block;
}
.case h4 {
  padding: 15px;
  font-size: 1.1rem;
  border-bottom: 1px solid #eee;
  margin: 0;
}
.case p {
  padding: 15px;
  font-size: 0.95rem;
  margin: 0;
}

/* 料金 */
.pricing-table {
  width: 100%;
  border-collapse: separate; 
  border-spacing: 0;         
  border-radius: 8px;        
  overflow: hidden;          
  text-align: center;
}

.pricing-table th, .pricing-table td {
  border: 1px solid #ddd;
  padding: 16px;
}

.pricing-table .price {
  display: block;
  font-size: 1.6rem;
  font-weight: bold;
  margin-top: 8px;
  color: var(--color-main);}

/* 価格表の見出し（thead）*/
.pricing-table thead th.small {
  background: var(--color-main);   /* メインレッド #e60012 */
  color: var(--color-white);
}
.pricing-table thead th.medium {
  background: var(--color-dark);   /* ダークネイビー #003366 */
  color: var(--color-white);
}
.pricing-table thead th.large {
  background: #ff9900;             /* アクセントオレンジ */
  color: var(--color-white);
}

/* 価格表の本文（tbody）は白背景 */
.pricing-table tbody td {
  background: #ffffff;
}

/* FAQ */
.faq dl {
  background: var(--color-white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.faq dt {
  font-weight: bold;
  margin-top: 1em;
}
.faq dd {
  margin-left: 1em;
  margin-bottom: 1em;
}

/* 代表挨拶 */

.greeting h4{
  text-align: center;
}

.greeting_img {
  text-align:center;}

.greeting img {
  width: 20%;
  min-width :160px;
  border-radius: 8px;
}

.greeting p {
  background: var(--color-white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

ul.career {
  padding: 20px;
  list-style-type: square;
}

ul.career li{
  margin-bottom: 0.1em;
}

/* お問い合わせフォーム */
.contact form {
  background: var(--color-white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.contact input,
.contact textarea {
  width: 100%;
  margin-bottom: 1em;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
.contact button {
  width: 100%;
  background: var(--color-button);
  color: var(--color-white);
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}
.contact button:hover {
  background: #1E9A60;
}

/* TOPに戻るボタンエリア */
.back-to-top {
  width: 100%;
  background: #000;      /* 黒背景 */
  text-align: center;
}

/* ボタン本体 */
.btn-back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;              /* アイコンとテキストの間隔 */
  color: #fff;           /* 白文字 */
  text-decoration: none;
  font-weight: bold;
  padding: 8px 0;       /* 上下 8px のタップ領域 */
  width: 100%;
  margin: 0 auto;        /* 中央寄せ */
  transition: background 0.3s, opacity 0.3s;
}

/* ホバー時 */
.btn-back-top:hover {
  background: rgba(255,255,255,0.5);
  opacity: 0.8;
}

/* アイコンを白に */
.btn-back-top svg {
  fill: #fff;
  width: 20px;
  height: 20px;
}

/* フッター */
.site-footer {
  background: var(--color-main);
  color: var(--color-white);
  padding: 16px 0;
  text-align: center;
}
.p-footer{
  margin-bottom: 0px;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .site-nav ul {
    gap: 10px;
  }
  .hero .overlay h2 {
    font-size: 2rem;
  }
  .section h3 {
    font-size: 1.6rem;
  }
}

/* レスポンシブ（ハンバーガーメニュー用） */
@media (max-width: 768px) {
  /* モバイル時にハンバーガーボタンを表示 */
  .hamburger {
    display: flex;
  }
  /* モバイル時はナビを非表示 */
  .site-nav {
    display: none;
    width: 100%;
  }
  /* ハンバーガーメニュー開閉後 */
  .site-nav.open {
    display: block;
    background: var(--color-main);
  }
  .site-nav.open ul {
    flex-direction: column;
    gap: 12px;
    padding: 12px 0;
  }
  .site-nav.open ul li a {
    display: block;
    padding: 8px 0;
  }
  .site-nav ul {
    justify-content: flex-start;
  }
  .site-nav ul li a {
    color: var(--color-white);
  }
  .hero .overlay h2 {
    font-size: 2rem;
  }
  .section h3 {
    font-size: 1.6rem;
  }
}

/* プライバシーポリシーセクション */
.privacy-policy {
  margin: 0 0 40px 0;
}
.privacy-policy h3 {
  font-size: 1.8rem;
  color: var(--color-dark);
  margin-bottom: 16px;
}
/* プライバシーポリシー スクロール可能領域 */
.privacy-policy .policy-content {
  max-height: 150px;       /* 高さはお好みで調整 */
  overflow-y: auto;        /* 縦スクロールを許可 */
  padding: 20px;
  border: 1px solid #ddd;
  background: #fff;
  line-height: 1.6;
  font-size: 0.95rem;
  border-radius: 4px;
}
/* スクロールバースタイル（WebKit系ブラウザ用） */
.privacy-policy .policy-content::-webkit-scrollbar {
  width: 8px;
}
.privacy-policy .policy-content::-webkit-scrollbar-track {
  background: #f4f4f4;
  border-radius: 4px;
}
.privacy-policy .policy-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.privacy-policy .policy-content::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}
