/* 全体のスタイル */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ヘッダー */
header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1001;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.logo img {
  height: 60px;
  width: auto;
}

/* デスクトップナビゲーション */
.desktop-nav ul {
  display: flex;
  list-style-type: none;
  align-items: center;
}

.desktop-nav li {
  margin-left: 20px;
}

.desktop-nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  position: relative;
  transition: color 0.3s ease;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #3498db;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.desktop-nav a:hover {
  color: #3498db;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

/* CTAボタン */
.cta-button {
  background-color: #ff6600;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.cta-button:hover {
  background-color: #3498db;
}

.cta-button::after {
  display: none;
}

/* コンタクト情報 */
.contact-info {
  display: flex;
  align-items: center;
}

.phone-number {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  margin-right: 15px;
}

.line-icon img, .social-icon img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.line-icon:hover img, .social-icon:hover img {
  transform: scale(1.1);
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  cursor: pointer;
  position: relative;
  z-index: 1000;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* モバイルナビゲーション */
.mobile-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #3498db, #2980b9);
  padding: 20px;
  z-index: 1000;
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
  pointer-events: none;
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav ul {
  list-style-type: none;
  padding: 0;
  text-align: center;
  margin-bottom: 30px;
}

.mobile-nav li {
  margin-bottom: 20px;
}

.mobile-nav a {
  text-decoration: none;
  color: #fff;
  font-size: 1.4em;
  font-weight: bold;
  transition: color 0.3s ease;
}

.mobile-nav a:hover {
  color: #ffd700;
}

.mobile-contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-contact-info .phone-number {
  font-size: 1.4em;
  color: #fff;
  margin-bottom: 15px;
  border: 2px solid #fff;
  padding: 10px 20px;
  border-radius: 25px;
}


.mobile-contact-info .social-icons {
  display: flex;
  justify-content: center;
}

.mobile-contact-info .social-icons a {
  margin: 0 10px;
}

.mobile-contact-info .social-icons img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.mobile-contact-info .social-icons img:hover {
  transform: scale(1.1);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2em;
  cursor: pointer;
}

body.menu-open {
  overflow: hidden;
}

/* ヘッダーのz-indexを調整 */
header {
  z-index: 1001;
}

/* メインコンテンツ */
main {
  position: relative;
  z-index: 1;
}

/* ヒーローセクション */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  bottom: 150px;
  left: 50%;
  transform: translateX(-150%);
  z-index: 2;
  text-align: center;
}


/* レスポンシブデザイン */
@media (min-width: 769px) {
  .hero-content {
    justify-content: flex-start;
    padding-left: 25%;
  }
}

@media (max-width: 768px) {
  .desktop-nav, .contact-info {
      display: none;
  }
  
  .hamburger {
      display: block;
  }

  .mobile-contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.mobile-contact-info .phone-number {
    font-size: 1.4em;
    color: #fff;
    margin-bottom: 15px;
}

.mobile-contact-info .social-icons {
    display: flex;
    justify-content: center;
}

.mobile-contact-info .social-icons a {
    margin: 0 10px;
}

.mobile-contact-info .social-icons img {
    width: 40px;
    height: 40px;
}
}

@media (min-width: 769px) {
  .mobile-nav {
      display: none !important;
  }
}
  /* 問い合わせフォーム */
  #contact-form {
    background-color: #f8f8f8;
    padding: 60px 0;
    border-top: 2px solid #3498db;
    border-bottom: 2px solid #3498db;
  }

  #contact-form .container {
    max-width: 800px;
    margin: 0 auto;
  }

 #contact-form h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-size: 2.5em;
}
  
