@charset 'UTF-8';

/* リセットCSS */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  color: #000;
  font-family: "Helvetica Neue", "Helvetica", Arial, "Noto Sans JP", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "游ゴシック体", "Yu Gothic", YuGothic, "メイリオ", Meiryo, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background-color: #fff;
  color: #333;
  text-align: left;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

li {
  list-style: none;
}

:target::before {
  content: "";
  display: block;
  height: 118px;
  /* 固定ヘッダーの高さに合わせる */
  margin-top: -118px;
  /* 同じ高さをマイナスで設定 */
  visibility: hidden;
}

.scroll-anchor {
  scroll-margin-top: 118px;
  /* 固定ヘッダーの高さ分 */
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Black with 50% opacity */
  z-index: 1001;
  /* Should be below the menu but above the content */
  display: none;
  transition: opacity 0.3s ease;
}

#overlay.open {
  display: block;
}


header {
  background-color: #fff;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #e0e0e0;
}

header .logo img {
  width: 240px;
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
}

nav li {
  margin-left: 30px;
}

nav a {
  color: #333;
  transition: color 0.3s;
}

nav a:hover {
  color: #387786;
}

/* ドロワーメニューのスタイル */
.menu-toggle {
  display: none;
  position: fixed;
  top: 30px;
  right: 20px;
  z-index: 1003;
}

.menu-toggle-box {
  position: relative;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.menu-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #333;
  transition: all 0.3s ease;
}

.menu-line:nth-child(1) {
  top: 0;
}

.menu-line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.menu-line:nth-child(3) {
  bottom: 0;
}

.menu-toggle.open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.open .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* Drawer Menu Slide-In */
.drawer-menu {
  display: block;
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100%;
  background-color: #fff;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1002;
}

.drawer-menu.open {
  transform: translateX(0);
  right: 0;
}

.drawer-menu ul {
  flex-direction: column;
  gap: 30px;
  padding-top: 70px;
}

