.app-footer {
  margin-top: 40px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ここから cute1 デザイン */
.footer--cute1 {
  background: #f0f7ff;
  border-top: 2px solid #bfdbfe;
  color: #2c4f7c;
}

.footer--cute1 .footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 16px 14px;
  text-align: center;
  position: relative;
}

/* 足あとのライン（上部） */
.footer--cute1 .footer-inner::before {
  content: "🐾  🐾  🐾  🐾  🐾";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  opacity: 0.7;
}

.footer--cute1 .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer--cute1 .footer-title {
  font-weight: 700;
  font-size: 16px;
  color: #3b82f6;
}

.footer--cute1 .footer-subtitle {
  font-size: 11px;
  color: #999;
}

.footer--cute1 .footer-nav {
  margin: 10px 0 6px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer--cute1 .footer-nav a {
  font-size: 13px;
  text-decoration: none;
  color: #1e3a5f;
  padding: 4px 8px;
  border-radius: 999px;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
}

.footer--cute1 .footer-nav a:hover {
  background: #bfdbfe;
}

.footer--cute1 .footer-copy {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}

/* ここから cute2 デザイン */
.footer--cute2 {
  background: linear-gradient(180deg, #f6f9ff 0%, #f0f4ff 35%, #ffffff 100%);
  padding: 24px 0;
}

.footer--cute2 .footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 18px 10px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(120, 140, 200, 0.18);
  text-align: center;
}

.footer--cute2 .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}

.footer--cute2 .footer-title {
  font-weight: 700;
  font-size: 17px;
  color: #4c6fff;
}

.footer--cute2 .footer-subtitle {
  font-size: 11px;
  color: #8a96c2;
}

/* ナビ部分を丸ボタン風に */
.footer--cute2 .footer-nav {
  margin: 12px 0 8px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer--cute2 .footer-nav a {
  font-size: 12px;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f4f7ff;
  color: #4c5b8f;
  border: 1px solid #dde5ff;
}

.footer--cute2 .footer-nav a:hover {
  background: #e4ebff;
}

/* コピーライト */
.footer--cute2 .footer-copy {
  font-size: 11px;
  color: #9ca3c7;
}

/* ちょっとした足跡アイコン */
.footer--cute2 .footer-copy::before {
  content: "🐾 ";
}

/* ここから cute3 デザイン */
.footer--cute3 {
  background: radial-gradient(circle at 10% 0%, #4451a8 0, #1c2350 55%, #151832 100%);
  color: #f4f7ff;
  padding: 20px 0 18px;
}

.footer--cute3 .footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
  position: relative;
}

/* 星空っぽいキラキラ */
.footer--cute3 .footer-inner::before {
  content: "✦  ✧  ✦  ✧  ✦";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  opacity: 0.8;
  color: #f9f0ff;
}

.footer--cute3 .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}

.footer--cute3 .footer-title {
  font-weight: 700;
  font-size: 16px;
  color: #ffeec2;
}

.footer--cute3 .footer-subtitle {
  font-size: 11px;
  color: #d4d8ff;
}

