/* 基本スタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Shippori Mincho", serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #f9f9f9;
}

/* ヒーローセクション */
.hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  width: 100%;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("./images/shinki_hero_desktop.png");
  background-size: cover;
  background-position: 95% 20%; /* 90%から95%に変更して右に寄せる */
  transform: scale(1);
  z-index: 0;
  filter: brightness(1.2); /* 画像を明るく */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(148, 84, 43, 0.1), rgba(31, 77, 92, 0.1)); /* オーバーレイを薄く */
  z-index: 1;
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.hero-title {
  margin-top: 1rem;
  padding: 0 1.5rem;
  font-size: 1.875rem;
  font-weight: bold;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-box {
  margin-top: auto;
  padding: 1.5rem;
}

.accent {
  color: #fbbf24;
  margin-left: 0.5rem;
}

/* デスクトップ版のスタイル（デフォルト） */
.hero-box-inner {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  border-radius: 0.5rem;
  padding: 1rem;
  width: 100%;
  max-width: 400px;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
  margin-bottom: 0.75rem;
  text-align: left;
}

.reservation-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #f59e0b;
  color: black;
  font-weight: bold;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-bottom: 0;
}

.reservation-button:hover {
  background-color: #fbbf24;
}

.reservation-button svg {
  margin-right: 0.5rem;
}

/* デスクトップ版のSNSアイコン（デフォルト） */
.sns-icons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-top: 1rem;
}

.sns-icon {
  width: auto;
  height: auto;
  padding: 0.75rem 1.25rem;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: opacity 0.2s;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.875rem;
  white-space: nowrap;
}

.sns-icon svg {
  margin-right: 0.5rem;
  flex-shrink: 0; /* アイコンが縮小されないように */
}

.sns-icon:hover {
  opacity: 0.9;
}

.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.line {
  background-color: #06c755;
}

/* スマホ表示時はトップページのデザインをそのまま使用 */
@media (max-width: 767px) {
  /* スマホ表示時のコンテナ幅を固定 */
  .container {
    width: 390px; /* 固定幅に設定 */
    max-width: 100%; /* 画面幅が390px未満の場合に対応 */
  }

  /* 以下、他のスマホ表示用スタイル */
  .hero {
    height: calc(60vh + 30px); /* 60vhに30pxを追加して高さを増やす */
    min-height: 430px; /* 元の400pxに30pxを追加 */
  }

  .hero::before {
    background-image: url("./images/shinki_hero.png");
    background-position: center top;
    transform: scale(1.1);
    filter: none; /* フィルターをリセット */
  }

  .hero-title {
    margin-top: 1rem;
    padding: 0 1.5rem;
    font-size: 1.875rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: static;
    transform: none;
  }

  .hero-box {
    margin-top: auto;
    padding: 1.5rem;
  }

  .hero-box-inner {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 0.5rem;
    padding: 1rem;
    position: static;
    transform: none;
    margin: 0;
    width: 100%;
    max-width: none;
  }

  .hero-subtitle {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.75rem;
    text-align: left;
  }

  /* スマホ表示時の予約ボタン */
  .reservation-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #f59e0b;
    color: black;
    font-weight: bold;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 0;
    font-size: 1rem;
  }

  .reservation-button svg {
    margin-right: 0.5rem;
    width: 20px;
    height: 20px;
  }

  /* スマホ表示時のSNSアイコン */
  .sns-icons {
    position: absolute;
    bottom: 11rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 30;
    margin-top: 0;
  }

  .sns-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 9999px;
    font-size: 0;
    padding: 0;
  }

  .sns-icon svg {
    margin: 0;
    width: 24px;
    height: 24px;
  }

  /* スマホ表示時のアコーディオンヘッダー（よくある質問とメニュー） */
  .accordion-header {
    text-align: left !important; /* 左寄せに強制 */
    width: 100% !important; /* 幅を100%に強制 */
    margin: 0 !important; /* マージンをリセット */
    display: block !important; /* ブロック表示に強制 */
    position: relative !important; /* 位置を相対位置に強制 */
    justify-content: flex-start !important; /* 左寄せに強制 */
  }

  .accordion-header::after {
    content: "+" !important;
    position: absolute !important; /* 位置を絶対位置に強制 */
    right: 1rem !important; /* 右端に配置 */
    top: 50% !important;
    transform: translateY(-50%) !important; /* 垂直中央揃え */
    margin-left: 0 !important; /* マージンをリセット */
  }

  .accordion-item.active .accordion-header::after {
    content: "-" !important;
  }

  .accordion-content {
    text-align: left !important; /* 左寄せに強制 */
    width: 100% !important; /* 幅を100%に強制 */
    margin: 0 !important; /* マージンをリセット */
  }

  /* FAQセクションのスタイルをスマホ表示時に上書き */
  .section:has(.accordion-item) .accordion-header {
    text-align: left !important;
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
    justify-content: flex-start !important;
  }

  .section:has(.accordion-item) .accordion-header::after {
    content: "+" !important;
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-left: 0 !important;
  }

  .section:has(.accordion-item) .accordion-content {
    text-align: left !important;
    width: 100% !important;
    margin: 0 !important;
  }
}

