@charset "UTF-8";
:root {
  --bg: #FFFFFF;
  --section-bg: #F8F9FA;
  --main: #4A7C59;
  --main-dark: #3A6248;
  --accent-bg: #E8F5EE;
  --text: #2D2D2D;
  --text-sub: #6B7280;
  --border: #E0E4E8;
  --radius: 12px;
  --radius-sm: 8px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #FFFFFF;
  color: #2D2D2D;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

.app-header {
  background: #FFFFFF;
  border-bottom: 1px solid #E0E4E8;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 24px;
}

.app-header-inner {
  max-width: 720px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-title {
  font-size: 18px;
  font-weight: 700;
  color: #4A7C59;
  letter-spacing: -0.02em;
}
.app-title span {
  font-size: 13px;
  font-weight: 400;
  color: #6B7280;
  margin-left: 8px;
}

.btn-settings {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.btn-settings:hover {
  background: #E8F5EE;
}

.main-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.form-section {
  background: #F8F9FA;
  border-radius: 12px;
  padding: 28px 28px 32px;
  margin-bottom: 24px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: #4A7C59;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.field + .field {
  margin-top: 20px;
}

.field-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2D2D2D;
}
.field-label .required {
  color: #E05A5A;
  font-size: 12px;
  margin-left: 4px;
}
.field-label .optional {
  color: #6B7280;
  font-size: 12px;
  font-weight: 400;
  margin-left: 4px;
}

.industry-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.industry-btn {
  padding: 10px 18px;
  border: 2px solid #E0E4E8;
  border-radius: 100px;
  background: #FFFFFF;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s;
  color: #2D2D2D;
}
.industry-btn:hover {
  border-color: #4A7C59;
  color: #4A7C59;
}
.industry-btn.active {
  background: #4A7C59;
  border-color: #4A7C59;
  color: #fff;
  font-weight: 600;
}

.media-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.btn-select-all {
  flex-shrink: 0;
  padding: 6px 14px;
  border: 2px solid #E0E4E8;
  border-radius: 100px;
  background: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  color: #6B7280;
  margin-bottom: 8px;
}
.btn-select-all:hover {
  border-color: #4A7C59;
  color: #4A7C59;
}
.btn-select-all.active {
  background: #E8F5EE;
  border-color: #4A7C59;
  color: #4A7C59;
}

.media-select-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #E05A5A;
}

.media-select-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.media-select-btn {
  padding: 10px 18px;
  border: 2px solid #E0E4E8;
  border-radius: 100px;
  background: #FFFFFF;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s;
  color: #2D2D2D;
  display: flex;
  align-items: center;
  gap: 4px;
}
.media-select-btn:hover {
  border-color: #4A7C59;
  color: #4A7C59;
}
.media-select-btn.active {
  background: #E8F5EE;
  border-color: #4A7C59;
  color: #4A7C59;
  font-weight: 600;
}
.media-select-btn.active::after {
  content: "✓";
  font-size: 12px;
  margin-left: 2px;
}

.media-select-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}

.media-svg-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

.field-textarea {
  width: 100%;
  min-height: 110px;
  border: 2px solid #E0E4E8;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  color: #2D2D2D;
  background: #FFFFFF;
  resize: vertical;
  transition: border-color 0.15s;
  line-height: 1.6;
}
.field-textarea:focus {
  outline: none;
  border-color: #4A7C59;
}
.field-textarea::placeholder {
  color: #A0ADB8;
}

.char-count {
  text-align: right;
  font-size: 13px;
  color: #6B7280;
  margin-top: 4px;
}

.btn-generate {
  width: 100%;
  padding: 18px;
  background: #4A7C59;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.02em;
}
.btn-generate:hover {
  background: #3A6248;
}
.btn-generate:active {
  transform: scale(0.98);
}
.btn-generate:disabled {
  background: #B0C4B8;
  cursor: not-allowed;
  transform: none;
}

#results-wrap {
  display: none;
}
#results-wrap.visible {
  display: block;
}

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

.results-title {
  font-size: 18px;
  font-weight: 700;
}

.btn-back {
  padding: 8px 16px;
  border: 2px solid #E0E4E8;
  border-radius: 100px;
  background: #FFFFFF;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s;
  color: #2D2D2D;
}
.btn-back:hover {
  border-color: #4A7C59;
  color: #4A7C59;
}

