/*
 * This is a manifest file that'll be compiled into application.css


*/

/* =========================
   リセット
========================= */
html, body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: #2c3e50;
}

/* =========================
   背景
========================= */
body {
  background-image: url(/assets/johannes-plenio-bhCdwWNmXw8-unsplash-9caa8fcc96fb3fdcb7c62e3e81dcfe4d10e5462d967cb83de505511313469625.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* =========================
   コンテナ
========================= */
.container {
  max-width: 700px;
  margin: 60px auto;
  padding: 0 20px;
}

/* =========================
   ヘッダー
========================= */
.header-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:20px;
}

.header-left,
.header-right {
  display:flex;
  gap:10px;
}

.header-center {
  text-align:center;
  flex:1;
}

/* =========================
   タイトル
========================= */
.page-title {
  background: #ffffff;
  color: #2c3e50;

  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 20px;

  text-align: center; /* ← これが本命 */
}

/* =========================
   ボタン（統一版）
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* メイン */
.btn-primary {
  background: #4a90e2;
  color: white;
}

/* サブ */
.btn-secondary {
  background: #e0e0e0;
  color: #333;
}

/* リンク */
.btn-link {
  background: none;
  color: #4a90e2;
  text-decoration: underline;
  padding: 0;
}

/* Google */
.btn-google {
  background: #4285F4;
  color: white;
}

/* =========================
   トップページ（hero）
========================= */
.hero {
  max-width: 500px;
  margin: 80px auto;
  padding: 40px 24px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border-radius:16px;
  text-align:center;
  box-shadow:0 8px 20px rgba(0,0,0,0.1);
}

.hero-text {
  margin-top: 12px;
  font-size: 14px;
  color: #555;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

/* =========================
   カード
========================= */
.study-log,
.filter-card,
.completion-card,
.table-card {
  background: rgba(255,255,255,0.95);
  border-radius:16px;
  padding:20px;
  margin-bottom:20px;
  box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

.study-log:hover {
  transform:translateY(-5px);
}

/* =========================
   フォーム
========================= */
.form-group { margin-bottom:18px; }

input[type="text"],
textarea,
select {
  width:100%;
  padding:10px 14px;
  margin-top:6px;
  border-radius:10px;
  border:1px solid #ccc;
  box-sizing: border-box;
}

textarea {
  min-height:140px;
}

/* =========================
   テーブル
========================= */
.habits-table {
  width:100%;
  border-collapse:collapse;
}

.habits-table th {
  background:#f5f7fa;
  padding:10px;
}

.habits-table td {
  padding:10px;
  border-bottom:2px solid #ccc;
  text-align: center;
}

/* =========================
   状態
========================= */
.completed {
  background: rgba(76, 175, 80, 0.1);
}

.incomplete {
  background: rgba(231, 76, 60, 0.05);
}

/* =========================
   フッター
========================= */
.footer {
  text-align:center;
  padding:16px;
  margin-top:24px;
}

.footer a {
  margin:0 10px;
  color:#2c3e50;
  font-size: 12px;
}

/* =========================
   検索フォーム（修正済み）
========================= */
.search-form form {
  display: flex;
  gap: 8px;
}

.search-form input {
  flex: 1;
}

.search-form .btn {
  flex: 0;
}

.legal-card {
  max-width: 700px;
  margin: 60px auto;
  padding: 32px 24px;
  background: rgba(255,255,255,0.95); /* ← これが本体 */
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.legal-card ul {
  padding-left: 20px;
  margin-top: 8px;
}

.legal-card li {
  margin-bottom: 6px;
}

.auth-card {
  max-width: 400px;
  margin: 80px auto;
  padding: 32px 24px;
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.auth-card .btn-primary {
  width: 100%;
  margin-top: 12px;
}

.auth-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.log-actions {
  margin-top:10px;
  display:flex;
  gap:10px;
}
  .btn-success {
  background: #27ae60;
  color: white;
}

.btn-success:hover {
  background: #1e8449;
}

.btn-danger {
  background: #e74c3c;
  color: white;
}

/* アクションカード */
.action-card {
  background: rgba(255,255,255,0.95);
  border-radius:16px;
  padding:20px;
  margin-bottom:20px;
  box-shadow:0 8px 20px rgba(0,0,0,0.1);

  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ボタン幅揃える */
.action-card .btn {
  width: 100%;
}

.btn-edit {
  background: #27ae60;
  color: white;
}

.btn-delete {
  background: #e74c3c;
  color: white;
}

.btn-info {
  background: #3498db;
  color: white;
}

/* =========================
   達成率バー
========================= */

/* 土台 */
.completion-bar-bg {
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  height: 20px;
  margin-bottom: 10px;
}

/* 週間 */
.week-completion-bar {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #4caf50, #81c784);
}

/* 月間 */
.month-completion-bar {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #2196f3, #64b5f6);
}

.btn-back {
  background: rgba(255,255,255,0.9);
  color: #2c3e50;
  border: none;
  font-weight: 600;
  border-radius: 10px;
}

.btn-back:hover {
  background: rgba(255,255,255,1);
}
 
/* ボタンエリア */
.page-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

/* スマホ対応（重要） */
@media (max-width: 600px) {
  .page-actions {
    flex-direction: column;
  }

  .page-actions .btn {
    width: 100%;
    min-width: auto;
    padding: 10px 16px;
  }
}
  
/* フォームタイトル */
.form-title {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}

/* 下のボタン */
.form-actions {
  margin-top: 20px;
  text-align: center;
}

.btn.btn-info {
  margin-top: 10px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 8px;
}
