/**
 * Shop Single Page Styles
 *
 * @package ShopAdminDashboard
 */

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  --sad-primary-color: #cc1db8;
  --sad-primary-hover: #a8179a;
  --sad-text-color: #333;
  --sad-text-light: #666;
  --sad-border-color: #e0e0e0;
  --sad-bg-light: #f8f9fa;
  --sad-line-color: #06c755;
  --sad-tel-color: #0066cc;
  --sad-radius: 8px;
  --sad-radius-lg: 12px;
}

/* ==========================================================================
   Base
   ========================================================================== */
.sad-shop-single {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.sad-section-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 2rem 0 1rem;
  padding-left: 12px;
  border-left: 5px solid var(--sad-primary-color);
  color: var(--sad-text-color);
}

/* ==========================================================================
   Header Section
   ========================================================================== */
.sad-shop-header {
  background: #fff;
  border-radius: var(--sad-radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}

.sad-shop-header__inner {
  display: flex;
  gap: 2rem;
}

.sad-shop-header__banner {
  flex: 0 0 40%;
  max-width: 400px;
}

.sad-shop-header__image {
  width: 100%;
  height: auto;
  display: block;
}

.sad-shop-header__no-image {
  aspect-ratio: 4/3;
  background: var(--sad-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sad-text-light);
  font-size: 1.2rem;
}

.sad-shop-header__info {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.main .sad-shop-header__title {
  font-size: 2rem;
  font-weight: bold;
  margin: 0 0 0.15rem;
  line-height: 1;
  color: var(--sad-text-color);
}

.sad-shop-header__furigana {
  font-size: 0.9rem;
  color: var(--sad-text-light);
  margin: 0 0 1rem;
}

.sad-shop-header__areas {
  position: relative;
  padding: 0.5rem 1rem;
  color: navy;
  font-weight: bold;
  text-align: center;
  border: 3px solid navy;
  border-radius: 0 10px 10px 10px;
  margin-top: 45px;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.sad-shop-header__areas::before {
  content: '在籍セラピストの出勤エリア';
  position: absolute;
  top: -28px;
  left: -3px;
  height: 28px;
  padding: 2px 1em;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  background: navy;
  border-radius: 10px 10px 0 0;
}

/* Shop Details (営業時間テキスト表示) */
.sad-shop-header__details {
  /* margin-bottom: 1rem; */
  margin-top: 1rem;
}

.sad-shop-header__hours {
  font-size: 0.95rem;
  color: var(--sad-text-color);
  line-height: 1;
}

.main .sad-shop-header__hours {
  margin-bottom: 0;
}

.sad-shop-header__hours-label {
  font-weight: bold;
  color: var(--sad-text-light);
  margin-right: 0.5rem;
}

.sad-area-tag {
  display: inline;
}

.sad-area-tag:not(:last-child)::after {
  content: ' / ';
}

/* Action Buttons */
.sad-shop-header__actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sad-border-color);
  margin-top: 1rem;
}

.sad-action-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--sad-radius);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  max-width: 270px;
}

.sad-action-btn__icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.sad-action-btn__text {
  flex-grow: 1;
  text-align: center;
  font-weight: bold;
}

.sad-action-btn--tel {
  background: #e33273;
  color: #fff;
}

.sad-action-btn--tel:hover {
  background: #c72a63;
  color: #fff;
}

.sad-action-btn--line {
  background: var(--sad-line-color);
  color: #fff;
}

.sad-action-btn--line:hover {
  background: #05a847;
  color: #fff;
}

.sad-action-btn--url {
  background: transparent;
  color: #e33273;
  border: 2px solid #e33273;
}

.sad-action-btn--url:hover {
  background: #e33273;
  color: #fff;
}

.sad-action-btn--x {
  background: #000;
  color: #fff;
}

.sad-action-btn--x:hover {
  background: #333;
  color: #fff;
}

.sad-action-btn--icon-only {
  justify-content: center;
}

/* ==========================================================================
   Chart Section
   ========================================================================== */
.sad-shop-chart {
  background: #fff;
  border-radius: var(--sad-radius-lg);
  padding: 2rem 2rem 0;
}

.sad-shop-chart__container {
  display: flex;
  justify-content: center;
}

.sad-shop-chart__canvas-wrapper {
  width: 100%;
  max-width: 750px;
}

/* ==========================================================================
   Therapists Section
   ========================================================================== */
