body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  background: #f6f3ea;
  color: #222;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #1f2a24;
  color: #fff;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  gap: 14px;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.page-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.dashboard-hero,
.dashboard-card,
.auth-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(31, 42, 36, 0.08);
}

.dashboard-hero {
  margin-bottom: 20px;
}

.hero-kicker,
.section-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #5b7f64;
  margin-bottom: 10px;
}

.hero-title {
  margin: 0;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.1;
}

.hero-copy,
.dashboard-copy,
.section-copy {
  line-height: 1.9;
  color: #4d554f;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-chip {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef4ec;
  color: #31543a;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.dashboard-title,
.section-title {
  margin: 0;
}

.link-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 13px 18px;
  border-radius: 999px;
  background: #1f2a24;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  transition: 0.2s;
}

.link-button:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero,
  .dashboard-card,
  .auth-card {
    padding: 22px;
    border-radius: 20px;
  }
}

.next-quest {
  border: 2px solid #5b7f64;
  background: #f0f7f2;
}

.quest-card {
  background: linear-gradient(135deg, #2e3b34, #1f2a24);
  color: #fff;
  border-radius: 16px;
  padding: 16px;
  position: relative;
  transition: 0.2s;
}

.quest-card:hover {
  transform: translateY(-2px);
}

.quest-card > a {
  color: #fff;
  font-weight: 700;
}

.quest-card.done {
  opacity: 0.45;
}

.quest-card.done::after {
  content: "CLEAR";
  position: absolute;
  top: 10px;
  right: 10px;
  background: #b94a48;
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 6px;
  font-weight: 800;
}

.link-button:active {
  transform: scale(0.97);
}

.sub-link {
  color: #4d554f;
  text-align: center;
  font-size: 14px;
  text-decoration: none;
}

.sub-link:hover {
  text-decoration: underline;
}
.quest-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.action-btn {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s;
}

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

.action-btn.edit {
  background: #6c8f74;
  color: #fff;
}

.action-btn.delete {
  background: #b94a48;
  color: #fff;
}

.action-btn.complete {
  background: #31543a;
  color: #fff;
}

.dashboard-card form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.dashboard-card form p {
  display: grid;
  gap: 6px;
  margin: 0;
}

.dashboard-card label {
  font-size: 13px;
  font-weight: 800;
  color: #31543a;
}

.dashboard-card input,
.dashboard-card textarea,
.dashboard-card select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #d8ded6;
  border-radius: 12px;
  background: #fbfaf6;
  color: #222;
  font-size: 16px;
}

.dashboard-card input:focus,
.dashboard-card textarea:focus,
.dashboard-card select:focus {
  outline: none;
  border-color: #5b7f64;
  box-shadow: 0 0 0 3px rgba(91, 127, 100, 0.18);
}

.dashboard-card textarea {
  min-height: 96px;
  resize: vertical;
}

.dashboard-card .helptext {
  color: #788078;
  font-size: 12px;
}

.quest-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
}

.quest-story {
  background: #1f2a24;
  color: #fff;
  padding: 20px;
  border-radius: 16px;
}

.story-item {
  padding: 10px;
  border-left: 3px solid #5b7f64;
  margin-bottom: 10px;
}

.story-item.done {
  opacity: 0.4;
}

.quest-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.next-quest-box {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
}

.game-header .hero-title {
  font-size: clamp(28px, 5vw, 44px);
}

.event-box {
  background: #fff7d6;
  border: 1px solid #e7d48a;
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-weight: 800;
  color: #5a4714;
}

.current-quest-box {
  border: 2px solid #31543a;
  box-shadow: 0 16px 40px rgba(31, 42, 36, 0.08);
}

.next-list-box {
  display: grid;
  gap: 10px;
}

.mini-quest-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef0ea;
}

.mini-quest-row:last-child {
  border-bottom: 0;
}

.difficulty-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef4ec;
  color: #31543a;
  font-size: 12px;
  font-weight: 800;
}

.difficulty-chip.easy {
  background: #eef7ee;
}

.difficulty-chip.normal {
  background: #fff4d8;
}

.difficulty-chip.hard {
  background: #f9dddd;
}

.quest-actions form {
  width: 100%;
}

.quest-actions button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.last-clear-box {
  background: #f9fbf5;
}

.hero-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.add-quest-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 12px 16px;
  border-radius: 999px;
  background: #1f2a24;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 22px rgba(31, 42, 36, 0.18);
  transition: 0.2s;
}

.add-quest-button:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.xp-panel {
  margin-top: 22px;
}

.xp-label-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 900;
  color: #31543a;
}

.xp-bar {
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3eadf;
  box-shadow: inset 0 1px 3px rgba(31, 42, 36, 0.15);
}

.xp-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #5b7f64, #b5c46a);
  transition: width 0.35s ease;
}

