/*
Theme Name: habakiri Child
Version: 1.6
Template: habakiri
*/
/*
Theme Name: NihonKougeisha Original Theme
Template: habakiri
Version: 1.0
*/
:root {
  --main-color: #918c5f;
  /* ここで「メインカラーは赤」と定義 */
	--sub-color: #908B5C;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #3d3528;
  background: #f8f6f0 url("./iamges/top_bg.png") no-repeat center center fixed;
  /*background-color: #000;  画像に合わせた黒背景 */
  /* フォントを適用 */
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.8;
  font-weight: 100;
  letter-spacing: 0.2em;
  /* 少し広げる */
  background-size: contain;
  background-repeat: repeat;
}

.container {
  padding-left: 30px;
  padding-right: 30px;
}

.main_container {
  padding-left: 30px;
  padding-right: 30px;
}

/*
img {
  max-width: 100%;
  height: auto;
  display: block;
}
*/
a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/*ページヘッダーは出さない*/
.page-header {
  display: none;
}

/*サイドバーは出さない*/
.col-md-9 {
  width: 100%;
}

.col-md-3 {
  display: none;
}

.header_box {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0;

  border-bottom: 2.5px solid var(--main-color);

  /* 下側に線を引く設定 */
  @media (max-width: 992px) {
    height: 120px;
  }

  @media (max-width: 768px) {
    height: 100px;
    padding: 0;
  }

  @media (max-width: 430px) {
    height: 70px;
    padding: 0;
  }

  /* 下側に線を引く（例：メインカラーと同じ色） */
  border-bottom: 5px solid var(--main-color);

}

/* header */
.site-header {
  background: rgba(255, 255, 255, 0.80);
  border-bottom: 1px solid #e6e0d2;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  width: 300px;
}

.site-logo img {
  width: 300px;
}

/* スマホ（画面幅767px以下）のサイズ */
@media (max-width: 900px) {
  .site-logo {
    text-align: center;
    margin: 0 auto;
  }

  .site-logo img {
    width: 200px;
    /* スマホで小さくしたい数値に変更 */
  }
}

@media (max-width: 600px) {
  .site-logo img {
    width: 150px;
  }
}

/* ボタンの中の画像サイズを直接指定 */
.menu-toggle img {
  width: 24px;
  /* 好みのサイズ（20px〜30pxくらい）に調整してください */
  height: auto;
  /* 比率を維持 */
  display: block;
  /* 余計な隙間をなくす */
}

/* fv */
.fv-section {
  /* 背景画像の設定（画像パスを自分の環境に合わせてください） 
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/top_image.webp');*/
  background-image: url('images/top_image.webp');
  background-size: cover;
  /* 画像を枠いっぱいに広げる */
  background-position: center;
  /* 画像の中央を表示 */
  height: 60vh;
  /* 画面の高さの60%分を確保 */
  display: flex;
  align-items: center;
  /* 垂直方向の中央揃え */
  justify-content: flex-end;
  /* 水平方向の中央揃え（左寄せなら flex-start） */
  color: #fff;
  /* 文字色を白に */
  position: relative;
}


.fv-content {
  max-width: 800px;
  padding: 20px;
  text-align: center;
  /* テキストを左寄せに */
  position: absolute;
  right: 15%;
	@media (max-width: 900px) {
		right: 0;
	}
}

.fv-title {
  font-size: 2rem;
  /* 文字サイズ（調整してください） */
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  /* 文字の間隔を広げて高級感を出す */
  color: #FFFFFF;
  @media (max-width: 430px) {
    font-size: 18px;
  }
}

/* 「素材」の部分だけ黄色にする場合 */
.highlight {
  color: #ffeb3b;
  /* 画像のアクセントカラーに合わせる */
}

.fv-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  /* 少しだけ透かして控えめに */
}

/* ホーム２ */
.fv__copy span {

  font-size: 11px;
  opacity: 0.9;
  display: block;
  line-height: 1.9;
}

