@charset "utf-8";

@font-face {
  font-family: '851';
  /* フォント名 */
  src: url('/fonts/851.ttf') format('truetype');
  /* フォントファイルのパス */
}

@font-face {
  font-family: 'check';
  /* フォント名 */
  src: url('/fonts/check_point.ttf') format('truetype');
  /* フォントファイルのパス */
}


body {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  background-color: #f9f9f9;
}

/* ナビゲーション */

.site-title {
  font-family: 'check', sans-serif;
  font-size: 30px;
  font-weight: bold;
}

.navbar {
  background: linear-gradient(to right, white, #c1bebe);
  border: 10px solid;
  border-image: linear-gradient(to right, #ff3131, black) 1;
}

.navbar-brand,
.nav-link {
  color: black;
  font-weight: bold;
}

.navbar-nav .nav-link {
  display: inline-block;
  /* インラインブロック要素にする */
  padding: 10px 20px;
  /* パディングを追加 */
  margin: 0 5px;
  /* マージンを追加 */
  border: 2px solid #c60000;
  /* 枠線を追加 */
  color: #000000;
  /* 文字色を変更 */
  background-color: transparent;
  /* 背景色を透明にする */
  transition: all 0.3s ease;
  /* ホバー時の滑らかな変化 */
}

.navbar-nav .nav-link:hover {
  background-color: #fff700;
  /* ホバー時の背景色 */
  color: rgb(0, 0, 0);
  /* ホバー時の文字色 */
}


/* 共通設定 */
.section {
  padding: 80px 0;
}

h1,
h2,
h3 {
  color: #8B4513;
}

.btn-primary {
  background-color: #8B4513;
  border-color: #8B4513;
}

.btn-primary:hover {
  background-color: #704214;
  border-color: #704214;
}




/* セクション１------------------------------------------------------------------------------------------------------------ */
.section1 {
  height: 100vh;
  max-width: 100% !important;
  background-image: url("/images/bg-section1.png");
  background-size: cover;
  background-position: center;
}

/* Cockroach Styles */
.cockroach-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

.cockroach {
  position: absolute;
  width: 40px;
  height: 40px;
  transition: transform 0.1s linear;
  will-change: transform;
  /* 初期表示を確実に */
  display: block;
  transform: translate(50%, 50%);
}

.cockroach.scurrying {
  animation: scurry 0.1s infinite alternate;
}

@keyframes scurry {
  0% {
    transform: translate(var(--x), var(--y)) rotate(var(--rotation)) translateY(-1px);
  }

  100% {
    transform: translate(var(--x), var(--y)) rotate(var(--rotation)) translateY(1px);
  }
}

/* カーソルが近づいたときの逃げるアニメーション */
.cockroach.fleeing {
  transition: transform 0.5s ease-out;
}

.section-fake1 .row-1 {
  min-height: 100vh;
}

.guy-image {
  flex: 1;
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: end;
  align-items: end;
}

.guy-image img {
  height: 80%;
  object-fit: contain;
}

.row-2 {
  display: flex;
  align-items: end;
  text-align: center;
}

.hero-title {
  margin-top: 130px;
  height: 50%;
}

.hero-content h1 {
  font-family: '851', sans-serif;
  text-shadow: -1px -1px 0 white, 1px -1px 0 white, -1px 1px 0 white, 3px 3px 0 white;
  color: black;
  font-size: 90px;
}

/* 右側サブテキスト */
.sub-text {
  margin-top: 30px;
}

/* 上側 */
.top-cover,
.bottom-cover {
  margin: 5px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}


.section1-pest {
  width: 80px;
  height: 70px;
  padding: 0 5px;
}

.hexagon {
  font-family: 'check', sans-serif;
  font-size: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0 10px;
  width: 400px;
  height: 60px;
  color: white;
  text-align: center;
  background-color: black;
  clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
}

.free {
  color: red;
}


/* 問合せボタン */
.cta-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding-top: 50px;
}

.button-wrapper {
  position: relative;
  width: 500px;
  height: 100px;
  perspective: 800px;
}

.button-3d {
  z-index: 9;
  position: absolute;
  width: 100%;
  height: 100%;
  display: block;
  text-decoration: none;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.button-3d:hover {
  transform: translateY(-5px) rotateX(20deg);
}

.front-face {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #2196F3, #00BCD4);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.main-text {
  color: white;
  font-size: 40px;
  font-family: 'check', sans-serif;
  z-index: 2;
  position: relative;
}

.kotira {
  color: #FFEB3B;
  position: relative;
  display: inline-block;
}

.accent-line {
  position: absolute;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.66),
      transparent);
  top: 0;
  left: -100%;
  animation: shine 2s infinite;
}