.quest-story-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field-card {
  background: #f9fbf5;
}

.current-quest-box h2 {
  margin-top: 8px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
}

.action-btn.complete {
  padding: 18px 20px;
  border-radius: 999px;
  font-size: 18px;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 24px rgba(49, 84, 58, 0.24);
}

.add-quest-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.add-quest-modal:target {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 42, 36, 0.62);
  backdrop-filter: blur(4px);
}

.add-quest-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
}

.modal-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-title-row h3 {
  margin: 0;
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #eef4ec;
  color: #31543a;
  text-decoration: none;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.floating-add-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #1f2a24;
  color: #fff;
  text-decoration: none;
  font-size: 32px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(31, 42, 36, 0.28);
}

@media (max-width: 720px) {
  .hero-head-row {
    flex-direction: column;
  }

  .add-quest-button {
    width: 100%;
    box-sizing: border-box;
  }

  .quest-layout {
    grid-template-columns: 1fr;
  }

  .floating-add-button {
    display: inline-flex;
  }

  .current-quest-box h2 {
    font-size: 34px;
  }
}

.quest-flow-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quest-flow-layout .quest-story-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.quest-flow-layout .event-box {
  margin-bottom: 0;
}

.field-event-panel .event-box {
  display: flex;
  align-items: center;
}

.quest-flow-layout .quest-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quest-flow-layout .next-list-box {
  order: 1;
}

.quest-flow-layout .current-quest-box {
  order: 2;
}

.quest-flow-layout .last-clear-box {
  order: 3;
}

.quest-flow-layout .add-quest-modal {
  order: 4;
}

@media (max-width: 720px) {
  .quest-flow-layout .quest-story-panel {
    grid-template-columns: 1fr;
  }
}


.complete-effect-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: #f7f1c9;
  border: 1px solid #dfcc75;
  color: #4f4212;
  text-align: center;
  box-shadow: 0 14px 28px rgba(31, 42, 36, 0.12);
  animation: complete-pop 0.45s ease-out both;
}

.complete-effect-panel.level-up {
  background: #edf7ee;
  border-color: #8cbf8f;
  color: #234d2c;
  animation: complete-pop 0.45s ease-out both, level-glow 1.4s ease-in-out 0.2s 2;
}

.complete-effect-main {
  font-size: clamp(32px, 7vw, 62px);
  line-height: 1;
  font-weight: 1000;
  letter-spacing: 0.04em;
}

.complete-effect-sub {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.level-up-badge {
  display: inline-flex;
  margin-top: 12px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #1f2a24;
  color: #fff;
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.last-clear-box.just-cleared {
  border: 2px solid #dfcc75;
  animation: last-clear-flash 0.7s ease-out both;
}

.last-clear-xp {
  display: inline-flex;
  margin-top: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff4d8;
  color: #5a4714;
  font-size: 13px;
  font-weight: 900;
}

@keyframes complete-pop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
  }
  70% {
    opacity: 1;
    transform: translateY(-2px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes level-glow {
  0%, 100% {
    box-shadow: 0 14px 28px rgba(31, 42, 36, 0.12);
  }
  50% {
    box-shadow: 0 18px 38px rgba(49, 84, 58, 0.32);
  }
}

@keyframes last-clear-flash {
  0% {
    transform: scale(0.98);
    box-shadow: 0 0 0 rgba(223, 204, 117, 0);
  }
  60% {
    transform: scale(1.01);
    box-shadow: 0 16px 34px rgba(223, 204, 117, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 16px 40px rgba(31, 42, 36, 0.08);
  }
}

.adventurer-summary {
  display: flex;
  align-items: center;
  gap: 16px;
}

.adventurer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 20px;
  background: #eef4ec;
  font-size: 34px;
  box-shadow: inset 0 1px 2px rgba(31, 42, 36, 0.08);
}

.adventurer-icon.large {
  width: 76px;
  height: 76px;
  font-size: 46px;
  border-radius: 26px;
}

.adventurer-name {
  margin: 8px 0 0;
  color: #31543a;
  font-weight: 900;
}

.header-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.sub-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 999px;
  background: #eef4ec;
  color: #31543a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  transition: 0.2s;
}

.sub-action-button:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.log-message-box {
  margin-bottom: 20px;
}

.log-grid,
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.log-panel,
.profile-form-card,
.profile-status-card {
  min-width: 0;
}

.log-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.log-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 16px;
  border: 1px solid #eef0ea;
  border-radius: 18px;
  background: #fbfaf6;
}

.log-row.completed {
  background: #f9fbf5;
}

.log-row h3 {
  margin: 0 0 8px;
}

.log-row p {
  margin: 0 0 8px;
}

.log-row p:last-child {
  margin-bottom: 0;
}

.log-meta {
  display: inline-flex;
  margin-left: 8px;
  color: #4d554f;
  font-size: 13px;
  font-weight: 800;
}

.log-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 82px;
}

