:root {
  --navy: rgb(11, 52, 110);
  --light-blue: #e3f2fd;
  --soft-orange: rgba(255, 204, 128, 0.3);
  --soft-orange-hover: rgba(255, 204, 128, 0.5);
  --text-color: var(--navy);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', "游ゴシック体", "ヒラギノ角ゴ ProN", Meiryo, sans-serif;
  background-color: #f7f5f2;
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
}

h1 {
  font-family: 'Yuji Syuku', serif;
  color: #fff;
  margin: 0 0 0 50px;
  font-size: 40px;
  letter-spacing: 3px;
}

h2 {
  font-family: 'Yuji Syuku', serif;
  color: var(--text-color);
  font-size: 30px;
  margin: 0 0 20px;
}

main h2 {
  border-bottom: 3px solid var(--navy);
  text-align: center;
  letter-spacing: 15px;
  font-weight: 900;
}

/* ヘッダー */
header {
  background-color: var(--navy);
  color: white;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.header-texts {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ハンバーガーメニュー */
#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  font-size: 2em;
  cursor: pointer;
  color: white;
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 20;
}

.nav-menu {
  display: flex;
  gap: 25px;
  margin-right: 20px;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
}

.nav-menu a:hover {
  text-decoration: underline;
}

/* メインビジュアルスライダー */
.slider {
  position: relative;
  width: 100%;
  height: 100vh; /* ★変更：画面全体に */
  overflow: hidden;
  background-color: var(--light-blue);
}

.slider img {
  position: absolute;
  width: 100%;
  height: 100vh; /* ★変更：画面全体に */
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 1;
}

.slider img.active {
  opacity: 1;
  z-index: 2;
}

.slider-overlay {
  position: absolute;
  width: 100%;
  height: 100vh; /* ★変更：画面全体に */
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 3;
  pointer-events: none;
}
.slider-text {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  text-align: center;
  padding: 20px;
  border-radius: 8px;

  font-size: 2.5rem; /* h2 に適用されるサイズ */
}

.slider-text h2 {
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 2s ease forwards;
  animation-delay: 1s;
  margin: 0;
  font-size: 1.8rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.slider-text p {
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 2s ease forwards;
  animation-delay: 1s;
  font-size: 1.2rem; /* h2 より少し小さく */
  margin-top: 0.5em;
  font-family: 'Noto Sans JP', "游ゴシック体", "ヒラギノ角ゴ ProN", Meiryo, sans-serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

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


/* 施工事例スライド */
/* 施工事例スライド全体のラッパー */
.works-slider {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 0 50px; /* 矢印の外側に余白 */
}

/* slickスライド1枚あたりの内側余白 */
.works-slider .slick-slide {
  padding: 10px;
  box-sizing: border-box;
}

/* スライド枠全体（白背景＋影） */
.slider-track > div {
  margin: 0 10px;
  text-align: center;
  border-radius: 6px;
  overflow: hidden;
}

/* 画像（背景なし・角丸上だけ） */
.slider-track img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 6px 6px 0 0;
}

/* キャプション部分にだけオレンジ背景 */
.slider-track figcaption {
  background-color: var(--soft-orange);
  color: #333;
  border-radius: 0 0 6px 6px;
  padding: 10px;
  font-weight: 600;
  color: var(--navy);
}

/* カスタム矢印ボタン */
.prev-btn, .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 2em;
  cursor: pointer;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background-color 0.3s;
}

.prev-btn:hover,
.next-btn:hover {
  background-color: rgba(255, 255, 255, 1);
}

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

/* メインセクション */
main {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 15px;
}

.section {
  background-color: white;
  margin-bottom: 40px;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 8px var(--soft-orange);
}

.section ul {
  font-size: 18px;
}

.section p,
.section span,
address {
  font-size: 18px;
}

.section span {
  font-weight: bold;
}

.haikei p {
  background-color: aliceblue;
  text-align: center;
  width: 80%;
  margin: 20px auto;
  padding: 10px;
  border-left: 2px solid var(--navy);
  border-right: 2px solid var(--navy);
  border-radius: 10px;
}

/* グリッド */
.services-grid,
.works-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  justify-content: center;
}