/* ナビ：半透明のピルボタン */
.footer--cute3 .footer-nav {
  margin: 12px 0 8px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer--cute3 .footer-nav a {
  font-size: 12px;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(19, 29, 70, 0.7);
  color: #f6f3ff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer--cute3 .footer-nav a:hover {
  background: rgba(55, 69, 130, 0.9);
}

/* 足あと＋コピーライト */
.footer--cute3 .footer-copy {
  font-size: 11px;
  color: #cfd5ff;
  margin-top: 4px;
}

.footer--cute3 .footer-copy::before {
  content: "🐾 ";
}
/* ==========================
   カラー変数（青系）
   ========================== */
:root {
  --blue:        #3b82f6;
  --blue-soft:   #93c5fd;
  --blue-pale:   #eff6ff;
  --blue-mid:    #60a5fa;
  --sky-pale:    #f0f7ff;
  --sky-dark:    #dbeafe;
  --border:      #bfdbfe;
  --navy:        #1e3a5f;
  --navy-light:  #3b5f8a;
  --text:        #1a2d42;
  --text-mid:    #2c4f7c;
  --text-soft:   #7096b8;
  --shadow-blue: rgba(59, 130, 246, 0.15);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
}

/* ==========================
   全体レイアウト
   ========================== */
.app-body {
  margin: 0;
  font-family: 'Noto Sans JP', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--sky-pale);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-main {
  padding: 28px 16px 48px;
  flex: 1;
}

.app-container {
  max-width: 920px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px 28px 36px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px var(--shadow-blue);
}

/* ==========================
   ヘッダー
   ========================== */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: linear-gradient(135deg, #bfdbfe 0%, #a5b4fc 100%);
  color: var(--navy);
  box-shadow: 0 3px 16px rgba(59, 130, 246, 0.2);
  position: relative;
}

.app-header::before {
  content: "🐾  🐾  🐾";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  opacity: 0.75;
  pointer-events: none;
}

.app-header .app-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.osanpo-logo {
  height: 56px;
  width: auto;
  display: block;
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.header-actions form {
  margin: 0;
}

.nav-user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-right: 4px;
}

.nav-login,
.nav-signup,
.nav-logout {
  margin-left: 6px;
  color: var(--blue);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.15s;
}

.nav-login:hover,
.nav-signup:hover,
.nav-logout:hover {
  color: var(--navy);
  text-decoration: underline;
}

/* ==========================
   ボタン
   ========================== */
.btn,
.btn-edit,
.btn-delete {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(59, 130, 246, 0.38);
}

.btn-edit {
  background: var(--sky-dark);
  color: var(--navy);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}

.btn-delete {
  background: #ff6b81;
  color: #fff;
  box-shadow: 0 2px 6px rgba(255, 107, 129, 0.3);
}

.btn:hover,
.btn-edit:hover,
.btn-delete:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(59, 130, 246, 0.32);
}

.btn:active,
.btn-edit:active,
.btn-delete:active {
  transform: translateY(0);
}

/* ==========================
   ページタイトル
   ========================== */
.page-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--blue);
  letter-spacing: 0.02em;
}

.page-subtitle {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 20px;
}

/* ==========================
   一覧カード
   ========================== */
.tweet-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tweet-card {
  border-radius: var(--radius-md);
  padding: 16px 18px;
  border: 1px solid var(--border);
  background: var(--sky-pale);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.tweet-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--shadow-blue);
  border-color: var(--blue-soft);
}

.tweet-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.tweet-title-link {
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--navy);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tweet-title-link:hover {
  color: var(--blue);
}

.tweet-meta {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.tweet-meta-own {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
}

/* サムネイル */
.tweet-images {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.tweet-thumbnail {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: #fff;
  transition: transform 0.12s;
}

.tweet-thumbnail:hover {
  transform: scale(1.06);
}

/* ==========================
   詳細ページ（show）
   ========================== */
.show-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px dashed var(--border);
}

.show-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.4;
}

.show-poster {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-mid);
  font-weight: 600;
}

.show-date {
  display: inline-block;
  margin-left: 12px;
  font-size: 0.8rem;
  color: var(--navy-light);
  background: var(--blue-pale);
  border-radius: 999px;
  padding: 2px 12px;
}

/* 詳細画像ギャラリー */
.show-gallery {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.show-gallery img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  transition: transform 0.14s;
}

.show-gallery img:hover {
  transform: scale(1.04);
}

/* 本文 */
.show-body {
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 24px;
  white-space: pre-wrap;
}

/* メタ情報グリッド */
.show-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  background: var(--sky-pale);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  border: 1px solid var(--border);
  margin-bottom: 28px;
}

.show-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.show-meta-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.show-meta-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}

.show-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  margin-top: 8px;
}

.show-back-link:hover {
  text-decoration: underline;
}

/* ==========================
   コメント
   ========================== */
.comment-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 2px dashed var(--border);
}

.comment-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.comment-form {
  margin-bottom: 20px;
}

.comment-textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.15s;
  background: var(--sky-pale);
  color: var(--text);
  box-sizing: border-box;
}

.comment-textarea:focus {
  outline: none;
  border-color: var(--blue-soft);
  background: #fff;
}

.comment-submit {
  margin-top: 8px;
  padding: 7px 22px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  box-shadow: 0 3px 10px rgba(59, 130, 246, 0.35);
}

.comment-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(59, 130, 246, 0.4);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-item {
  background: var(--blue-pale);
  border: 1px solid var(--sky-dark);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}