.media-block {
  background: #F8F9FA;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  animation: fadeIn 0.25s ease both;
}
.media-block:nth-child(2) {
  animation-delay: 0.04s;
}
.media-block:nth-child(3) {
  animation-delay: 0.08s;
}
.media-block:nth-child(4) {
  animation-delay: 0.12s;
}
.media-block:nth-child(5) {
  animation-delay: 0.16s;
}

.media-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.media-icon {
  font-size: 22px;
  display: flex;
  align-items: center;
  width: 24px;
  height: 24px;
}

.media-name {
  font-size: 16px;
  font-weight: 700;
  flex: 1;
}

.media-limit {
  font-size: 12px;
  color: #6B7280;
  background: #E0E4E8;
  padding: 2px 8px;
  border-radius: 100px;
}

.pattern-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.pattern-tab {
  padding: 6px 14px;
  border: 1px solid #E0E4E8;
  border-radius: 100px;
  background: #FFFFFF;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  color: #6B7280;
}
.pattern-tab:hover {
  border-color: #4A7C59;
  color: #4A7C59;
}
.pattern-tab.active {
  background: #4A7C59;
  border-color: #4A7C59;
  color: #fff;
  font-weight: 600;
}

.pattern-content {
  display: none;
}
.pattern-content.active {
  display: block;
}

.post-textarea {
  width: 100%;
  border: 2px solid #E0E4E8;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: #2D2D2D;
  background: #FFFFFF;
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
  transition: border-color 0.15s;
}
.post-textarea:focus {
  outline: none;
  border-color: #4A7C59;
}
.post-textarea.selected {
  border-color: #4A7C59;
  background: #E8F5EE;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.post-char-count {
  font-size: 13px;
  color: #6B7280;
}
.post-char-count.over {
  color: #E05A5A;
}

.btn-copy {
  padding: 8px 18px;
  background: #4A7C59;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-copy:hover {
  background: #3A6248;
}
.btn-copy.copied {
  background: #2E7D32;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.modal-overlay.open {
  display: flex;
}

.modal {
  background: #FFFFFF;
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  padding: 32px;
  position: relative;
  margin: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.btn-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6B7280;
  line-height: 1;
  padding: 4px;
}
.btn-modal-close:hover {
  color: #2D2D2D;
}

.setting-field {
  margin-bottom: 24px;
}

.setting-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.setting-input {
  width: 100%;
  border: 2px solid #E0E4E8;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #2D2D2D;
  transition: border-color 0.15s;
}
.setting-input:focus {
  outline: none;
  border-color: #4A7C59;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #E0E4E8;
}
.toggle-row:last-child {
  border-bottom: none;
}

.toggle-label {
  font-size: 15px;
}

.toggle-sub {
  font-size: 12px;
  color: #6B7280;
  margin-top: 2px;
}

.toggle {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}
.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: #E0E4E8;
  border-radius: 100px;
  transition: background 0.2s;
  cursor: pointer;
}
.toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.toggle input:checked + .toggle-track {
  background: #4A7C59;
}
.toggle input:checked + .toggle-track::after {
  transform: translateX(20px);
}

.hashtag-section {
  background: #F8F9FA;
  border-radius: 8px;
  padding: 16px;
  margin-top: 8px;
}

.hashtag-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #6B7280;
  margin-bottom: 10px;
}

.hashtag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hashtag-chip {
  padding: 4px 10px;
  background: #E8F5EE;
  border: 1px solid #4A7C59;
  border-radius: 100px;
  font-size: 13px;
  color: #4A7C59;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hashtag-chip .remove-chip {
  cursor: pointer;
  color: #6B7280;
  font-size: 14px;
  line-height: 1;
}
.hashtag-chip .remove-chip:hover {
  color: #E05A5A;
}

.hashtag-add-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.hashtag-add-input {
  flex: 1;
  border: 1px solid #E0E4E8;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
}
.hashtag-add-input:focus {
  outline: none;
  border-color: #4A7C59;
}

