/* ===== 共通タイトル ===== */
.page-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937; /* Tailwindの text-gray-800 相当 */
  margin-bottom: 1rem;
}

.page-description {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937; /* Tailwindの text-gray-800 相当 */
  margin-top: 30px;
  margin-bottom: 20px;
  text-align: center;
}

/* ===== 一覧ページ（index） ===== */
.table-container {
  padding: 1rem 1.5rem;
}

.table-base {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ccc;
}

.table-base thead tr {
  background-color: #f7fafc;
}

.table-base th,
.table-base td {
  border: 1px solid #ccc;
  padding: 0.5rem 1rem;
  text-align: left;
}

.table-base a,
.link-detail {
  color: #2563eb;
  text-decoration: underline;
}

.pagination {
  margin-top: 1rem;
}

/* ===== 詳細ページ（旧：detail-container） ===== */
.detail-table-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1rem 1.5rem;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
}

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

.detail-table th {
  text-align: left;
  padding: 0.75rem;
  background-color: #f3f4f6;
  width: 30%;
  color: #374151;
}

.detail-table td {
  padding: 0.75rem;
  background-color: #f9fafb;
  color: #111827;
}

/* ===== リンク・戻るリンク ===== */
.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: #2563eb;
  text-decoration: underline;
}

/* ===== 編集ページ（form-container） ===== */
.form-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: #ffffff;
  border: 1px solid #e5e7eb; /* Tailwind: border-gray-300 */
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151; /* Tailwind: text-gray-700 */
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db; /* Tailwind: border-gray-300 */
  border-radius: 6px;
  font-size: 1rem;
  color: #111827;
}

.form-group input[type="text"]:focus {
  outline: none;
  border-color: #2563eb; /* Tailwind: blue-600 */
  box-shadow: 0 0 0 1px #2563eb;
}

.error {
  margin-top: 0.25rem;
  color: #dc2626; /* Tailwind: red-600 */
  font-size: 0.875rem;
}

/* ===== チェックボックススタイル ===== */
.form-group input[type="checkbox"] {
  margin-right: 0.5rem;
}

/* ===== ボタンスタイル ===== */
.btn-primary {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background-color: #2563eb; /* Tailwind: blue-600 */
  color: #ffffff !important;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #1d4ed8; /* Tailwind: blue-700 */
}

.btn-secondary {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background-color: #e5e7eb; /* Tailwind: gray-200 */
  color: #374151; /* Tailwind: gray-700 */
  border: none;
  border-radius: 6px;
  font-weight: 600;
  margin-left: 0.75rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-secondary:hover {
  background-color: #d1d5db;
}

.btn-danger {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background-color: #dc2626; /* Tailwind: red-600 */
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-danger:hover {
  background-color: #b91c1c; /* Tailwind: red-700 */
}

/* ===== トップページ：URLリンクカード一覧 ===== */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.link-card {
  display: block;
  padding: 1rem 1.25rem;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  font-weight: 600;
  color: #1f2937; /* Tailwind: text-gray-800 */
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.link-card:hover {
  background-color: #f9fafb;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  color: #2563eb; /* Tailwind: blue-600 */
}

/* ===== CSV操作アクション ===== */
.actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.actions form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.actions input[type="file"] {
  padding: 0.25rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #374151;
  background-color: #ffffff;
}

/* ===== ゲスト導線 共通 ===== */
.guest-link {
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.guest-login-link {
    color: #4b5563; /* グレー */
}

.guest-login-link:hover {
    color: #111827; /* 濃いグレー */
}

.guest-register-link {
    color: #2563eb; /* ブルー */
}

.guest-register-link:hover {
    color: #1e40af; /* 濃いブルー */
}

/* ===== ナビゲーションのゲストリンク（PC表示） ===== */
.guest-nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ===== モバイルメニューのゲスト案内 ===== */
.guest-mobile-info {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.guest-mobile-title {
    font-weight: 600;
    font-size: 1rem;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.guest-mobile-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
}

.guest-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
}

/* ===== index.blade.php ゲストメッセージ ===== */
.guest-index-message {
    text-align: center;
    padding: 2.5rem 1rem;
    max-width: 640px;
    margin: 0 auto;
}

.guest-index-text {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #374151;
}

.guest-index-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.link-top {
  display: block;
  padding: 1rem 1.25rem;
  background-color: #cbefff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  font-weight: 600;
  color: #1f2937; /* Tailwind: text-gray-800 */
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  width: 400px;
  margin: 0 auto;
  margin-top: 50px;
}