.sad-shop-therapists {
  background: #fff;
  border-radius: var(--sad-radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.sad-therapist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.sad-therapist-card {
  overflow: hidden;
  background: #fff;
}

.sad-therapist-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.sad-therapist-card__image {
  position: relative;
  overflow: hidden;
  border-radius: var(--sad-radius);
}

.sad-therapist-card__image img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.sad-therapist-card:hover .sad-therapist-card__image img {
  transform: scale(1.05);
}

.sad-therapist-card__no-image {
  aspect-ratio: 3/4;
  background: var(--sad-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sad-text-light);
}

.sad-therapist-card__rating {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--sad-primary-color);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
}

.sad-therapist-card__comments {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.sad-therapist-card__comments-count {
  font-size: 1.125rem;
  font-weight: bold;
  background: linear-gradient(135deg, #ff5f6d, #ffc371, #ff9a56);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.sad-therapist-card__content {
  padding: 1rem 0 0.5rem;
}

.main .sad-therapist-card__name {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1;
  margin: 0 0 0.25rem;
  color: var(--sad-text-color);
}

.sad-therapist-card__furigana {
  flex: 1;
  font-size: 0.75rem;
  font-weight: normal;
  color: var(--sad-text-light);
}

.sad-therapist-card__furigana::before {
  content: none;
}

.sad-therapist-card__excerpt {
  font-size: 0.85rem;
  color: var(--sad-text-light);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sad-shop-therapists__footer {
  text-align: center;
  margin-top: 2rem;
}

.sad-btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sad-btn--primary {
  background: linear-gradient(135deg, #ff5f6d, #ffc371, #ff5f6d);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #fff;
}

.sad-btn--primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  color: #fff;
}

/* ==========================================================================
   Courses Section
   ========================================================================== */
.sad-shop-courses {
  background: #fff;
  border-radius: var(--sad-radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sad-course-block {
  width: 80%;
  max-width: 600px;
  margin-bottom: 2rem;
}

.sad-course-block:last-child {
  margin-bottom: 0;
}

.sad-course-block__title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sad-primary-color);
  color: var(--sad-text-color);
}

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

.sad-price-table th,
.sad-price-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--sad-border-color);
}

.anima-stripped-table .main .sad-price-table td {
  border-top: none;
}

.sad-price-table th {
  background: var(--sad-bg-light);
  font-weight: 500;
  color: var(--sad-text-light);
}

.sad-price-table td:last-child {
  text-align: right;
  font-weight: bold;
  color: var(--sad-primary-color);
}

/* 最後の行のボーダーを削除 */
.sad-price-table tbody tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   Shop Info Section
   ========================================================================== */
.sad-shop-info {
  background: #fff;
  border-radius: var(--sad-radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

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

.sad-info-table th,
.sad-info-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--sad-border-color);
  vertical-align: top;
}

.sad-info-table th {
  width: 30%;
  font-weight: 500;
  color: var(--sad-text-light);
}

.sad-info-table td {
  color: var(--sad-text-color);
}

.sad-info-table td a {
  color: var(--sad-primary-color);
  text-decoration: none;
}

.sad-info-table td a:hover {
  text-decoration: underline;
}

.sad-info-table tbody tr:last-child th,
.sad-info-table tbody tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media screen and (max-width: 1024px) {
  .sad-shop-chart__canvas-wrapper {
    max-width: 750px;
  }
}

@media screen and (max-width: 768px) {
  .sad-shop-single {
    padding: 10px;
  }

  .sad-section-title {
    font-size: 1.25rem;
  }

  /* Header */
  .sad-shop-header__inner {
    flex-direction: column;
    gap: 0;
  }

  .sad-shop-header__banner {
    flex: none;
    max-width: none;
  }

  .sad-shop-header__info {
    padding: 1.5rem;
  }

  .sad-shop-header__title {
    font-size: 1.5rem;
  }

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

  .sad-shop-header__areas {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.2rem;
  }

  /* Chart */
  .sad-shop-chart {
    padding: 1.5rem;
  }

  /* Therapists */
  .sad-shop-therapists {
    padding: 1.5rem;
  }

  .sad-therapist-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .sad-therapist-card__name {
    font-size: 0.9rem;
  }

  .sad-therapist-card__excerpt {
    font-size: 0.75rem;
  }

  .sad-therapist-card__rating,
  .sad-therapist-card__comments {
    font-size: 0.75rem;
  }

  .sad-therapist-card__comments-count {
    font-size: 1.25rem;
  }

  /* Courses */
  .sad-shop-courses {
    padding: 1.5rem;
  }

  .sad-course-block {
    width: 100%;
  }

  .sad-price-table th,
  .sad-price-table td {
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  /* Info */
  .sad-shop-info {
    padding: 1.5rem;
  }

  .sad-info-table th,
  .sad-info-table td {
    display: block;
    width: 100%;
    padding: 0.75rem;
  }

  .sad-info-table th {
    background: rgba(196, 40, 183, 0.15);
    border-bottom: none;
    padding-bottom: 0.25rem;
  }

  .sad-info-table td {
    padding-top: 0.25rem;
  }
}

@media screen and (max-width: 480px) {
  .sad-therapist-grid {
    grid-template-columns: 1fr;
  }
}
