/* AI参謀室 サービスサイト — モック UI */
:root {
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --accent: #0f3460;
  --accent-light: #1d4ed8;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --success: #059669;
  --warn: #d97706;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --font: "Helvetica Neue", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface-2);
  line-height: 1.6;
  min-height: 100vh;
}

body.is-member {
  background: var(--surface-2);
}

a {
  color: var(--accent-light);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* —— Public header —— */
.site-header {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--accent) 100%);
  color: #fff;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-lg);
}

.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
  flex-wrap: wrap;
}

.site-logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}
.site-logo:hover {
  text-decoration: none;
  opacity: 0.92;
}
.site-logo span {
  font-weight: 400;
  opacity: 0.85;
  font-size: 0.85rem;
  margin-left: 8px;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-main a {
  color: rgba(255, 255, 255, 0.88);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  text-decoration: none;
}
.nav-main a:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}
.nav-main a.is-active {
  background: rgba(255, 255, 255, 0.18);
  font-weight: 600;
}

/* 表サイト：体験参加 CTA（ナビ） */
.nav-main .nav-cta {
  background: rgba(255, 255, 255, 0.96);
  color: var(--accent) !important;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.nav-main .nav-cta:hover {
  background: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.nav-main .nav-cta.is-active {
  background: #fef3c7;
  color: var(--warn) !important;
}

/* ヒーロー内・体験参加バンド */
.trial-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-bottom: 22px;
  padding: 16px 20px;
  background: linear-gradient(120deg, #ecfdf5 0%, #d1fae5 50%, #ecfdf5 100%);
  border: 1px solid #6ee7b7;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.trial-band__text {
  flex: 1;
  min-width: 200px;
  margin: 0;
  font-size: 0.95rem;
  color: var(--navy-800);
  font-weight: 600;
}
.trial-band__text span {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}
.btn--trial {
  background: var(--success);
  color: #fff !important;
  border: none;
  white-space: nowrap;
}
.btn--trial:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn--primary {
  background: #fff;
  color: var(--accent);
}
.btn--primary:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}
.btn--solid {
  background: var(--accent-light);
  color: #fff;
}
.btn--solid:hover {
  filter: brightness(1.06);
}

/* —— Layout —— */
.main-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.view {
  display: none;
  animation: fadeIn 0.25s ease;
}
.view.is-visible {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 28px;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 640px;
  font-size: 1rem;
}
.hero__actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: #eff6ff;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* —— Pricing —— */
.pricing-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.pricing-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  position: relative;
}
.pricing-card--featured {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 1px var(--accent-light);
}
.pricing-card .plan-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.pricing-card .price {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 8px 0;
}
.pricing-card .price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

/* —— Member shell —— */
.member-shell {
  display: none;
  min-height: 100vh;
}
body.is-member .member-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
}
@media (max-width: 900px) {
  body.is-member .member-shell {
    display: flex;
    flex-direction: column;
  }
}

.member-sidebar {
  background: var(--navy-900);
  color: #e2e8f0;
  padding: 24px 16px;
  min-height: 100vh;
}
@media (max-width: 900px) {
  .member-sidebar {
    min-height: auto;
  }
}

.member-sidebar__brand {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
  padding: 0 12px;
}
.member-sidebar__plan {
  font-size: 0.75rem;
  color: #94a3b8;
  padding: 0 12px 20px;
  border-bottom: 1px solid var(--navy-700);
  margin-bottom: 16px;
}

.member-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.875rem;
  text-decoration: none;
  margin-bottom: 2px;
}
.member-nav a:hover {
  background: var(--navy-800);
  color: #fff;
  text-decoration: none;
}
.member-nav a.is-active {
  background: var(--accent-light);
  color: #fff;
}

.member-nav__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 16px 12px 8px;
}

.member-main {
  padding: 24px;
  overflow-x: hidden;
}
@media (min-width: 901px) {
  .member-main {
    padding: 32px 40px;
  }
}

.member-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.member-header h1 {
  margin: 0;
  font-size: 1.5rem;
}
.member-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* —— Dashboard modules —— */
.dash-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 960px) {
  .dash-grid--top {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }
}

.module {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.module__head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.module__head h2 {
  margin: 0;
  font-size: 0.95rem;
}
.module__badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: #fef3c7;
  color: var(--warn);
  padding: 4px 8px;
  border-radius: 6px;
}
.module__body {
  padding: 16px 20px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.timeline li:last-child {
  border-bottom: none;
}
.timeline time {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.todo-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.todo-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
}
.todo-list li:last-child {
  border-bottom: none;
}
.todo-list input[type="checkbox"] {
  margin-top: 4px;
  accent-color: var(--accent-light);
}

.mini-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mini-card {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.85rem;
}
.mini-card strong {
  display: block;
  margin-bottom: 4px;
}

.notice-bar {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--navy-800);
  margin-bottom: 20px;
}

/* —— Login modal —— */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop.is-open {
  display: flex;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}
.modal p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
}
.modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* —— Form contact —— */
.form-simple label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-simple input,
.form-simple textarea,
.form-simple select {
  width: 100%;
  max-width: 480px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  margin-bottom: 16px;
}
.form-simple textarea {
  min-height: 120px;
  resize: vertical;
}

/* —— Footer public —— */
.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* hide public chrome when member */
body.is-member .site-header,
body.is-member .site-footer,
body.is-member .public-main {
  display: none;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item button {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: var(--surface);
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item button:hover {
  background: var(--surface-2);
}
.faq-item__panel {
  display: none;
  padding: 0 20px 16px;
  font-size: 0.875rem;
  color: var(--muted);
}
.faq-item.is-open .faq-item__panel {
  display: block;
}
.faq-item.is-open button span:last-child {
  transform: rotate(180deg);
}