.form-group {
    margin-bottom: 25px;
  }

  label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
  }
  
  .required {
    color: #ff0000;
    margin-left: 5px;
  }
  
  input[type="text"],
  input[type="tel"],
  input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease;
  }
  
  input[type="text"]:focus,
  input[type="tel"]:focus,
  input[type="email"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 102, 0, 0.3);
  }
  
  .cta-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  .cta-button:hover {
    background-color: #2b86c2;
    transform: translateY(-2px);
  }
  
  .cta-button:active {
    transform: translateY(0);
  }

  select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    background-color: #fff;
    transition: border-color 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
  }
  
  select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 102, 0, 0.3);
  }
  
  /* iOSデバイスでのデフォルトスタイルを無効化 */
  select::-ms-expand {
    display: none;
  }
  
  select::-webkit-inner-spin-button,
  select::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  
  @media (max-width: 768px) {
    #contact-form {
      padding: 40px 0;
    }
  
    #contact-form h2 {
      font-size: 2em;
    }
  
    .form-group {
      margin-bottom: 20px;
    }
  
    input[type="text"],
    input[type="tel"],
    input[type="email"] {
      padding: 10px;
    }
  }

  /* 選ばれる理由セクション */
#reasons {
    background-color: #fff;
    padding: 80px 0;
  }
  
  #reasons h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    font-size: 2.5em;
  }
  
  .reasons-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .reason {
    flex-basis: calc(33.333% - 30px);
    text-align: center;
    padding: 30px;
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 30px;
  }
  
  .reason:hover {
    transform: translateY(-10px);
  }
  
  .reason-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 50%;
  }
  
  .reason-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .reason h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.5em;
  }
  
  .reason p {
    color: #666;
    line-height: 1.6;
  }
  
  @media (max-width: 1024px) {
    .reason {
      flex-basis: calc(50% - 20px);
    }
  }
  
  @media (max-width: 768px) {
    #reasons {
      padding: 60px 0;
    }
  
    #reasons h2 {
      font-size: 2em;
    }
  
    .reason {
      flex-basis: 100%;
    }
  }

  /* 買取の流れセクション */
#process {
    background-color: #f8f8f8;
    padding: 80px 0;
  }
  
  #process h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    font-size: 2.5em;
  }
  
  .process-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .process-step {
    flex-basis: calc(20% - 20px);
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    margin-bottom: 30px;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    background-color: #3498db;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 auto 15px;
  }
  
  .process-step h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
  }
  
  .process-step p {
    color: #666;
    font-size: 0.9em;
    line-height: 1.6;
  }
  
  @media (max-width: 1024px) {
    .process-step {
      flex-basis: calc(33.333% - 20px);
    }
  }
  
  @media (max-width: 768px) {
    #process {
      padding: 60px 0;
    }
  
    #process h2 {
      font-size: 2em;
    }
  
    .process-step {
      flex-basis: calc(50% - 20px);
    }
  }
  
  @media (max-width: 480px) {
    .process-step {
      flex-basis: 100%;
    }
  }

  .contact-section {
    background-color: #fff;
    padding: 60px 0;
    text-align: center;
    border-top: 2px solid #3498db;
    border-bottom: 2px solid #3498db;
  }
  
  .contact-section h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 30px;
  }
  
  .contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  .contact-button {
    display: flex;
    align-items: center;
    background-color: #ff6600;
    color: #fff;
    padding: 15px 20px;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }
  
  .contact-button img {
    margin-right: 10px;
  }
  
  .contact-button:hover {
    background-color: #3498db;
  }
  
  .contact-button.line {
    background-color: #00c300; /* LINEの色 */
  }
  
  .contact-button.phone {
    background-color: #ff6600; /* 電話の色 */
  }
  
  @media (max-width: 768px) {
    .contact-buttons {
      flex-direction: column;
    }
  
    .contact-button {
      margin-bottom: 15px;
      width: 100%;
      justify-content: center;
    }
  }
  

  /* 買取実績セクション */
