/* 全体 */
body {
  background-image: url('wall.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  color: #333;
}

/* ヘッダー */
header {
  background-color: white;
  padding: 1rem 2rem;
  display: flex;
  position: fixed;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 9999;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  color: #2c5f2d;
  text-decoration: none;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.menu-toggle {
  font-size: 2.4rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  color: #2c5f2d;
  transform: translateX(-50px);
}



/* メニュー全体 */
/* ----- 共通：リストマーカー削除 ----- */
.menu ul, .submenu {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ========================== */
/* メニュー全体デザイン       */
/* ========================== */
.menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 260px;
  height: 100vh;
  background-color: #fffdf7;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  padding-top: 80px;
  z-index: 9999;
  border-left: 5px dotted #f0e68c;
}

.menu.open {
  right: 0;
}

.menu.open .close-btn {
  display: block;
}

/* ========================== */
/* メインメニュー             */
/* ========================== */
.menu > ul > li {
  padding: 1rem;
  border-bottom: 2px dashed #eee8aa;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.menu-item a,
.menu > ul > li > a {
  text-decoration: none;
  color: #333;
  font-weight: 700;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.menu-item a:hover,
.menu > ul > li > a:hover {
  color: #2c5f2d;
}

/* トグルボタン（＋とー） */
.toggle {
  color: #555;
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
}

/* クローズボタン */
.close-btn {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

/* ========================== */
/* サブメニュー（付箋風）     */
/* ========================== */
.submenu {
  display: none;
  margin-top: 0.4rem;
  padding-left: 1rem;
}

.submenu.open {
  display: block;
}

.submenu li {
  background-color: #fff9e6;
  border: 2px dashed #f0e68c;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  margin: 0.5rem 0;
  box-shadow: 3px 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.submenu li:hover {
  transform: translateY(-3px);
}

.submenu li a {
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
  display: block;
  font-weight: 500;
}

.submenu li a:hover {
  color: #2c5f2d;
}

/* ========================== */
/* リストの●マーカー完全削除 */
/* ========================== */
.menu ul li,
.submenu li {
  list-style-type: none;
}
/* ヒーローセクション */
.hero {
  background-image: url('fam.png');
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-text {
  color: white;
  font-size: 2.8rem;
  font-weight: bold;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

/* レスポンシブ */
@media screen and (max-width: 600px) {
  .hero-text {
    font-size: 1.8rem;
    padding: 0 1rem;
  }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* スクロールガイド */
.scroll-guide {
  position: absolute;
  bottom: 100px; /* 下から50px、真ん中下 */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 2s ease forwards;
  opacity: 0;
  animation-delay: 0.8s;
}

.scroll-text {
  color: white;
  font-size: 14px;
  margin-bottom: 6px;
  opacity: 0.8;
  font-weight: bold;
}
/* ヘッダーの高さ分ずらす */
section {
  scroll-margin-top: 100px; /* ← ヘッダーの高さに合わせて */
}

html {
  scroll-behavior: smooth; /* スムーズスクロール */
}

.arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
  animation: arrowBounce 1.5s infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.8; }
  50% { transform: translateY(8px) rotate(45deg); opacity: 0.3; }
}
/* セクション共通 */
.section {
  padding: 3rem 1.5rem;
  max-width: 1000px;
  margin: auto;
  background-color: transparent;
}


.section h2 {
  font-size: 32px;
  margin-bottom: 2rem;
  text-align: center;
  color: #1c2a38;
  padding-bottom: 5px;
}

/* お知らせ */
.news-section {
  margin: 3rem auto;
  max-width: 1000px;
  padding: 0 1rem;
}

.news-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 2rem;
  color: #1c2a38;
}


/* スライドショー */
.hero-slider {
  position: relative;
  width: 100%;
  max-width: 1300px;
  height: 500px;
  margin: 0 auto; /* 上下余白なし */
  overflow: hidden;
  z-index: 1;
}

/* セクション間の余白さらに詰めたいなら */
#news + .hero-slider {
  margin-top: -20px;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.slide.active {
  opacity: 1;
}

.dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #2c5f2d;
}

/* 企業理念 */
/* --- セクション全体 --- */
.message-section {
  background-color: white;
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: 3rem auto;
  border-radius: 12px;
}

/* --- 見出し --- */
.message-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 2rem;
  color: #1c2a38;
}

/* --- 企業理念の本文 --- */
.philosophy {
  text-align: center;
  font-size: 18px;
  line-height: 2;
  color: #444;
  margin-bottom: 2.5rem;
}
/* --- 会社概要用 ラインブロック共通 --- */
/* 会社概要テーブル */
.company-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.company-table th,
.company-table td {
  border: 1px solid #ccc;
  padding: 1rem;
  text-align: left;
  vertical-align: top;
  font-size: 16px;
  line-height: 1.6;
}

.company-table th {
  background-color: #f8f8f8;
  color: #1c2a38;
  width: 30%;
  font-weight: 600;
}

.company-table td {
  color: #444;
}

.company-table a {
  color: #2c5f2d;
  text-decoration: underline;
}

#company h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 2rem;
  color: #1c2a38;
}


/* --- 線付きブロック（住所から） --- */
.line-block {
  border-left: 4px solid #2c5f2d;
  padding-left: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* テキストデザイン */
.line-block p {
  font-size: 16px;
  line-height: 2;
  color: #444;
  margin: 0.5rem 0;
}

/* メールリンク */
.line-block a {
  color: #2c5f2d;
  text-decoration: underline;
}
/* --- Rの丸 横一列配置 --- */
/* 親要素 */
.circle-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: nowrap;
  padding: 10px 20px; /* 上下にも余白追加 */
  overflow-x: auto;
  overflow-y: visible; /* ← 上下切れ防止 */
  scrollbar-width: none; /* Firefox */
}

.circle-container::-webkit-scrollbar {
  display: none; /* Chrome・Safari */
}
.vision-text {
  text-align: center;
  margin: 2rem auto;
  font-size: 16px;
  line-height: 2;
  color: #444;
}
/* 丸デザイン */
.circle-item {
  background-color: #f8f9fa;
  border: 2px solid #2c5f2d;
  border-radius: 50%;
  width: clamp(120px, 16vw, 180px);
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #2c5f2d;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  transition: transform 0.2s ease;
}

.circle-item span {
  display: block;
  font-size: 0.9rem;
  color: #333;
  font-weight: normal;
  margin-top: 5px;
}

.circle-item:hover {
  transform: scale(1.05);
  z-index: 10; /* ← ホバー時に前面に出す */
}

/* スマホ対応 */
@media screen and (max-width: 900px) {
  .circle-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    overflow-x: visible;
  }
}
.ceo-name {
  text-align: right;
  max-width: 800px;
  margin: 0 auto;
  font-weight: bold;
  color: #222;
}
/* 事業内容 2列レイアウト */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 2rem;
}

.service-item {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-top: 4px solid #2c5f2d;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, color 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  background-color: #f9f9f9;
  color: #2c5f2d;
}

.service-item h3 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.service-item p {
  line-height: 1.6;
  transition: color 0.3s;
}

.service-item:hover h3,
.service-item:hover p {
  color: #2c5f2d;
}

/* 施工実績セクション */
/* ギャラリー */
/* 施工実績セクション */
.works-section {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: auto;
}

.works-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1c2a38;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.works-card {
  background-color: white;
  border: 2px solid #f0e68c;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.works-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.works-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.works-content {
  padding: 1rem;
}

.works-content h3 {
  font-size: 1.1rem;
  color: #2c5f2d;
  margin-bottom: 0.5rem;
}

.works-content p {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 1rem;
}

.btn-detail {
  display: inline-block;
  background-color: #2c5f2d;
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: background-color 0.3s;
}

.btn-detail:hover {
  background-color: #1c4020;
}
#works {
  background-color: transparent;
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: 3rem auto;
  border-radius: 12px;
}