.status-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #eef0ea;
}

.status-row:last-child {
  border-bottom: 0;
}

.status-row span {
  color: #4d554f;
  font-weight: 800;
}

.status-row strong {
  color: #31543a;
  font-size: 20px;
}

@media (max-width: 720px) {
  .adventurer-summary {
    align-items: flex-start;
  }

  .header-action-row {
    width: 100%;
    justify-content: stretch;
  }

  .header-action-row a {
    flex: 1;
  }

  .log-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .log-row {
    grid-template-columns: 1fr;
  }

  .log-actions {
    flex-direction: row;
  }
}


.action-btn.current {
  border: 0;
  background: #31543a;
  color: #ffffff;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
}

.action-btn.current-selected {
  background: #dfcc75;
  color: #1f2a24;
  cursor: default;
}

.log-actions form {
  margin: 0;
}

.current-source-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef4ec;
  color: #31543a;
  font-size: 13px;
  font-weight: 900;
}

.action-btn.retry {
  border: 0;
  background: #dfcc75;
  color: #1f2a24;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
}

.action-btn.retry:hover {
  filter: brightness(0.98);
}


.action-btn.complete {
  border: 0;
  background: #31543a;
  color: #ffffff;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
}

.action-btn.complete:hover {
  filter: brightness(1.05);
}

/* 冒険の記録のCompleteボタンだけ、プレイ画面用の大きいCOMPLETE演出ボタンにならないようにするための追記 */
.log-actions .action-btn.complete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: #4f8a5b;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  width: 100%;
}

/* 冒険の記録のCompleteボタンだけ、プレイ画面用の大きいCOMPLETE演出ボタンにならないようにするための追記 */
.log-actions .action-btn.complete:hover {
  transform: translateY(-1px);
  opacity: 0.9;
  filter: none;
}

/* 冒険の記録内のフォーム幅を、他のアクションボタンと揃えるための追記 */
.log-actions form {
  width: 100%;
}

/* AI GUIDE */
.ai-guidance-card {
  border: 1px solid rgba(122, 162, 255, 0.32);
  background: radial-gradient(circle at top left, rgba(122, 162, 255, 0.16), rgba(13, 18, 32, 0.94));
}

.guide-message-text {
  line-height: 1.9;
  white-space: normal;
}

.mini-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.guide-hero {
  margin-bottom: 20px;
}

.guide-setup-card {
  max-width: 760px;
  margin: 0 auto;
}

.guide-name-form {
  margin-top: 18px;
}

.guide-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 20px;
  align-items: start;
}

.daily-guidance-large,
.guide-chat-card {
  min-height: 220px;
}

.guide-message-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 20px;
}

.guide-message-row {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.guide-message-row.user {
  margin-left: 28px;
}

.guide-message-row.assistant {
  margin-right: 28px;
  background: rgba(122, 162, 255, 0.1);
}

.guide-message-role {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  opacity: 0.72;
  margin-bottom: 6px;
  font-weight: 700;
}

.guide-message-body {
  line-height: 1.8;
}

.guide-empty-message {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.78);
}

.guide-chat-form textarea,
.guide-name-form input {
  width: 100%;
}


.guide-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.guide-feedback-actions form {
  margin: 0;
}

.guide-feedback-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.guide-feedback-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.3);
}

.guide-feedback-button.selected {
  background: rgba(122, 162, 255, 0.24);
  border-color: rgba(122, 162, 255, 0.72);
  color: #ffffff;
}

@media (max-width: 780px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-message-row.user,
  .guide-message-row.assistant {
    margin-left: 0;
    margin-right: 0;
  }
}


.quest-mini-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.78rem;
  opacity: 0.86;
}

.quest-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}


.block-reason-box {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #d8ded6;
  border-radius: 14px;
  background: #fbfaf6;
}

.block-reason-box summary {
  cursor: pointer;
  color: #31543a;
  font-size: 13px;
  font-weight: 800;
}

.block-reason-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.block-reason-form select,
.block-reason-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d8ded6;
  border-radius: 12px;
  background: #fff;
  color: #222;
}

.action-btn.reason {
  border: 0;
  background: #7a6f46;
  color: #fff;
  cursor: pointer;
}

/* Quest edit page */
.quest-edit-card {
  max-width: 760px;
  margin: 0 auto;
}