.btn-add-tag {
  padding: 8px 14px;
  background: #4A7C59;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
.btn-add-tag:hover {
  background: #3A6248;
}

.btn-save {
  width: 100%;
  margin-top: 24px;
  padding: 15px;
  background: #4A7C59;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-save:hover {
  background: #3A6248;
}

.save-notice {
  text-align: center;
  font-size: 13px;
  color: #4A7C59;
  margin-top: 10px;
  height: 16px;
  transition: opacity 0.3s;
}

.modal-divider {
  border: none;
  border-top: 1px solid #E0E4E8;
  margin: 24px 0;
}

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #2D2D2D;
  color: #fff;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 14px;
  z-index: 300;
  transition: transform 0.3s ease;
  white-space: nowrap;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 480px) {
  .main-wrap {
    padding: 20px 16px 60px;
  }
  .form-section {
    padding: 20px;
  }
  .media-block {
    padding: 18px;
  }
  .modal {
    padding: 24px 20px;
  }
}
.main-nav {
  background: #FFFFFF;
  border-bottom: 1px solid #E0E4E8;
  position: sticky;
  top: 64px;
  z-index: 90;
  padding: 0 24px;
}

.main-nav-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 0;
}

.main-nav-tab {
  padding: 14px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 15px;
  font-weight: 600;
  color: #6B7280;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.main-nav-tab:hover {
  color: #4A7C59;
}
.main-nav-tab.active {
  color: #4A7C59;
  border-bottom-color: #4A7C59;
}

.tc-header {
  margin-bottom: 24px;
}

.tc-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tc-screen-title {
  font-size: 18px;
  font-weight: 700;
  color: #4A7C59;
  margin-bottom: 4px;
}

.tc-period-label {
  font-size: 13px;
  color: #6B7280;
}

.btn-generate-calendar {
  flex-shrink: 0;
  padding: 12px 20px;
  background: #4A7C59;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-generate-calendar:hover {
  background: #3A6248;
}
.btn-generate-calendar:disabled {
  background: #B0C4B8;
  cursor: not-allowed;
}

.tc-empty-state {
  text-align: center;
  padding: 60px 24px;
}
.tc-empty-state .tc-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.tc-empty-state .tc-empty-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.tc-empty-state .tc-empty-sub {
  font-size: 13px;
  color: #6B7280;
}

.tc-view-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.tc-view-tab {
  padding: 8px 20px;
  border: 2px solid #E0E4E8;
  border-radius: 100px;
  background: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.15s;
}
.tc-view-tab:hover {
  border-color: #4A7C59;
  color: #4A7C59;
}
.tc-view-tab.active {
  background: #4A7C59;
  border-color: #4A7C59;
  color: #fff;
}

.tc-month-card {
  background: #F8F9FA;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.25s ease both;
}

.tc-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tc-month-title {
  font-size: 16px;
  font-weight: 700;
}

.tc-theme-count {
  font-size: 12px;
  color: #6B7280;
  background: #E0E4E8;
  padding: 2px 8px;
  border-radius: 100px;
}

.tc-event-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.tc-event-chip {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 100px;
  font-weight: 500;
}

.tc-event-general {
  background: #EEF2FF;
  color: #3B4DB8;
}

.tc-event-industry {
  background: #FFF7ED;
  color: #9A3412;
}

.tc-theme-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tc-theme-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #FFFFFF;
  border-radius: 8px;
  border-left: 3px solid var(--cat-border, #E0E4E8);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  flex-wrap: wrap;
}
.tc-theme-item:hover {
  background: var(--cat-bg, #E8F5EE);
  transform: translateX(2px);
}
.tc-theme-item:active {
  transform: translateX(1px);
}

.tc-status-done {
  opacity: 0.55;
}

.tc-status-skip {
  opacity: 0.4;
  text-decoration: line-through;
}

.tc-date-chip {
  font-size: 12px;
  color: #6B7280;
  flex-shrink: 0;
  min-width: 32px;
}

.tc-category-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--cat-bg, #F8F9FA);
  color: var(--cat-text, #2D2D2D);
  border: 1px solid var(--cat-border, #E0E4E8);
  flex-shrink: 0;
  white-space: nowrap;
}

.tc-theme-text {
  font-size: 15px;
  flex: 1;
  min-width: 0;
  word-break: break-all;
}

.tc-status-badge {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 100px;
  background: #E0E4E8;
  color: #6B7280;
  flex-shrink: 0;
}

#tcCalendarWrap {
  position: relative;
}

.tc-cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.tc-cal-nav-btn {
  width: 40px;
  height: 40px;
  background: #FFFFFF;
  border: 2px solid #E0E4E8;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.tc-cal-nav-btn:hover:not(:disabled) {
  border-color: #4A7C59;
  color: #4A7C59;
}
.tc-cal-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.tc-cal-month-label {
  font-size: 17px;
  font-weight: 700;
  min-width: 120px;
  text-align: center;
}

.tc-cal-header-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 2px;
}

