/* 右端追従バナー */
.fixed-banner {
  position: fixed;
  width: 40%;
  max-width: 250px;
  margin-top: 5vh;
  top: 20%;
  right: 0;
  transform: translateY(-50%);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.fixed-banner.hidden {
  transform: translateY(-50%) translateX(100%);
}

.banner-content {
  display: block;
  background: transparent;
  color: white;
  width: 100%;
  aspect-ratio: 300/97;
  position: relative;
}

.banner-close {
  position: absolute;
  top: 5px;
  right: 10px;
  cursor: pointer;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.banner-close:hover {
  color: white;
}

.banner-text h3 {
  font-size: 16px;
  margin: 0 0 10px 0;
  font-weight: bold;
}

.banner-text p {
  font-size: 12px;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

.banner-btn {
  display: block;
  background: #ff6b35;
  color: white;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 5px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.banner-btn:hover {
  background: #e55a2b;
}

/* ポップアップ */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  border-radius: 15px;
  max-width: 540px;
  width: 90%;
  background: #fff;
  max-height: 80vh;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.popup-overlay.show .popup-content {
  transform: scale(1);
}

.popup-close {
    position: absolute;
    top: -15px;
    right: -20px;
    cursor: pointer;
    font-size: 24px;
    color: #fff;
    z-index: 10;
    transition: color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    aspect-ratio: 1 / 1;
    background: #3D2604;
    line-height: 100%;
    border-radius: 50%;
    letter-spacing: 0;
}

.popup-close:hover {
  color: #3D2604;
  background: #fff;
}

.popup-header {
  position: relative;
}

.popup-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center;
  border-radius: 15px 15px 0 0;
}

.popup-body {
  text-align: center;
  background: #fff;
  background: transparent;
}

.popup-body h2 {
  font-size: 24px;
  margin: 0 0 15px 0;
  color: #333;
  font-weight: bold;
}

.popup-body p {
  font-size: 16px;
  margin: 0 0 25px 0;
  color: #666;
  line-height: 1.6;
}

.popup-features {
  margin: 25px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px 0;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
}

.feature-icon {
  font-size: 20px;
  margin-right: 10px;
}

.feature-item span:last-child {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.popup-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%;
  height: 64px;
  background: #EF7014;
  color: white;
  text-decoration: none;
  
  margin: 42px auto;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.popup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}
.phrase{
  word-break: auto-phrase;
}
.popup-btn-box{
  height: 240px;
  padding: 0 56px;
  overflow-y: auto;
  /* Firefox: スクロールバー色 */
  scrollbar-width: thin;
  scrollbar-color: #EF7014 rgba(0, 0, 0, 0.1);
}
/* WebKit(Blink/Safari): スクロールバー色 */
.popup-btn-box::-webkit-scrollbar{
  width: 10px;
}
.popup-btn-box::-webkit-scrollbar-track{
  background: rgba(0, 0, 0, 0.08);
  border-radius: 8px;
}
.popup-btn-box::-webkit-scrollbar-thumb{
  background: #EF7014;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.6);
}
.popup-btn-box::-webkit-scrollbar-thumb:hover{
  background: #d85f10;
}
.popup-btn-box{
  padding: 24px 0;
}
.popup-btn-box .popup-btn{
  height: 68px;
  margin: 24px auto;
}
/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .phrase{
    word-break: break-all;
  }
  .fixed-banner{
    top: 10%;
    width: 60%;
  }
  
  .popup-content {
    width: 95%;
    margin: 20px;
    max-width: none;
  }
  
  .popup-body {
    padding: 0;
  }
  
  .popup-body h2 {
    font-size: 20px;
  }
  
  .popup-body p {
    font-size: 14px;
  }
  
  .popup-btn {
    padding: 12px 25px;
    font-size: 14px;
  }
}
