:root {
  --ink: #172316;
  --ink-soft: #344232;
  --paper: #f6f3eb;
  --surface: #fffdf8;
  --surface-soft: #ece9df;
  --line: #d9d7cd;
  --muted: #6e746d;
  --accent: #ee6a2c;
  --accent-dark: #c94e16;
  --mint: #cfe4c5;
  --mint-dark: #345d39;
  --white: #ffffff;
  --shadow: 0 18px 54px rgba(28, 38, 27, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --sidebar-width: 244px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(238, 106, 44, 0.38);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

[hidden] {
  display: none !important;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  grid-template-columns: minmax(420px, 1.08fr) minmax(440px, 0.92fr);
  background: var(--paper);
}

.login-screen__intro {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 100%;
  padding: clamp(34px, 5vw, 76px);
  color: var(--white);
  background:
    radial-gradient(circle at 78% 20%, rgba(238, 106, 44, 0.3), transparent 25%),
    radial-gradient(circle at 16% 88%, rgba(122, 163, 108, 0.2), transparent 30%),
    linear-gradient(145deg, #1d2a1c 0%, #111b12 64%, #0b120c 100%);
  flex-direction: column;
  justify-content: space-between;
}

.login-screen__intro::after {
  position: absolute;
  right: -12vw;
  bottom: -24vw;
  width: 46vw;
  height: 46vw;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 7vw rgba(255, 255, 255, 0.025),
    0 0 0 14vw rgba(255, 255, 255, 0.018);
  pointer-events: none;
}

.brand--login {
  position: relative;
  z-index: 1;
}

.brand--login .brand__mark {
  width: 52px;
  height: 52px;
}

.brand--login .brand__text strong {
  font-size: 26px;
}

.login-screen__message {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: clamp(56px, 8vh, 120px) 0;
}

.login-screen__eyebrow {
  margin: 0 0 16px;
  color: #f3a077;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.login-screen__message h2 {
  margin: 0;
  color: #fffdf7;
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(48px, 5.2vw, 78px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.24;
}

.login-screen__message h2 em {
  color: #ef7440;
  font-style: normal;
}

.login-screen__message > p:last-child {
  max-width: 620px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(15px, 1.2vw, 18px);
}

.login-screen__promises {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 720px;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  gap: 18px;
}

.login-screen__promises li {
  display: grid;
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}

.login-screen__promises span {
  color: #ef7440;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.login-screen__panel {
  display: grid;
  padding: clamp(28px, 6vw, 92px);
  place-items: center;
}

.login-card {
  width: min(100%, 500px);
}

.login-card__mobile-brand {
  display: none;
}

.login-card h1 {
  margin: 14px 0 18px;
  color: var(--ink);
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.login-card__lead {
  margin: 0 0 30px;
  color: var(--ink-soft);
  font-size: 16px;
}

.login-status {
  margin-bottom: 16px;
  padding: 13px 15px;
  color: #495048;
  background: #ece9df;
  border: 1px solid #dedbd0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.login-status[data-status="ready"] {
  color: #24492b;
  background: #e2efdc;
  border-color: #c7dec0;
}

.login-status[data-status="notice"] {
  color: #705814;
  background: #fff5d6;
  border-color: #ead99a;
}

.login-status[data-status="error"] {
  color: #7c2d24;
  background: #fff0ec;
  border-color: #e5b4aa;
}

.login-google-button {
  min-height: 44px;
}

.login-google-button > div {
  max-width: 100%;
}

.login-placeholder,
.login-https-link {
  display: flex;
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.login-placeholder {
  color: #82867f;
  background: #f4f2ec;
  border: 1px solid #d9d7cd;
}

.login-placeholder span {
  display: grid;
  width: 24px;
  height: 24px;
  color: #68726a;
  background: var(--white);
  border: 1px solid #d8dcd7;
  border-radius: 50%;
  place-items: center;
  font-weight: 900;
}

.login-https-link {
  color: var(--white);
  background: var(--ink);
}

.login-https-link:hover {
  background: #253724;
}

.login-safety {
  display: grid;
  margin: 28px 0 0;
  padding: 22px 0 0;
  color: #5c635b;
  border-top: 1px solid var(--line);
  gap: 10px;
  font-size: 13px;
  list-style: none;
}

.login-safety li {
  position: relative;
  padding-left: 24px;
}

.login-safety li::before {
  position: absolute;
  top: 0.13em;
  left: 0;
  display: grid;
  width: 17px;
  height: 17px;
  content: "✓";
  color: var(--mint-dark);
  background: var(--mint);
  border-radius: 50%;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
}

.login-safety code {
  color: inherit;
  font: inherit;
  font-weight: 800;
}

.login-card__support {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--sidebar-width);
  padding: 28px 20px 22px;
  color: rgba(255, 255, 255, 0.84);
  background:
    radial-gradient(circle at 30% 12%, rgba(97, 137, 91, 0.25), transparent 30%),
    var(--ink);
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  display: grid;
  overflow: hidden;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px 14px 14px 5px;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
}

.brand__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand__text {
  display: flex;
  line-height: 1.1;
  flex-direction: column;
}

.brand__text strong {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  letter-spacing: 0.08em;
}

.brand__text small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav {
  display: grid;
  margin-top: 48px;
  gap: 7px;
}

.nav-item {
  display: flex;
  min-height: 48px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border: 0;
  border-radius: 12px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.nav-item:hover,
.nav-item.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
}

.nav-item__icon {
  display: grid;
  width: 24px;
  height: 24px;
  color: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  place-items: center;
  font-size: 12px;
}

.sidebar__divider {
  height: 1px;
  margin: 24px 4px 20px;
  background: rgba(255, 255, 255, 0.12);
}

.sidebar__label {
  margin: 0 12px 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.tool-nav {
  display: grid;
  gap: 2px;
}

.tool-nav a {
  display: flex;
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.7);
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
}

.tool-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.sidebar__footer {
  margin-top: auto;
}

.auth-actions {
  display: flex;
  min-height: 38px;
  margin-top: 8px;
  align-items: center;
  justify-content: center;
}

.auth-logout {
  min-height: 34px;
  padding: 5px 12px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  cursor: pointer;
}

.auth-logout:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
}

.user-card {
  display: flex;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  align-items: center;
  gap: 10px;
}

.user-card > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.user-card strong {
  color: var(--white);
  font-size: 12px;
}

.user-card small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  color: var(--ink);
  background: var(--mint);
  border-radius: 50%;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.main-content {
  width: calc(100% - var(--sidebar-width));
  max-width: 1540px;
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding: 30px clamp(24px, 4vw, 68px) 26px;
}

.mobile-header,
.mobile-nav {
  display: none;
}

.utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.prototype-note {
  display: flex;
  min-height: 36px;
  width: fit-content;
  padding: 7px 13px;
  color: #5c512a;
  background: #fff5c8;
  border: 1px solid #e7d893;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.quick-launcher {
  display: grid;
  max-width: 100%;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 8px 24px rgba(23, 35, 22, 0.06);
  grid-template-columns: repeat(11, 44px);
  gap: 4px;
}

.quick-launcher a {
  display: grid;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 10px;
  place-items: center;
  text-decoration: none;
}

.quick-launcher a:hover,
.quick-launcher a:focus-visible {
  background: #fffaf3;
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.quick-launcher img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.prototype-note__dot {
  width: 7px;
  height: 7px;
  background: #bb8e00;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(187, 142, 0, 0.12);
}

.hero {
  display: grid;
  padding: clamp(36px, 6vw, 82px) 0 clamp(32px, 5vw, 62px);
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  align-items: center;
  gap: clamp(36px, 6vw, 94px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow--accent {
  color: var(--accent-dark);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(42px, 5.2vw, 78px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.hero h1 em {
  position: relative;
  color: var(--accent-dark);
  font-style: normal;
}

.hero h1 em::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 4px;
  background: var(--accent);
  border-radius: 99px;
  content: "";
  transform: rotate(-1deg);
}

.hero__lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.9;
}

.hero__actions {
  display: flex;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.button--large {
  min-height: 54px;
  padding: 14px 22px;
  border-radius: 15px;
  font-size: 14px;
}

.button--primary {
  color: var(--white);
  background: var(--accent-dark);
  box-shadow: 0 12px 28px rgba(201, 78, 22, 0.2);
}

.button--primary:hover:not(:disabled) {
  background: #ac3e0e;
  box-shadow: 0 15px 34px rgba(201, 78, 22, 0.27);
}

.button--secondary {
  color: var(--ink);
  background: transparent;
  border: 1px solid #b9b9b0;
}

.button--secondary:hover {
  background: var(--surface);
}

.button--dark {
  color: var(--white);
  background: var(--ink);
}

.button--dark:hover:not(:disabled) {
  background: #2d3a2c;
}

.button--full {
  width: 100%;
}

.trust-list {
  display: flex;
  margin: 22px 0 0;
  padding: 0;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 11px;
  font-weight: 700;
  list-style: none;
}

.trust-list span {
  display: inline-grid;
  width: 17px;
  height: 17px;
  margin-right: 4px;
  color: var(--mint-dark);
  background: var(--mint);
  border-radius: 50%;
  place-items: center;
  font-size: 10px;
}

.today-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3.4vw, 38px);
  background: var(--surface);
  border: 1px solid rgba(23, 35, 22, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.today-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 95px;
  height: 95px;
  background: radial-gradient(circle at top right, rgba(238, 106, 44, 0.19), transparent 68%);
  content: "";
  pointer-events: none;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.card-heading--bordered {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.card-heading h2,
.section-heading h2,
.progress-card h2,
.safety-card h2 {
  margin: 0;
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  line-height: 1.38;
}

.card-heading h2 {
  font-size: clamp(21px, 2vw, 28px);
}

.time-pill,
.status-badge {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 6px 9px;
  color: var(--accent-dark);
  background: #ffecdf;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.status-badge {
  color: var(--mint-dark);
  background: var(--mint);
}

.status-badge--empty {
  color: #696d67;
  background: #ebe8de;
}

.today-card__reason {
  margin: 16px 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.question-empty {
  display: flex;
  min-height: 76px;
  padding: 16px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  border: 1px solid #e1ded4;
  border-radius: 12px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.question-empty span {
  display: grid;
  width: 30px;
  height: 30px;
  color: var(--mint-dark);
  background: var(--mint);
  border-radius: 50%;
  place-items: center;
  font-weight: 900;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.choice-grid button,
.option-list button,
.suggestion-row button {
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.choice-grid button:hover,
.choice-grid button.is-selected,
.option-list button:hover,
.option-list button.is-selected,
.suggestion-row button:hover {
  color: var(--ink);
  background: #fff1e7;
  border-color: rgba(201, 78, 22, 0.38);
}

.today-card__footer {
  display: flex;
  margin-top: 18px;
  color: var(--muted);
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
}

.text-button {
  min-height: 36px;
  padding: 4px 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  cursor: pointer;
}

.text-button:hover {
  color: var(--accent-dark);
  text-decoration-color: currentColor;
}

.text-button:disabled,
.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  text-decoration: none;
}

.text-button--strong {
  color: var(--ink);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.67fr);
  gap: 22px;
}

.advice-card,
.progress-card,
.recent-card,
.tools-card {
  background: var(--surface);
  border: 1px solid rgba(23, 35, 22, 0.1);
  border-radius: var(--radius-lg);
}

.advice-card {
  padding: clamp(24px, 3.4vw, 40px);
}

.advice-lead {
  display: grid;
  padding: clamp(26px, 4vw, 44px) 0 28px;
  grid-template-columns: 58px 1fr;
  gap: 18px;
}

.advice-lead__number {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  line-height: 1;
}

.advice-label {
  margin: 0 0 7px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.advice-lead h3 {
  margin: 0;
  max-width: 720px;
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(23px, 2.7vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.48;
}

.advice-lead p:last-child {
  max-width: 720px;
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.9;
}

.advice-details {
  display: grid;
  padding: 19px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.advice-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.advice-detail__icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  color: var(--accent-dark);
  background: #ffecdf;
  border-radius: 9px;
  place-items: center;
  font-weight: 800;
}

.advice-detail strong {
  font-size: 11px;
}

.advice-detail p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.evidence {
  margin-top: 4px;
  border-bottom: 1px solid var(--line);
}

.evidence summary {
  display: flex;
  min-height: 52px;
  color: var(--ink-soft);
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.evidence summary::-webkit-details-marker {
  display: none;
}

.evidence[open] summary span {
  transform: rotate(45deg);
}

.evidence ul {
  display: grid;
  margin: 0 0 18px;
  padding: 0;
  gap: 9px;
  list-style: none;
}

.evidence li {
  display: grid;
  padding: 11px 13px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  border-radius: 10px;
  font-size: 12px;
  gap: 2px;
}

.evidence li span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.advice-actions {
  display: flex;
  padding-top: 23px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.feedback {
  display: flex;
  color: var(--muted);
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 10px;
}

.feedback button {
  min-height: 34px;
  padding: 5px 10px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.feedback button:hover,
.feedback button.is-selected {
  color: var(--accent-dark);
  background: #fff1e7;
  border-color: rgba(201, 78, 22, 0.4);
}

.side-stack {
  display: grid;
  align-content: start;
  gap: 22px;
}

.progress-card {
  padding: 27px;
}

.progress-card__top {
  display: flex;
  color: var(--muted);
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
}

.progress-card h2 {
  margin-top: 12px;
  font-size: 23px;
}

.progress-card > p {
  margin: 13px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

.progress-track {
  overflow: hidden;
  height: 7px;
  margin-bottom: 15px;
  background: var(--surface-soft);
  border-radius: 999px;
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}

.safety-card {
  display: flex;
  padding: 24px;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-md);
  align-items: flex-start;
  gap: 14px;
}

.safety-card__mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  color: var(--mint);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

.safety-card h2 {
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
}

.safety-card p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  line-height: 1.7;
}

.lower-grid {
  display: grid;
  margin-top: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  gap: 22px;
}

.recent-card,
.tools-card {
  padding: 27px;
}

.section-heading {
  display: flex;
  margin-bottom: 19px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2 {
  font-size: 23px;
}

.activity-list {
  border-top: 1px solid var(--line);
}

.activity-empty {
  display: flex;
  min-height: 126px;
  padding: 24px 4px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 15px;
}

.activity-empty > span {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: var(--accent-dark);
  background: #ffecdf;
  border-radius: 12px;
  place-items: center;
  font-size: 20px;
}

.activity-empty div {
  display: grid;
  gap: 3px;
}

.activity-empty strong {
  font-size: 14px;
}

.activity-empty small {
  color: var(--muted);
  font-size: 11px;
}

.activity-row {
  display: grid;
  width: 100%;
  min-height: 72px;
  padding: 13px 4px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
}

.activity-row:hover {
  background: #fbf8f0;
}

.activity-row__date {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.activity-row__date small,
.activity-row__body small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.activity-row__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.activity-row__body strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tools-grid a {
  display: grid;
  min-height: 112px;
  padding: 16px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 15px;
  grid-template-columns: 39px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 11px;
  text-decoration: none;
}

.tools-grid a:hover {
  background: var(--surface);
  border-color: var(--line);
  transform: translateY(-2px);
}

.tool-icon {
  display: grid;
  width: 39px;
  height: 39px;
  grid-row: 1 / 3;
  color: var(--white);
  border-radius: 11px;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
}

.tool-icon--red { background: #c95346; }
.tool-icon--green { background: #3a7d57; }
.tool-icon--blue { background: #3e6e9e; }
.tool-icon--amber { background: #b67924; }

.tools-grid strong {
  align-self: end;
  font-size: 12px;
}

.tools-grid small {
  align-self: start;
  color: var(--muted);
  font-size: 10px;
}

.page-footer {
  display: flex;
  padding: 30px 2px 6px;
  color: var(--muted);
  justify-content: space-between;
  font-size: 10px;
}

.modal {
  width: min(660px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 32px));
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.modal::backdrop {
  background: rgba(10, 18, 10, 0.7);
  backdrop-filter: blur(5px);
}

.modal__frame {
  overflow: auto;
  max-height: min(860px, calc(100vh - 32px));
  padding: clamp(23px, 4vw, 38px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}

.modal__header {
  display: flex;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.modal__header h2 {
  margin: 0;
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.4;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 0;
  border-radius: 50%;
  place-items: center;
  font-size: 23px;
  cursor: pointer;
}

.stepper {
  display: grid;
  width: min(320px, 100%);
  margin: 28px auto 22px;
  grid-template-columns: 34px 1fr 34px 1fr 34px;
  align-items: center;
}

.stepper span {
  display: grid;
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 50%;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.stepper span.is-active,
.stepper span.is-complete {
  color: var(--white);
  background: var(--accent-dark);
}

.stepper i {
  height: 2px;
  background: var(--line);
}

.wizard-step {
  padding-top: 5px;
}

.question-count {
  margin: 0;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
}

.wizard-step h3,
.wizard-result h3,
.consult-result h3 {
  margin: 8px 0 18px;
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(21px, 3.2vw, 29px);
  line-height: 1.45;
}

.question-help {
  margin: -7px 0 17px;
  color: var(--muted);
  font-size: 12px;
}

.option-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.option-list--compact {
  margin-bottom: 18px;
}

.field-label {
  display: block;
  margin: 16px 0 7px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}

textarea,
input[type="date"] {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #bfc2ba;
  border-radius: 11px;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

textarea::placeholder {
  color: #9a9e98;
}

.consult-status,
.consult-meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.consult-status {
  padding: 12px 14px;
  background: var(--surface-soft);
  border-radius: 10px;
}

.consult-status.is-error {
  color: #8f231b;
  background: #fff0ed;
  border: 1px solid #e8b7ae;
}

.consult-result h3 {
  white-space: pre-wrap;
}

.check-row {
  display: flex;
  min-height: 44px;
  margin-top: 10px;
  color: var(--muted);
  align-items: center;
  gap: 9px;
  font-size: 12px;
  cursor: pointer;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-dark);
}

.check-row--boxed {
  padding: 12px;
  background: var(--surface-soft);
  border-radius: 10px;
}

.wizard-actions {
  display: flex;
  margin-top: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.wizard-result {
  padding: 38px 0 4px;
  text-align: center;
}

.wizard-result > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
}

.success-mark {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  color: var(--white);
  background: var(--mint-dark);
  border-radius: 50%;
  place-items: center;
  font-size: 30px;
}

.preparing {
  display: flex;
  width: fit-content;
  margin: 20px auto;
  padding: 9px 13px;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
}

.preparing span {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.2s ease-in-out infinite;
}

.consult-body,
.send-preview {
  padding-top: 18px;
}

.suggestion-row {
  display: flex;
  margin: 10px 0 18px;
  flex-wrap: wrap;
  gap: 7px;
}

.suggestion-row button {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 10px;
}

.consult-result {
  margin-top: 20px;
  padding: 20px;
  background: #eef4ea;
  border: 1px solid #cadcc2;
  border-radius: 15px;
}

.consult-result h3 {
  font-size: 20px;
}

.consult-result > p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 12px;
}

.preview-destination,
.preview-message {
  display: flex;
  padding: 17px;
  background: var(--surface-soft);
  border-radius: 13px;
  flex-direction: column;
  gap: 5px;
}

.preview-destination span,
.preview-message span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.preview-destination strong {
  font-size: 14px;
}

.preview-destination small {
  color: var(--muted);
  font-size: 10px;
}

.preview-message {
  margin-top: 10px;
  background: transparent;
  border: 1px solid var(--line);
}

.preview-message p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.85;
}

.send-preview__notice {
  color: #7b5d14;
  font-size: 11px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: min(440px, calc(100vw - 32px));
  padding: 13px 17px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.24);
  font-size: 12px;
  font-weight: 700;
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 1120px) {
  :root {
    --sidebar-width: 214px;
  }

  .hero {
    grid-template-columns: 1fr 0.92fr;
    gap: 34px;
  }

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

  .side-stack {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 860px) {
  body {
    padding-bottom: 74px;
  }

  .sidebar {
    display: none;
  }

  .main-content {
    width: 100%;
    margin-left: 0;
    padding: 0 20px 24px;
  }

  .mobile-header {
    display: flex;
    min-height: 72px;
    margin: 0 -20px 18px;
    padding: 12px 20px;
    color: var(--white);
    background: var(--ink);
    align-items: center;
    justify-content: space-between;
  }

  .brand--mobile .brand__mark {
    width: 38px;
    height: 38px;
    font-size: 23px;
  }

  .brand--mobile .brand__text strong {
    font-size: 19px;
  }

  .utility-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-launcher {
    overflow-x: auto;
    width: 100%;
    justify-content: start;
    scrollbar-width: thin;
  }

  .hero {
    padding-top: 38px;
    grid-template-columns: 1fr;
  }

  .hero__copy {
    max-width: 680px;
  }

  .today-card {
    max-width: 680px;
  }

  .mobile-nav {
    position: fixed;
    inset: auto 12px 10px;
    z-index: 30;
    display: grid;
    min-height: 62px;
    padding: 7px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(23, 35, 22, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    grid-template-columns: 1fr 1fr 1fr;
    backdrop-filter: blur(14px);
  }

  .mobile-nav button {
    display: flex;
    min-height: 48px;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    font-size: 9px;
    font-weight: 700;
  }

  .mobile-nav button span {
    font-size: 16px;
  }

  .mobile-nav .mobile-nav__primary {
    color: var(--white);
    background: var(--accent-dark);
  }
}

@media (max-width: 620px) {
  .main-content {
    padding-right: 12px;
    padding-left: 12px;
  }

  .mobile-header {
    min-height: 64px;
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .prototype-note {
    width: 100%;
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 11px;
    font-size: 10px;
  }

  .quick-launcher {
    padding: 3px 4px;
    border-radius: 11px;
  }

  .hero {
    padding: 20px 0 18px;
    gap: 18px;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.03;
  }

  .hero__lead {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.65;
  }

  .hero__actions {
    display: grid;
    margin-top: 14px;
    gap: 8px;
  }

  .button--large {
    width: 100%;
  }

  .trust-list {
    margin-top: 10px;
    gap: 7px 12px;
  }

  .today-card,
  .advice-card,
  .progress-card,
  .recent-card,
  .tools-card {
    border-radius: 20px;
  }

  .today-card {
    padding: 18px;
  }

  .card-heading h2 {
    font-size: 20px;
  }

  .today-card__reason {
    margin: 8px 0 12px;
  }

  .today-card__footer {
    margin-top: 10px;
  }

  .choice-grid,
  .option-list,
  .advice-details,
  .side-stack,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .advice-lead {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .advice-lead__number {
    font-size: 26px;
  }

  .advice-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .advice-actions .button {
    width: 100%;
  }

  .tools-grid a {
    min-height: 84px;
  }

  .page-footer {
    padding-bottom: 4px;
    flex-direction: column;
    gap: 2px;
  }

  .modal {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .modal__frame {
    max-height: calc(100vh - 16px);
    border-radius: 20px;
  }
}

/* PCでは紹介ページより業務ツールとしての一覧性を優先する。 */
@media (min-width: 861px) {
  :root {
    --radius-lg: 20px;
    --radius-md: 16px;
    --sidebar-width: 216px;
  }

  .sidebar {
    padding: 20px 14px 16px;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .brand__text strong {
    font-size: 20px;
  }

  .primary-nav {
    margin-top: 28px;
    gap: 4px;
  }

  .nav-item {
    min-height: 42px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .sidebar__divider {
    margin: 16px 4px 14px;
  }

  .tool-nav a {
    min-height: 34px;
    padding: 5px 10px;
    font-size: 12px;
  }

  .user-card {
    padding: 9px;
  }

  .main-content {
    max-width: 1780px;
    padding: 18px clamp(20px, 2.2vw, 38px) 22px;
  }

  .prototype-note {
    min-height: 30px;
    padding: 4px 11px;
    font-size: 11px;
  }

  .hero {
    padding: 18px 0 20px;
    align-items: start;
    gap: 18px;
  }

  .eyebrow {
    margin-bottom: 5px;
  }

  .hero h1 {
    font-size: clamp(38px, 3.3vw, 56px);
    line-height: 1.05;
  }

  .hero h1 em::after {
    bottom: -3px;
    height: 3px;
  }

  .hero__lead {
    margin-top: 12px;
    font-size: clamp(13px, 1.1vw, 15px);
    line-height: 1.65;
  }

  .hero__actions {
    margin-top: 15px;
  }

  .button--large {
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13px;
  }

  .trust-list {
    margin-top: 9px;
    gap: 7px 14px;
    font-size: 10px;
  }

  .today-card {
    padding: 20px;
  }

  .card-heading--bordered {
    padding-bottom: 13px;
  }

  .card-heading h2 {
    font-size: clamp(19px, 1.6vw, 24px);
  }

  .today-card__reason {
    margin: 8px 0 11px;
  }

  .choice-grid {
    gap: 7px;
  }

  .choice-grid button {
    min-height: 40px;
    padding: 8px 10px;
  }

  .today-card__footer {
    margin-top: 9px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1.62fr) minmax(300px, 0.68fr);
    gap: 14px;
  }

  .advice-card {
    padding: 21px;
  }

  .advice-lead {
    padding: 15px 0 13px;
    grid-template-columns: 42px 1fr;
    gap: 12px;
  }

  .advice-lead__number {
    font-size: 28px;
  }

  .advice-lead h3 {
    font-size: clamp(21px, 2vw, 29px);
    line-height: 1.38;
  }

  .advice-lead p:last-child {
    margin-top: 8px;
    line-height: 1.65;
  }

  .advice-details {
    padding: 11px 0;
    gap: 14px;
  }

  .evidence summary {
    min-height: 42px;
  }

  .advice-actions {
    padding-top: 12px;
  }

  .side-stack {
    gap: 14px;
  }

  .progress-card {
    padding: 19px;
  }

  .progress-card h2 {
    margin-top: 6px;
    font-size: 20px;
  }

  .progress-card > p {
    margin: 8px 0 11px;
    line-height: 1.65;
  }

  .progress-track {
    margin-bottom: 8px;
  }

  .safety-card {
    padding: 16px;
  }

  .lower-grid {
    margin-top: 14px;
    gap: 14px;
  }

  .recent-card,
  .tools-card {
    padding: 19px;
  }

  .section-heading {
    margin-bottom: 11px;
  }

  .section-heading h2 {
    font-size: 20px;
  }

  .activity-row {
    min-height: 58px;
    padding: 8px 4px;
  }

  .tools-grid a {
    min-height: 84px;
    padding: 11px;
  }

  .page-footer {
    padding: 18px 2px 4px;
  }
}

@media (min-width: 1121px) {
  .hero {
    grid-template-columns: minmax(0, 1.3fr) minmax(390px, 0.7fr);
    gap: clamp(18px, 2vw, 32px);
  }
}

@media (max-width: 960px) {
  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-screen__intro {
    min-height: auto;
    padding: 30px clamp(24px, 7vw, 64px);
  }

  .login-screen__message {
    margin: 46px 0;
  }

  .login-screen__message h2 {
    font-size: clamp(40px, 8vw, 62px);
  }

  .login-screen__promises {
    max-width: none;
  }

  .login-screen__panel {
    padding: 52px clamp(24px, 8vw, 76px) 64px;
  }
}

@media (max-width: 620px) {
  .login-screen {
    display: block;
    min-height: 100svh;
    background:
      linear-gradient(180deg, #172316 0, #172316 112px, var(--paper) 112px);
  }

  .login-screen__intro {
    display: none;
  }

  .login-screen__panel {
    display: block;
    padding: 24px 18px 36px;
  }

  .login-card {
    padding: 24px 20px 26px;
    background: var(--surface);
    border: 1px solid rgba(23, 35, 22, 0.08);
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(8, 15, 8, 0.14);
  }

  .login-card__mobile-brand {
    display: flex;
    margin-bottom: 34px;
    color: var(--ink);
    align-items: center;
    gap: 11px;
  }

  .login-card__mobile-brand .brand__mark {
    width: 42px;
    height: 42px;
  }

  .login-card__mobile-brand > span:last-child {
    display: flex;
    line-height: 1.1;
    flex-direction: column;
  }

  .login-card__mobile-brand strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    letter-spacing: 0.08em;
  }

  .login-card__mobile-brand small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .login-card h1 {
    margin-top: 10px;
    font-size: clamp(32px, 10vw, 42px);
  }

  .login-card__lead {
    margin-bottom: 24px;
    font-size: 14px;
  }

  .login-status {
    font-size: 12px;
  }

  .login-safety {
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
