/* 青山猫愛好会 共通スタイル */
body {
  font-family: 'M PLUS 1p', sans-serif;
}
.app-body {
  background: #f6f8f5;
}
.site-shell,
.portal-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(248, 250, 247, 0.96), rgba(242, 246, 242, 0.98)),
    #f6f8f5;
}
.site-shell::before,
.portal-shell::before {
  content: '';
  position: fixed;
  right: clamp(-140px, -7vw, -48px);
  bottom: clamp(-140px, -9vw, -64px);
  width: min(52vw, 560px);
  aspect-ratio: 1;
  background: url('/static/aca-mark.png') center / contain no-repeat;
  opacity: 0.045;
  pointer-events: none;
  z-index: -1;
}
.site-header,
.portal-header {
  background: rgba(13, 47, 30, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(3, 18, 10, 0.16);
  color: #fff;
  backdrop-filter: blur(10px);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  padding: 3px;
}
.site-nav-link,
.site-nav-primary,
.portal-ghost-btn,
.portal-primary-btn,
.site-button-primary,
.site-button-secondary,
.site-button-muted,
.site-cta-primary,
.site-cta-secondary,
.site-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 700;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.site-nav-link,
.portal-ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 0.375rem 0.75rem;
}
.site-nav-link:hover,
.portal-ghost-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.site-nav-primary,
.portal-primary-btn {
  background: #fff;
  color: #12341f;
  padding: 0.375rem 0.75rem;
}
.site-nav-primary:hover,
.portal-primary-btn:hover {
  background: #e8efe8;
}
.site-cta-primary,
.site-button-primary {
  background: #115c36;
  color: #fff;
  padding: 0.625rem 1.25rem;
  box-shadow: 0 8px 18px rgba(17, 92, 54, 0.18);
}
.site-cta-primary:hover,
.site-button-primary:hover {
  background: #0d472a;
}
.site-cta-secondary,
.site-button-secondary,
.site-icon-btn {
  background: #fff;
  color: #12341f;
  border: 1px solid #cfd8cf;
  padding: 0.625rem 1.25rem;
}
.site-cta-secondary:hover,
.site-button-secondary:hover,
.site-icon-btn:hover {
  background: #eef3ee;
}
.site-button-muted {
  background: #e7ece7;
  color: #4b5a50;
  padding: 0.625rem 1.25rem;
}
.site-panel,
.portal-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dfe7df;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}
.subtle-panel {
  background: rgba(244, 247, 244, 0.92);
  border: 1px solid #d7e1d7;
  border-radius: 8px;
}
.hero-section {
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  text-align: center;
}
.hero-mark {
  width: min(34vw, 170px);
  height: auto;
}
.page-heading {
  text-align: center;
  margin-bottom: 0.75rem;
}
.page-mark,
.login-mark,
.success-mark {
  width: 88px;
  height: 88px;
  object-fit: contain;
}
.activity-icon,
.user-dot {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eef3ee;
  color: #115c36;
  margin-bottom: 0.75rem;
}
.user-dot {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0;
  flex: 0 0 auto;
}
.date-block {
  background: #eef3ee;
  color: #115c36;
  border: 1px solid #d7e1d7;
  border-radius: 8px;
}
.site-footer {
  background: #0d2f1e;
  color: rgba(255, 255, 255, 0.82);
}
.portal-main h2 {
  color: #12341f;
}
.points-hero,
.modal-hero {
  border-radius: 8px;
  background: linear-gradient(135deg, #0d2f1e, #17613a);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}
.post-card {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid #e3eae3;
}
.post-card:hover .post-body {
  background: #f8faf8;
}
.post-avatar {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eef3ee;
  color: #115c36;
  margin-top: 0.125rem;
}
.post-body {
  min-width: 0;
  border-radius: 8px;
  padding: 0.5rem 0.625rem;
  transition: background 0.15s;
}
.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.post-author {
  font-size: 0.9rem;
  font-weight: 800;
  color: #17231c;
}
.post-time {
  margin-left: 0.5rem;
  font-size: 0.72rem;
  color: #7a867d;
}
.post-content {
  margin-top: 0.25rem;
  color: #26342b;
  font-size: 0.92rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mention-composer {
  position: relative;
}
.mention-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 9999px;
  background: #e6f4ea;
  color: #0d5d35;
  border: 1px solid #c9e4cf;
  padding: 0 0.35rem;
  font-weight: 800;
  line-height: 1.55;
}
.mention-menu {
  position: absolute;
  z-index: 60;
  left: 0.75rem;
  right: 0.75rem;
  top: calc(100% + 0.35rem);
  max-height: 260px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #cfd8cf;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  padding: 0.35rem;
}
.reply-composer .mention-menu {
  left: 0;
  right: 0;
}
.mention-option {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.5rem;
  width: 100%;
  align-items: center;
  border-radius: 6px;
  padding: 0.5rem;
  text-align: left;
  color: #17231c;
}
.mention-option:hover,
.mention-option.is-active {
  background: #eef7ef;
}
.mention-option-icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eef3ee;
  color: #115c36;
}
.mention-option-label,
.mention-option-sub {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mention-option-label {
  font-size: 0.86rem;
  font-weight: 800;
}
.mention-option-sub {
  margin-top: 0.05rem;
  font-size: 0.72rem;
  color: #718078;
}
.post-image {
  display: block;
  width: min(100%, 420px);
  max-height: 320px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dfe7df;
  margin-top: 0.625rem;
}
.post-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  color: #647067;
  font-size: 0.82rem;
}
.post-actions button {
  transition: color 0.15s;
}
.post-actions button:hover {
  color: #115c36;
}
.post-like.is-liked {
  color: #be123c;
}
.reply-card {
  grid-template-columns: 2rem minmax(0, 1fr);
  padding: 0.5rem 0;
  border-bottom: 0;
}
.reply-card .post-avatar {
  width: 2rem;
  height: 2rem;
}
.reply-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.5rem;
  margin-left: 2.75rem;
}
@media (max-width: 640px) {
  .reply-composer {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .reply-composer .reply-send {
    grid-column: 1 / -1;
  }
}
.reply-card {
  background: #f7faf7;
}
.event-card {
  transition: border-color 0.15s, transform 0.15s;
}
.event-card:hover {
  border-color: #b7c8b7;
  transform: translateY(-1px);
}
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  color: #374151;
}
.form-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff;
}
.form-input:focus {
  border-color: #15803d;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}
.form-file {
  width: 100%;
  font-size: 0.875rem;
  border: 1px dashed #d1d5db;
  border-radius: 0.5rem;
  padding: 0.75rem;
  background: #fafafa;
}
.payment-option {
  display: block;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.9375rem;
}
.payment-option:hover {
  border-color: #8cab8c;
  background: #f5f8f5;
}
.payment-option:has(input:checked) {
  border-color: #15803d;
  background: #eef7ef;
  font-weight: 600;
}
.tab-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.75rem 0.75rem 0 0;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.15s;
}
.tab-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.tab-btn.tab-active {
  background: #f0fdf4;
  color: #166534;
  font-weight: 700;
}
.status-badge {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.feeding-cell {
  min-width: 132px;
  vertical-align: top;
}
.feed-shift-card {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.375rem;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid #d7e1d7;
  text-align: left;
  background: #f8faf8;
  color: #1f2d24;
}
.feed-shift-time {
  display: block;
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 800;
  color: #0d472a;
  word-break: keep-all;
}
.feed-shift-user {
  display: block;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #53635a;
}
.feed-shift-mine {
  border-color: #8cab8c;
  background: #eef7ef;
}
.feed-shift-done {
  border-color: #95c5a0;
  background: #e9f7ec;
}
.feed-shift-other {
  background: #f5f7f5;
}
.feed-mini-btn {
  width: 100%;
  border-radius: 6px;
  padding: 0.25rem 0.375rem;
  font-size: 0.7rem;
  font-weight: 700;
}
.feed-complete-btn {
  background: #115c36;
  color: #fff;
}
.feed-cancel-btn {
  background: #e2e8e2;
  color: #46554b;
}
.feed-detail-btn {
  background: #fff;
  border: 1px solid #cfd8cf;
  color: #12341f;
}
.feed-participate-btn {
  background: #115c36;
  color: #fff;
}
.feed-joined-label {
  display: block;
  width: 100%;
  border-radius: 6px;
  padding: 0.25rem 0.375rem;
  background: #e7ece7;
  color: #4b5a50;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
}
.feed-day-locked {
  width: 100%;
  border: 1px solid #d9e1d9;
  border-radius: 8px;
  padding: 0.375rem 0.25rem;
  color: #8a968d;
  background: #f4f7f4;
  font-size: 0.72rem;
  font-weight: 700;
}
.feeding-comment,
.detail-comment {
  border: 1px solid #dfe7df;
  border-radius: 8px;
  padding: 0.75rem;
  background: #f8faf8;
}
.feeding-comment-image,
.detail-comment-image {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dfe7df;
  margin-top: 0.75rem;
}

/* 管理画面: 落ち着いた運用ツール寄りの見た目 */
.admin-shell {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(248, 250, 247, 0.96), rgba(241, 245, 241, 0.98)),
    #f6f8f5;
  color: #17231c;
}
.admin-shell::before {
  content: '';
  position: fixed;
  right: clamp(-120px, -6vw, -40px);
  bottom: clamp(-120px, -8vw, -56px);
  width: min(52vw, 560px);
  aspect-ratio: 1;
  background: url('/static/aca-mark.png') center / contain no-repeat;
  opacity: 0.055;
  pointer-events: none;
  z-index: -1;
}
.admin-header {
  background: rgba(13, 47, 30, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(3, 18, 10, 0.18);
  color: #fff;
  backdrop-filter: blur(10px);
}
.admin-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  padding: 3px;
}
.admin-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dfe7df;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}
.admin-shell .tab-btn {
  border-radius: 6px 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}