.quest-edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.quest-edit-form .form-full {
  grid-column: 1 / -1;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field ul.errorlist {
  margin: 0;
  padding-left: 18px;
  color: #b94a48;
  font-size: 13px;
  font-weight: 800;
}

.form-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.form-action-row .link-button,
.form-action-row .sub-action-button {
  border: 0;
  cursor: pointer;
}

@media (max-width: 720px) {
  .quest-edit-form {
    grid-template-columns: 1fr;
  }
}

/* Adventure trends */
.profile-trend-card {
  grid-column: 1 / -1;
}

.trend-copy {
  margin: 6px 0 18px;
  color: #4d554f;
  font-size: 14px;
  font-weight: 700;
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trend-tile {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid #eef0ea;
  border-radius: 18px;
  background: #fbfaf6;
}

.trend-tile span,
.trend-note span {
  color: #4d554f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.trend-tile strong {
  color: #31543a;
  font-size: 22px;
  line-height: 1.2;
}

.trend-tile small {
  color: #7a7d78;
  font-size: 12px;
  font-weight: 800;
}

.trend-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #eef4ec;
  color: #31543a;
}

.trend-note strong {
  font-size: 14px;
}

@media (max-width: 860px) {
  .trend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .trend-grid {
    grid-template-columns: 1fr;
  }
}

/* RECOMMENDED CURRENT */
.recommended-current-box {
  border: 1px solid rgba(255, 205, 95, 0.45);
  background: linear-gradient(135deg, rgba(255, 245, 214, 0.95), rgba(255, 255, 255, 0.9));
}

.recommended-current-box h3 {
  margin-bottom: 6px;
}

.recommended-quest-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 14px 0 8px;
}

.recommended-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 12px;
}

.recommendation-reasons {
  margin: 0 0 16px;
  padding-left: 1.2em;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ADVENTURE STYLE */
.adventure-style-grid {
  align-items: start;
  margin-bottom: 20px;
}

.adventure-style-card,
.adventure-style-survey-card,
.adventure-style-manual-card,
.profile-style-card {
  min-width: 0;
}

.style-current-box,
.style-result-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.style-current-box.compact {
  grid-template-columns: 1fr;
}

.style-current-box > div,
.style-result-box > div,
.style-type-list > div {
  padding: 14px;
  border: 1px solid #eef0ea;
  border-radius: 18px;
  background: #fbfaf6;
}

.style-current-box span,
.style-result-box span,
.style-type-list span {
  display: block;
  color: #4d554f;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}

.style-current-box strong,
.style-result-box strong,
.style-type-list strong {
  display: block;
  color: #31543a;
  font-size: 24px;
  line-height: 1.2;
}

.proposal-card {
  border: 2px solid #dfcc75;
  background: #fffdf2;
}

.style-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.style-action-row form {
  margin: 0;
}

.style-button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.adventure-style-form ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.adventure-style-form li label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #eef0ea;
  border-radius: 14px;
  background: #fbfaf6;
  cursor: pointer;
}

.adventure-style-form input[type="radio"] {
  width: auto;
}

.style-type-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

@media (max-width: 720px) {
  .style-current-box,
  .style-result-box {
    grid-template-columns: 1fr;
  }

  .style-action-row form,
  .style-action-row button,
  .style-action-row .link-button {
    width: 100%;
    box-sizing: border-box;
  }
}

/* ADVENTURE STYLE FORM FIX */
/* 冒険スタイル診断の選択肢だけ、通常のinput幅100%指定から外すための追記 */
.adventure-style-form > p {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.adventure-style-form > p > label {
  display: block;
  color: #31543a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.7;
}

.adventure-style-form ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.adventure-style-form li {
  margin: 0;
}

.adventure-style-form li label {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #eef0ea;
  border-radius: 14px;
  background: #fbfaf6;
  color: #222;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
}

.adventure-style-form input[type="radio"],
.adventure-style-form input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 3px 0 0;
  padding: 0;
  border-radius: 999px;
  box-shadow: none;
}

.adventure-style-form li label:hover {
  border-color: #5b7f64;
  background: #f7fbf5;
}

.adventure-style-form select {
  max-width: 100%;
}


/* ADVENTURE STYLE CHOICE FIX 2 */
/* 冒険スタイル診断の選択肢を、左に丸・右に文章の2列で固定するための追記 */
.adventure-style-question-list {
  display: grid;
  gap: 18px;
  margin: 20px 0;
}

.adventure-style-question-block {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #eef0ea;
  border-radius: 18px;
  background: #fffdf8;
}

.adventure-style-question-title {
  display: block;
  margin: 0;
  color: #31543a;
  font-size: 17px;
  font-weight: 1000;
  line-height: 1.6;
}

.adventure-style-choice-list {
  display: grid;
  gap: 8px;
}

.adventure-style-choice-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #eef0ea;
  border-radius: 14px;
  background: #fbfaf6;
  color: #222;
  cursor: pointer;
}

.adventure-style-choice-item:hover {
  border-color: #5b7f64;
  background: #f7fbf5;
}

.adventure-style-choice-item input[type="radio"],
.adventure-style-choice-item input[type="checkbox"] {
  display: block;
  width: 18px !important;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  margin: 4px 0 0 !important;
  padding: 0 !important;
  border-radius: 999px;
  box-shadow: none;
}

