/* ============================================================
   ssshowcase — スタイルシート
   ============================================================ */

/* ---- ラッパー ---- */
.sss-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px 40px;
  font-family: sans-serif;
  background: transparent;
}

/* ---- ナビゲーション ---- */
.sss-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.sss-nav__logo {
  font-size: 1.4rem;
  font-weight: bold;
  text-decoration: none;
  color: #1a73e8;
}
.sss-nav__links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 16px;
  flex-wrap: wrap;
}
.sss-nav__links a {
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
}
.sss-nav__links a:hover {
  color: #1a73e8;
}

/* ---- ページタイトル ---- */
.sss-page-title {
  font-size: 1.6rem;
  margin: 0 0 20px;
  border-left: 4px solid #1a73e8;
  padding-left: 10px;
  color: #333 !important;
}

/* ---- ボタン ---- */
.sss-btn {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: #fff;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.sss-btn:hover {
  background: #f5f5f5;
}
.sss-btn--primary {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #fff;
}
.sss-btn--primary:hover {
  background: #1558c0;
}
.sss-btn--secondary {
  background: #f0f0f0;
  border-color: #aaa;
}
.sss-btn--danger {
  background: #d93025;
  border-color: #d93025;
  color: #fff;
}
.sss-btn--danger:hover {
  background: #b52318;
}
.sss-btn--small {
  padding: 4px 10px;
  font-size: 0.8rem;
}
.sss-btn--good {
  font-size: 1rem;
  padding: 8px 20px;
  background: #e8f0fe;
  border-color: #1a73e8;
  color: #1a73e8;
}
.sss-btn--good:hover {
  background: #d2e3fc;
}
.sss-btn--good.sss-good-done {
  background: #e0e0e0;
  border-color: #aaa;
  color: #888;
  cursor: default;
}

/* ---- お知らせ ---- */
.sss-notice {
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 20px;
}
.sss-notice--warning {
  background: #fff8e1;
  border-left: 4px solid #f9a825;
}
.sss-notice--error {
  background: #fdecea;
  border-left: 4px solid #d93025;
}
.sss-notice--success {
  background: #e6f4ea;
  border-left: 4px solid #34a853;
}
.sss-notice ul {
  margin: 0;
  padding-left: 20px;
}
.sss-notice-inline {
  color: #555;
  font-size: 0.9rem;
  margin: 4px 0;
}

/* ---- アクションバー ---- */
.sss-action-bar {
  margin-bottom: 20px;
}

/* ---- 件数表示 ---- */
.sss-list-count {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.sss-empty {
  color: #888;
  padding: 40px 0;
  text-align: center;
}

/* ---- サービスカード（一覧） ---- */
.sss-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.sss-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: box-shadow 0.2s;
}
.sss-card:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
}
.sss-card__thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.sss-card__body {
  padding: 14px;
  background: #fff !important;
  color: #333 !important;
}
.sss-card__title {
  font-size: 1rem;
  margin: 0 0 8px;
  color: #333 !important;
}
.sss-card__title a {
  color: #1a73e8 !important;
  text-decoration: none;
}
.sss-card__title a:hover {
  text-decoration: underline;
}
.sss-card__desc {
  color: #555 !important;
  font-size: 0.875rem;
  margin: 0 0 10px;
  line-height: 1.5;
}
.sss-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

/* ---- タグ ---- */
.sss-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.sss-tag {
  background: #e8f0fe;
  color: #1a73e8;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.78rem;
}

/* ---- Good カウント ---- */
.sss-good-count {
  font-size: 0.9rem;
  color: #555 !important;
}
.sss-widget-good {
  color: #555 !important;
}

/* ---- ページネーション ---- */
.sss-pagination {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
}
.sss-pagination a {
  color: #1a73e8;
  text-decoration: none;
}

/* ---- 白カードパネル（詳細・登録・編集で共通） ---- */
.sss-panel {
  background: #fff !important;
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
  margin-bottom: 24px;
  color: #333 !important;
}

/* ---- 詳細画面 ---- */
.sss-detail__card {
  background: #fff !important;
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
  color: #333 !important;
}
.sss-detail__title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 0 12px;
  line-height: 1.4;
  color: #333 !important;
}
.sss-back {
  margin-bottom: 12px;
}
.sss-back a {
  color: #1a73e8;
  text-decoration: none;
  font-size: 0.875rem;
}
.sss-detail__url {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 12px;
  font-size: 0.9rem;
  word-break: break-all;
}
.sss-detail__url a {
  color: #1a73e8;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sss-detail__url a:hover {
  text-decoration: underline;
}
.sss-icon-globe {
  flex-shrink: 0;
  vertical-align: middle;
}
.sss-detail__desc {
  line-height: 1.7;
  margin: 0 0 20px;
  white-space: pre-wrap;
  color: #333 !important;
}
.sss-detail__tags {
  margin: 16px 0 24px;
}