.top-gallery,
.top-technology,
.top-contact {
  background-size: cover;
  /* 画像を枠いっぱいに広げる */
  background-position: center;
  /* 画像の中央を表示 */
  height: 450px;
  /* 画面の高さの60%分を確保 */
  display: block;
  position: relative;
  max-width: 100%;
  margin: 35px 0;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

.top-subtitle {
  color: #fff;
  /* 文字色を白に */
  font-size: 18px;
  line-height: 2.5;
  /* かなり広めにとって、1行ずつを強調 */
  font-weight: 300;
  @media (max-width: 600px) {
    line-height: 2;
    font-size: 16px;
  }
}

/* section */
.top-gallery {
  /* 背景画像の設定（画像パスを自分の環境に合わせてください）
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/top_kannon.webp'); */
  background-image: url('images/top_kannon.webp');
  color: #fff;
  /* 文字色を白に */
}

.section-heading {
  padding-top: 50px;
  margin-left: 12px;
  margin-bottom: 12px;
  color: #908B5E;

}

.line {
  border: none;
  border-top: 1.5px solid #333;
  /* 下の濃いライン */
  margin: 0;
}

.line-white {
  border: none;
  border-top: 1.5px solid #fff;
  /* 下の濃いライン */
  margin: 0;
}

.top-contents {
  padding-top: 50px;
  margin-left: 12px;
  margin-bottom: 12px;
  color: #fff;
  /* 文字色を白に */

}

.section-heading__en {
  display: inline-block;
  font-size: 16px;
  font-style: bold;
  margin-right: 8px;
}

.section-heading__jp {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.top-technology {
  /* 背景画像の設定（画像パスを自分の環境に合わせてください） 
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/top_fuji.webp');*/
  background-image: url('images/top_fuji.webp');
  color: #fff;
  /* 文字色を白に */
}

.top-technology-subtitle {
  color: #222222;
}

.top-contact {
  /* 背景画像の設定（画像パスを自分の環境に合わせてください） 
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/top_hands.webp');*/
  background-image: url('images/top_hands.webp');
  color: #fff;
  /* 文字色を白に */
}

.top-contact-subtitle {
  color: #222222;
}

.feature-card__text {
  padding: 34px 28px;
  background: linear-gradient(90deg, rgba(93, 69, 33, 0.88), rgba(168, 143, 74, 0.45));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-card__text h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.feature-card__text p {
  margin: 0 0 22px;
  font-size: 12px;
  line-height: 2;
}

.feature-card__image img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

/* toppage botton */
.btn-works {
  display: flex;
  /* Flexboxを有効にする */
  justify-content: center;
  /* 横方向の真ん中 */
  align-items: center;
  /* 縦方向の真ん中 */
  width: 100%;
  /* 親要素いっぱいに広げる場合 */
  height: 50px;
  max-width: 400px;
  /* 必要に応じて最大幅を調整 */
  margin-left: 0;

  @media (max-width: 992px) {
    max-width: 300px;
    /* 必要に応じて最大幅を調整 */
  }

  /* 色と装飾 */
  background-color: #908B5E;
  color: #ffffff;
  text-decoration: none;
  /* リンクの下線を消す */
  text-align: center;
  font-weight: bold;
  font-size: 16px;

  /* 角を丸めない（画像に合わせて直角に） */
  border-radius: 0;

  /* マウスを乗せた時の動き（ふわっとさせる） */
  transition: opacity 0.3s;
}

.btn-works:hover {
  opacity: 0.8;
}
a.btn-works:hover {
  color: #fff;
}

.btn {
  display: inline-block;
  background: #9f9160;
  color: #fff;
  padding: 10px 28px;
  font-size: 12px;
  letter-spacing: 0.08em;
  width: fit-content;
  transition: 0.3s;
}

.btn:hover {
  background: #8a7c4f;
}

/* menu */
#container {
  overflow: visible;
}

.header_wavy_line {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
  pointer-events: none;

  & img {
    width: 100%;
    display: block;
  }
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 5%;

  @media (max-width: 1200px) {
    width: 35%;
    margin-left: 0;
  }

  @media (max-width: 768px) {
    width: 50%;
  }

  @media (max-width: 430px) {
    width: 70%;
  }
}

.header_nav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-direction: column;

  @media (max-width: 992px) {
    display: none;
  }

}

.second_info_links {
  display: flex;
  list-style-type: none;
  margin: 0;
  justify-content: space-around;
  width: 100%;
  padding: 0;
  align-items: center;

  .header_nav-link {
    font-weight: 500;
  }

  & span {
    width: 150px;
    height: 3px;
  }

}

.menu-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}


/* ボタン自体の余計なスタイルをリセット（背景や枠線を消す） */
.header_nav-list {
  list-style: none;
  display: flex;
  gap: clamp(1.25rem, -3.313rem + 4.17vw, 7.688rem);
  margin-bottom: 0;


}

.header_list li {
  display: flex;
  align-items: center;
}