.adventure-style-choice-text {
  display: block;
  color: #222;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.adventure-style-form .errorlist {
  margin: 0;
  padding-left: 18px;
  color: #b94a48;
  font-size: 13px;
  font-weight: 800;
}

.adventure-style-manual-fields {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

@media (max-width: 560px) {
  .adventure-style-question-title {
    font-size: 16px;
  }

  .adventure-style-choice-item {
    grid-template-columns: 22px minmax(0, 1fr);
    padding: 12px;
  }
}

/* ADVENTURE ELEMENT / JOB */
.element-current-box {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.adventure-job-card {
  margin: 20px 0;
}

.job-choice-list {
  margin: 18px 0;
}

.style-lock-note,
.style-unlock-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 800;
  line-height: 1.7;
}

.style-lock-note {
  background: #fff4d8;
  color: #5a4714;
}

.style-unlock-note {
  background: #eef4ec;
  color: #31543a;
}

.element-type-list strong {
  min-width: 3em;
}

@media (max-width: 720px) {
  .element-current-box {
    grid-template-columns: 1fr;
  }
}

/* EVENT FOUNDATION */
.event-list,
.event-detail-grid {
  display: grid;
  gap: 18px;
}

.event-detail-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.event-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 18px;
  border: 1px solid #eef0ea;
  border-radius: 20px;
  background: #fbfaf6;
}

.event-row.completed {
  opacity: 0.72;
  background: #f9fbf5;
}

.event-row h3 {
  margin: 8px 0 6px;
  font-size: 24px;
}

.event-type-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef4ec;
  color: #31543a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.event-date-row {
  color: #4d554f;
  font-size: 13px;
  font-weight: 800;
}

.event-progress {
  margin-top: 16px;
}

.event-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #31543a;
  font-size: 13px;
  font-weight: 900;
}

.event-row-actions {
  display: flex;
  align-items: center;
}

.event-add-card form {
  margin-top: 16px;
}

@media (max-width: 780px) {
  .event-detail-grid,
  .event-row {
    grid-template-columns: 1fr;
  }

  .event-row-actions {
    align-items: stretch;
  }
}

/* AI EVENT GENERATOR */
.ai-event-grid {
  align-items: start;
}

.ai-event-title {
  margin: 14px 0 8px;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.2;
}

.ai-event-quest-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.ai-event-quest-row {
  padding: 14px;
  border: 1px solid #eef0ea;
  border-radius: 18px;
  background: #fbfaf6;
}

.ai-event-quest-row h4 {
  margin: 0 0 8px;
}

.ai-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ai-event-actions form {
  margin: 0;
}

.ai-event-actions .sub-action-button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 720px) {
  .ai-event-actions {
    flex-direction: column;
  }

  .ai-event-actions .link-button,
  .ai-event-actions .sub-action-button {
    width: 100%;
    box-sizing: border-box;
  }
}


/* SIMPLE AWAKENING / JOB EVOLUTION */
.profile-evolution-card {
  background: linear-gradient(135deg, #fffdf2, #ffffff);
}

.evolution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.evolution-panel {
  padding: 16px;
  border: 1px solid #eef0ea;
  border-radius: 18px;
  background: #fbfaf6;
}

.evolution-panel h3 {
  margin: 0 0 10px;
  color: #31543a;
}

.evolution-form ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0 0 14px;
  list-style: none;
}

.evolution-form li label {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e3eadf;
  color: #222;
  font-weight: 800;
}

.evolution-form input[type="radio"] {
  width: auto;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

@media (max-width: 720px) {
  .evolution-grid {
    grid-template-columns: 1fr;
  }
}

/* 初回ユーザー向けチュートリアルページ用の追記 */
.quest-tutorial-link {
  white-space: nowrap;
}

.tutorial-page {
  max-width: 880px;
  margin: 0 auto;
}

.tutorial-hero {
  margin-bottom: 20px;
  background: linear-gradient(135deg, #eef4ec, #f9fbf5);
}

.tutorial-label {
  margin: 0 0 10px;
  color: #5b7f64;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.tutorial-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.15;
}

.tutorial-section-list {
  display: grid;
  gap: 16px;
}

.tutorial-card h2,
.tutorial-message h2 {
  margin-top: 0;
}

.tutorial-card p,
.tutorial-message p {
  line-height: 1.9;
  color: #4d554f;
}

.tutorial-example {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f6f3ea;
  color: #31543a;
  font-weight: 800;
}

.tutorial-message {
  margin-top: 20px;
  text-align: center;
  background: #f9fbf5;
}

.tutorial-button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 720px) {
  .tutorial-page {
    width: 100%;
  }

  .tutorial-button-row .link-button,
  .tutorial-button-row .sub-action-button {
    width: 100%;
    box-sizing: border-box;
  }
}

/* 協力者向け説明ページ用の追記 */
.quest-about-link {
  white-space: nowrap;
}

.supporter-page {
  max-width: 920px;
  margin: 0 auto;
}

.supporter-hero {
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f9fbf5, #eef4ec);
}

.supporter-label {
  margin: 0 0 10px;
  color: #5b7f64;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.supporter-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.15;
}

.supporter-hero p,
.supporter-card p,
.supporter-message p {
  line-height: 1.9;
  color: #4d554f;
}

.supporter-section-list {
  display: grid;
  gap: 16px;
}

.supporter-card h2,
.supporter-message h2 {
  margin-top: 0;
}

.supporter-check-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 22px;
  line-height: 1.8;
  color: #4d554f;
}