.main-visual {
  position: relative;
  width: 100%;
  height: 0;
  background-image: url('../img/main-visual.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  margin-bottom: 150px;
  padding-top: 66.66%;
}

.main-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.main-visual h1 {
  font-size: 2.625rem;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.main-visual h1 span {
  display: block;
}

.main-visual ul {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 30px;
}

.main-visual ul li {
  font-size: 1.125rem;
  z-index: 1;
  background: #f60;
  padding: 10px 20px;
  border-radius: 50px;
}

.btn-primary {
  max-width: 480px;
  margin: 0 auto;
}

.btn-primary a {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #ff7e29, #ff9d00);
  /* Orange gradient */
  color: #fff;
  height: 80px;
  border-radius: 50px;
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  margin-top: 20px;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  /* Subtle shadow */
}

.btn-primary a:hover {
  background: linear-gradient(135deg, #ff5e00, #ff8c00);
  /* Darker orange on hover */
  transform: translateY(-2px);
  /* Lift effect */
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
  /* Enhanced shadow on hover */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page {
  h1 {
    color: #387786;
    font-size: 24px;
    text-align: center;
    margin: 50px 0;
  }
}

section {
  margin-bottom: 200px;
}

section h2 {
  font-size: 2rem;
  color: #387786;
  margin-bottom: 50px;
  text-align: center;
  font-weight: 700;
}

.grid-item{
  display: grid;
  gap: 40px;
}
.grid-item.col4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-item.col3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-item img {
  width: 100%;
}
.grid-item h4 {
  color: #387786;
  font-weight: 700;
}
.caution h2 {
  font-size: 1.375rem;
  margin-bottom: 30px;
  text-align: center;
  color: #000;
  font-weight: normal;
}

/*.caution h2 .break {
  display: block;
}*/

.caution h2 .bold {
  color: #f00;
  font-size: 2.4rem;
  font-weight: 700;
}

.caution h3 {
  background: #387786;
  padding: 10px;
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 20px;
  font-weight: 700;
  color: #fff;
}

/* シグネチャセクション */
.caution-list {
  text-align: center;
  margin-bottom: 50px;
}

.caution-list li {
  font-size: 1.25rem;
  font-weight: 700;
  padding-bottom: 10px;
}

.caution li img {
  width: 100%;
}

.caution-txt {
  font-size: 1.125rem;
  margin-bottom: 50px;
}

/* 当社が選ばれる理由 */
.feature-list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.feature-item {
  flex: 1 1 calc(33.333% - 20px);
  background-color: #fff;
  padding: 30px 20px;
  border-radius: 10px;
}

.feature-item h3 {
  font-size: 1.375rem;
  margin-bottom: 15px;
  color: #387786;
  text-align: center;
  font-weight: 700;
}

/* 施工方法 */

.methods-lead {
  margin-bottom: 50px;
}

.methods-lead-h3 {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  color: #387786;
  margin-bottom: 30px;
}

.methods .method-item {
  margin-bottom: 100px;
}

.methods .method-item h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  background: #387786;
  font-weight: 700;
  padding: 10px;
  border-radius: 5px;
  color: #fff;
}


.methods .method-text {
  margin-bottom: 30px;
}
/* ベイト工法のおすすめリスト */
.methods .method-text ul {
  list-style: disc;
  margin-left: 20px;
}

.methods .method-text ul li {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

.recommendation-box {
  margin-bottom: 100px;
}

.recommendation-content {
  max-width: 800px;
  margin: 0 auto;
  border: 2px solid #387786;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
}

.recommendation-image {
  max-width: 800px;
  margin: 0 auto 80px;
}

.recommendation-image img {
  max-width: 100%;
}

.recommendation-text h4 {
  font-size: 1.8rem;
  color: #387786;
  margin-bottom: 20px;
}

.recommendation-text ul li {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

.features,
.process,
.faq {
  background: #387786;
  padding: 80px 0;
}


.features h2,
.process h2,
.faq h2 {
  color: #fff;
}

/* ご依頼の流れ */
.process ol {
  counter-reset: step;
}

.process .container {
  max-width: 800px;
  margin: 0 auto;
}

.process li {
  counter-increment: step;
  background-color: #fff;
  padding: 40px 30px;
  margin-bottom: 30px;
  border-radius: 10px;
  transition: transform 0.3s;
}

.process h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: #333;
  font-weight: 700;
  display: flex;
}

.process h3 span {
  color: #387786;
  padding-right: 10px;
}

/* お客様の声 */
.works-contents {
  max-width: 800px;
  margin: 0 auto;
}
.works h3 {
  font-weight: 700;
  font-size: 1.5rem;
  border-bottom: 2px solid #387786;
  padding-bottom: 10px;
  margin-top: 2.5rem;
  text-align: center;
}

.works h4 {
  font-weight: 700;
  font-size: 1.125rem;
  color: #387786;
  margin-top: 1.875rem;
  margin-bottom: 0.625rem;
}

.works ul {
  list-style-type: none;
  padding-left: 0;
}

.works li {
  margin-bottom: 1.25rem;
}

.works p {
  margin: 0;
  font-size: 1rem;
}

/* お問い合わせ */
.contact {
  text-align: center;
  background-color: #387786;
  color: #fff;
  padding: 80px 20px;
  border-radius: 10px;
}

.contact h2 {
  color: #fff;
  margin-bottom: 30px;
}

.contact p {
  font-size: 1.25rem;
  margin-bottom: 40px;
}

.contact a {
  display: inline-block;
  background-color: #fff;
  color: #387786;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 1.25rem;
  font-weight: 700;
  transition: background-color 0.3s;
}

.contact a:hover {
  background-color: #e0e0e0;
}

/* 会社概要・FAQ */
.company-info,
.faq-content {
  background-color: #f9f9f9;
  padding: 40px;
  border-radius: 10px;
  max-width: 900px;
  margin: 0 auto 100px;
}

.faq-content {
  margin: 0 auto;
}

.company-info dl {
  display: flex;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.company-info .company-row {
  width: 50%;
  display: flex;
  padding: 10px 0;
}

.company-info dt {
  width: 30%;
  font-weight: 700;
  padding: 20px;
}

.company-info dd {
  width: 70%;
  line-height: 1.8;
  margin: 0;
  padding: 20px;
}

.faq-content dt {
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.125rem;
  color: #387786;
}

.faq-content dd {
  padding-bottom: 20px;
  margin-bottom: 30px;
  border-bottom: solid 1px #ccc;
}

/* お問い合わせフォーム */
.contact-form {
  background-color: #f1f7f9;
  /* フォーム全体の背景色を設定 */
  padding: 60px 40px;
  border-radius: 10px;
  margin-top: 50px;
}

/* メインタイトル（h2）のスタイル */
.contact-form h2 {
  font-size: 2.2rem;
  color: #387786;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
}

/* サブタイトル（h3）のスタイル */
.contact-form h3 {
  font-size: 1.8rem;
  color: #387786;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 700;
}

.contact-form-txt {
  text-align: center;
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-form-txt p:first-child {
  margin-bottom: 20px;
}

.telphone span {
  display: block;
  font-size: 1.875rem;
  color: #f60;
  font-weight: 700;
}

.contact-form .required {
  color: #f00;
}

/* フォーム要素のスタイル */
.form-content {
  max-width: 800px;
  margin: 0 auto;
}

.form-content .form-note {
  margin-bottom: 20px;
}

.form-content label {
  display: block;
  margin-bottom: 5px;
  font-weight: 700;
}

.form-content input,
.form-content textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.form-content textarea {
  height: 150px;
  resize: vertical;
}

.form-content button {
  display: block;
  max-width: 400px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  height: 80px;
  background: linear-gradient(135deg, #ff7e29, #ff9d00);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.form-content button:hover {
  background: linear-gradient(135deg, #ff5e00, #ff8c00);
  /* Darker orange on hover */
  transform: translateY(-2px);
  /* Lift effect */
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
  /* Enhanced shadow on hover */
}

/* フッター */
footer {
  text-align: center;
  padding: 40px 20px;
  background-color: #f9f9f9;
  color: #666;
  margin-top: 80px;
}

footer p {
  font-size: 0.9rem;
}

.fixed-contact-button {
  display: none;
  /* Hide by default */
}

/* メディアクエリ */
@media screen and (max-width: 1024px) {
  header {
    padding: 15px;
  }

  header .logo img {
    width: 200px;
  }

  /* ハンバーガーメニューを表示 */
  .menu-toggle {
    display: block;
  }

  /* 通常のナビゲーションを非表示 */
  nav {
    display: none;
  }
  .grid-item.col3,
  .grid-item.col4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media screen and (max-width: 768px) {
  :target::before {
    height: 96px;
    /* 固定ヘッダーの高さに合わせる */
    margin-top: -96px;
    /* 同じ高さをマイナスで設定 */
  }

  .scroll-anchor {
    scroll-margin-top: 96px;
    /* 固定ヘッダーの高さ分 */
  }

  section {
    margin-bottom: 100px;
  }

  .main-visual {
    padding-top: 100%;
  }

  .main-visual h1 {
    font-size: 2.25rem;
  }

  .main-visual p {
    font-size: 1.125rem;
  }

  .main-visual ul {
    flex-direction: column;
    gap: 10px;
  }

  .main-visual ul li {
    font-size: 1rem;
    background: #f60;
    padding: 5px 20px;
  }

  .container {
    padding: 0 20px;
  }

  section h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }
  .methods-lead-h3 {
    font-size: 1.25rem;
  }
  .contact {
    padding: 60px 20px;
  }

  .contact h2 {
    font-size: 2rem;
  }

  nav ul {
    align-items: center;
  }

  nav li {
    margin: 0 15px;
  }

  header {
    align-items: center;
  }

  .caution ul {
    flex-direction: column;
  }

  .caution li img {
    max-width: 320px;
  }

  .company-info .company-row {
    width: 100%;
  }

  .company-info dt,
  .company-info dd {
    width: 100%;
  }

  .company-info dt {
    padding: 10px 0 5px;
  }

  .company-info dd {
    padding: 0 0 10px;
  }

  .recommendation-text {
    padding-left: 0;
    margin-top: 20px;
  }

  .process li {
    padding: 20px;
  }

  .process h3 {
    font-size: 1.25rem;
  }

  /* レスポンシブ時のスタイル調整 */
  .feature-list {
    flex-direction: column;
    align-items: center;
  }

  .feature-item {
    width: 100%;
    margin-bottom: 20px;
  }

  .methods .method-item,
  .methods .method-item:nth-child(even),
  .features .feature-item {
    flex-direction: column;
  }

  .features .feature-text,
  .features .feature-item img,
  .methods .method-text,
  .methods .method-item img {
    width: 100%;
    padding: 0;
  }

  .features .feature-text,
  .methods .method-text {
    margin-top: 20px;
  }

  .fixed-contact-button {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #387786;
    /* Button background color */
    padding: 10px 20px;
    text-align: center;
    z-index: 1000;
  }

  .fixed-contact-button .btn-primary {
    width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ff7e29, #ff9d00);
    /* Orange gradient */
    color: #fff;
    height: 60px;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 700;

  }

  .fixed-contact-button .btn-primary:hover {
    ;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
    background: linear-gradient(135deg, #ff5e00, #ff8c00);
    /* Darker orange on hover */
    transform: translateY(-2px);
    /* Lift effect */
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
    /* Enhanced shadow on hover */
  }

  .methods .method-item h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
  }

  .methods .method-text p {
    line-height: 1.6;
  }

  .recommendation-text h4 {
    font-size: 1.25rem;
  }

  .recommendation-text ul li {
    line-height: 1.6;
  }

  .process {
    padding: 50px 0;
  }

  .company-info,
  .faq-content {
    padding: 30px 20px;
  }

  .company-info h2 {
    font-size: 1.6rem;
  }

  .contact-form {
    padding: 30px 20px;
  }

  .contact-form h2 {
    font-size: 1.8rem;
    padding: 15px;
  }

  .contact-form h3 {
    font-size: 1.6rem;
    margin-top: 30px;
  }

  .contact-form button {
    font-size: 1.125rem;
    padding: 12px;
  }

  footer {
    margin-bottom: 80px;
  }
}

#privacy {

  h2 {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: left;
    border-left: solid 10px #387786;
    padding: 10px 0 10px 20px;

  }

  .privacy {
    margin-bottom: 40px;
  }

  ul {
    margin-left: 20px;
  }

  li {
    margin-bottom: 5px;
  }

  .privacy-note {
    margin-bottom: 30px;
  }

  /* タブレットやモバイル向けの調整 */
  @media (max-width: 768px) {
    h1 {
      font-size: 22px;
    }

    h2 {
      font-size: 18px;
    }

    p,
    ul {
      font-size: 16px;
    }
  }

  /* スマートフォン向けの調整 */
  @media (max-width: 480px) {
    h1 {
      font-size: 20px;
    }

    h2 {
      font-size: 16px;
    }

    p,
    ul {
      font-size: 14px;
    }
  }

}

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

  :target::before {
    height: 86px;
    /* 固定ヘッダーの高さに合わせる */
    margin-top: -86px;
    /* 同じ高さをマイナスで設定 */
  }

  .scroll-anchor {
    scroll-margin-top: 86px;
    /* 固定ヘッダーの高さ分 */
  }
  .grid-item.col4 {
    grid-template-columns: 1fr;
  }
  .grid-item.col3 {
    grid-template-columns: 1fr;
  }
  header {
    padding: 10px;
  }

  .main-visual {
    margin-bottom: 50px;
  }

  .main-visual h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .caution h2 {
    font-size: 1.125rem;
  }

  .caution h2 span.bold {
    font-size: 1.875rem;
  }

  .caution h3 {
    padding: 8px;
    font-size: 1.125rem;
  }

  .btn-primary a {
    height: 60px;
    font-size: 1.125rem;
  }

  .recommendation-text ul li {
    font-size: 1rem;
  }

  .recommendation-content {
    padding: 20px;
  }

  .methods .method-item {
    margin-bottom: 50px;
  }

  .features,
  .process,
  .faq {
    padding: 50px 0;
  }

  .faq-content dt {
    margin-bottom: 10px;
  }

  .feature-item h3 {
    font-size: 1.125rem;
  }

  .process li {
    padding: 30px 20px;
  }

  .process h3 {
    font-size: 1.25rem;
  }

  .contact-form h2 {
    font-size: 1.5rem;
    padding: 10px;
  }

  .contact-form h3 {
    font-size: 1.375rem;
  }

  .form-content label {
    font-size: 0.9rem;
  }

  .form-content input,
  .form-content textarea {
    font-size: 0.9rem;
  }

  .form-content button {
    padding: 10px;
  }
}