/* ============================= */
/* --- 全体の基本設定 --- */
/* ============================= */
: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: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: url('./imgs/menutop.jpeg') center/cover no-repeat;
  margin-bottom: 60px;
}

.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: 0 0 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content .menu-intro {
  font-size: 1.2rem;
  margin-bottom: 20px;
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.hero-content .btn {
  display: inline-block;
  background: #fff;
  color: #111;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
}

.hero-content .btn:hover { 
  background: rgba(255,255,255,0.8); 
}

/* スマホ対応 */
@media(max-width:768px) {
  .hero { height: 60vh; }
  .hero-content h1 { font-size: clamp(24px,8vw,36px); }
  .hero-content .menu-intro { font-size: 1rem; }
  .hero-content .btn { padding: 10px 16px; }
}



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

@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;
  }
}



/* ===================================== */
/* サービス（メニュー詳細）レイアウト完全版 */
/* ===================================== */
.services.container {
  max-width: 1100px;
  width: 90%;
  margin: 0 auto;
  padding: 40px 0;
  box-sizing: border-box;
}

.service-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 80px;
}

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

/* 左右の幅は 50% - 50% */
.service-text,
.service-image {
  flex: 0 0 50%;
}

.service-text h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.service-text ul {
  list-style: none;
  padding-left: 0;
  line-height: 1.8;
  color: #333;
}

.service-text ul li::before {
  content: "•";
  color: #ff6600;
  margin-right: 4px;
}

/* 画像 */
.service-image {
  display: flex;
  justify-content: center;
}

.service-photo {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  object-fit: cover;
}


.pred {
  color: red;
  font-size: 20px;
}


/* 初めての方限定キャンペーン */
.first-campaign {
  margin-top: 60px;
  padding: 40px 20px;
  text-align: center;
  background-color: #f5f8f7;
  border-radius: 14px;
}

.first-campaign .campaign-label {
  font-size: 1.7rem;
  font-weight: 900;
  color: #3f5c22;
  margin-bottom: 30px;
  
}

.first-campaign {
  width: 100%;
}

.first-campaign img {
  width: 100%;
  height: auto;
  display: block;
}




/* スマホ対応 */
@media(max-width: 768px) {
  .service-detail {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .service-text,
  .service-image {
    flex: 0 0 100%;
  }
  .service-photo {
    width: 90%;
  }

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


}


/* ============================= */
/* 施術の流れセクション（CSS） */
/* ============================= */
:root {
  --max-width: 1100px;
  --accent: #2b7a78;
  --muted: #666;
  --bg: #ffffff;
  --gap: 28px;
  --radius: 12px;
}

.flow-section {
  background: var(--bg);
  padding: 60px 20px;
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: #111;
}

.flow-section .container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* タイトル */
.section-title {
  font-size: 28px;
  margin: 0 0 36px 0;
  text-align: center;
  color: var(--accent);
}

/* 各項目 */
.flow-item {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--gap);
  align-items: center;
  margin-bottom: 36px;
  padding: 20px;
  border-radius: var(--radius);
  background: #fbfcfc;
  box-shadow: 0 6px 18px rgba(20,20,20,0.03);
}

.flow-number {
  font-size: 18px;
  margin: 0 0 8px 0;
  color: #0b6060;
  letter-spacing: .02em;
}

.flow-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}

.flow-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.flow-image img {
  width: 100%;
  height: auto;
  max-width: 420px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(15,15,15,0.06);
}

/* 画像左・文字右 */
.flow-item.reverse {
  grid-template-columns: 420px 1fr;
}

/* レスポンシブ：スマホは縦並び */
@media (max-width: 880px) {
  .flow-item {
    display: block;
    padding: 18px;
  }
  .flow-image img {
    max-width: 100%;
    margin-top: 12px;
  }
}

/* 小さめフォント調整 */
@media (max-width: 420px) {
  .section-title { font-size: 22px; }
  .flow-number { font-size: 16px; }
  .flow-text p { font-size: 14px; }
}

/* ============================ */
/* 学生施術セクション（完全版・画像大きめ） */
/* ============================ */
.student-section {
  width: 100%;
  background: #f2f2f2;
  padding: 60px 20px;
}

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

/* --- タイトル + もっと見る --- */
.section-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 35px;
}

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

.more-btn-header {
  display: inline-block;
  padding: 8px 18px;
  background: #007acc;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid #007acc;
  font-size: 14px;
  transition: 0.25s;
}

.more-btn-header:hover {
  background: #fff;
  color: #007acc;
}

/* --- 学生施術各ボックス --- */
.student-item {
  background: #fff;
  border-radius: 14px;
  padding: 25px;
  margin-bottom: 25px;
  display: grid;
  grid-template-columns: 2fr 1fr; /* 文字:画像 = 2:1 に変更 */
  gap: 25px;
}

.student-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.student-image img {
  width: 100%;
  max-width: 300px; /* 最大幅を大きく */
  border-radius: 10px;
  object-fit: cover;
}

/* 3番目だけ中央寄せ（画像なしでも中央に） */
.student-item:nth-child(3) {
  text-align: center;
  display: block;
}

.student-item:nth-child(3) .student-title {
  font-size: 22px;
}

.student-item:nth-child(3) p {
  font-size: 15px;
  line-height: 1.7;
}

/* ボタン */
.more-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #007acc;
  color: #fff;
  border-radius: 5px;
  border: 1px solid #007acc;
  text-decoration: none;
  transition: 0.25s;
  font-size: 15px;
}

.more-btn:hover {
  background: #fff;
  color: #007acc;
}

/* --- スマホ版 --- */
@media (max-width: 768px) {
  .student-item {
    grid-template-columns: 1fr;
  }
  .student-image img {
    max-width: 100%;
    margin-top: 14px;
  }
  .section-header {
    display: block;
    text-align: center;
  }
  .more-btn-header {
    margin-top: 10px;
    display: inline-block;
  }
}

@media (max-width: 420px) {
  .section-title { font-size: 22px; }
  .student-title { font-size: 18px; }
  .student-text p { font-size: 14px; }
}



/* ============================ */
/* お得なセットメニュー（横並び版） */
/* ============================ */
.special-section {
  width: 100%;
  background: #f9f9f9;
  padding: 60px 20px;
}

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

/* タイトル */
.section-header {
  margin-bottom: 40px;
}
.section-title {
  font-size: 30px;
  font-weight: 700;
  margin: 0;
}

/* グリッドレイアウト */
.special-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* 各ボックス */
.special-item {
  background: #fff;
  border-radius: 14px;
  padding: 25px 20px;
  text-align: center;
}

.special-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.special-item p {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

/* 項目3のボタン */
.more-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #007acc;
  color: #fff;
  border-radius: 5px;
  /* border: 1px solid #007acc; */
  text-decoration: none;
  transition: 0.25s;
  font-size: 15px;
}

.more-btn:hover {
  background: #fff;
  color: #007acc;
}



/* スマホ対応 */
@media (max-width: 880px) {
  .special-grid {
    grid-template-columns: 1fr; /* 縦並びに切替 */
  }
}

@media (max-width: 420px) {
  .section-title { font-size: 22px; }
  .special-title { font-size: 18px; }
  .special-item p { font-size: 14px; }
}



/* ============================ */
/* 患者の声セクション */
/* ============================ */
.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;
  }
}





/* ============================= */
/* --- 予約セクション --- */
/* ============================= */

/* 締めセクション文章 */
.final-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  max-width: 600px;
  margin: 0 auto;
}

#contact {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 50px 20px;
  background: #fff;
  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; }