/* リンク自体のスタイル */
.header_list a {
  text-decoration: none;
  color: #8b8b6b;
  /* これまでの色味に合わせたオリーブ色 */
  font-weight: bold;
  padding: 10px 20px;
  /* 左右の余白 */
  font-size: 16px;
}

/* 縦棒（セパレーター）を擬似要素で追加 */
.header_list li::before {
  content: "|";
  /* 縦棒を表示 */
  color: #ccc;
  /* 棒の色を少し薄く */
  font-weight: normal;
}

/* 一番最後の項目の後ろにも棒が欲しい場合はこちら */
.nav-list li:last-child::after {
  content: "|";
  color: #ccc;
}

.header_nav-item {
  position: relative;
  font-size: 20px;
}

.header_nav-item:hover .header_sub-nav {
  display: flex;
}


.header_nav-link {
  display: flex;
  align-items: center;
  gap: 0;
  flex-direction: column;
  color: var(--main-color);
  font-weight: bold;

  &::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: #012B75;
    width: 0;
    transition: width 0.3s ease-in-out;
  }

  &:hover::after {
    /* ホバー時に幅を100%にして左から右へ出現 */
    width: 100%;
  }

  & i {
    width: 45px;
    height: 45px;
    color: #012B75;

    @media (max-width: 1200px) {
      width: 40px;
      height: 35px;
    }
  }
}


/* サブメニュー（ドロップダウン） */
.header_sub-nav {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 12px 16px;
  list-style: none;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .15);
  display: none;
  flex-direction: column;
  gap: 6px;
  white-space: nowrap;
  z-index: 1000;
}

/* サブメニュー内のリンク */
.header_sub-nav>li>a {
  font-size: 0.8em;
  color: #012B75;
  text-decoration: none;
  display: block;
  padding: 4px 0;
}


.header_sub-nav>li>a:hover {
  text-decoration: underline;
}

/*--- hamburger-menu ---*/
.sp-menu {
  display: none;

  @media screen and (max-width: 992px) {
    display: block;

  }
}

.sp-menu__box {
  position: relative;
  top: 50px;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  width: 60px;
  z-index: 90;
}


.sp-menu__box span,
.sp-menu__box span:before,
.sp-menu__box span:after {
    content: "";
    display: block;
    height: 4px;
    width: 35px;
    border-radius: 3px;
    background: var(--sub-color);
    position: absolute;
	transition: all 0.5s;
}

.sp-menu__box {
  & span {
    &:before {
      bottom: 8px;

    }

    &:after {
      top: 8px;

    }
  }
}

/* --- 修正後のコード --- */

.sp-menu__box {
  position: fixed;
  top: 50px;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  width: 60px;
  /* 数値を大幅に上げます。メニュー本体(80)より確実に大きく */
  z-index: 9999;
  cursor: pointer;
}

.sp-menu__content {
  position: fixed;
  top: 0;
  left: 100%;
  /* ボタン(9999)より低い数値にします */
  z-index: 1000;
  width: 50%;
  padding: 0;
  /* margin-top: 60px; を削除（全画面で表示するため） */
  margin-top: 0;
  height: 100vh;
  /* 縦いっぱいに広げる */
  background-color: var(--main-color);
  transition: all 0.5s;
}


#sp-menu__check {
  display: none;
}

#sp-menu__check:checked~.sp-menu__box span {
    background: rgba(255, 255, 255, 0);
}

#sp-menu__check:checked~.sp-menu__box span::before {
    bottom: 0;
    transform: rotate(45deg);
}

#sp-menu__check:checked~.sp-menu__box span::after {
    top: 0;
    transform: rotate(-45deg);
}

#sp-menu__check:checked~.sp-menu__content {
  left: 50%;

  @media screen and (max-width: 1200px) {
    display: block;
  }

  @media (max-width: 768px) {
    width: 100%;
    left: 0;
  }
}

.sp-menu__content {
  position: fixed;
  top: 0;
  left: 100%;
  z-index: 80;
  width: 50%;
  padding: 0;
  margin-top: 60px;
  background-color: var(--main-color);
  transition: all 0.5s;

  & .sp-menu_stand_out_link {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
    grid-template-columns: 1fr;

    & a {
      display: flex;
      border: 1px solid;
      background-color: rgb(33, 70, 135);
      padding: 10px 15px;
      font-size: 20px;
      color: #fff;
      align-items: center;
      gap: 10px;
    }

    & a.bottom-link {
      @media (max-width: 768px) {
        grid-column: 1 / -1;
      }
    }

    & i {
      display: block;
      width: 25px;
      height: 25px;
      --svg_color-04: var(--main-color);
    }

    & a i:last-child {
      margin-left: auto;
      /* 右寄せ */

    }

    a:hover {
      background-color: #fff;
      color: var(--main-color);

      & i {
        --svg_color-02: var(--main-color);
        --svg_color-04: #fff;
      }
    }
  }
}

