/* =========================
   リセット・ベース
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #f3f4f6; /* 薄いグレー */
  color: #333;
  line-height: 1.5;
}

/* =========================
   コンテナ・タイトル
========================= */
.container {
  width: 95%;
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1 {
  margin-bottom: 1rem;
  font-weight: bold;
  font-size: 1.5rem;
  text-align: center;
}

h2 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

/* =========================
   ボタン
========================= */
button,
.btn-secondary {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: bold;
  transition: background-color 0.2s;
}

/* メインボタン */
button {
  background-color: #2563eb; /* ブルー系 */
  color: #fff;
}
button:hover {
  background-color: #1e4fb8;
}

/* セカンダリボタン */
.btn-secondary {
  background-color: #e2e8f0;
  color: #333;
}
.btn-secondary:hover {
  background-color: #cbd5e1;
}

/* =========================
   テキストエリア
========================= */
textarea {
  width: 100%;
  font-size: 1rem;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}

/* =========================
   お知らせ・警告など
========================= */
.alert-text {
  color: red;
  text-align: center;
  margin-bottom: 1rem;
}

/* =========================
   注意事項モーダル
========================= */
.modal {
  position: fixed;
  z-index: 999; 
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  display: none; /* 初期非表示 */
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex; 
}

.modal-content {
  background: #fff;
  padding: 1.5rem;
  border-radius: 6px;
  max-width: 600px;
  width: 90%;
  position: relative;

  /* 長い場合スクロールできるようにする */
  max-height: 80vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 10px; 
  right: 10px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* =========================
   付箋関連
========================= */
.sticky-note .tag-text {
  display: inline-block;
  background: #eee;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.75rem;
  color: #ffffff;
}

/* 付箋本体 */
.sticky-note {
  display: inline-block;    /* 横並び */
  vertical-align: top;      /* 上端そろえ */
  margin: 0.5rem;
  padding: 1rem;
  width: 180px;             /* PC時の横幅 */
  min-height: 120px;        /* 必要なら最小高さを設定 */
  border: none;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  position: relative;
  cursor: pointer;
}

/* メインお題テキスト (やや大きめ) */
.sticky-note .main-text {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
}

/* 参考URL表示 (小さめ) */
.sticky-note .reference-link {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

/* タグ表示 (さらに小さい or色を薄く) */
.sticky-note .tag-text {
  font-size: 0.8rem;
  color: #888;
  font-style: italic; /* 少し違いを出したいなら */
}

/* =========================
   スマホ対応
========================= */
@media (max-width: 600px) {
  .sticky-note {
    display: block;
    width: 100%;
    min-height: auto;
    margin-bottom: 1rem;
  }
}
@media (max-width: 600px) {
  form textarea {
   width: 100%; 
   font-size: 1rem;
    line-height: 1.4;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #ddd;
    resize: vertical;
 }
}
/* =========================
   レスポンシブテーブル対応
========================= */

/* テーブルを横スクロール可能にするラッパ */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

/* テーブル本体 */
.table {
  width: 100%;
  min-width: 600px; /* カラム数に合わせて調整。多いなら800pxでも */
  border-collapse: collapse;
}

.table thead {
  background: #f2f2f2;
}
.table th, .table td {
  padding: 0.75rem;
  border-bottom: 1px solid #ccc;
  vertical-align: top;
  text-align: left;
}

/* URLが長いときに省略 "..." 表示させる */
.long-url {
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ボタン類のコンテナ (flexで並べる) */
.action-buttons {
  display: flex;
  flex-wrap: wrap;    /* 画面が狭い場合は折り返し */
  gap: 0.5rem;        /* ボタン同士の余白 */
  margin-top: 0.5rem; /* 適度に余白 */
}

/* ============ スマホ向け最適化 ============ */
@media (max-width: 600px) {
  .table {
    min-width: 500px; /* さらに狭くする場合はお好みで調整 */
  }
  .long-url {
    max-width: 80px;  /* スマホだともう少し狭める */
  }
}