.services-grid figure,
.works-grid figure {
  flex: 1 1 23%;
  margin: 0;
  background-color: var(--soft-orange);
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
}

.services-grid img,
.works-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.services-grid figcaption,
.works-grid figcaption {
  padding: 10px;
  font-weight: 600;
  color: var(--navy);
}

/* お問い合わせ */

.map-container {
  display: flex;
  justify-content: center;
  margin-top: 2em;
}
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;           /* 中央揃え */
  margin: 1.5em auto;
  max-width: 1000px;                 /* mainと揃える */
  padding: 0 15px;
  box-sizing: border-box;
  text-align: center;
}

.contact-btn {
  display: inline-block;
  padding: 0.9em 1.5em;
  background-color: #325d88;
  color: #fff;
  text-decoration: none;
  border: 2px solid #1e3d70;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  font-size: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background-color: #27486b;
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

.contact-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}



.note {
  text-align: center;
}

footer {
  text-align: center;
  padding: 20px 0;
  background-color: var(--navy);
  color: white;
  font-size: 0.9rem;
  margin-top: 50px;
}

/* ブログページ用 */
.blogpage h2 {
  background-color: #e3f2fd;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(128, 128, 128, 0.6);
  color: var(--text-color);
  text-align: center;
  margin: 0 0 20px;
}

.blogpage h3 {
  position: relative;
  padding-bottom: 8px;
  margin-bottom: 20px;
  font-size: 22px;
}

.blogpage h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 850px;
  height: 3px;
  background-color: #e3f2fd;
  border-radius: 2px;
}

.blogpage .contact-info {
  height: 300px;
}

.blogpage .contact-info p {
  padding-left: 80px;
}

.blogpage .contact-info h4 {
  margin-top: 10px;
  font-weight: 1000;
  border-bottom: 3px solid rgba(128, 128, 128, 0.6);
  padding-bottom: 8px;
  text-align: center;
}
.blog-toc {
  position: relative;
  padding-right: 220px; /* 画像分の余白を右に確保 */
}

.blog-toc::after {
  content: "";
  position: absolute;
  top: 100px;
  right: 50px;
  width: 200px;
  height: 150px;
  background-image: url('gazou/blog1.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 8px;
}

/* 問い合わせの欄に背景を */
.contact-info {
  background-color: #fff8dc;
  border: 4px solid rgba(255, 204, 128, 0.3);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-size: 18px;
  margin-top: 30px;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.contact-info h4 {
font-size: 25px;
}
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
  width: 100%;
  padding: 0;
  margin: 1.5em 0 0;
  box-sizing: border-box;
}

.nonepc {
  display: none;
}
/* ▼ 電話、メールのボタンデフォルトでは非表示 */
.fixed-contact-buttons {
  display: none;
}
.intro {
  font-size: 2em; /* 文字の大きさを指定 */
  line-height: 1.8; /* 行と行の間の広さも広げて読みやすく */
}
.blog-toc ol {
  font-size: 1.1em;
  line-height: 2rem;
}
                                                                                       /* スマホ対応 */

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-texts h1 {
    margin-left: 0;
    font-size: 1.8em;
    text-align: center;
  }

  .menu-icon {
    display: block;
    font-size: 2em;
    color: white;
    cursor: pointer;
    padding: 10px 20px;
  }

 /* スマホ用ハンバーガーメニュー（全表示＋スクロール対応） */
.nav-menu {
  overflow-y: auto;
  max-height: 0;
  flex-direction: column;
  width: 100%;
  background-color: var(--navy);
  transition: max-height 0.4s ease;
}

/* チェック時にメニューを開く */
#menu-toggle:checked + .menu-icon + .nav-menu {
  max-height: 100vh;
  padding: 1em 0;
}