/* タブレット横向き以上のデバイス用のスタイル */
@media (min-width: 768px) {
  .hero-title {
    position: absolute;
    top: 25%;
    left: 10%;
    transform: translateY(-50%);
    text-align: left;
    font-size: 2.25rem;
    padding: 0;
  }

  .hero-box-inner {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 0.5rem;
    padding: 1rem;
    width: 100%;
    max-width: 400px;
    position: absolute;
    top: auto;
    bottom: 25%;
    left: 10%;
    transform: none;
    margin: 0;
  }

  .sns-icons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
    position: absolute;
    bottom: 15%;
    left: 10%;
    transform: none;
    margin-top: 0;
  }
}

/* デスクトップ表示時のヒーローセクションレイアウト */
@media (min-width: 1024px) {
  .hero-title {
    left: 20%;
    font-size: 2.5rem;
  }

  .hero-box-inner {
    left: 20%;
  }

  .sns-icons {
    left: 20%;
  }

  .hero::before {
    background-position: 100% 30%; /* デスクトップでは画像をさらに右下から表示 */
  }
}

/* セクション共通 */
.section {
  padding: 2rem 1.5rem;
}

.bg-white {
  background-color: white;
}

.bg-gray {
  background-color: #f3f4f6;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: bold;
  color: #1f4d5c;
  padding-bottom: 0.5rem;
}

.section-line {
  width: 6rem;
  height: 2px;
  background-color: #ee7800;
}

.section-note {
  margin-top: 1.5rem;
  text-align: center;
  color: #4b5563;
  font-weight: bold;
}

