:root {
  --bg: #fff;
  --text: #111;
  --muted: #6b6b6b;
  --accent: #1a1a1a;
  --container: 1100px;
  font-family: 'Noto Sans JP', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin:0;
  color: var(--text);
  background: var(--bg);
  line-height:1.6;
}

.container {
  max-width: var(--container);
  margin:0 auto;
  padding:0 20px;
  text-align:center;
}

/* ヘッダー */
.site-header {
  position: sticky;
  top:0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  border-bottom:1px solid #eee;
  z-index:40;
}
.header-inner {
  display:flex;
  justify-content:space-between;
  align-items:center;
  height:68px;
}
.logo {
  font-weight:800;
  letter-spacing:1px;
  color:var(--accent);
  text-decoration:none;
}
.site-nav ul {
  display:flex;
  gap:18px;
  margin:0;
  padding:0;
  list-style:none;
}
.site-nav a {
  color: var(--muted);
  text-decoration:none;
  font-weight:500;
}

/* ヒーロー */
.hero {
  position: relative;
  height:60vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#fff;
  background: url('./imgs/beautymain.jpeg') center/cover no-repeat;
  margin-bottom:50px;
}
.hero::after {
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.3);
  z-index:1;
}
.hero-content {
  position: relative;
  z-index:2;
  max-width:800px;
  padding:0 20px;
}
.hero-content h1 {
  font-size: clamp(28px,6vw,48px);
  margin-bottom:12px;
  text-shadow:0 2px 10px rgba(0,0,0,0.5);
}
.hero-content .menu-intro {
  font-size:1.2rem;
  line-height:1.6;
  text-shadow:0 1px 6px rgba(0,0,0,0.5);
}





/*==================== ハンバーガーメニュー ===================*/

@media screen and (max-width:1000px) {

  /* ナビ本体（隠れている状態） */
  #site-nav {
      position: fixed;
      top: 0;
      left: -120%;           /* ← right ではなく left に */
      right: -120%;           
      width: 100%;
      height: 100vh;
      background: #ffffff;
      transition: all 0.6s;
      z-index: 100;
      opacity: 0;
      pointer-events: none;
  }

  #site-nav.panelactive {
      left: 0;               /* ← こっちにスライドイン */
      opacity: 1;            /* ← 透明解除 */
      pointer-events: auto;  /* ← クリック可能 */
  }

  #site-nav ul {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      display: flex;
      flex-direction: column;
      gap: 20px;
      text-align: center;
  }

  #site-nav li a {
      color: #111;
      font-size: 1.3rem;
      text-decoration: none;
      letter-spacing: 0.1em;
  }

  /* ハンバーガー本体 */
  .openbtn {
      position: absolute;
      right: 20px;
      top: 14px;
      cursor: pointer;
      width: 45px;
      height: 45px;
      z-index: 300;
  }

  .openbtn span {
      position: absolute;
      left: 8px;
      width: 60%;
      height: 3px;
      background: #111;
      border-radius: 2px;
      transition: 0.4s;
  }

  .openbtn span:nth-of-type(1) { top: 12px; }
  .openbtn span:nth-of-type(2) { top: 21px; }
  .openbtn span:nth-of-type(3) { top: 30px; }

  /* × に変化 */
  .openbtn.active span:nth-of-type(1) {
      transform: rotate(45deg);
      top: 21px;
  }
  .openbtn.active span:nth-of-type(2) {
      opacity: 0;
  }
  .openbtn.active span:nth-of-type(3) {
      transform: rotate(-45deg);
      top: 21px;
  }
}


/* ===================================== */
/* 美容鍼とはセクション */
/* ===================================== */

#beauty-acupuncture {
  padding: 50px 20px;
  background-color: #fff;
}

#beauty-acupuncture .section-title {
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 25px;
  color: #333;
}

.beauty-description {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.85;
  color: #555;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .beauty-description {
    font-size: 0.95rem;
    line-height: 1.8;
  }
}



/* ===================================== */
/* 美容鍼サービス（メニュー詳細）CSS完全版 */
/* ===================================== */

#beauty-services.services.container {
  max-width: 1100px;
  width: 90%;
  margin: 0 auto;
  padding: 40px 0;
  box-sizing: border-box;
}

/* 各サービス行 */
#beauty-services .service-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px; /* 画像と文字の距離 */
  margin-bottom: 80px;
}

/* 偶数番目だけ左右反転 */
#beauty-services .service-detail:nth-child(even) {
  flex-direction: row-reverse;
}

/* 左右50% */
#beauty-services .service-text,
#beauty-services .service-image {
  flex: 0 0 50%;
}

/* 見出し */
#beauty-services .service-text h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

/* 箇条書き */
#beauty-services .service-text ul {
  list-style: none;
  padding-left: 0;
  line-height: 1.8;
  color: #333;
}
#beauty-services .service-text ul li::before {
  content: "•";
  color: #ff6600;
  margin-right: 4px;
}

/* 画像 */
#beauty-services .service-image {
  display: flex;
  justify-content: center;
}
#beauty-services .service-photo {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  object-fit: cover;
}