/* メニュー内のリンクスタイル */
.nav-menu a {
  padding: 0.8em;
  text-align: center;
  font-size: 1.2em;
  color: white;
  text-decoration: none;
}

/* ホバー時 */
.nav-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
/* メインビジュアル */
  .slider,
  .slider img,
  .slider-overlay {
    height: calc(var(--vh, 1vh) * 100);
  }

  .slider-text {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
  }

  .slider-text h2 {
    font-size: 1.5rem;
    white-space: normal;
  }


/* お問い合わせボタン */
.contact-info {
  background-color: #fff8dc;
  border: 2px solid #d4af37;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-size: 18px;
  margin: 30px auto;
  width: 100%;
  box-sizing: border-box;
  display: flow-root;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 1em;
}


  .contact-btn {
     width: 95%; /* 幅をもう少し広げる */
      max-width: none; /* 幅制限を解除 */
      white-space: nowrap; /* テキスト折り返しを防止 */
      overflow: hidden;
      text-overflow: ellipsis; /* はみ出したら「…」で省略（好みに応じて） */
  }

  .map-container iframe {
    width: 100%;
    height: 200px;
  }

  .blogpage h3::after {
    width: 100%;
  }

  .works-grid,
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 16px;
  }

  .works-grid img,
  .services-grid img {
    width: 100%;
    aspect-ratio: 4 / 2;
    object-fit: cover;
    border-radius: 8px;
  }

  .works-grid figure,
  .services-grid figure {
    margin: 0;
    text-align: center;
  }


  .haikei {
    padding: 0 5px;
  }

  .haikei p {
    width: 95%;
    text-align: left;
  }

  .section ul {
    padding-left: 15px;
  }

  .blogtop .works-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 90%;
    margin: 0 auto;
    padding: 0 10px;
  }

  .blogpage {
    font-size: 17px;
  }

  .blogpage h2 {
    font-size: 18px;
    letter-spacing: -0.05em;
    padding: 10px 3px;
    font-weight: 900;
  }

  .blogpage h3 {
    font-size: 18px;
    font-weight: 900;
  }

  .blogpage .date {
    font-size: 14px;
    margin-top: 2px;
  }

  .blogpage .contact-info {
     width: 95%;
    max-width: none;
    height: auto;
    min-height: 300px;
    padding: 25px 20px;
    overflow: visible;
    box-sizing: border-box;
  }

  .blogpage .contact-info p {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 1em;
    word-break: break-word;
    display: block;
  }
.blogpage .contact-info h4 {
  font-size: 18px;
  margin-bottom: 10px;
  text-align: center;
}
  .nonepc {
    display: inline;
  }

  /* スマホ下部固定ボタン */
  .fixed-contact-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 9999;
    background-color: var(--navy);
    height: 60px;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.3);
  }

  .fixed-contact-buttons .fixed-btn {
    flex: 1;
    text-align: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    line-height: 60px;
    background-color: var(--navy);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease, transform 0.1s ease;
  }

  .fixed-contact-buttons .fixed-btn:last-child {
    border-right: none;
  }

  .fixed-contact-buttons .fixed-btn:hover {
    background-color: rgba(255, 248, 220, 0.6);
  }

  .fixed-contact-buttons .fixed-btn:active {
    transform: translateY(2px);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4);
  }
/* 施工事例スライド矢印 */
.prev-btn,
.next-btn {
  position: absolute;   /* ← ここを追加 */
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  width: 40px;
  height: 40px;
  font-size: 2em;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.works-slider {
    padding-left: 15px;
    padding-right: 15px;
}

/* スマホ表示用の左右位置調整 */
.prev-btn {
  left: -15px;
}

.next-btn {
  right: -15px;
}
  .blog-toc {
    padding-right: 0;
    padding-top: 180px;
  }

  .blog-toc::after {
    top: 30px;
    right: 50%;
    transform: translateX(50%);
    width: 160px;
    height: 120px;
  }
  /* ヘッダーの表示 */
    main, body, .blogpage .contact-info {
    padding-bottom:50px;
    margin-top: 0;
  }
}