.tc-cal-dow {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #6B7280;
  padding: 6px 0;
}
.tc-cal-dow:first-child {
  color: #E05A5A;
}
.tc-cal-dow:last-child {
  color: #5A7CE8;
}

.tc-cal-cells {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.tc-cal-cell {
  background: #F8F9FA;
  border-radius: 8px;
  padding: 6px 4px;
  min-height: 72px;
}
.tc-cal-cell.tc-cal-empty {
  background: transparent;
}
.tc-cal-cell.tc-cal-sun .tc-cal-day-num {
  color: #E05A5A;
}
.tc-cal-cell.tc-cal-sat .tc-cal-day-num {
  color: #5A7CE8;
}

.tc-cal-day-num {
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.tc-cal-badges {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tc-cal-badge {
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid;
  cursor: pointer;
  line-height: 1.3;
  transition: opacity 0.15s;
}
.tc-cal-badge:hover {
  opacity: 0.75;
}

.tc-cal-events {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #E0E4E8;
}

.tc-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 env(safe-area-inset-bottom, 0);
}
.tc-detail-overlay.open {
  display: flex;
}

.tc-detail-modal {
  background: #FFFFFF;
  border-radius: 12px 12px 0 0;
  width: 100%;
  max-width: 720px;
  padding: 24px 28px 32px;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.tc-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tc-detail-date {
  font-size: 13px;
  color: #6B7280;
}

.tc-detail-body {
  margin-bottom: 24px;
}

.tc-detail-category-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.tc-detail-category-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}

.tc-detail-status {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 100px;
  background: #E0E4E8;
  color: #6B7280;
}
.tc-detail-status.tc-status-pending {
  background: #EEF2FF;
  color: #3B4DB8;
}
.tc-detail-status.tc-status-done {
  background: #F0FDF4;
  color: #166534;
}
.tc-detail-status.tc-status-skip {
  background: #E0E4E8;
  color: #6B7280;
}

.tc-detail-theme-text {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
}

.tc-detail-reason {
  font-size: 13px;
  color: #6B7280;
}

.tc-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-detail-generate {
  width: 100%;
  padding: 16px;
  background: #4A7C59;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-detail-generate:hover {
  background: #3A6248;
}

.btn-detail-skip {
  width: 100%;
  padding: 12px;
  background: #FFFFFF;
  color: #6B7280;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid #E0E4E8;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-detail-skip:hover {
  border-color: #6B7280;
  color: #2D2D2D;
}

@media (max-width: 480px) {
  .tc-header-top {
    flex-direction: column;
  }
  .btn-generate-calendar {
    width: 100%;
  }
  .tc-month-card {
    padding: 16px;
  }
  .tc-theme-item {
    flex-wrap: wrap;
  }
  .tc-cal-cell {
    min-height: 60px;
  }
  .tc-cal-badge {
    font-size: 9px;
  }
  .tc-detail-modal {
    padding: 24px 20px 32px;
  }
}
/* ============================================================
   ACCESS TOKEN GATE（指示書②改: 初回アクセス時のトークン入力）
   ============================================================ */
.token-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(45, 55, 50, 0.55);
  backdrop-filter: blur(3px);
}

.token-gate-overlay.open {
  display: flex;
}

.token-gate-modal {
  width: 100%;
  max-width: 400px;
  padding: 32px 28px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.token-gate-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.token-gate-title {
  font-size: 18px;
  font-weight: 700;
  color: #2d3732;
  margin-bottom: 10px;
}

.token-gate-desc {
  font-size: 13px;
  color: #6b7671;
  line-height: 1.7;
  margin-bottom: 18px;
}

.token-gate-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d5ddd8;
  border-radius: 10px;
  font-size: 15px;
  margin-bottom: 10px;
}

.token-gate-input:focus {
  outline: none;
  border-color: #4a7c59;
}

.token-gate-error {
  font-size: 12px;
  color: #c0392b;
  margin-bottom: 10px;
  line-height: 1.5;
}

.token-gate-submit {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: #4a7c59;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.token-gate-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

/* APIフォールバック時の控えめな通知（指示書②改 §3-4） */
.fallback-notice {
  font-size: 12px;
  color: #8a938e;
  background: #f4f6f5;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 14px;
}