.button-shadow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0.2;
  z-index: 8;
  border-radius: 8px;
  transform: translateY(8px);
  filter: blur(4px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.button-3d:hover+.button-shadow {
  transform: translateY(12px);
  opacity: 0.3;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) skewX(-15deg);
  }

  50%,
  100% {
    transform: translateX(100%) skewX(-15deg);
  }
}

.modal-body h2 {
  color: black;
}

/* Media Query for Mobile */
@media (max-width: 768px) {

  .button-wrapper,
  .button-3d,
  .button-shadow {
    width: 90%;
    min-width: 280px;
  }

  .front-face {
    gap: 12px;
    flex-direction: column;
  }

  .main-text {
    font-size: 24px;
  }

  .phone-number {
    font-size: 16px;
    padding-left: 0;
  }

  .phone-number::before {
    display: none;
  }
}

/* セクション2----------------------------------------------------------------------------------------------------------------- */

.section-2 {
  height: 100vh;
  max-width: 100% !important;
  background-image: url("/images/bg-section3.png");
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.benefits-title {
  font-size: 3.5rem;
  text-align: center;
  font-family: 'check', sans-serif;
  color: white;
  text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 4px 4px 0 black;
  margin-bottom: 60px;
  position: relative;
}

.benefits-title::after {
  content: '';
  display: block;
  width: 400px;
  height: 3px;
  background: yellow;
  margin: 20px auto;
}

.benefit-box {
  background-color: white;
  background-size: cover;
  box-shadow: 0 0 0, 0 0 0, 0 0 0, 7px 10px 0 black;
  border-radius: 20px;
  padding: 40px 30px;
  margin-bottom: 30px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  max-height: 500px;

  /* 全てのボックスで統一された高さを確保 */
}

.benefit-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
  width: 100px;
  height: 100px;
  background: #f0e6d2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  position: relative;
  transition: transform 0.3s ease;
}

.benefit-box:hover .benefit-icon {
  transform: scale(1.1);
}

.benefit-icon img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.benefit-number {
  position: absolute;
  font-family: 'check', sans-serif;
  top: 20px;
  left: 20px;
  font-size: 3rem;
  font-weight: bold;
  color: rgb(221, 221, 221);
  text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 4px 4px 0 black;
  line-height: 1;
}

.benefit-title {
  color: rgb(255, 255, 0);
  text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 3px 3px 0 black;
  font-size: 1.8rem;
  font-family: 'check', sans-serif;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.benefit-description {
  color: #666;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  min-height: 80px;
  /* 説明文の最小高さを確保 */
}

.benefit-details {
  background: yellow;
  opacity: 0.8;
  box-shadow: 0 0 0, 0 0 0, 0 0 0, 5px 5px 0 black;
  border-radius: 10px;
  padding: 15px;
  margin-top: auto;
}

.detail-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: black;
  font-weight: bold;
}

.detail-item:last-child {
  margin-bottom: 0;
}


/* セクション3-----------------------------------------------------------------------------------------------------------------------*/


.section-3 {
  height: 95vh;
  max-width: 100% !important;
  background-image: url("/images/bg-section2.png");
  background-size: cover;
  background-position: center;
}

