/* フォント読み込み（Google Fonts 推奨） */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 auto;
  padding: 0;
  /* max-width: 1200px; */
  color: #222;
  background-color: #fff;
}

/* PCやタブレットでは文字サイズを少し大きく */
@media screen and (min-width: 768px) {
  body {
    font-size: 18px;
  }
}



/* ファーストビュー全体 */
.first-view {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow-x: hidden;
  /* 右切れ防止 */
  background: linear-gradient(to bottom, #111 0%, #333 100%);
}

/* ===== 上部ロゴ＋メニューエリア ===== */
.first-view-header {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* 上下中央揃え */
  padding: 0 1rem;
}

/* ロゴエリア（aタグごと調整） */
.header-logos {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-logos a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

/* ロゴ画像 */
.logo-company,
.logo-text {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}


/* グローバルナビ（PCのみ表示） */
.global-nav {
  display: none;
}

@media screen and (min-width: 768px) {
  .global-nav {
    display: block;
  }

  .global-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .global-nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
  }

  .nav-label {
    font-size: 0.65rem;
    color: #ccc;
  }

  .nav-title {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0.2rem;
  }

  .global-nav li a:hover {
    color: #c0f5c0;
  }
}

/* メイン画像コンテナ */
.main-image-container {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 1;
  animation: fadeInZoom 2s ease-out forwards;
  opacity: 0;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* キャッチコピー（右下に表示） */
.catch-copy {
  position: absolute;
  bottom: 1.5rem;
  right: 1rem;
  z-index: 2;
  color: #fff;
  font-weight: 400;
  text-align: right;
  font-size: 1rem;
  line-height: 1.6;
  background: rgba(20, 20, 20, 0.21);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  max-width: 90%;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInText 2s ease-out 1.2s forwards;
}

/* PC用サイズ調整 */
@media screen and (min-width: 768px) {
  .catch-copy {
    font-size: 1.2rem;
    max-width: 50%;
  }
}

@media screen and (max-width: 767px) {
  .catch-copy {
    bottom: 80px;
    /* デフォルトの1.5rem ≒ 24px → → 80pxに変更してメニューの高さ分ずらす */
  }
}

/* アニメーション */
@keyframes fadeInZoom {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInText {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}




/* 各セクションヘッダー共通調整 */
.section-header {
  text-align: left;
  max-width: 700px;
  margin: 0 1rem 1.5rem;
  /* padding-bottom: 1.5rem; */
  padding: 3rem 1rem;
}

.section-icon {
  color: #4b7d4a;
  /* 落ち着いた緑 */
  font-size: 1.1rem;
  margin-right: 0.3rem;

}

.section-line {
  display: inline-block;
  width: 250px;
  height: 2px;
  background-color: #4b7d4a;
  margin-left: 0.5rem;
}

.section-label {
  font-size: 1.2rem;
  color: #dcdcdc;
  text-align: left;
  margin: 0 80px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.5rem;
  font-weight: bold;
  position: relative;
  margin: 0 50px;
}

.section-line {
  vertical-align: middle;
  width: 350px;
  height: 2px;
  background: #6ca77b;
  margin-left: 0.6rem;
  margin-top: -4px;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .section-line {
    width: 100px;
  }

  .section-label {
    text-align: left;
    font-size: 1rem;
    margin: 0 auto 0.5rem;
  }

  .section-header {
    text-align: center;
    margin: 0 auto 1.5rem;
    padding-bottom: 0.5rem;
  }

  .section-title {
    align-items: center;
    font-size: 1.2rem;
    margin: 0 auto;
    text-align: center;
    gap: 0.3rem;
  }

  .section-icon {
    font-size: 1rem;
    margin: 0;
  }

  .section-line {
    margin: 0;
    width: 100px;
    height: 2px;
  }
}









/* Topics → お知らせ */
.topics {
  padding: 3rem 1rem;
  background-color: #f7f9f8;
  text-align: center;
}

/* Topicsリスト中央寄せ */
.topics-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
  border-top: 1px solid #ccc;
  text-align: center;
}

.topics-list li {
  display: flex;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  gap: 0.5rem;
  font-size: 1rem;
  color: #333;
}

.topics-date {
  min-width: 110px;
  color: #888;
  font-size: 0.9rem;
  font-family: 'Courier New', Courier, monospace;
  flex-shrink: 0;
}

.topics-text {
  flex: 1;
  color: #555;
  line-height: 1.5;
}

/* モバイル対応 */
@media (max-width: 600px) {
  .topics-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .topics-date {
    min-width: auto;
    font-size: 0.85rem;
    margin-bottom: 0.1rem;
  }

  .topics-text {
    font-size: 0.95rem;
  }
}







/* Service → 事業内容 */
.services {
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #f4f7f6, #e9ecea);
}

/* 横スクロールボックス */
.service-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scroll-padding-left: 1rem;
}

/* 各サービスボックス */
.service-box {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-margin-top: 120px;
  transition: background 0.3s ease;
}

.service-box:hover {
  background: #f1fdf1;
  /* ホバー時だけ薄緑に */
}

.service-header {
  text-align: center;
  width: 100%;
  position: relative;
  margin-bottom: 1rem;
  padding-top: 0.5rem;
  min-height: 2.5rem;
}

.service-number {
  position: absolute;
  top: -30px;
  left: -20px;
  font-size: 5rem;
  font-weight: bold;
  color: #4b7d4a;
  /* opacity: 0.1; */
  line-height: 1;
}

.service-title {
  margin-left: 2.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
}

.service-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.service-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  text-align: left;
}