#purchase-examples {
    background-color: #fff;
    padding: 80px 0;
  }
  
  #purchase-examples h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 2.5em;
  }
  
  .examples-slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .examples-slider {
    display: flex;
    overflow: hidden;
    position: relative;
  }
  
  .example {
    flex: 0 0 100%;
    transition: transform 0.3s ease;
  }
  
  .example img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
  }
  
  .slider-arrow.prev {
    left: 10px;
  }
  
  .slider-arrow.next {
    right: 10px;
  }
  
  @media (max-width: 768px) {
    #purchase-examples {
      padding: 60px 0;
    }
  
    #purchase-examples h2 {
      font-size: 2em;
    }
  
    .examples-slider {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
      }
    
      .examples-slider::-webkit-scrollbar {
        width: 0;
        height: 0;
      }
    
      .example {
        flex: 0 0 80%;
        margin-right: 20px;
        transform: none !important;
      }
    
      .slider-arrow {
        display: none;
      }
    }

    /* よくある質問セクション */
#faq {
    background-color: #f8f8f8;
    padding: 80px 0;
  }
  
  #faq h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 2.5em;
  }
  
  .faq-list {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .faq-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .question {
    font-size: 1.2em;
    color: #3498db;
    margin-bottom: 10px;
  }
  
  .answer {
    color: #666;
  }
  
  @media (max-width: 768px) {
    #faq {
      padding: 60px 0;
    }
  
    #faq h2 {
      font-size: 2em;
    }
  
    .faq-item {
      padding: 15px;
    }
  
    .question {
      font-size: 1.1em;
    }
  }

  #customer-voice {
    background-color: #f8f8f8;
    padding: 80px 0;
    text-align: center;
  }
  
  #customer-voice h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 40px;
  }
  
  /* ボックスレイアウト */
  .voice-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .voice-box {
    flex-basis: calc(33.333% - 20px);
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
  }
  
  /* フェードイン効果 */
  .voice-box.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .voice-image {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .voice-text {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 10px;
  }
  
  .voice-name {
    font-size: 1em;
    color: #3498db;
    font-weight: bold;
  }
  
  /* レスポンシブ対応 */
  @media (max-width: 768px) {
    .voice-box {
      flex-basis: 100%;
      margin-bottom: 30px;
    }
  }
  

  /* フッター */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 20px;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
  }
  
  .footer-logo img {
    max-width: 150px;
    height: auto;
  }
  
  .footer-links, .footer-contact {
    flex-basis: 30%;
  }
  
  .footer-links h3, .footer-contact h3 {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #3498db;
  }
  
  .footer-links ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-links li {
    margin-bottom: 10px;
  }
  
  .footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .footer-links a:hover {
    color: #3498db;
  }
  
  .footer-contact p {
    margin-bottom: 10px;
  }
  
  .footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
  }
  
  @media (max-width: 768px) {
    .footer-content {
      flex-direction: column;
    }
  
    .footer-logo, .footer-links, .footer-contact {
      flex-basis: 100%;
      margin-bottom: 30px;
      text-align: center;
    }
  
    .footer-logo img {
      margin: 0 auto;
    }
  }

  /* モバイル用の追従ボタン */
.floating-button.mobile {
  position: fixed;
  bottom: 10px;
  width: 90%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: block; /* モバイルで表示 */
}

/* ボタン画像のスタイル */
.floating-button.mobile img.cta-mobile-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* 画像の最大幅を指定 */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.floating-button.mobile {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.floating-button.mobile.dimmed {
  opacity: 0.5;
}


/* デスクトップでは非表示にする */
@media (min-width: 769px) {
  .floating-button.mobile {
    display: none; /* デスクトップでは非表示 */
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 255, 255, 1), 0 0 40px rgba(52, 152, 219, 0.7), 0 0 60px rgba(52, 152, 219, 0.5);
  }
  100% {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  }
}

.cta-button {
  animation: pulse 5s infinite;
}


/* 光る効果を追加するクラス */
.floating-button.mobile img.cta-mobile-image {
  animation: pulse 5s infinite; /* 2秒間隔で光る */
}
