: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);
}
img {
  filter: brightness(1.1); /* 1が元の明るさ、1より大きいと明るくなる */
}
* {
  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 {
  position: relative;
  font-family: 'Yuji Syuku', serif;
  font-size: 35px;
  letter-spacing: 0.35em;
  text-align: center;
  color: var(--navy);
  /* margin: 0 auto 50px; */
  padding: 14px 0 22px;
}

.heading-6 {
    font-size: 3rem;       /* お好みの大きさに調整 */
    line-height: 1.3;      /* 行間も調整 */
  }

/* 上下ライン */
main h2::before,
main h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;              /* ← ここを伸ばした */
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--navy),
    transparent
  );
}

main h2::before {
  top: 0;
}

main h2::after {
  bottom: 0;
}



/* ヘッダー */
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;               /* ← PCでは非表示 */
  font-size: 2em;
  cursor: pointer;
  color: white;
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 1001;
}

/* 通常ナビ（PC） */
.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;
  width: 80%;
  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: 4rem;
  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: 3rem; /* 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);
  }
}

/* top画像差し替え */
.top-image{
  width: 100%;
}
@media (max-width: 768px) {
  .font_08 {
  letter-spacing: normal;
}

  .top-image{
    /* height: auto; */
  }
}
.slide{
  width: 100%;
}
/* 施工事例スライド */
/* 施工事例スライド全体のラッパー */
.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;
}

/* トップページのボタン */
/* セクション全体 */
.service-section {
  padding: 60px 20px;
  background-color: #f8f8f8;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

/* 3カラム */
.service-columns {
  display: flex;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-item {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* h3 */
.service-item_title {
  position: relative;
  font-size:1rem;
  margin-bottom: 12px;
  padding: 0 0 .5em;
  border-bottom: none; /* 通常の線は消す */
  text-align: center;
  font-weight: bold;
}
@media (max-width: 768px) {
  .service-item_title {
      font-size:1.2rem;
}
}

.service-item_title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;

  width: 100%;
  height: 1px;

  background: linear-gradient(
    to right,
    transparent,
    var(--navy),
    transparent
  );
}



/* 画像 */
.service-item img {
  width: 100%;
  aspect-ratio: 7 / 5;
  object-fit: cover;
  /* border-radius: 6px; */
}

/* ボタン */

.service-btn {
    display: block;
    width: 100%;
}
 .button-54 {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  padding: 10px 12px;

  font-size: 0.85rem;
  /* font-weight: 600; */
  letter-spacing: 0.08em;
  white-space: nowrap;

  color: #0b346e;
  background: #eef7ff;

  border: 1.5px solid #0b346e;
  /* border-radius: 999px; */

  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 15px;
}

/* hover */
.button-54:hover {
  background-color: #0b346e;
  color: #fff;
  transform: translateY(-1px);
}

/* active */
.button-54:active {
  transform: translateY(0);
  opacity: 0.9;
}

.service-btn:hover {
  background-color: var(--main-color-dark);
}

@media screen and (max-width: 768px) {

  .section_top{
    margin-top: 40px;
  }

  .service-columns {
    flex-direction: row;  /* 横並びのまま */
    flex-wrap: nowrap;    /* 折り返さない */
    gap: 8px;             /* アイテム間の隙間 */
  }

  .service-item {
    flex: 0 0 33.333%;    /* 3つ横並び */
    max-width: 33.333%;
  }

  .service-item img {
    width: 100%;
    height: auto;
    display: block;
  }
}



/* グリッド */
.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);
}

/* 会社概要 */
.about_images .about_image {
  text-align: center; /* 中央寄せ */
}

.about_images .about_image img {
  width: 30%;
  max-width: 500px;   /* 大きくなりすぎ防止（お好みで調整） */
  height: auto;
}

@media (max-width: 768px) {
  .about_images .about_image img{
  width: 60%;
  }
}
/* お問い合わせ */

.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-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;

  padding: 0.8em 1.6em;
  background: linear-gradient(
    135deg,
    rgba(255, 204, 128, 0.45),
    rgba(255, 204, 128, 0.25)
  );
  color: #1f3b2c;
  text-decoration: none;
  border: 1.5px solid rgba(255, 204, 128, 0.6);
  /* border-radius: 999px; */

  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;

  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(2px);

  transition: all 0.3s ease;
}

/* hover */
.contact-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 204, 128, 0.65),
    rgba(255, 204, 128, 0.35)
  );
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* active */
.contact-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}




.note {
  text-align: center;
}

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

/* 問い合わせの欄に背景を */
.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;
}

                                                                                 /* スマホ対応 */

@media (max-width: 1050px) {
  /* ヘッダー縦並び */
  header {
    flex-direction: column;
    align-items: flex-start;
    position: sticky;     /* ← 固定 */
    top: 0;               /* ← 上部に固定 */
    width: 100%;          /* 横幅確保 */
    z-index: 1002;        /* メニューより前面 */
    background-color: var(--navy); /* 背景色濃い色に固定 */
    padding: 15px 20px;
  }

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

  /* ハンバーガーアイコン */
  .menu-icon {
    display: block;
    font-size: 2em;
    color: white;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1001;
  }

  /* 初期状態 */
  .menu-icon .open { display: inline; }   /* ☰ 表示 */
  .menu-icon .close { display: none; }   /* ✕ 非表示 */

  /* チェック時に切り替え */
  #menu-toggle:checked + .menu-icon .open { display: none; }
  #menu-toggle:checked + .menu-icon .close { display: inline; }

  /* ナビメニュー */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 65%;
    height: 100vh;
    transform: translateX(100%);
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    gap: 1.5em;
    background: rgba(11, 52, 110, 0.75);
    backdrop-filter: blur(6px);
    z-index: 1000;
  }

  /* メニュー開いた時 */
  #menu-toggle:checked + .menu-icon + .nav-menu {
    transform: translateX(0);
  }

  /* メニューリンク */
  .nav-menu a {
    font-weight: 500;
    letter-spacing: 0.08em;
    padding-left: 2rem;
    color: white;
    text-decoration: none;
    position: relative;
  }

  .nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 6px;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.7), transparent);
    opacity: 0.6;
  }
/* メインビジュアル */
  .slider,
  .slider img,
  .slider-overlay {
    height: calc(var(--vh, 1vh) * 100);
  }

  .slider-text {
    top: 25%;
    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;
  }

   .slider-text p {
    font-size: 1rem;
  }
/* お問い合わせボタン */
.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;
  }


  .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;
  }

  .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;
}

  /* ヘッダーの表示 */
    main, body, .blogpage .contact-info {
    padding-bottom:50px;
    margin-top: 0;
  }
}


/* topに戻るボタン */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 64px;
  height: 64px;
  z-index: 1200;
}

.back-to-top img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(180, 220, 255, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ふわっと */
.back-to-top:hover img {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(180, 220, 255, 0.7);
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.back-to-top img {
  animation: float 4s ease-in-out infinite;
}
@media screen and (max-width: 768px) {
  .back-to-top {
    width: 52px;
    height: 52px;
    right: 12px;
    bottom: 90px; /* ←ここがポイント */
  }
}