/* スクロール矢印（スマホのみ） */
.scroll-arrows {
  display: none;
  position: relative;
  margin-bottom: 1rem;
}

.scroll-arrows button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: #4b7d4a;
  border: 2px solid #4b7d4a;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 10;
  cursor: pointer;
  transition: background 0.3s ease;
}

.scroll-arrows .scroll-left {
  left: 0;
}

.scroll-arrows .scroll-right {
  right: 0;
}

.scroll-arrows button:hover {
  background: #e1f5e1;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  .service-box {
    flex: 0 0 85%;
  }

  .scroll-arrows {
    display: block;
    top: 12rem;
  }
}






/* Works → 施工事例 */
.works {
  padding: 3rem 1rem;
  background-color: #f7f9f8;
  text-align: center;
}


.works-slider {
  margin: 0 1rem;
}

.gallery-wrapper {
  overflow: hidden;
  border-radius: 8px;
  /* background: #eee;  */
  padding: 0.25rem 0;
}

.gallery {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1rem;
  padding: 0.5rem;
  scroll-snap-type: x mandatory;
  /* ←追加 */
}

.gallery img {
  flex: 0 0 calc((100% - 4rem) / 5);
  /* PC: 5枚表示 */
  max-width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
}


/* スクロールバー */
.gallery::-webkit-scrollbar {
  height: 8px;
}

.gallery::-webkit-scrollbar-thumb {
  background-color: #4b7d4a;
  border-radius: 4px;
}

.gallery::-webkit-scrollbar-track {
  background: #ccc;
}

/* 下のコントロールエリア */
.works-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

#prevBtn,
#nextBtn {
  background: #4b7d4a;
  color: #eee;
  border: none;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  cursor: pointer;
}

/* ドットのアニメーション */
.pagination-dots .dot {
  width: 10px;
  height: 10px;
  background: #d2d2d2;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.pagination-dots .dot.active {
  background: #4b7d4a;
}

.pagination-dots {
  display: flex;
  gap: 1rem;
  /* 間隔を0.5rem→1remに広げる */
  justify-content: center;
  /* 中央揃え */
  margin: 0 0.5rem;
}



/* レスポンシブ */
@media screen and (max-width: 768px) {
  .gallery {
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
  }

  .gallery img {
    flex: 0 0 100%;
    max-width: 100%;
    height: 240px;
    scroll-snap-align: center;
  }

  #prevBtn,
  #nextBtn {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
  }

  .pagination-dots .dot {
    width: 8px;
    height: 8px;
  }
}








/* Company → 会社概要 */
.company {
  padding: 3rem 1rem;
  background-color: #f7f9f8;
}

.company-tel,
.company-fax {
  font-size: 1rem;
  margin: 0.3rem 0;
}

.highlight-number {
  font-weight: bold;
  color: #4b7d4a;
  /* テーマの緑 */
  text-decoration: none;
  transition: color 0.3s ease;
}

.highlight-number:hover {
  color: #356834;
}

.company-intro {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #555;
  font-weight: 500;
}

.info-table {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid #ccc;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-row {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-top: 1px solid #eee;
  margin: 0.5rem 0 0.5rem 0;
}

.info-row:first-child {
  border-top: none;
}

.info-label {
  font-weight: bold;
  color: #4b7d4a;
  margin-bottom: 0.3rem;
}

.info-value {
  color: #333;
  line-height: 1.5;
}

/* PCで2カラムにする */
@media screen and (min-width: 768px) {
  .info-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    padding: 1rem 2rem;
  }

  .info-label {
    width: 30%;
    margin-bottom: 0;
  }

  .info-value {
    width: 65%;
  }
}







/* フッター */
.highlight-number {
  color: #4b7d4a;
  /* テーマカラーの緑 */
  font-weight: bold;
  font-size: 2.0rem;
}

.site-footer {
  position: relative;
  background: #222;
  color: #fff;
  padding: 2.5rem 1rem;
  font-size: 0.9rem;
  overflow: hidden;
}

.footer-background {
  position: absolute;
  top: 55%;
  left: 39%;
  transform: translate(-40%, -55%);
  /* ← 横にずらし、少し上へ */
  z-index: 0;
  opacity: 0.08;
  pointer-events: none;
}

.footer-logo-bg {
  width: 230px;
  /* 大きめに調整 */
  max-width: 100vw;
  height: auto;
  object-fit: contain;
}

/* フッター内容は前面に */
.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-company-logo {
  width: 210px;
  max-width: 60vw;
  height: auto;
  /* margin-bottom: 1rem; */
  padding-left: 10.0rem;
  /* ← 文字を右へずらす */
}

