/* 
  Colors & Theme: 
  Backgrounds: Pearl White (#FDFBF7), Soft Beige (#F4EFEA), Deep Charcoal (#2A2725)
  Text: Charcoal (#333333), Muted (#666666)
  Accents: Gold (#C5A059), Gold Gradient
*/

:root {
  --bg-primary: #FDFBF7;
  --bg-secondary: #F4EFEA;
  --bg-dark: #2A2725;
  --text-main: #333333;
  --text-muted: #666666;
  --gold-solid: #C5A059;
  --gold-hover: #b38f4d;
  --gold-gradient: linear-gradient(135deg, #d4af37, #aa7c11);
  --white: #FFFFFF;
  
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Zen Kaku Gothic New', sans-serif;
  --font-en: 'Cormorant Garamond', serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* モバイル表示マニュアル準拠：横スクロール完全防止 */
html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 2;
  color: var(--text-main);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

/* タイポグラフィ改行制御 */
.text-nowrap {
  display: inline-block;
  white-space: nowrap;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-main);
}

.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.w-100 { width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}
.max-w-700 { max-width: 700px; }

/* マニュアル準拠：スマホ時のパディング最適化 */
.section-padding {
  padding: 100px 0;
}
@media screen and (max-width: 768px) {
  .section-padding {
    padding: 60px 0 !important;
  }
}

.bg-light {
  background-color: var(--bg-secondary);
}

/* ヘッダー・ナビゲーション */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  z-index: 100;
  transition: background 0.3s ease;
}
@media screen and (max-width: 900px) {
  header {
    justify-content: space-between;
    gap: 10px;
    padding: 15px 5%;
  }
}
header.scrolled {
  background: rgba(253, 251, 247, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-logo {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 600;
  color: var(--gold-solid);
  letter-spacing: 0.1em;
  text-decoration: none;
  white-space: nowrap;
}
@media screen and (max-width: 900px) {
  .header-logo {
    font-size: 14px;
    line-height: 1.2;
  }
}
.desktop-nav {
  display: flex;
  gap: 30px;
}
.desktop-nav a {
  text-decoration: none;
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 0 10px rgba(0,0,0,0.6);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}
.desktop-nav a:hover {
  color: var(--gold-solid);
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}
.hamburger span {
  width: 30px;
  height: 2px;
  background: var(--text-main);
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}
.bgm-btn {
  background: var(--gold-gradient);
  border: none;
  color: var(--white);
  padding: 10px 25px;
  font-size: 18px;
  font-weight: 500;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: all 0.3s;
}
.bgm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}
.bgm-btn.is-playing {
  background: #333;
  color: var(--white);
  box-shadow: none;
}
@media screen and (max-width: 900px) {
  .bgm-btn {
    padding: 6px 15px;
    font-size: 14px;
  }
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background: var(--bg-primary);
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  transition: right 0.4s ease;
  z-index: 100;
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 40px;
  color: var(--text-main);
  cursor: pointer;
}
.mobile-menu.open {
  right: 0;
}
.mobile-menu a {
  font-size: 22px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-main);
  letter-spacing: 0.1em;
}

@media screen and (max-width: 768px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }
}

/* トップに戻るボタン */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--bg-dark);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--gold-solid);
}
@media screen and (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* タイトル周り */
.section-title {
  margin-bottom: 60px;
}
.en-title {
  display: block;
  font-family: var(--font-en);
  font-size: 22px;
  letter-spacing: 0.2em;
  color: var(--gold-solid);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.section-title h2 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  letter-spacing: 0.1em;
}

/* ボタン (折り返し禁止設定) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all 0.4s ease;
  border-radius: 0; 
  cursor: pointer;
  border: none;
  white-space: nowrap; /* 完全折り返し禁止 */
}
@media screen and (max-width: 768px) {
  .btn {
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
  }
}
.btn-gold {
  background: var(--gold-gradient);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(212, 175, 55, 0.3);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--gold-solid);
  color: var(--gold-solid);
}
.btn-outline:hover {
  background: var(--gold-solid);
  color: var(--white);
}

/* ヒーロービュー */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
}

@keyframes slowFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes floatUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./images/relaxing_landscape_1783578769383.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
  opacity: 0;
  animation: slowFadeIn 4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(20,20,20,0.7) 0%, rgba(20,20,20,0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 80px;
}
.hero-glass {
  padding: 60px 0;
  max-width: 650px;
}
@media screen and (max-width: 768px) {
  .hero-glass {
    padding: 2.5rem 0 !important;
  }
}
.hero-subtitle {
  font-family: var(--font-serif);
  color: #FFFFFF !important;
  letter-spacing: 0.15em;
  font-size: 22px;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  opacity: 0;
  animation: floatUp 3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.5s;
}
.hero h1 {
  /* マニュアル準拠：clampで最適化 */
  font-size: clamp(2.4rem, 7vw, 3.8rem);
  line-height: 1.5;
  margin-bottom: 30px;
  color: #FFFFFF !important;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5);
  opacity: 0;
  animation: floatUp 3.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 1.2s;
}
.hero-text {
  font-size: 20px;
  color: #FFFFFF !important;
  margin-bottom: 40px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  opacity: 0;
  animation: floatUp 3.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 2.0s;
}
.hero .btn {
  opacity: 0;
  animation: floatUp 3.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 2.8s;
}

