/* ============================================================
   QUALIA COMMON CSS
   ============================================================ */

/* === Variables === */
:root {
  --primary: #b89d6a;
  --primary-light: #d4bc8a;
  --primary-dark: #9a7f4e;
  --accent: #c8a96e;
  --bg-main: #faf7f2;
  --bg-warm: #f5efe6;
  --bg-card: #ffffff;
  --text-main: #3a3226;
  --text-sub: #7a6e5f;
  --text-light: #a89880;
  --border: #e8dfd3;
  --gold-gradient: linear-gradient(135deg, #d4bc8a 0%, #b89d6a 50%, #c8a96e 100%);
  --shadow-soft: 0 4px 30px rgba(184,157,106,0.10);
  --shadow-card: 0 2px 24px rgba(184,157,106,0.08);
  --font-en: 'Cormorant Garamond', serif;
  --font-ja: 'Shippori Mincho', serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--text-main);
  background: var(--bg-main);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, li { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* === Layout === */
.row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* === Utilities === */
.show_pc { display: flex; }
.show_sp { display: none; }

/* === Section Titles === */
.section-tl { margin: 48px 0px; }
.section-tl--center { text-align: center; }
.section-tl__ja {
  display: block;
  font-family: var(--font-ja);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-sub);
  margin-bottom: 6px;
}
.section-tl__en {
  display: block;
  font-family: var(--font-en);
  font-size: 4.5rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--primary);
  line-height: 1.2;
}

/* === Header === */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184,157,106,0.12);
  transition: var(--transition);
}
.header__wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo-img {
  width: auto;
  height: 55px;
  display: block;
}