.sec2-container-cover {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.header-container {
  margin-top: 80px;
  border-radius: 8px;
  background-color: white;
  box-shadow: 0 0 0 rgb(202, 11, 11), 0 0 0 rgb(202, 11, 11), 0 0 0 rgb(202, 11, 11), 20px 10px 0 rgb(255, 61, 61);
  width: auto;
  padding: 20px;
}

.main-header {
  font-family: 'check', sans-serif;
  color: black;
  text-shadow: -1px -1px 0 rgb(218, 218, 0), 1px -1px 0 rgb(218, 218, 0), -1px 1px 0 rgb(218, 218, 0), 3px 3px 0 rgb(218, 218, 0);
  padding: 0.5rem 2rem;
  position: relative;
  font-size: 3rem;
}

.tuyomi-cover {
  margin: 30px 0;
}

.tuyomi {
  margin: 20px;
  display: flex;
  justify-content: center;
  text-align: center;
  color: black;
  font-family: '851', sans-serif;
  font-size: 2.5rem;
}

.emphasis-text {
  font-style: italic;
  text-align: center;
  margin: 1.5rem 0;
  font-size: 1.1rem;
}

.features-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  gap: 2rem;
}

.feature-card {
  background-color: white;
  border-radius: 10px;
  padding: 2rem 2rem;
  position: relative;
  box-shadow: 7px 7px 0 rgba(61, 61, 61, 0.568);
  width: auto;
  display: flex;
  align-items: center;
}

.feature-card::before,
.feature-card::after {
  content: "📌";
  position: absolute;
  top: 0.5rem;
}

.feature-card::before {
  left: 0.5rem;
}

.feature-card::after {
  right: 0.5rem;
}

.feature-text {
  padding-top: 10px;
  text-shadow: 4px 4px 0 rgba(242, 238, 0, 0.741);
  text-align: center;
  font-family: 'check', sans-serif;
  font-size: 1.8rem;
  flex-grow: 1;
}

@media (max-width: 768px) {
  .features-container {
    flex-direction: column;
    align-items: center;
  }

  .feature-card {
    width: 90%;
  }
}

/* セクション4-----------------------------------------------------------------------------------------------------------------------*/
.section-4 {
  height: 100vh;
  max-width: 100% !important;
  background-image: url("/images/bg-section3.png");
  background-size: cover;
  background-position: center;
}

.types-title {
  text-align: center;
  font-family: 'check', sans-serif;
  color: black;
  font-size: 40px;
  text-shadow: -1px -1px 0 white, 1px -1px 0 white, -1px 1px 0 white, 4px 4px 0 white;
  margin-bottom: 30px;
  position: relative;
}

.types-title::after {
  content: '';
  display: block;
  width: 120px;
  height: 3px;
  background: black;
  margin: 20px auto;
}

.pest-card {
  background: rgba(255, 255, 255);
  border-radius: 15px;
  padding: 30px;
  margin: 15px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pest-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.pest-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: red;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.pest-card:hover::before {
  transform: scaleX(1);
}

.pest-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  overflow: hidden;
}

.pest-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.pest-title {
  font-family: 'check', sans-serif;
  color: black;
  font-size: 1.7rem;
  margin-bottom: 15px;
  text-align: center;
}

.pest-description {
  color: #666;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 0;
}


/* セクション5---------------------------------------------------------------------------------------------------------------------- */
.section-5 {
  background-color: #f5f5f5;
}

.contact-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-icon {
  width: 90px;
  height: 90px;
}