.supporter-report-box {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f6f3ea;
  color: #31543a;
}

.supporter-report-box p {
  margin: 0 0 8px;
}

.supporter-report-box p:last-child {
  margin-bottom: 0;
}

.supporter-message {
  margin-top: 20px;
  text-align: center;
  background: #f9fbf5;
}

.supporter-button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 720px) {
  .supporter-page {
    width: 100%;
  }

  .supporter-button-row .link-button,
  .supporter-button-row .sub-action-button {
    width: 100%;
    box-sizing: border-box;
  }
}



/* AI案内人の相談アーカイブ表示用の追記 */
.guide-archive-link-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 12px;
}

.guide-archive-link-row h3 {
  margin: 0 0 8px;
}

.guide-archive-empty {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 700;
}

.guide-archive-card {
  max-width: 920px;
  margin: 0 auto;
}

.guide-archive-list {
  margin-top: 18px;
}

@media (max-width: 780px) {
  .guide-archive-link-row {
    flex-direction: column;
  }

  .guide-archive-link-row .sub-action-button {
    width: 100%;
    box-sizing: border-box;
  }
}

/* AI案内人の相談からクエスト/イベント案を作るための追記 */
.guide-proposal-action-form {
  margin: 12px 0 0;
}

.guide-proposal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.guide-proposal-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
}

.guide-proposal-card {
  max-width: 920px;
  margin: 0 auto;
}

.guide-proposal-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.guide-proposal-meta-row span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef4ec;
  color: #31543a;
  font-size: 0.82rem;
  font-weight: 800;
}

.guide-proposal-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.guide-proposal-quest-list {
  display: grid;
  gap: 12px;
}

.guide-proposal-quest-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid #eef0ea;
  border-radius: 18px;
  background: #fbfaf6;
  cursor: pointer;
}

.guide-proposal-quest-row input {
  width: auto;
  margin-top: 4px;
}

.guide-proposal-quest-body {
  display: grid;
  gap: 7px;
}

.guide-proposal-quest-body strong {
  color: #1f2a24;
}

.guide-proposal-quest-body span,
.guide-proposal-quest-body small {
  color: #4d554f;
  line-height: 1.7;
}

.guide-proposal-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-proposal-clear-form {
  margin-top: 16px;
}

.guide-proposal-clear-button {
  border: 0;
  background: transparent;
  color: #788078;
  font-family: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 720px) {
  .guide-proposal-submit-row .link-button,
  .guide-proposal-submit-row .sub-action-button {
    width: 100%;
    box-sizing: border-box;
  }
}

/* AI案内人の提案作成ボタンを、森・山・海などのシーン背景に左右されず読めるようにするための追記 */
.guide-proposal-button {
  border: 1px solid rgba(31, 42, 36, 0.18);
  background: #fffaf0;
  color: #1f2a24;
  box-shadow: 0 8px 18px rgba(31, 42, 36, 0.18);
}

/* AI案内人の提案作成ボタンを、森・山・海などのシーン背景に左右されず読めるようにするための追記 */
.guide-proposal-button:hover {
  background: #fff3d6;
  color: #1f2a24;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(31, 42, 36, 0.22);
}

/* AI案内人の提案作成ボタンを、スマホでも押しやすくするための追記 */
@media (max-width: 720px) {
  .guide-proposal-button {
    width: 100%;
    box-sizing: border-box;
  }
}

/* AI案内人の評価ボタンを、森・山・海などのシーン背景に左右されず読めるようにするための追記 */
.guide-feedback-button {
  border: 1px solid rgba(31, 42, 36, 0.18);
  background: #fffaf0;
  color: #1f2a24;
  box-shadow: 0 6px 14px rgba(31, 42, 36, 0.14);
}