@media screen and (max-width: 768px) {
  .hero h1 {
    font-size: clamp(1.4rem, 6vw, 1.6rem) !important;
  }
  .hero-text {
    font-size: 16px !important;
  }
}


/* コンセプト */
.concept-inner {
  display: flex;
  align-items: center;
  gap: 80px;
}
.concept-image-wrapper {
  flex: 1;
  position: relative;
}
.concept-image-wrapper .main-img {
  width: 100%;
  height: auto;
  box-shadow: -20px 20px 0 var(--bg-secondary);
}
.img-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 150px;
  height: 150px;
  border: 1px solid var(--gold-solid);
  z-index: -1;
}
.concept-text {
  flex: 1.2;
}
.concept-text .lead {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-family: var(--font-serif);
  margin-bottom: 30px;
  color: var(--gold-solid);
  line-height: 1.8;
}

/* メカニズム (効能・効果詳細) */
.mechanism-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}
.mech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
}
.mech-card {
  background: var(--white);
  padding: 50px 30px;
  text-align: left;
  border-top: 3px solid var(--gold-solid);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  height: 100%;
}
@media screen and (max-width: 768px) {
  .mech-card {
    padding: 2rem 1.25rem !important;
  }
}
.mech-number {
  font-family: var(--font-en);
  font-size: 56px;
  color: var(--gold-solid);
  opacity: 0.4;
  margin-bottom: 20px;
  line-height: 1;
}
.mech-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  letter-spacing: 0.1em;
}
.mech-card p {
  font-size: 18px;
  color: var(--text-muted);
  flex-grow: 1;
}

/* ギャラリー */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}
.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.gallery-item:hover img {
  transform: scale(1.05);
}
@media screen and (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* プロフィール */
.profile-inner {
  display: flex;
  gap: 60px;
  align-items: center;
  background: var(--white);
  padding: 60px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.03);
}
@media screen and (max-width: 768px) {
  .profile-inner { padding: 2rem 1.25rem !important; }
}
.profile-cert-col {
  flex: 1;
  text-align: center;
}
.profile-cert-col img {
  width: 100%;
  max-width: 300px;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.profile-cert-caption {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}
.profile-text-col {
  flex: 1.5;
}
.profile-text-col h2 {
  font-size: 36px;
  margin-bottom: 20px;
}
.name-en {
  font-family: var(--font-en);
  font-size: 24px;
  color: var(--gold-solid);
  display: block;
  margin-top: 5px;
}
.profile-greeting {
  font-size: 24px;
  font-family: var(--font-serif);
  margin-bottom: 20px;
  color: var(--gold-solid);
}

/* 予約・コンタクト */
.contact {
  background-color: var(--bg-dark);
  color: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
}
.contact-card {
  background: rgba(255,255,255,0.05);
  padding: 40px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
}
@media screen and (max-width: 768px) {
  .contact-card { padding: 2.5rem 1.25rem !important; }
}
.contact-card h3 {
  color: var(--white);
  margin-bottom: 15px;
  font-size: 24px;
}
.contact-icon {
  font-size: 40px;
  margin-bottom: 20px;
}
.form-card {
  grid-column: 1 / -1;
  text-align: left;
}
.form-card h3 {
  text-align: center;
}
.btn-contact-line, .btn-contact-phone {
  white-space: nowrap;
}
.btn-contact-phone {
  display: inline-block;
  font-family: var(--font-en);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-solid);
  padding-bottom: 5px;
  transition: color 0.3s;
}
.btn-contact-line {
  display: inline-block;
  background: #06C755;
  color: #fff;
  text-decoration: none;
  padding: 15px 40px;
  border-radius: 30px;
  font-weight: bold;
  letter-spacing: 0.1em;
  transition: transform 0.3s;
}

/* フォーム (モダン) */
.modern-form {
  max-width: 600px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 20px;
}
.modern-form input {
  width: 100%;
  padding: 18px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s;
}
.modern-form input::placeholder {
  color: rgba(255,255,255,0.3);
}
.modern-form input:focus {
  outline: none;
  border-color: var(--gold-solid);
}

/* Footer & ステルスクレジット */
footer {
  background: #1a1817;
  padding: 60px 0 40px;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-en);
  font-size: 32px;
  color: var(--gold-solid);
  margin-bottom: 20px;
  letter-spacing: 0.2em;
}
.footer-copy {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}
.stealth-credit {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.1);
  text-decoration: none;
}
.stealth-credit:hover {
  color: rgba(255,255,255,0.3);
}

/* アニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* プライシングリスト調整 */
.price-details {
  text-align: left;
  padding-left: 1.5rem;
  margin: 15px 0;
}
.price-details li {
  margin-bottom: 10px;
}

@media screen and (max-width: 900px) {
  .hidden-on-mobile {
    display: none !important;
  }
}

/* レスポンシブ */
@media (max-width: 900px) {
  .concept-inner, .profile-inner {
    flex-direction: column;
    gap: 40px;
  }
  .hero-bg { width: 100%; }
  .hero-glass { padding: 40px 0; }
  .mech-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
  .contact-grid { grid-template-columns: 1fr; }
}
