* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
}

/* ヘッダー */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFF;
  padding: 0 1em;
  color: #333333; 
  position: relative;
  height: 80px;
}

@media (max-width: 768px) {
  header {
    height: 60px;
  }
}

.logo img {
  height: 40px;
  margin-left: 100px;
}

@media (max-width: 768px) {
  .logo img {
    height: 30px;
    margin-left: 15px;
  }
}

/* PCナビゲーション */
.nav-pc {
  margin-right: 80px;
}

.nav-pc a {  
  color: #333333;
  margin-right: 30px;
  margin-left: 1.5em;
  text-decoration: none;
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
  font-size: 16px;
}


/* ハンバーガーアイコン */
.hamburger {
  position: absolute;
  top: 50%;
  right: 10px; 
  transform: translate(-50%, -50%);
  z-index: 2000;
  cursor: pointer;  display: none; 
}

.hamburger img {
  width: 30px;
  height: auto;
}


/* SPナビゲーション（1つに統合） */
.nav-sp {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin-top: 60px;
  background: rgba(133,101,66,0.98);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* メニュー表示時にスクロール禁止にする */
.no-scroll {
  overflow: hidden;
  height: 100vh;
}

.nav-sp.active {
  display: flex; 
  justify-content: flex-start;
  padding-top: 50px;
}

.nav-sp a {
  color: white;
  text-decoration: none;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 24px;
  margin: 1rem 0;
}

.cta-button {
  display: block;
  text-align: center;
  margin-top: 2rem;
}

.cta-button img {
  width: 90%;
  height: auto;
  display: inline-block;
  cursor: pointer;
}

/* SPのみ表示 */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
}


/* メインビジュアル */
.slideshow_pc {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  height: auto;
}

.slideshow_sp {
  display: none;
}

.slide-container {
  display: flex;
  transition: transform 0.5s ease;
  width: 300%;
}

.slide-container img {
  width: 33.3333%;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}


/* ガイダンスセクション */
.guidance-section {
  width: 100%;
  position: relative;  
  margin-top: -50px;
  z-index: 100;
}

.guidance-bg {
  width: 100%;
  height: auto;
  display: block;      
  z-index: 3;
}

.guidance-bg_sp {
  width: 100%;
  height: auto;
  display: none;      
  z-index: 3;
}

.line_button {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: auto;
  z-index: 101;
  cursor: pointer;
  display: block;
}

/* hover時に別画像を表示 */
.line_button:hover {
  content: url("images/cta_button_hover.png"); /* hover用画像に差し替え */
}

.line_button_sp {
  display: none;
}

.center-image_pc {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
  height: auto;
  pointer-events: none;
  z-index: 4;
}

.center-image_sp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
  height: auto;
  pointer-events: none;
  z-index: 4;
}

/* アバウトセクション */
.about-section {
  text-align: center;
  padding: 100px 20px;
}

.about-section img {
  max-width: 100%;
  height: auto;
}

/* 特徴セクション */
.point-section {
  text-align: center;
}

.point-section img {
  width: 100%;
  height: auto;
}

/* 流れセクション */
.flow-section {
  text-align: center;
  padding: 100px 20px;
}

.flow-section img {
  max-width: 90%;
  height: auto;
  margin: 0 auto;
}

.flow-section .sp-only {
  margin-bottom: 20px;
}

/* 比較セクション */
.difference-section {
  text-align: center;
}

.difference-section img {
  width: 100%;
  height: auto;
}

/* 下部画像セクション */
.image-section {
  display: flex;
  justify-content: center;
  gap: 1em;
  padding: 2em;
}

.image-section img {
  width: 30%;
  height: auto;
}

/* フッター */
footer {
  background: #856542;
  text-align: center;
  padding: 1em;
  height: 150px;
  color: #fff;
}

.footer-links {
  margin-top: 45px;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0.5em;
  font-family: 'Inria Sans', sans-serif;
  font-weight: 700;
  font-size: 24px;
}

footer a {
  text-decoration: none;
  color: #fff;
  padding: 0 0.5em;
}

footer .divider {
  color: #fff;
  font-size: 1em;
}

/* 追従アイコン */
.floating-icon {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  width: 200px;
  height: 200px;
  overflow: hidden;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 通常の影 */
  transition: box-shadow 0.3s ease;
}

.floating-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%; /* 丸く保つために画像にも適用 */
}

.floating-icon:hover {
  box-shadow: 0px 0px 24px rgba(66, 133, 85, 0.9); /* hover時に強調 */
}



/* レスポンシブ対応 */
.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

.center-image_pc {
  display: block;
}

.center-image_sp {
  display: none;
}


@media (max-width: 768px) {
  .nav-pc {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-sp {
    display: none;
  }

  .nav-sp.active {
    display: flex;
  }

  .slide-container {
    display: none;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  .slideshow_pc {
    display: none;
  }
  
  .slideshow_sp {
    z-index: 1;
    max-width: 100%;
    height: auto;
    display: block;
  }

  .slideshow_sp img{
    z-index: 1;
    max-width: 100%;
    height: auto;
    display: block;
  }

  .guidance-bg {
    width: 100%;
    height: auto;
    display: none;      
    z-index: 3;
  }

  .guidance-bg_sp {
    width: 100%;
    height: auto;
    display: block;      
    z-index: 3;
  }

  .center-image_pc {
    display: none;
  }
  
  .center-image_sp {
    display: block;
  }

  .line_button {
    display: none;
  }
  
  .line_button_sp {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: auto;
    z-index: 101;
    cursor: pointer;
    display: block;
  }

  .image-section {
    flex-direction: column;
    align-items: center;
  }

  .image-section img {
    width: 90%;
    margin-bottom: 1em;
  }

  .footer-links {    
    flex-wrap: nowrap;
    overflow-x: auto;  
    font-size: 16px;
  }


  .floating-icon {
    display: none;
  }
}