.comment-item a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}

.comment-item a:hover {
  text-decoration: underline;
}

.comment-login-notice {
  font-size: 0.85rem;
  color: var(--text-soft);
  background: var(--sky-dark);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  border: 1px dashed var(--border);
}

/* ==========================
   フォーム
   ========================== */
.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}

.field input[type="text"],
.field input[type="date"],
.field input[type="email"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--sky-pale);
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
  box-sizing: border-box;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-soft);
  background: #fff;
}

/* ==========================
   カレンダー（マイページ）
   ========================== */
.calendar {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.calendar th {
  background: var(--blue-pale);
  color: var(--navy);
  padding: 6px 4px;
  text-align: center;
  font-weight: 700;
}

.calendar-day {
  border: 1px solid var(--border);
  padding: 4px;
  vertical-align: top;
  min-height: 52px;
  text-align: center;
  background: #fff;
}

.calendar-day.empty {
  background: #fafbff;
}

.calendar-day.today {
  background: var(--blue-pale);
}

.calendar-day.has-activity {
  background: var(--sky-dark);
}

.day-number {
  font-weight: 600;
  color: var(--text-mid);
  font-size: 0.78rem;
  margin-bottom: 2px;
}

.calendar-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
}

/* ==========================
   マイページ
   ========================== */
.mypage-container {
  padding: 4px 0;
}

.mypage-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px dashed var(--border);
}

.mypage-stats {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 14px;
}

.mypage-new-btn {
  margin-top: 4px;
}

.mypage-main {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
  align-items: start;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid var(--blue-soft);
}

.mypage-tweet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mypage-tweet-item {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 0.88rem;
}

.tweet-date {
  font-size: 0.76rem;
  color: var(--text-soft);
  white-space: nowrap;
  flex-shrink: 0;
}

.tweet-link {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
}

.tweet-link:hover {
  color: var(--blue);
}

.link-all-tweets {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}

.link-all-tweets:hover {
  text-decoration: underline;
}

.mypage-footer-link {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.link-back {
  font-size: 0.85rem;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.link-back:hover {
  text-decoration: underline;
}

/* ==========================
   画像編集ブロック
   ========================== */
.edit-image-block {
  display: inline-block;
  margin: 8px 10px 10px 0;
  text-align: center;
}

.edit-image-block img {
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
}

.edit-image-block img.edit-preview-image {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* ==========================
   フラッシュメッセージ
   ========================== */
.flash-notice,
.flash-alert {
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  font-weight: 600;
}

.flash-notice {
  background: #e8f8f0;
  color: #2d6a4f;
  border: 1px solid #b7e4c7;
}

.flash-alert {
  background: #fff0f0;
  color: #c0392b;
  border: 1px solid #f5c6cb;
}

/* ==========================
   レスポンシブ
   ========================== */
@media (max-width: 640px) {
  .app-container {
    padding: 18px 16px 24px;
  }

  .tweet-card {
    grid-template-columns: 1fr;
  }

  .tweet-images {
    justify-content: flex-start;
  }

  .mypage-main {
    grid-template-columns: 1fr;
  }

  .show-gallery img {
    width: 140px;
    height: 140px;
  }

  .show-meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .app-header {
    padding: 10px 14px;
  }

  .header-actions {
    gap: 4px;
  }
}
.upload-slot {
  margin-bottom: 8px;
}

.upload-preview {
  margin-top: 6px;
  display: inline-block;
}

.upload-canvas {
  display: block;
  max-width: 150px;
  max-height: 150px;
  border-radius: 8px;
  object-fit: cover;
}

.upload-rotate-actions {
  margin-top: 4px;
  display: flex;
  gap: 6px;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-actions form {
  margin: 0;        /* フォームの余白を消す */
  padding: 0;
}

.header-actions .btn-edit,
.header-actions .btn-delete {
  display: inline-block;
}

.edit-image-block {
  display: inline-block;
  margin: 10px;
  text-align: center;
}

.edit-image-block img.edit-preview-image {
  width: 150px !important;
  height: 150px !important;
  object-fit: cover;
  border-radius: 8px;
}

.edit-image-actions {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.btn-rotate {
  background: #4a7fa5;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-rotate:hover {
  background: #365f7e;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
