/* ============================================================
   Crab Shop Detail（SWELL準拠・装飾専用｜最終安定版）
   ------------------------------------------------------------
   方針：
   ・レイアウト（幅/中央寄せ/上下余白）は SWELL に委譲
   ・CSS は装飾・演出・部品見た目のみを担当
   ・トップ/一覧/他詳細へ影響させない
============================================================ */


/* ============================================================
   基本
============================================================ */

.cast-profile {
  text-align: center;
  font-family: "Noto Serif JP", serif;
  box-sizing: border-box;
}


/* ============================================================
   メイン画像
============================================================ */

.cast-image-main img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: opacity .4s ease;
}

#mainCastImage.fade {
  opacity: 0;
}


/* ============================================================
   サムネイル（横スクロール・装飾のみ）
============================================================ */

.thumb-scroll-area {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.thumb-scroll-area::-webkit-scrollbar {
  display: none;
}

.thumb-scroll-inner {
  display: inline-flex;
  gap: 14px;
}

img.cast-thumb {
  display: inline-block;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity .3s, transform .3s;
  flex-shrink: 0;
}

img.cast-thumb:hover {
  opacity: 1;
  transform: scale(1.03);
}

img.cast-thumb.active {
  opacity: 1;
  outline: 4px solid #C9A34E;
}


/* ============================================================
   タイトル・CTA（装飾のみ）
============================================================ */

.cast-name {
  color: #C9A34E;
  font-size: 36px;
  font-weight: 600;
}

.cast-work-status {
  font-size: 18px;
  color: #555;
}

.cast-btn-tel {
  display: inline-block;
  padding: 14px 36px;
  font-size: 20px;
  border: 2px solid #C9A34E;
  color: #C9A34E;
  border-radius: 50px;
  text-decoration: none;
  transition: .3s;
}

.cast-btn-tel:hover {
  background: #C9A34E;
  color: #000;
}


/* ============================================================
   セクション見出し
============================================================ */

.cast-section-title {
  font-size: 24px;
  color: #C9A34E;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.05em;
}


/* ============================================================
   かに提供状況（横スクロール部品）
============================================================ */

.cast-schedule-scroll {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.cast-schedule-scroll::-webkit-scrollbar {
  display: none;
}

.cast-schedule-table {
  display: inline-flex;
  gap: 6px;
}

.schedule-cell {
  flex-shrink: 0;
  width: 92px;
  height: 95px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
}

.schedule-date {
  background: #999;
  color: #fff;
  padding: 4px 0;
  font-size: 14px;
  white-space: nowrap;
}

.schedule-status {
  font-size: 28px;
  color: #C9A34E;
  padding: 16px 0;
}


/* ============================================================
   店舗条件（OPTION TABLE）
============================================================ */

.cast-option-table {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.option-cell {
  width: 110px;
  border: 1px solid #ccc;
  margin: 5px;
  padding: 8px 0;
  text-align: center;
  font-size: 15px;
}

.option-name {
  background: #999;
  color: #fff;
  padding: 6px 2px;
}

.option-status {
  padding: 10px 0;
  font-size: 22px;
  color: #C9A34E;
}


/* ============================================================
   SP 調整（サイズのみ）
============================================================ */

@media (max-width: 768px) {

  img.cast-thumb {
    width: 90px;
    height: 90px;
  }

  .cast-name {
    font-size: 28px;
  }

  .cast-btn-tel {
    font-size: 18px;
    padding: 12px 28px;
  }

  .schedule-cell {
    width: 92px;
    height: 90px;
  }
}


/* ============================================================
   Crab Shop Detail：余白調整（SWELL準拠・最終微調整）
   ------------------------------------------------------------
   方針：
   ・SWELLのブロック余白感に合わせる
   ・margin を最小限・局所的に付与
   ・レイアウト責務は持たせない
============================================================ */

/* メイン画像の上下余白（SWELLのcover相当） */
#gw-crab-detail .cast-image-main {
  margin-top: 2.5em;
  margin-bottom: 1.5em;
}

/* サムネイルと次要素の間 */
#gw-crab-detail .thumb-scroll-area {
  margin-bottom: 2.5em;
}

/* セクション見出しの上下余白 */
#gw-crab-detail .cast-section-title {
  margin-top: 3em;
  margin-bottom: 1.2em;
}

/* SP時は少し詰める（SWELLと同じ感覚） */
@media (max-width: 768px) {
  #gw-crab-detail .cast-image-main {
    margin-top: 2em;
    margin-bottom: 1.2em;
  }

  #gw-crab-detail .thumb-scroll-area {
    margin-bottom: 2em;
  }

  #gw-crab-detail .cast-section-title {
    margin-top: 2.4em;
    margin-bottom: 1em;
  }
}


/* ============================================================
   Crab Shop Detail：下部余白の最終調整（安全・局所）
============================================================ */

/* 店舗条件 → 店舗名 の間 */
#gw-crab-detail .cast-option-table {
  margin-bottom: 3.5em;
}

/* 店舗名 → ボタン の間 */
#gw-crab-detail .cast-name {
  margin-bottom: 1.6em;
}

/* ボタン同士の間隔（既存が詰まっている場合の保険） */
#gw-crab-detail .cast-btn-tel + .cast-btn-tel {
  margin-top: 1em;
}

/* 最後のボタン → ページ下の余白 */
#gw-crab-detail .cast-btn-tel:last-of-type {
  margin-bottom: 4em;
}

/* SPは少しだけ詰める（メンズエステと同じ感覚） */
@media (max-width: 768px) {
  #gw-crab-detail .cast-option-table {
    margin-bottom: 3em;
  }

  #gw-crab-detail .cast-name {
    margin-bottom: 1.4em;
  }

  #gw-crab-detail .cast-btn-tel:last-of-type {
    margin-bottom: 3.2em;
  }
}