.header__logo span {
  font-weight: 300; font-size: 1.1rem; display: block;
  letter-spacing: 0.2em; color: var(--text-sub); font-family: var(--font-body);
}
.header__nav ul {
  display: flex; align-items: center; gap: 36px;
}
.header__nav a {
  font-family: var(--font-en);
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: var(--text-sub);
  transition: color var(--transition);
  position: relative;
}
.header__nav a::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--primary);
  transition: width var(--transition);
}
.header__nav a:hover { color: var(--primary); }
.header__nav a:hover::after { width: 100%; }
.header__cta {
  display: flex; gap: 12px; align-items: center;
}
.header__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  border-radius: 100px;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  transition: all var(--transition);
}
.cta-line { background: #06c755; color: #fff; }
.cta-line:hover { background: #05b34c; transform: translateY(-1px); }
.cta-web { background: var(--primary); color: #fff; }
.cta-web:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* Hamburger */
.header__hamburger {
  display: none; width: 30px; height: 20px;
  position: relative; cursor: pointer; z-index: 1100;
}
.header__hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--primary); position: absolute; left: 0;
  transition: var(--transition);
}
.header__hamburger span:nth-child(1) { top: 0; }
.header__hamburger span:nth-child(2) { top: 9px; }
.header__hamburger span:nth-child(3) { top: 18px; }
.header__hamburger.is-open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.header__hamburger.is-open span:nth-child(2) { opacity: 0; }
.header__hamburger.is-open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* SP Side Menu */
.sp-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 320px; height: 100vh;
  background: var(--bg-main);
  z-index: 999;
  padding: 100px 40px 40px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 30px rgba(0,0,0,0.1);
  overflow-y: auto;
}
.sp-menu.is-open { right: 0; }
.sp-menu__nav ul { display: flex; flex-direction: column; gap: 0; }
.sp-menu__nav li a {
  display: block; padding: 16px 0;
  font-family: var(--font-en);
  font-size: 1.5rem; letter-spacing: 0.12em;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.sp-menu__nav li a:hover { color: var(--primary); }
.sp-menu__cta {
  display: flex; flex-direction: column; gap: 12px; margin-top: 32px;
}
.sp-menu__btn {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 0; border-radius: 100px;
  font-size: 1.3rem; font-weight: 500;
  letter-spacing: 0.06em; color: #fff;
}
.sp-menu__btn--web { background: var(--primary); }
.sp-menu__btn--line { background: #06c755; }

/* SP Menu Overlay */
.sp-menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 998;
}
.sp-menu-overlay.is-open { display: block; }

/* === Footer === */
.footer {
  background: var(--text-main);
  color: #fff;
  margin-top: 20px;
  padding: 64px 0 32px;
}
.footer__main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}
.footer__logo {
  font-family: var(--font-en);
  font-size: 2.4rem;
  letter-spacing: 0.12em;
  color: var(--primary-light);
  margin-bottom: 24px;
}
.footer__btns {
  display: flex; flex-direction: column; gap: 12px; margin-top: 20px;
}
.footer__btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 100px;
  font-size: 1.3rem; letter-spacing: 0.06em;
  transition: all var(--transition); width: 240px;
}
.footer__btn--reserve { background: var(--primary); color: #fff; }
.footer__btn--reserve:hover { background: var(--primary-light); }
.footer__btn--line { background: #06c755; color: #fff; }
.footer__btn--line:hover { background: #05b34c; }
.footer__btn--contact { border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.footer__btn--contact:hover { border-color: var(--primary-light); color: var(--primary-light); }
.footer__sns {
  display: flex; gap: 16px; margin-top: 24px;
}
.footer__sns a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.footer__sns a:hover { border-color: var(--primary-light); color: var(--primary-light); }
.footer__nav ul { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a {
  font-family: var(--font-en); font-size: 1.3rem; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6); transition: color var(--transition);
}
.footer__nav a:hover { color: var(--primary-light); }
.footer__copyright {
  text-align: center; font-family: var(--font-en);
  font-size: 1.1rem; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
}

/* === Btn More === */
.btn-more {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-size: 1.4rem;
  letter-spacing: 0.1em; color: var(--primary);
  transition: all var(--transition);
}
.btn-more::after {
  content: '→'; transition: transform var(--transition);
}
.btn-more:hover::after { transform: translateX(4px); }

/* === SP Fixed CTA === */
.sp-fixed-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  padding: 12px 16px;
  background: rgba(58,50,38,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.sp-fixed-cta__inner { display: flex; gap: 10px; }
.sp-fixed-cta__inner a {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 14px 0; border-radius: 100px;
  font-size: 1.3rem; font-weight: 500; letter-spacing: 0.06em; color: #fff;
}
.sp-cta-web { background: var(--primary); }
.sp-cta-line { background: #06c755; }

.page-header {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5efe6 0%, #ede4d4 30%, #d8c9b0 70%, #c5b18e 100%);
}

.page-header__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-header__deco-circle {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(184, 157, 106, 0.12);
  top: 20%;
  right: 15%;
  animation: floatCircle 8s ease-in-out infinite;
}

.page-header__deco-circle2 {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(184, 157, 106, 0.04);
  bottom: 10%;
  left: 10%;
  animation: floatCircle 6s ease-in-out infinite reverse;
}

@keyframes floatCircle {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.page-header__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-header__en {
  font-family: var(--font-en);
  font-size: 1.3rem;
  letter-spacing: 0.25em;
  color: var(--primary);
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.page-header__ja {
  font-family: var(--font-ja);
  font-size: 3.2rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-main);
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

/* === Animations === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-up.visible {
  opacity: 1; transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  html { font-size: 56.25%; }
  .row { padding: 0 20px; }
  .show_pc { display: none !important; }
  .show_sp { display: block !important; }

  .header__wrap { padding: 0 20px; height: 64px; }
  .header__logo-img {
    height: 36px;
  }
  .header__nav { display: none; }
  .header__hamburger { display: block; }

  .sp-fixed-cta { display: block; }
  body { padding-bottom: 72px; }

  .footer__main { flex-direction: column; gap: 40px; }
  .footer__btn { width: 100%; }

  .section-tl__en { font-size: 3.6rem; }
    .page-header {
      padding: 120px 0 60px;
    }
  
    .page-header__ja {
      font-size: 2.4rem;
    }
  
    .page-header__deco-circle,
    .page-header__deco-circle2 {
      display: none;
    }
}

@media (min-width: 769px) and (max-width: 1279px) {
  .row { padding: 0 32px; }
}