.footer-center p {
  margin: 0.3rem 0;
  padding-left: 10.0rem;
  /* ← 文字を右へずらす */
}

.footer-right {
  text-align: left;
}

.follow-label {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.social {
  display: flex;
  gap: 0.8rem;
}

.sns-icon {
  width: 30px;
  height: 30px;
  transition: opacity 0.3s ease;
}

.sns-icon:hover {
  opacity: 0.7;
}

.footer-bottom {
  text-align: center;
  left: 2em;
  position: relative;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .footer-center p {
    padding-left: 0;
    /* ← モバイルでは中央配置のまま */
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }

  .footer-company-logo {
    /* margin: 0 auto 1rem; */
    padding-left: 0;
  }
}







/* contact → お問い合わせ */
.contact {
  position: relative;
  padding: 2.5rem 1rem;
  color: #fff;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('image/コンタクト.jpg') no-repeat center center;
  background-size: 100%;
  /* ← coverからcontainに変更 */
  background-color: #000;
  /* 余白ができたときの下地 */
  z-index: -2;
}

.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  /* 黒のオーバーレイ */
  z-index: -1;
}

.contact-overlay {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

/* テキスト部分 */
.contact-content {
  margin: 1.5rem auto 0;
  /* 上は余白、左右は中央寄せ */
  max-width: 600px;
  /* 横幅の上限 */
  width: 90%;
  /* スマホでは横幅縮小 */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(3px);
  padding: 1.5rem;
  border-radius: 16px;
  color: #fff;
  text-align: center;
}

.contact-message {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* メールリンク */
.mail-button {
  display: inline-block;
  background-color: #4b7d4a;
  color: #fff;
  font-weight: bold;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mail-button:hover {
  background-color: #3a633a;
}






/* 上部へ戻る */
.scroll-to-top {
  position: fixed;
  bottom: 70px;
  right: 1.5rem;
  background-color: #4b7d4a;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
  z-index: 999;
}

.scroll-to-top:hover {
  background-color: #3a633a;
}

.scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}







/* PC専用グローバルメニュー */
.first-view {
  position: relative;
  width: 100%;
  overflow-x: hidden;
  /* 右切れ防止 */
}

/* 上部ヘッダー部分の配置（ロゴ＋グローバルナビ） */
.first-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* ロゴ */
.logo-company {
  height: 40px;
  width: auto;
  position: relative;
  top: -5px;
}

/* グローバルナビ */
.global-nav {
  display: none;
  /* スマホ非表示 */
}

@media screen and (min-width: 768px) {
  .global-nav {
    display: block;
  }

  .global-nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .global-nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
  }

  .nav-label {
    font-size: 0.7rem;
    color: #ccc;
  }

  .nav-title {
    font-size: 1rem;
    margin-top: 0.2rem;
  }

  .global-nav li a:hover {
    color: #c0f5c0;
  }
}

@media screen and (max-width: 870px) and (min-width: 768px) {
  .global-nav li a {
    font-size: 0.85rem;
  }

  .nav-label {
    font-size: 0.6rem;
  }

  .nav-title {
    font-size: 0.9rem;
  }

  .global-nav ul {
    gap: 1.5rem;
    /* ナビ間の間隔も少し詰めるとよい */
  }
}






/* 共通：詳しく見るボタン スマホ中央・PC右寄せ */
.btn-center {
  display: flex;
  justify-content: center;
  /* スマホでは中央 */
  margin-top: 2rem;
}

@media screen and (min-width: 768px) {
  .btn-center {
    justify-content: flex-end;
    /* PCでは右寄せ */
    padding-right: 5%;
  }
}

/* 白枠ボタン */
.btn-more-outline {
  display: flex;
  /* ← inline-flex から修正 */
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2.2rem;
  border: 1px solid #4b7d4a;
  border-radius: 30px;
  background-color: #4b7d4a;
  color: #fff;
  text-decoration: none;
  gap: 0.6em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  font-weight: 500;
  font-size: 1rem;
  width: 200px;
}

/* ホバー効果 */
.btn-more-outline:hover {
  background-color: rgba(75, 125, 74, 0.15);
  border-color: rgba(75, 125, 74, 0.15);
  color: #4b7d4a;
  transform: translateY(-2px);
}

.btn-more-outline:hover .arrow-icon {
  transform: translateX(3px);
}

/* 中身の構造 */
.btn-inner {
  display: flex;
  align-items: center;
  gap: 0.5em;
  flex-direction: column;
}

.btn-sub {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.btn-main {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4em;
}

/* 矢印 */
.arrow-icon {
  width: 18px;
  height: 18px;
  opacity: 0.8;
  transition: transform 0.3s ease;
}



/* 下部固定メニュー：スマホ表示のみ */
/* スマホ下部固定メニュー */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #f1f1f1;
  border-top: 1px solid #ddd;
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.7rem;
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-item:hover {
  color: #4b7d4a;
}

.nav-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 2px;
}

/* PCでは非表示 */
@media screen and (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}