/* AI案内人の評価ボタンを、森・山・海などのシーン背景に左右されず読めるようにするための追記 */
.guide-feedback-button:hover {
  background: #fff3d6;
  color: #1f2a24;
  border-color: rgba(31, 42, 36, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(31, 42, 36, 0.18);
}

/* AI案内人の評価ボタンの選択済み状態を、背景に埋もれず分かるようにするための追記 */
.guide-feedback-button.selected {
  background: #1f2a24;
  border-color: rgba(31, 42, 36, 0.45);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(31, 42, 36, 0.22);
}

/* AI案内人の評価ボタンを、スマホでも押しやすくするための追記 */
@media (max-width: 720px) {
  .guide-feedback-actions {
    width: 100%;
  }

  .guide-feedback-actions form {
    flex: 1 1 140px;
  }

  .guide-feedback-button {
    width: 100%;
    box-sizing: border-box;
  }
}


/* AI相談テンプレートボタン用の追記。自由入力の相談窓口を残したまま、相談のきっかけだけを補助する */
.guide-template-box {
  margin: 18px 0 16px;
  padding: 16px;
  border: 1px solid rgba(31, 42, 36, 0.14);
  border-radius: 18px;
  background: #fbfaf6;
  box-shadow: 0 8px 18px rgba(31, 42, 36, 0.08);
}

/* AI相談テンプレートボタン用の追記 */
.guide-template-heading {
  margin-bottom: 6px;
  color: #31543a;
  font-weight: 900;
}

/* AI相談テンプレートボタン用の追記 */
.guide-template-copy {
  margin: 0 0 12px;
  font-size: 0.92rem;
}

/* AI相談テンプレートボタン用の追記 */
.guide-template-button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* AI相談テンプレートボタン用の追記。森・山・海などのシーン背景に左右されない見た目にする */
.guide-template-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(31, 42, 36, 0.16);
  border-radius: 999px;
  background: #fffaf0;
  color: #1f2a24;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(31, 42, 36, 0.12);
  transition: 0.2s;
}

/* AI相談テンプレートボタン用の追記 */
.guide-template-button:hover {
  background: #fff3d6;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(31, 42, 36, 0.16);
}

/* AI相談テンプレートボタン用の追記 */
.guide-template-button:active {
  transform: scale(0.98);
}

/* AI相談テンプレートボタン用の追記 */
@media (max-width: 720px) {
  .guide-template-button-row {
    grid-template-columns: 1fr;
  }
}

/* AI相談テンプレートボタンを直接提案作成に変更するための追記 */
.guide-template-form {
  display: block;
  margin: 0;
}

/* AI相談テンプレートボタンを直接提案作成に変更するための追記 */
.guide-template-form .guide-template-button {
  width: 100%;
  box-sizing: border-box;
}

/* 自由入力の相談窓口をテンプレート導線と分けて見せるための追記 */
.guide-free-chat-heading {
  margin-top: 18px;
}

/* 案内人の提案を登録前に編集できるようにするための追記 */
.guide-proposal-edit-block {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #eef0ea;
  border-radius: 20px;
  background: #fbfaf6;
}

/* 案内人の提案を登録前に編集できるようにするための追記 */
.guide-proposal-edit-block h3 {
  margin: 0;
}

/* 案内人の提案を登録前に編集できるようにするための追記 */
.guide-proposal-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* 案内人の提案を登録前に編集できるようにするための追記 */
.guide-proposal-field-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 案内人の提案を登録前に編集できるようにするための追記 */
.guide-proposal-field-grid .form-full,
.guide-proposal-edit-block .form-full,
.guide-proposal-quest-body .form-full {
  grid-column: 1 / -1;
}

/* 案内人の提案を登録前に編集できるようにするための追記 */
.guide-proposal-quest-row.editable {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

/* 案内人の提案を登録前に編集できるようにするための追記 */
.guide-proposal-select-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: #eef4ec;
  color: #31543a;
  font-size: 13px;
  font-weight: 900;
}

/* 案内人の提案を登録前に編集できるようにするための追記 */
.guide-proposal-select-row input {
  width: auto;
}

/* 案内人の提案を登録前に編集できるようにするための追記 */
.guide-proposal-quest-row.editable .guide-proposal-quest-body {
  display: grid;
  gap: 12px;
}

/* 案内人の提案を登録前に編集できるようにするための追記 */
.guide-proposal-form input,
.guide-proposal-form textarea,
.guide-proposal-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid #d8ded6;
  border-radius: 12px;
  background: #ffffff;
  color: #222;
  font: inherit;
}

/* 案内人の提案を登録前に編集できるようにするための追記 */
.guide-proposal-form textarea {
  min-height: 82px;
  resize: vertical;
}

@media (max-width: 780px) {
  /* 案内人の提案を登録前に編集できるようにするための追記 */
  .guide-proposal-quest-row.editable,
  .guide-proposal-field-grid,
  .guide-proposal-field-grid.compact {
    grid-template-columns: 1fr;
  }

  /* 案内人の提案を登録前に編集できるようにするための追記 */
  .guide-proposal-select-row {
    width: fit-content;
  }
}

