@charset "UTF-8";
/*
 * このファイルはアプリケーション全体のスタイルを定義します。
 * Propshaftによってコンパイルされ、効率的に提供されます。
 * スタイルは標準のカスケーディング順序に従い、後で宣言されたスタイルが前のスタイルを上書きします。
 * 保守性を高めるために、スタイルを個別のファイルに整理することを検討してください。
 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&family=Roboto:wght@400;700&display=swap');
/* エラーページ用のカスタムスタイル */
@import "custom_errors"; 

body {
  font-family: 'Noto Sans JP', 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
}

.container {
  max-width: 960px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

h1 {
  color: #0056b3;
  margin-bottom: 20px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.top-page-image {
  max-height: 400px;
  width: auto;
}

.fullscreen-image {
  width: 100vw;
  display: flex;
  justify-content: center;
  overflow: hidden;
  margin-top: 30px;
}

.fullscreen-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #0056b3;
}

.btn-delete {
  background-color: #dc3545;
}

.btn-delete:hover {
  background-color: #c82333;
}

.form-group {
  margin-bottom: 20px; /* 間隔を調整 */
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-control {
  width: calc(100% - 22px); /* Adjust for padding and border */
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.form-control-file {
  display: block;
  width: 100%;
  padding: .375rem .75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: .25rem;
  transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 5px;
}

.checkbox-field input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.actions {
  margin-top: 20px;
  text-align: center;
}

.devise-links {
  margin-top: 20px;
}

.devise-links a {
  display: block;
  margin-bottom: 10px;
  color: #007bff;
  text-decoration: none;
}

.devise-links a:hover {
  text-decoration: underline;
}

.alert, .notice {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
  text-align: center;
}

.alert {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.notice {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.text-muted {
  color: #6c757d;
  font-size: 0.875em;
}



/* Responsive adjustments for mobile */
/* スマホやタブレット向けのスタイル */
@media (max-width: 768px) {
  .events-grid {
    gap: 15px;
  }

  .event-card-body {
    padding: 15px;
  }

  .event-card-title {
    font-size: 1.1em;
  }

  .event-card-genre {
    font-size: 0.85em;
    margin-bottom: 10px;
  }

  .event-card-time {
    font-size: 1em;
  }
}

/* Bug Report Cards */
/* 不具合報告一覧ページのカードスタイル */
.bug-report-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.bug-report-card {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.bug-report-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.bug-report-card-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bug-report-card-footer {
  padding: 15px;
  border-top: 1px solid #eee;
  background-color: #f9f9f9;
  text-align: right;
  position: relative;
  z-index: 2;
}

.bug-report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.bug-report-actions {
  display: flex;
  gap: 10px; /* ボタン間のスペース */
}

.bug-report-card-header {
  position: relative; /* ステータスの絶対配置のため */
  padding: 15px;
  padding-top: 30px; /* ステータスのためのスペース */
  border-bottom: 1px solid #eee;
  background-color: #f9f9f9;
}

.bug-report-card-header h3 {
  margin: 0;
  font-size: 1.4em;
  color: #333;
}

.bug-report-card-header h3 a {
  text-decoration: none;
  color: inherit; /* 親要素の色を継承 */
}

.bug-report-status {
  padding: 4px 10px;
  border-radius: 20px; /* より丸く */
  font-size: 0.75em;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase; /* 大文字に */
}

.bug-report-card-status-position {
  position: absolute;
  top: 10px;
  right: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bug-report-status.pending {
  background-color: #ffc107; /* Yellow */
}

.bug-report-status.resolved {
  background-color: #28a745; /* Green */
}

.bug-report-status.rejected {
  background-color: #dc3545; /* Red */
}

.bug-report-card-body {
  padding: 15px;
  flex-grow: 1;
}

.bug-report-media {
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center;
}

.bug-report-media img,
.bug-report-media video {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.bug-report-meta {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 5px;
}

.bug-report-card-footer .btn {
  margin-left: 10px;
}

.bug-report-new-button {
  margin-top: 40px; /* カードとの間隔を広げる */
}

/* Bug Report Detail Card */
/* 不具合報告詳細ページのカードスタイル */
.bug-report-detail-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-top: 20px;
  text-align: left;
}

.bug-report-detail-card h3 {
  margin-top: 20px;
  margin-bottom: 10px;
}

.bug-report-detail-card .bug-report-media-detail {
  margin-top: 15px;
  margin-bottom: 15px;
  text-align: center;
}

.bug-report-detail-card .bug-report-media-detail img,
.bug-report-detail-card .bug-report-media-detail video {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Sponsor Guide Page Styles */
/* スポンサーガイドページのスタイル */
.sponsor-guide-container {
  text-align: center;
  padding: 50px;
}

/* スポンサーセクションの共通スタイル */
.sponsor-section {
  margin-top: 40px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
}

/* フォームラベルのスタイル */
.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

/* 成功ボタンのスタイル */
.btn-success {
  background-color: #28a745;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
}

.btn-success:hover {
  background-color: #218838;
}

/* ログイン要求メッセージのスタイル */
.login-required-message {
  margin-top: 30px;
  font-size: 1.1em;
  color: #dc3545;
}

.login-required-message a {
  color: #007bff;
  text-decoration: none;
}

.login-required-message a:hover {
  text-decoration: underline;
}

/* テキスト左寄せのユーティリティクラス */
.text-align-left {
  text-align: left;
}

/* 銀行情報リストのスタイル */
.bank-info-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.bank-info-list li {
  margin-bottom: 10px;
}

/* 小さいテキストのスタイル */
.small-text {
  font-size: 0.9em;
  color: #666;
}

/* スポンサー状況アイテムのスタイル */
.sponsor-status-item {
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 10px;
  text-align: left;
  position: relative;
}

/* スポンサー状況バッジのスタイル */
.sponsor-status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8em;
}

/* ステータスごとの背景色 */
.status-pending {
  background-color: #ffc107; /* yellow */
}

.status-confirmed {
  background-color: #28a745; /* green */
}

.status-rejected {
  background-color: #dc3545; /* red */
}

.status-default {
  background-color: #6c757d; /* gray */
}

/* FAQセクションのスタイル */
.faq-section {
  margin-top: 50px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 30px;
}

/* FAQアイテムのスタイル */
.faq-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* FAQ質問のスタイル */
.faq-question {
  color: #007bff;
  margin-top: 0;
  margin-bottom: 10px;
}

/* FAQ回答のスタイル */
.faq-answer {
  margin-top: 10px;
}

/* ボタングループのスタイル */
.button-group {
  margin-top: 40px;
}

.button-group .btn {
  margin-left: 10px;
}

.btn-secondary {
  background-color: #6c757d;
}

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

.btn-primary {
  background-color: #007bff;
}

.btn-primary:hover {
  background-color: #0056b3;
}

/* Welcome Modal Styles */
/* ウェルカムモーダルのオーバーレイ */
.welcome-modal-overlay {
  display: block;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0,0,0,0.4);
}

/* ウェルカムモーダルのコンテンツ */
.welcome-modal-content {
  background-color: #fefefe;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ウェルカムモーダルの閉じるボタン */
.welcome-modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.welcome-modal-close:hover,
.welcome-modal-close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* スポンサー画像のスタイル */
.supponser-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* スポンサーメッセージボックスのスタイル */
.sponsor-message-box {
  background-color: #f0f0f0;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
}



/* Copy Success Modal Styles */
/* コピー成功モーダルのオーバーレイ */
.copy-success-modal-overlay {
  display: none; /* 初期状態では非表示 */
  position: fixed;
  z-index: 1000; /* 他の要素より前面に */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4); /* 半透明の背景 */
  justify-content: center;
  align-items: center;
}

.copy-success-modal-overlay.show {
  display: flex; /* showクラスが付与されたら表示 */
}

/* コピー成功モーダルのコンテンツ */
.copy-success-modal-content {
  background-color: #fefefe;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 300px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.user-icon {
  border-radius: 50%;
  width: 40px; /* アイコンの幅 */
  height: 40px; /* アイコンの高さ */
  object-fit: cover; /* 画像がコンテナに収まるように調整 */
  margin: 0; /* グローバルなimgスタイルによる中央揃えをリセット */
}

.genre-icon {
  border-radius: 50%;
  width: 40px; /* アイコンの幅 */
  height: 40px; /* アイコンの高さ */
  object-fit: cover; /* 画像がコンテナに収まるように調整 */
  margin: 0; /* グローバルなimgスタイルによる中央揃えをリセット */
}

.mypage-header {
  display: flex;
  align-items: center;
  gap: 20px; /* アイコンと名前の間隔 */
  margin-bottom: 30px;
}

.mypage-header h1 {
  margin: 0; /* h1のデフォルトマージンをリセット */
}