/* スマホ対応 */
@media (max-width: 768px) {
  #beauty-services .service-detail {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  #beauty-services .service-text,
  #beauty-services .service-image {
    flex: 0 0 100%;
  }

  #beauty-services .service-photo {
    width: 90%;
  }

  /* 🔥 追加：スマホでは反転を無効化する */
  .service-detail:nth-child(even) {
    flex-direction: column !important;
  }

}


/**********************************************
5. 推薦・お客様の声
**********************************************/
#voices,
#customer-voices {
  width: 100%;
  padding: 80px 0;
  text-align: center;
}

#voices .grid-3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  justify-items: center;
}

#customer-voices .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: center;
}

#voices .card,
#customer-voices .card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  text-align: center;
}

#voices .card:hover,
#customer-voices .card:hover {
  transform: translateY(-4px);
}

#voices .voice-photo,
#customer-voices .voice-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 12px;
}

#voices h4,
#customer-voices h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #3f5c22;
}

#voices p,
#customer-voices p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}

/* スマホ（768px以下）でカードを縦並びに */
@media (max-width: 768px) {
  #voices .grid-3 {
    grid-template-columns: 1fr;  /* ← 1列に変更 */
    gap: 30px;                   /* カード間に余白 */
  }

  #voices .card {
    text-align: center;          /* 中央揃え（好み） */
  }


  /* 写真を丸くする */
  #voices .voice-photo {
    width: 150px;       /* 好きなサイズに調整 */
    height: 150px;      /* 正方形必須！ */
    object-fit: cover;
    border-radius: 50%; /* ← 丸にする */
    margin: 0 auto 10px;
    display: block;
  }
}



/* ============================ */
/* 患者の声セクション */
/* ============================ */
.testimonials-section {
  width: 100%;
  background: #f2f2f2;
  padding: 60px 20px;
}

.testimonials-section .container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* タイトル */
.testimonials-section .section-header {
  margin-bottom: 40px;
}

.testimonials-section .section-title {
  font-size: 30px;
  font-weight: 700;
  margin: 0;
}

/* グリッドレイアウト（5件横並び） */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

/* 各ボックス */
.testimonial-item {
  background: #fff;
  border-radius: 14px;
  padding: 25px 15px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #666;
}

.testimonial-item {
  display: flex;
  flex-direction: column; /* ← 縦並びに固定 */
  gap: 10px; /* ← 文字同士の余白 */
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.testimonial-item p:first-child {
  font-weight: 700;
  color: #111;
  margin-bottom: 5px;
}

.testimonial-item p:last-child {
  line-height: 1.7;
}


/* スマホ対応 */
@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}



/* ============================ */
/* Q&Aセクション */
/* ============================ */
.qa-section {
  width: 100%;
  background: #fff;
  padding: 60px 20px;
}

.qa-section .container {
  max-width: 900px;
  margin: 0 auto;
}

/* タイトル */
.qa-section .section-header {
  margin-bottom: 40px;
  text-align: center;
}

.qa-section .section-title {
  font-size: 30px;
  font-weight: 700;
}

/* Q&Aリスト */
.qa-item {
  background: #f9f9f9;
  border-radius: 12px;
  margin-bottom: 20px;
  padding: 20px;
}

.qa-question {
  font-size: 18px;
  font-weight: 600;
  cursor: default;
  margin: 0 0 10px 0;
}

.qa-answer p {
  margin: 0;
  line-height: 1.7;
  color: #555;
  font-size: 15px;
}

/* スマホ対応 */
@media (max-width: 420px) {
  .qa-section .section-title { font-size: 22px; }
  .qa-question { font-size: 16px; }
  .qa-answer p { font-size: 14px; }
}



/* 予約セクション */
#contact {
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:50px 20px;
  background:#f9f9f9;
  margin-bottom:60px;
}
.contact-buttons {
  display:flex;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
  margin-top:20px;
}
.contact-buttons .btn {
  padding:10px 18px;
  border-radius:6px;
  font-weight:700;
  text-decoration:none;
  min-width:120px;
  text-align:center;
}
.line-btn { background:#00c300; color:#fff; }
.line-btn:hover { background:#009900; }
.phone-btn { background:#1a73e8; color:#fff; }
.phone-btn:hover { background:#155ab6; }

/* ホームに戻る */
.back-home {
  text-align:center;
  margin:30px 0;
}
.back-home .home-btn {
  display:inline-block;
  background:rgba(173,216,230,0.2);
  color:#111;
  padding:10px 20px;
  border-radius:20px;
  text-decoration:none;
  font-weight:500;
  transition:0.3s;
}
.back-home .home-btn:hover { background:rgba(173,216,230,0.4); }

/* フッター */
.site-footer {
  background:#111;
  color:#fff;
  padding:20px 0;
  font-size:0.9rem;
  text-align:center;
}
.footer-inner {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}
.footer-links {
  list-style:none;
  display:flex;
  gap:16px;
  padding:0;
  margin:0;
}
.footer-links a {
  color:#fff;
  text-decoration:none;
}
.footer-links a:hover { text-decoration:underline; }