/* Complete後に、ユーザーが自分で次の流れを選べるようにするための追記 */
.post-clear-action-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(49, 84, 58, 0.16);
  border-radius: 20px;
  background: #fbfaf6;
  box-shadow: 0 12px 28px rgba(31, 42, 36, 0.08);
}

.post-clear-action-copy h3 {
  margin: 0 0 6px;
  color: #1f2a24;
}

.post-clear-action-copy p {
  margin: 0;
  color: #4d554f;
  line-height: 1.7;
}

.post-clear-action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.post-clear-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(49, 84, 58, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: #31543a;
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(31, 42, 36, 0.08);
  transition: 0.2s;
}

.post-clear-action-button.primary {
  background: #1f2a24;
  border-color: #1f2a24;
  color: #ffffff;
}

.post-clear-action-button.calm {
  background: #eef4ec;
}

.post-clear-action-button:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

@media (max-width: 720px) {
  .post-clear-action-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .post-clear-action-buttons {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .post-clear-action-button {
    width: 100%;
    box-sizing: border-box;
  }
}

/* 冒険者ステータス画面用の追記 */
.status-hero {
  background: linear-gradient(135deg, #ffffff, #f3f7ef);
}

.status-hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.status-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.status-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-card {
  min-width: 0;
}

.status-current-quest,
.status-latest-clear,
.status-top-event {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: #f9fbf5;
  border: 1px solid #e6eee2;
}

.status-current-quest h3,
.status-top-event h3 {
  margin: 4px 0 8px;
}

.status-current-quest p,
.status-latest-clear p,
.status-top-event p {
  margin: 0;
}

.status-mini-label {
  color: #5b7f64;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.stat-number-card {
  text-align: center;
}

.stat-number-card h2 {
  margin: 8px 0 4px;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1;
  color: #31543a;
}

.stat-number-card p {
  margin: 0;
  color: #4d554f;
  font-weight: 800;
}

.status-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.status-stat-box {
  padding: 16px;
  border-radius: 18px;
  background: #fbfaf6;
  border: 1px solid #eef0ea;
}

.status-stat-box span {
  color: #5b7f64;
  font-size: 0.86rem;
  font-weight: 900;
}

.status-stat-box strong {
  display: block;
  margin: 8px 0;
  font-size: 2rem;
  color: #1f2a24;
}

.status-stat-box p {
  margin: 0;
  color: #4d554f;
  font-size: 0.86rem;
  line-height: 1.6;
}

.status-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #eef4ec;
  color: #31543a;
  font-weight: 900;
}

.status-latest-clear strong {
  display: block;
  margin: 4px 0;
  color: #1f2a24;
}

.status-latest-clear span {
  color: #4d554f;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .status-grid,
  .status-grid.three,
  .status-stat-grid {
    grid-template-columns: 1fr;
  }

  .status-hero-row {
    flex-direction: column;
  }

  .status-hero-actions {
    width: 100%;
    justify-content: stretch;
  }

  .status-hero-actions a {
    flex: 1;
  }
}


/* 属性XP軽量版の表示用の追記 */
.element-growth-card {
  margin-bottom: 20px;
}

.element-growth-summary {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: #fbfaf6;
  border: 1px solid #e8eadf;
}

.element-growth-summary span {
  display: block;
  color: #5b7f64;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.element-growth-summary strong {
  display: block;
  margin: 6px 0;
  color: #1f2a24;
  font-size: 1.8rem;
}

.element-growth-summary p {
  margin: 0;
  color: #4d554f;
  line-height: 1.7;
}

.element-growth-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.element-growth-box {
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #eef0ea;
  box-shadow: 0 10px 24px rgba(31, 42, 36, 0.06);
}

.element-growth-box.is-top {
  border-color: #dfcc75;
  box-shadow: 0 14px 30px rgba(223, 204, 117, 0.2);
}

.element-growth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.element-growth-head span {
  color: #31543a;
  font-weight: 1000;
  font-size: 1.1rem;
}

.element-growth-head strong {
  color: #1f2a24;
}

.element-growth-xp {
  margin-top: 8px;
  color: #4d554f;
  font-size: 0.9rem;
  font-weight: 900;
}

.element-growth-bar {
  height: 10px;
  overflow: hidden;
  margin: 10px 0;
  border-radius: 999px;
  background: #eef0ea;
}

.element-growth-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: #5b7f64;
}

.element-growth-box.fire .element-growth-bar-fill {
  background: #c86b4a;
}

.element-growth-box.water .element-growth-bar-fill {
  background: #4f7fa8;
}

.element-growth-box.wind .element-growth-bar-fill {
  background: #6aa87a;
}

.element-growth-box.earth .element-growth-bar-fill {
  background: #9a7a45;
}

.element-growth-box p {
  margin: 0;
  color: #4d554f;
  font-size: 0.86rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .element-growth-grid {
    grid-template-columns: 1fr;
  }
}