/* ---- スライダー（ピーク型カルーセル） ---- */
.sss-slider-wrap {
  margin-bottom: 8px;
}
.sss-slider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  user-select: none;
}
.sss-slider__btn {
  flex-shrink: 0;
  background: #f0f0f0;
  color: #555;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  padding: 0;
  line-height: 1;
}
.sss-slider__btn:hover {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
}
.sss-slider__viewport {
  flex: 1;
  overflow: hidden;
  border-radius: 8px;
}
.sss-slider__track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}
.sss-slider__slide {
  flex: 0 0 80%;
  padding: 0 6px;
  box-sizing: border-box;
  transition: opacity 0.35s;
  opacity: 0.45;
}
.sss-slider__slide.is-active {
  opacity: 1;
}
.sss-slider__slide img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}
.sss-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.sss-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.sss-slider__dot.is-active {
  background: #1a73e8;
}

/* Good ボタン・フッター */
.sss-detail__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.sss-good-area {
  display: flex;
  align-items: center;
}
.sss-btn--good-large {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: #1a73e8;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.sss-btn--good-large:hover {
  background: #1558c0;
  color: #fff;
}
.sss-btn--good-large.sss-good-done {
  background: #e0e0e0;
  color: #888;
  cursor: default;
}
.sss-good-static {
  font-size: 1rem;
  color: #555;
}
.sss-detail__footer-right {
  display: flex;
  gap: 8px;
}
.sss-detail__meta {
  font-size: 0.8rem;
  color: #aaa;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

/* ---- フォーム ---- */
.sss-form {
  max-width: 600px;
}
.sss-form__group {
  margin-bottom: 20px;
}
.sss-form__group label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.sss-form__group input[type="text"],
.sss-form__group textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  box-sizing: border-box;
}
.sss-form__group input[type="text"]:focus,
.sss-form__group textarea:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26,115,232,.2);
}
.sss-form__group small {
  color: #888;
  font-size: 0.78rem;
  display: block;
  margin-top: 4px;
}
.sss-required {
  color: #d93025;
}
.sss-form__actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.sss-screenshot-preview {
  margin-bottom: 8px;
}
.sss-screenshot-preview img {
  max-width: 240px;
  max-height: 135px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  display: block;
  margin-bottom: 6px;
}
.sss-checkbox {
  font-size: 0.85rem;
  color: #d93025;
  cursor: pointer;
}

/* ---- 危険ゾーン ---- */
.sss-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 32px 0;
}
.sss-danger-zone {
  background: #fdecea;
  border: 1px solid #f5c6c6;
}
.sss-danger-zone h3 {
  margin: 0 0 8px;
  color: #d93025;
}
.sss-danger-zone p {
  color: #555;
  margin: 0 0 14px;
  font-size: 0.9rem;
}

/* ---- マイページ ---- */
.sss-mypage-stats {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.sss-mypage-stats p {
  margin: 0;
}
.sss-mypage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.sss-mypage-table th,
.sss-mypage-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
}
.sss-mypage-table th {
  background: #f0f4ff;
  font-weight: bold;
}
.sss-mypage-table tr:hover td {
  background: #fafafa;
}
.sss-mypage-table a {
  color: #1a73e8;
  text-decoration: none;
}

/* ---- ウィジェット ---- */
.sss-widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent !important;
}
.sss-widget-list .sss-widget-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid #f0f0f0 !important;
  list-style: none !important;
  background: transparent !important;
}
.sss-widget-list .sss-widget-item:last-child {
  border-bottom: none !important;
}
.sss-widget-list .sss-widget-rank {
  font-size: 1.1rem;
  font-weight: bold;
  color: #1a73e8 !important;
  min-width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.sss-widget-list .sss-widget-thumb {
  flex-shrink: 0;
}
.sss-widget-list .sss-widget-thumb img {
  width: 120px !important;
  height: 68px !important;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}
.sss-widget-list .sss-widget-title {
  flex: 1 !important;
  min-width: 0;
  font-size: 0.875rem;
  color: #333 !important;
  text-decoration: none;
  overflow: hidden;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}
.sss-widget-list .sss-widget-title:hover {
  color: #1a73e8 !important;
}

/* ---- ウィジェット: ランダム ---- */
.sss-widget-random {
  background: transparent !important;
}
.sss-widget-random__thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 5px;
  display: block;
  margin-bottom: 10px;
}
.sss-widget-random__body {
  background: transparent !important;
}
.sss-widget-random__title {
  display: block;
  font-size: 0.9rem;
  font-weight: bold;
  color: #333 !important;
  text-decoration: none;
  margin-bottom: 6px;
}
.sss-widget-random__title:hover {
  color: #1a73e8 !important;
}
.sss-widget-random__desc {
  font-size: 0.8rem;
  color: #666 !important;
  margin: 0 0 8px;
  line-height: 1.5;
}

/* ---- ヘルプ ---- */
.sss-help__section {
  margin-bottom: 32px;
}
.sss-help__section h2 {
  font-size: 1.2rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 6px;
  margin-bottom: 14px;
}
.sss-help__section ol,
.sss-help__section ul {
  padding-left: 24px;
  line-height: 1.8;
}
.sss-help__cta {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}