#works h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 2rem;
  color: #1c2a38;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 2rem 0;
}

.gallery img {
  width: clamp(250px, 30%, 300px);
  height: auto;
  border-radius: 12px;
  border: 3px solid #2c5f2d;
  background-color: #f8f9fa;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: flex-start;
  overflow: auto;
  padding: 5rem 1rem 0.5rem;
  box-sizing: border-box;
}

.modal-content {
  background: white;
  padding: 2rem 1rem 1rem;
  border-radius: 12px;
  max-width: 700px;
  width: 90%;
  padding-top: 1.5rem;
  max-height: calc(100vh - 7.5rem);
  margin: auto;
  overflow-y: auto;
  text-align: center;
  position: relative;
  box-sizing: border-box;
}
.modal-close {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 36px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
  z-index: 10;
  background: none;
  border: none;
  padding: 0.5rem;
}
.modal-close:hover{
  color: #000;
}


.slider-container {
  position: relative;
  overflow: hidden;
  margin: 0.5rem 0;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slider-track img {
  min-width: 100%;
  border-radius: 8px;
  max-height: 300px;
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }


/* お問い合わせフォーム */
#contact {
  margin: 3rem auto;
  max-width: 1000px;
  padding: 0 1rem;
}

#contact h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 2rem;
  color: #1c2a38;
}