.sp-header_wavy-line {
  height: 30px;
}

/* 初期状態 */
.sp-menu__header-img--default {
  display: block;
}

.sp-menu__header-img--open {
  display: none;

}

/* チェックされたとき */
#sp-menu__check:checked~.sp-menu__box .sp-menu__header-img--default {
  display: none;
}

#sp-menu__check:checked~.sp-menu__box .sp-menu__header-img--open {
  display: block;

}

.sp-menu__header {
  text-align: center;
  color: var(--main-color);
  font-size: 20px;
  background: #fff;
}

.sp-menu__links {
  background-color: var(--main-color);
  padding: 30px;
}

.sp-menu__item {
  list-style: none;
}

.sp-menu__list {
  padding: 0;
}

.sp-menu__link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-size: 20px;
  box-sizing: border-box;
  color: #ffffff;
  text-decoration: none;
  padding: 9px 15px 10px 0;

  & i {
    width: 25px;
    height: 25px;
  }
}

.sp-menu__link i:last-child {
  margin-left: auto;
  /* 右寄せ */
}

.sp-menu_puddles-background {
  display: block;
  width: 100%;
  height: 1px;
  /* 線の太さ */
  background-color: #c8c3b1;
  /* --puddle-color の代わりに直接指定 */
}


/* footer */
.site-footer {
  margin-top: 40px;
  background:
    /* linear-gradient(rgba(144,132,81,0.92), rgba(144,132,81,0.92)),*/
    url("images/footer_pattern.webp");
  color: #fff;
  background-size: contain;
  background-repeat: repeat;

  .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 20px 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
  }
  .footer-info {
    position: relative;
  }

  .footer-info h3,
  .footer-links h3 {
    margin: 0 0 16px;
    font-size: 14px;
    letter-spacing: 0.08em;
  }

  .footer-info p,
  .footer-links li,
  .footer-links a {
    font-size: 12px;
    font-weight: bold;
    line-height: 2;
    color: #EEE;
  }

  .footer-banner {
    max-width: 230px;
    position: absolute;
    right: -15px;
    bottom: -10px;
  }

  .footer-links ul {
    columns: 2;
    column-gap: 24px;
    list-style-type: square;
    margin-left: 15px;
  }
  .footer-info-content,.footer-links-content {
    margin-top: 20px;
  }

  .footer-map {
    display: flex;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 auto;
    height: 250px;
    /* 表示したい高さ */
    overflow: hidden;
    /* はみ出しを隠す */
  }

  .footer-iframe {
    width: 100%;
    height: 350px;
  }

  .footer-copy {
    text-align: center;
    font-size: 10px;
    padding: 12px 20px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  /* responsive */
  @media (max-width: 900px) {
    .global-nav {
      display: none;
    }

    /* メニュー */
    /* ボタンの中の画像サイズを直接指定 */
    .menu-toggle img {
      width: 24px;
      /* 好みのサイズ（20px〜30pxくらい）に調整してください */
      height: auto;
      /* 比率を維持 */
      display: block;
      /* 余計な隙間をなくす */
    }

    /* ボタン自体の余計なスタイルをリセット（背景や枠線を消す） */
    .menu-toggle {
      background: none;
      border: none;
      padding: 0;
      cursor: pointer;
      display: flex;
      align-items: center;
    }

    .fv__copy {
      right: 30px;
      bottom: 30px;
      max-width: 260px;
    }

    .feature-card,
    .feature-card--reverse,
    .footer-inner {
      grid-template-columns: 1fr;
    }

    .feature-card__image {
      order: -1;
    }

    .footer-links ul {
      columns: 1;
    }


  }

  @media (max-width: 600px) {
    .site-logo img {
      width: 170px;
    }

    .fv__image img {
      height: 220px;
    }

    .fv__copy {
      position: static;
      color: #3d3528;
      max-width: none;
      padding: 16px 0 0;
    }

    .feature-card__text {
      padding: 24px 20px;
    }


  }