@charset "UTF-8";

/* ===================== 基本・変数 ===================== */
html {
  scroll-behavior: smooth;
}

:root {
  --accent: #E1306C; 
  --site-pink: #ff69b4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
  background: #F9FAFB;
  color: #111;
  line-height: 1.6;
  opacity: 1;
  transition: opacity 2s cubic-bezier(0.45, 0, 0.55, 1);
}


body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent);
  z-index: 10000;
}


body.fade-out {
  opacity: 0;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

/* ===================== ヘッダー ===================== */
.header {
  background: #fff;
  border-bottom: 1px solid #eee;
  border-top: 4px solid var(--accent); 
  padding: 12px 0; 
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: padding 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.header.is-scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.header.is-scrolled .logo img {
  transform: scale(0.9); 
  transition: transform 0.4s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 26px;
}

.header-instagram {
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===================== HERO ===================== */
.hero-section {
  text-align: center;
  background: linear-gradient(rgba(255,255,255,0.6),rgba(255,255,255,0.8)), url("texture.jpg");
  background-size: cover;
  background-position: center;
  margin-top: 80px;
  padding-top: 70px; 
  padding-bottom: 60px; 
}

.hero-subtitle {
  letter-spacing: 2px;
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.hero-section h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
}

.highlight {
  color: var(--accent);
}

.hero-description {
  margin-top: 18px;
  font-size: 0.95rem;
  color: #555;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================== フィルター ===================== */
.filter-area {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 35px 0 45px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  border-radius: 11px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.25s;
}

.filter-btn:hover {
  background: #f5f5f5;
}

.filter-btn.active {
  background: #111;
  color: #fff;
}

/* ===================== グリッド ===================== */
.salons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding-top: 40px;
  justify-content: start !important;
  align-items: start;
}

/* ===================== カード ===================== */
.salon-card {
  opacity: 0; 
  visibility: hidden;
  aspect-ratio: 4/3;
  perspective: 1400px;
}

.salon-card.is-visible {
  visibility: visible;
  animation: ultraSuperSlowFadeIn 6.0s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.salon-card.is-hidden {
  display: none !important;
}

@keyframes ultraSuperSlowFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover:hover) {
  .salon-card:hover .card-inner {
    transform: rotateY(180deg) translateY(-6px);
  }
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  backface-visibility: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow:
    0 10px 25px rgba(0,0,0,0.05),
    0 2px 8px rgba(0,0,0,0.04);
}

/* ===================== FRONT ===================== */
.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.salon-card:hover img {
  transform: scale(1.09);
}

.card-front::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.25), transparent 40%);
  opacity: 0;
  transition: 0.4s;
  pointer-events: none;
}

.salon-card:hover .card-front::before {
  opacity: 1;
}

.salon-name-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  color: #fff;
}

.area-tag {
  background: #fff;
  color: #5e2d2d;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 900;
  display: inline-block;
  margin-bottom: 4px;
}

.salon-name-overlay h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.neon {
  letter-spacing: 0.1rem;
  text-shadow:
    0 1px 0 rgba(0,0,0,0.3),
    0 2px 0 rgba(0,0,0,0.25),
    0 3px 2px rgba(0,0,0,0.2),
    0 4px 4px rgba(0,0,0,0.15);
}

/* ===================== BACK ===================== */
.card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(to top, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
  border-radius: 16px;
  box-shadow:
    0 10px 25px rgba(0,0,0,0.05),
    0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.07);
}

.card-back h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #030303;
}

.card-back .instagram-id {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.card-back p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

.card-back a {
  text-decoration: none;
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: 0.25s;
}

.btn-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* ===================== モバイル ===================== */
@media (hover:none){
  .salon-card.active .card-inner{
    transform: rotateY(180deg);
  }
}

/* ===================== フッター ===================== */
.footer {
  margin-top: 60px;
  padding: 26px 0;
  background: #111;
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
}

/* ===================== 戻るボタン ===================== */
.premium-scroll-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 64px;
  height: 64px;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: 
    opacity 2.0s ease-in-out, 
    transform 2.0s ease-in-out, 
    visibility 2.0s;
}

.premium-scroll-btn.show {
  opacity: 1;
  visibility: visible;
}

.premium-scroll-btn .btn-content {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #3d3538, #1a1819);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-size: 22px;
  z-index: 3;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: all 1.4s ease;
}

.premium-scroll-btn:hover .btn-content {
  background: linear-gradient(145deg, #4d3d44, #2a1f24);
  color: var(--site-pink);
  box-shadow: 0 15px 35px rgba(255, 105, 180, 0.3);
}

.premium-scroll-btn:active .btn-content {
  transform: scale(0.92);
  background: #111;
  color: #ff1493;
  transition: all 0.1s;
}

.premium-scroll-btn:active::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 50%;
  background: rgba(255, 105, 180, 0.4);
  animation: click-ripple 0.5s ease-out forwards;
  z-index: 2;
}

@keyframes click-ripple {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.premium-scroll-btn .btn-pulse {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255, 105, 180, 0.1);
  border-radius: 50%;
  z-index: 1;
  animation: pulse-wave 3s infinite ease-out;
}

@keyframes pulse-wave {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}


@media (max-width:900px){
  .salons-grid {
    grid-template-columns: repeat(2,1fr);
    justify-content: flex-start;
  }
}

@media (max-width:600px){
  .salons-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    justify-content: flex-start;
  }


  .hero-section {
    margin-top: 76px;
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .hero-section h2 {
    font-size: 1.8rem;
  }
}