/* 料金メニュー */
.pricing-menu {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pricing-category {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  flex: 1;
}

.pricing-header {
  background-color: #1f4d5c;
  color: white;
  padding: 0.75rem 14px; /* 左右のパディングを14pxに変更 */
}

.pricing-header h3 {
  font-size: 1.125rem;
  font-weight: bold;
}

.pricing-note {
  font-size: 0.75rem;
  color: #e5e7eb;
  margin-top: 0.25rem;
}

.accordion-item {
  border-bottom: 1px solid #e5e7eb;
}

/* メニューのドロップダウンを元に戻す */
.accordion-header {
  padding: 0.75rem 1rem;
  font-weight: bold;
  color: #1f4d5c;
  cursor: pointer;
  position: relative;
  text-align: left; /* 左寄せに戻す */
  width: 100%; /* 幅を100%に戻す */
  margin: 0; /* マージンをリセット */
  display: block; /* ブロック表示に戻す */
}

.accordion-header::after {
  content: "+";
  position: absolute; /* 位置を絶対位置に戻す */
  right: 1rem; /* 右端に配置 */
  top: 50%;
  transform: translateY(-50%); /* 垂直中央揃え */
}

.accordion-item.active .accordion-header::after {
  content: "-";
}

.accordion-content {
  padding: 0.75rem 1rem;
  background-color: #f9fafb;
  display: none;
  text-align: left; /* 左寄せに戻す */
  width: 100%; /* 幅を100%に戻す */
  margin: 0; /* マージンをリセット */
}

/* FAQのレイアウト調整（FAQセクションのみ中央寄せ） */
.section:has(.accordion-item) .accordion-header {
  text-align: center; /* FAQテキストを中央寄せ */
  width: 70%; /* 幅を70%に設定 */
  margin: 0 auto; /* 中央揃え */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section:has(.accordion-item) .accordion-header::after {
  content: "+";
  position: static; /* 位置を静的に */
  margin-left: 1rem; /* テキストとの間隔 */
  transform: none; /* 変形をリセット */
}

.section:has(.accordion-item) .accordion-content {
  text-align: center; /* FAQの回答も中央寄せ */
  width: 70%; /* 幅を70%に設定 */
  margin: 0 auto; /* 中央揃え */
}

.accordion-item.active .accordion-content {
  display: block;
}

.price-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.price-tag {
  background-color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

.course-description {
  color: #4b5563;
  font-size: 0.875rem;
  white-space: pre-line;
}

.pricing-link {
  text-align: center;
  margin-top: 1.5rem;
}

.link-button {
  color: #2563eb;
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
}

.link-button:hover {
  color: #1d4ed8;
}

/* ポップアップ */
.popup {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.popup-content {
  position: relative;
  max-width: 100%;
  max-height: 90vh;
  overflow: auto;
}

.popup-content img {
  width: auto;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
}

.close-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: white;
  border-radius: 9999px;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 10;
  cursor: pointer;
  font-size: 1.25rem;
}

/* 情報カード */
.info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background-color: #f9fafb;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.info-card-title {
  font-weight: bold;
  font-size: 1.125rem;
  color: #1f4d5c;
  margin-bottom: 0.5rem;
  padding-left: 0.75rem;
  position: relative;
}

.vertical-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #ee7800;
  border-radius: 9999px;
}

.numbered-list,
.bullet-list {
  list-style-position: inside;
  color: #4b5563;
  padding-left: 0.5rem;
}

.numbered-list li,
.bullet-list li {
  margin-bottom: 0.5rem;
}

/* 特徴カード */
.feature-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-card {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.feature-header {
  background-color: #ee7800;
  color: white;
  padding: 0.5rem 1rem;
  font-weight: bold;
  font-size: 1.125rem;
}

.feature-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-image {
  position: relative;
  width: 100%;
  height: 12rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 交通事故対応セクション */
.traffic-accident-card {
  max-width: 800px;
  margin: 0 auto;
}

/* 使用設備・技術セクション */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.equipment-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

.equipment-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.equipment-title {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.equipment-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #666;
}

/* 当院の特徴 */
.features-list {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

.feature-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

/* 施術者情報 */
.practitioners {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* こんな悩みはありませんか？ */
.concerns-section {
  background-color: #1f4d5c;
  color: white;
}

.concerns-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.concern-item {
  background-color: #2a5d6d;
  padding: 1rem;
  border-radius: 0.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.concern-item p {
  color: #f3f4f6;
}

/* こんな声をいただいています！ */
.testimonials {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-title {
  font-weight: bold;
  font-size: 1.125rem;
  color: #94542b;
  margin-bottom: 0.5rem;
}

.testimonial-text {
  color: #4b5563;
}

.testimonial-author {
  color: #6b7280;
  font-size: 0.875rem;
  text-align: right;
  margin-top: 0.5rem;
}

/* アクセス情報 */
.access-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.access-item {
  display: flex;
  gap: 0.75rem;
}

.access-icon {
  color: #ee7800;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.access-content {
  flex-grow: 1;
}

.access-label {
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.access-details {
  margin-top: 0.75rem;
}

.bold {
  font-weight: 600;
}

.access-details ul {
  list-style-type: disc;
  list-style-position: inside;
  font-size: 0.875rem;
  color: #4b5563;
  padding-left: 0.5rem;
}

.access-details li {
  margin-top: 0.25rem;
}

.map-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: #2563eb;
  text-decoration: underline;
  font-size: 0.875rem;
}

.google-map {
  width: 100%;
  height: 250px;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hours-table {
  overflow-x: auto;
}

.hours-table table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table th,
.hours-table td {
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  text-align: center;
  font-size: 0.875rem;
}

.hours-table th {
  background-color: #f3f4f6;
  font-weight: 500;
}

.hours-table td:first-child {
  background-color: #f9fafb;
}

.open {
  color: #059669;
  font-weight: bold;
}

.closed {
  color: #dc2626;
  font-weight: bold;
}

.hours-note {
  font-size: 0.875rem;
  color: #4b5563;
  margin-top: 0.75rem;
}

/* お問い合わせボタン */
.contact-buttons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: center;
}

.phone-button,
.line-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.phone-button {
  background-color: #f59e0b;
  color: black;
  border: none;
}

.phone-button:hover {
  background-color: #fbbf24;
}

.line-button {
  background-color: white;
  color: #333;
  border: 1px solid #d1d5db;
  display: flex;
  justify-content: space-between;
}

.line-button:hover {
  background-color: #f9fafb;
}

.phone-button svg,
.line-button svg {
  margin-right: 0.5rem;
}

/* フッター */
.footer {
  padding: 1.5rem;
  background-color: #111827;
  color: white;
  text-align: center;
}

.copyright {
  font-size: 0.875rem;
  color: #9ca3af;
}

.footer-instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #9ca3af;
  margin-top: 1rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-instagram:hover {
  color: white;
}

.footer-instagram-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.footer-instagram span {
  font-size: 0.875rem;
}

/* アクセスセクションの3列レイアウト */
.access-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.access-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.phone-info {
  margin-top: 1rem;
}

/* レスポンシブ対応 */
@media (min-width: 640px) {
  .section {
    padding: 3rem 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .equipment-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .features-list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
  }

  .concerns-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
  }

  .practitioners {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .pricing-menu {
    flex-direction: row;
  }

  .feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }

  .testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-height: none;
    overflow-y: visible;
  }

  .features-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .practitioners {
    grid-template-columns: repeat(2, 1fr);
  }

  .equipment-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .access-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .access-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

