/* =============================================
   Popup CTA - サイト全体のデザインに合わせたスタイル
============================================= */
.popup-cta-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.popup-cta-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.popup-cta-modal {
  background: #fff;
  max-width: 380px;
  width: 90%;
  padding: 32px 28px;
  text-align: center;
  position: relative;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.popup-close:hover {
  color: #0f172a;
}

.popup-image {
  margin-bottom: 20px;
}

.popup-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.popup-title {
  font-family: "Zen Old Mincho", serif;
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #0f172a;
  font-weight: 700;
}

.popup-description {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.7;
}

.popup-btn {
  display: inline-block;
  padding: 12px 32px;
  background-color: #0f172a;
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 1px solid #0f172a;
}

.popup-btn:hover {
  background-color: #c5a059;
  border-color: #c5a059;
  opacity: 1;
}

/* =============================================
   Responsive - Tablet (1024px)
============================================= */
@media (max-width: 1024px) {
  :root {
    --spacing-section: 80px;
  }
  .hero-tagline {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 3rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .column-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================
   Responsive - Mobile (768px)
============================================= */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --spacing-section: 60px;
  }
  .site-header {
    padding: 0 20px;
  }
  .site-nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .hero-section {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  .hero-content {
    width: 100%;
    padding: 60px 24px;
    order: 2;
  }
  .hero-visual {
    width: 100%;
    height: 50vh;
    order: 1;
  }
  .hero-tagline {
    font-size: 2rem;
  }
  .hero-desc {
    font-size: 0.95rem;
  }
  .section-title {
    font-size: 2.5rem;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
  }
  .mission-heading {
    font-size: 1.5rem;
  }
  .mission-text {
    font-size: 1rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    padding: 30px;
  }
  .column-grid {
    grid-template-columns: 1fr;
  }
  .column-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .column-title {
    margin: 0;
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-logo {
    width: 100%;
    text-align: center;
  }
  .footer-address {
    text-align: center;
  }
  .footer-links {
    width: 100%;
    text-align: center;
  }
  .footer-links ul {
    justify-content: center;
    flex-wrap: wrap;
  }
  .page-title {
    font-size: 2rem;
  }
  .portfolio-masonry {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .popup-cta-modal {
    max-width: 320px;
    padding: 28px 24px;
  }
  .popup-title {
    font-size: 1.1rem;
  }
  .popup-description {
    font-size: 0.8rem;
  }
  .popup-btn {
    padding: 10px 28px;
    font-size: 0.8rem;
  }
}

/* =============================================
   Responsive - Small Mobile (480px)
============================================= */
@media (max-width: 480px) {
  .hero-tagline {
    font-size: 1.75rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .btn {
    padding: 14px 30px;
    font-size: 0.85rem;
  }
  .hero-btn-group {
    flex-direction: column;
    gap: 15px;
  }
  .hero-btn-group .btn {
    width: 100%;
    text-align: center;
  }
  .service-title {
    font-size: 1.25rem;
  }
  .page-header {
    min-height: 200px;
  }
  .page-title {
    font-size: 1.5rem;
  }
  .portfolio-masonry {
    grid-template-columns: 1fr;
  }
  .popup-cta-modal {
    max-width: 290px;
    padding: 24px 20px;
  }
}