.admin-shell .tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.admin-shell .tab-btn.tab-active {
  background: #f6f8f5;
  color: #0d3b24;
}
.admin-shell .form-input {
  border-radius: 6px;
  border-color: #cfd8cf;
  background: rgba(255, 255, 255, 0.96);
}
.admin-shell table thead {
  background: #eef3ee;
  color: #34443a;
}
.admin-shell table tr:hover {
  background: #f4f7f4;
}
.member-sort {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  font-weight: 800;
  color: #34443a;
  text-align: left;
  white-space: nowrap;
}
.member-sort:hover {
  color: #0d5d35;
}
.admin-ghost-btn,
.admin-primary-btn,
.admin-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 700;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.admin-ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  padding: 0.375rem 0.75rem;
}
.admin-ghost-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.admin-primary-btn {
  background: #fff;
  color: #12341f;
  padding: 0.375rem 0.75rem;
}
.admin-primary-btn:hover {
  background: #e8efe8;
}
.admin-action-btn {
  background: #115c36;
  color: #fff;
  padding: 0.625rem 1.25rem;
}
.admin-action-btn:hover {
  background: #0d472a;
}
.admin-shell .rounded-2xl {
  border-radius: 8px;
}
.admin-shell .shadow {
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}
#admin-events-list > div,
#mail-logs-list > details {
  border: 1px solid #dfe7df;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 42rem) minmax(18rem, 1fr);
  gap: 1rem;
  align-items: start;
}
.mail-status-list {
  border-top: 1px solid #dfe7df;
}
.mail-status-row {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #dfe7df;
}
.mail-status-row dt {
  color: #64706a;
}
.mail-status-row dd {
  color: #153727;
  font-weight: 700;
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