/* フォームボックス */
.contact-box {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* フォーム本体 */
form {
  width: 100%;
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.5rem;
}

form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

form input,
form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #2c5f2d;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  background-color: white;
}

form textarea {
  min-height: 180px;
  resize: vertical;
}

form button {
  background-color: #2c5f2d;
  color: white;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

form button:hover {
  background-color: #1c4020;
}


/* フッター */
footer {
  background-color: #eee;
  text-align: center;
  padding: 1rem;
  font-size: 14px;
  color: #333;
  margin-top: 3rem;
}

/* レスポンシブ対応 */
@media screen and (max-width: 600px) {
  .service-content {
    flex-direction: column;
    align-items: center;
  }

  .gallery img {
    width: 90%;
  }

  .hero-text {
    font-size: 1.5rem;
    padding: 0 1rem;
  }
}



.r-heading {
  font-size: 24px;
  text-align: center;
  margin-top: 40px;
  font-weight: bold;
  color: #1c2a38;
  border-bottom: 2px dashed #999;
  display: inline-block;
  padding-bottom: 5px;
}


.r-list {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 20px auto;
  font-size: 18px;
  line-height: 2;
}

.r-list li {
  margin-bottom: 10px;
  text-align: left;
  position: relative;
  padding-left: 20px;
}

.r-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #2c5f2d;
  font-weight: bold;
}

.r-word {
  font-weight: bold;
  font-size: 20px;
  color: #1c2a38;
  font-family: 'Georgia', serif;
}
/* ========================= */
/* 詳細ページだけのデザイン */
/* ========================= */
body.sub-page .hero {
  display: none;
}

body.sub-page {
  padding-top: 100px; /* ヘッダーの高さ分 */
}
body.sub-page header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}

body.sub-page section {
  margin-top: 0;
  text-align: center;
}
body.sub-page .service-item {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  border: 3px solid #2c5f2d;
  transition: background-color 0.3s, color 0.3s;
  text-decoration: none;
  color: #333;
  text-align: center;
  box-shadow: none; /* 影なし */
}

body.sub-page .service-item:hover {
  background-color: #f8fbf8;
  color: #2c5f2d;
}

body.sub-page .service-item h3 {
  color: #2c5f2d;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  transition: color 0.3s;
}

body.sub-page .service-item p {
  color: #555;
  line-height: 1.6;
  transition: color 0.3s;
}

body.sub-page .service-item:hover h3,
body.sub-page .service-item:hover p {
  color: #2c5f2d;
}