.form-title {
  color: #2c3e50;
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.form-subtitle {
  color: #666;
  font-size: 1.1rem;
}

.form-container {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-grid {
  display: grid;
  gap: 40px;
}

.form-section {
  border-radius: 10px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e1e1e1;
}

.section-title {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.section-number {
  width: 30px;
  height: 30px;
  background: #8c8c8c;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-size: 0.9rem;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: #2c3e50;
  font-weight: 500;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e1e1e1;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: rgb(167, 167, 0);
  outline: none;
}

.pest-select-wrapper {
  position: relative;
}

.pest-select-wrapper::after {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgb(167, 167, 0);
  pointer-events: none;
}

.date-grid {
  display: grid;
  gap: 15px;
}

.form-actions {
  margin-top: 40px;
  text-align: center;
}

.required {
  color: red;
  font-size: 0.8em;
  margin-left: 5px;
}

.address-search:hover {
  background-color: rgb(0, 147, 206);
  color: white;
}

.address-search {
  background-color: rgb(0, 68, 255);
  color: white;
}


.submit-button {
  background: linear-gradient(to right, white, #c1bebe);
  color: black;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: bold;
  border: 10px solid;
  border-image: linear-gradient(to right, #ff3131, rgb(255, 230, 0)) 1;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.submit-button:hover {
  background: linear-gradient(to left, white, #c1bebe);
  color: black;
  transform: translateY(-2px);
}

.button-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.submit-button:hover .button-icon {
  transform: translateX(5px);
}

.error-message {
  color: red;
  font-size: 14px;
  margin-top: 5px;
}


.last-submit-btn-cover {
  display: flex;
  justify-content: center;
  align-items: center;
}

.last-submit-btn {
  color: white;
  background-color: #2196F3;
}

.last-submit-btn:hover {
  color: white;
  background-color: #004e8d;
}


/* footer---------------------------------------------------------------------------------------------------------------------- */

.site-footer {
  background: linear-gradient(to right, white, #c1bebe);
  color: black;
  padding: 40px 0;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-title {
  font-family: 'check', sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 10px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
}

.footer-nav a {
  color: black;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: red;
}

.privacy-policy {
  font-weight: bold;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #d9c4b6;
  padding-top: 20px;
}

/* モバイル向けの共通スタイル */
@media (max-width: 768px) {

  /* 全体の調整 */
  .section {
    padding: 40px 0;
    min-height: 100vh;
    height: auto;
    margin-top: none;
  }

  /* ナビゲーション */
  .navbar-nav .nav-link {
    margin: 5px 0;
    width: 100%;
    text-align: center;
  }

  /* セクション1 */

  .section1 {
    margin-top: 5rem;
    height: auto;
    min-height: 100vh;
  }

  .section1 .row-1 {
    flex-direction: column-reverse;
  }

  .guy-image {
    height: 10vh;
    margin-top: 20px;
  }

  .guy-image img {
    height: 20px;
  }

  .hero-content h1 {
    font-size: 70px;
    margin-top: 60px;
  }

  .section1-left,
  .section1-right {
    width: 100%;
  }

  .hexagon {
    width: 100%;
    height: 50px;
    font-size: 20px;
    margin: 5px 0;
  }

  .section1-pest {
    width: 50px;
    height: 40px;
  }

  .top-cover,
  .bottom-cover {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  /* セクション2 */
  .section-2 {
    height: auto;
    min-height: 100vh;
    padding: 40px 0;
  }

  .benefits-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .benefits-title::after {
    width: 200px;
  }

  .benefit-box {
    margin-bottom: 20px;
    padding: 20px 15px;
  }

  .benefit-title {
    font-size: 1.4rem;
  }

  .benefit-number {
    font-size: 2rem;
  }

  /* セクション3 */
  .section-3 {
    height: auto;
    min-height: 100vh;
    padding: 40px 0;
  }

  .haeder-container {
    width: 80%;
  }


  .main-header {
    font-size: 24px;
    padding: 0.5rem 1rem;
  }

  .tuyomi {
    font-size: 1.2rem;
    margin: 10px;
  }

  .feature-card {
    margin: 10px 0;
    width: 100%;
  }

  .feature-text {
    font-size: 1.4rem;
  }

  /* セクション4 */
  .section-4 {
    height: auto;
    min-height: 100vh;
    padding: 40px 0;
  }

  .types-title {
    font-size: 28px;
  }

  .pest-card {
    margin: 10px 0;
  }

  .pest-title {
    font-size: 1.4rem;
  }

  /* セクション5（フォーム） */
  .section-5 {
    padding: 40px 0;
  }

  .form-title {
    font-size: 2rem;
  }

  .form-container {
    padding: 20px;
  }

  .form-section {
    padding: 15px;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .input-group {
    margin-bottom: 15px;
  }

  .submit-button {
    width: 100%;
    padding: 12px 20px;
  }

  /* フッター */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-nav ul {
    flex-direction: column;
    gap: 10px;
  }

  /* ボタンのレスポンシブ対応 */
  .button-wrapper {
    width: 100%;
    max-width: 300px;
  }

  .button-3d,
  .front-face {
    width: 100%;
  }

  .main-text {
    font-size: 24px;
  }
}

/* タブレット向けの調整 */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-content h1 {
    font-size: 60px;
  }

  .hexagon {
    width: 320px;
  }

  .benefits-title {
    font-size: 32px;
  }

  .main-header {
    font-size: 28px;
  }

  .tuyomi {
    font-size: 1.8rem;
  }
}