:root {
    color-scheme: light;
    --ns-bg: #f6f5f2;
    --ns-surface: #ffffff;
    --ns-border: #e6e1d9;
    --ns-primary: #2f5d62;
    --ns-accent: #a67c52;
    --ns-muted: #6c6a67;
    --ns-heading: #1e1c1a;
    --ns-shadow: 0 12px 32px rgba(20, 28, 34, 0.08);
}

body {
    margin: 0;
    background: var(--ns-bg);
    color: var(--ns-heading);
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    line-height: 1.7;
}

a {
    color: var(--ns-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.ns-container {
    width: min(1080px, calc(100% - 48px));
    margin: 0 auto;
}

.ns-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ns-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.ns-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.ns-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ns-heading);
}

.ns-logo__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ns-primary);
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
}

.ns-nav {
    display: flex;
    gap: 18px;
    font-size: 0.95rem;
}

.ns-nav a {
    color: var(--ns-muted);
    font-weight: 500;
}

.ns-main {
    padding: 48px 0 80px;
}

.ns-section {
    margin-bottom: 72px;
}

.ns-hero {
    --hero-gradient: linear-gradient(135deg, rgba(47, 93, 98, 0.08), rgba(166, 124, 82, 0.08));
    --hero-accent: var(--ns-primary);
    --hero-accent-shadow: rgba(47, 93, 98, 0.32);
    --hero-pill-bg: rgba(47, 93, 98, 0.12);
    --hero-pill-color: var(--ns-primary);
    background: var(--hero-gradient);
    border-radius: 28px;
    padding: 72px;
    box-shadow: var(--ns-shadow);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}

.ns-hero__title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--ns-heading);
}

.ns-hero__lead {
    margin: 0 0 24px;
    color: var(--ns-muted);
    font-size: 1.05rem;
}

.ns-hero__meta {
    margin: -12px 0 28px;
    font-size: 0.95rem;
    color: var(--ns-muted);
}

.ns-hero__visual,
.ns-hiro__visual {
    margin: 24px 0 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: flex-start;
    max-width: 260px;
    width: 100%;
}

.ns-hero__visual img,
.ns-hiro__visual img {
    width: 100%;
    height: auto;
    max-height: 340px;
    border-radius: 24px;
    box-shadow: 0 18px 36px rgba(26, 36, 44, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.4);
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

.ns-hero__visual figcaption {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--ns-muted);
}

.ns-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
    text-decoration: none;
}

.ns-button--primary {
    background: var(--ns-primary);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(47, 93, 98, 0.25);
}

.ns-button--primary:hover,
.ns-button--primary:focus {
    background: #274c52;
    box-shadow: 0 10px 24px rgba(39, 76, 82, 0.28);
    transform: translateY(-1px);
}

.ns-button--ghost {
    background: rgba(47, 93, 98, 0.08);
    color: var(--ns-primary);
    box-shadow: none;
}

.ns-button--ghost:hover,
.ns-button--ghost:focus {
    background: rgba(47, 93, 98, 0.16);
    color: var(--ns-primary);
}

.ns-button__icon {
    font-size: 1rem;
    line-height: 1;
}

.ns-report-form {
    margin: 18px 0;
}

.ns-hero .ns-pill {
    background: var(--hero-pill-bg);
    color: var(--hero-pill-color);
}

.ns-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--hero-accent);
    color: #fff;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ns-hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px var(--hero-accent-shadow);
    text-decoration: none;
}

.ns-hero--star-ippaku {
    --hero-gradient: linear-gradient(135deg, rgba(45, 125, 210, 0.08), rgba(45, 125, 210, 0.22));
    --hero-accent: #2d7dd2;
    --hero-accent-shadow: rgba(45, 125, 210, 0.32);
    --hero-pill-bg: rgba(45, 125, 210, 0.16);
    --hero-pill-color: #2d7dd2;
}

.ns-hero--star-jikoku {
    --hero-gradient: linear-gradient(135deg, rgba(176, 137, 104, 0.08), rgba(176, 137, 104, 0.22));
    --hero-accent: #b08968;
    --hero-accent-shadow: rgba(176, 137, 104, 0.32);
    --hero-pill-bg: rgba(176, 137, 104, 0.16);
    --hero-pill-color: #875f3b;
}

.ns-hero--star-sanpeki {
    --hero-gradient: linear-gradient(135deg, rgba(47, 157, 110, 0.08), rgba(47, 157, 110, 0.24));
    --hero-accent: #2f9d6e;
    --hero-accent-shadow: rgba(47, 157, 110, 0.32);
    --hero-pill-bg: rgba(47, 157, 110, 0.16);
    --hero-pill-color: #267858;
}

.ns-hero--star-shiroku {
    --hero-gradient: linear-gradient(135deg, rgba(87, 184, 148, 0.08), rgba(87, 184, 148, 0.24));
    --hero-accent: #57b894;
    --hero-accent-shadow: rgba(87, 184, 148, 0.32);
    --hero-pill-bg: rgba(87, 184, 148, 0.16);
    --hero-pill-color: #3f8a70;
}

.ns-hero--star-gogo {
    --hero-gradient: linear-gradient(135deg, rgba(214, 160, 29, 0.08), rgba(214, 160, 29, 0.24));
    --hero-accent: #d6a01d;
    --hero-accent-shadow: rgba(214, 160, 29, 0.32);
    --hero-pill-bg: rgba(214, 160, 29, 0.18);
    --hero-pill-color: #8f6d12;
}

.ns-hero--star-roppaku {
    --hero-gradient: linear-gradient(135deg, rgba(111, 140, 255, 0.08), rgba(111, 140, 255, 0.24));
    --hero-accent: #6f8cff;
    --hero-accent-shadow: rgba(111, 140, 255, 0.32);
    --hero-pill-bg: rgba(111, 140, 255, 0.18);
    --hero-pill-color: #455dd6;
}

.ns-hero--star-shichiseki {
    --hero-gradient: linear-gradient(135deg, rgba(242, 109, 138, 0.08), rgba(242, 109, 138, 0.24));
    --hero-accent: #f26d8a;
    --hero-accent-shadow: rgba(242, 109, 138, 0.32);
    --hero-pill-bg: rgba(242, 109, 138, 0.18);
    --hero-pill-color: #c24d6c;
}

.ns-hero--star-happaku {
    --hero-gradient: linear-gradient(135deg, rgba(199, 155, 109, 0.08), rgba(199, 155, 109, 0.24));
    --hero-accent: #c79b6d;
    --hero-accent-shadow: rgba(199, 155, 109, 0.32);
    --hero-pill-bg: rgba(199, 155, 109, 0.18);
    --hero-pill-color: #926c44;
}

.ns-hero--star-kyushi {
    --hero-gradient: linear-gradient(135deg, rgba(176, 103, 255, 0.08), rgba(176, 103, 255, 0.24));
    --hero-accent: #b067ff;
    --hero-accent-shadow: rgba(176, 103, 255, 0.32);
    --hero-pill-bg: rgba(176, 103, 255, 0.18);
    --hero-pill-color: #7f3dc2;
}

.ns-hero--star-default {
    --hero-gradient: linear-gradient(135deg, rgba(47, 93, 98, 0.08), rgba(166, 124, 82, 0.08));
    --hero-accent: var(--ns-primary);
    --hero-accent-shadow: rgba(47, 93, 98, 0.32);
    --hero-pill-bg: rgba(47, 93, 98, 0.12);
    --hero-pill-color: var(--ns-primary);
}

.ns-card {
    background: var(--ns-surface);
    border: 1px solid var(--ns-border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--ns-shadow);
}

.ns-card--accent {
    border-color: rgba(47, 93, 98, 0.28);
    background: rgba(47, 93, 98, 0.06);
}

.ns-choice-grid {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.ns-choice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 16px;
    border: 1px solid rgba(47, 93, 98, 0.18);
    border-radius: 14px;
    background: rgba(47, 93, 98, 0.04);
    font-size: 0.92rem;
    color: var(--ns-muted);
}

.ns-choice input[type="checkbox"] {
    margin-top: 4px;
    transform: scale(1.1);
    accent-color: var(--ns-primary);
}

.ns-choice span {
    flex: 1;
    line-height: 1.6;
}

.ns-card__title {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.3rem;
    font-weight: 600;
}

.ns-card__body {
    color: var(--ns-muted);
    font-size: 0.97rem;
}

.ns-list {
    display: grid;
    gap: 16px;
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.ns-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(47, 93, 98, 0.12);
    color: var(--ns-primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.ns-grid {
    display: grid;
    gap: 20px;
}

.ns-grid--two {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.ns-grid--three {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.ns-illustration {
    margin: 20px 0 24px;
    text-align: center;
}

.ns-illustration__img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(64, 94, 103, 0.12);
    border: 1px solid rgba(146, 184, 205, 0.35);
}

.ns-illustration__caption {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--ns-muted);
}

.ns-form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.ns-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ns-heading);
}

.ns-form input,
.ns-form select,
.ns-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--ns-border);
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.15s ease;
}

.ns-form textarea {
    min-height: 140px;
    resize: vertical;
}

.ns-form input:focus,
.ns-form select:focus,
.ns-form textarea:focus {
    outline: none;
    border-color: var(--ns-primary);
    box-shadow: 0 0 0 2px rgba(47, 93, 98, 0.16);
}

.ns-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 14px;
    border: none;
    background: var(--ns-primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ns-btn--ghost {
    background: transparent;
    color: var(--ns-primary);
    border: 1px solid var(--ns-primary);
}

.ns-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(47, 93, 98, 0.25);
}

.ns-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 0.93rem;
}

.ns-table th,
.ns-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--ns-border);
    text-align: left;
    vertical-align: top;
}

.ns-table th {
    color: var(--ns-muted);
    font-weight: 600;
    width: 12ch;
}

.ns-energy-bar {
    height: 12px;
    border-radius: 999px;
    background: rgba(47, 93, 98, 0.1);
    overflow: hidden;
    margin-top: 8px;
}

.ns-energy-bar__value {
    height: 100%;
    background: linear-gradient(90deg, #2f5d62, #53a49a);
}

.ns-diary-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 16px;
}

.ns-diary-item {
    background: #fff;
    border: 1px solid var(--ns-border);
    border-radius: 18px;
    padding: 20px;
}

.ns-diary-item h4 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.ns-diary-item p {
    margin: 0;
    white-space: pre-wrap;
    color: var(--ns-muted);
    font-size: 0.95rem;
}

.ns-empty {
    padding: 32px;
    border-radius: 16px;
    background: rgba(47, 93, 98, 0.04);
    color: var(--ns-muted);
    text-align: center;
    font-size: 0.95rem;
}

.ns-link {
    color: var(--ns-primary);
    font-weight: 600;
    text-decoration: none;
}

.ns-link:hover {
    text-decoration: underline;
}

.ns-note {
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--ns-muted);
    line-height: 1.5;
}

.ns-timeline-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    list-style: none;
    padding: 0;
    margin: 16px 0 24px;
    font-size: 0.85rem;
    color: var(--ns-muted);
}

.ns-timeline-legend li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ns-timeline-legend__swatch {
    display: inline-flex;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.ns-card__body--ai {
    display: grid;
    gap: 12px;
    line-height: 1.7;
}

.ns-chart {
    position: relative;
    width: 100%;
    height: 320px;
    min-height: 280px;
    border: 1px solid var(--ns-border);
    border-radius: 20px;
    background: rgba(47, 93, 98, 0.03);
    margin: 18px 0;
    overflow: hidden;
}

.ns-chart--timeline {
    height: 220px;
    min-height: 200px;
}

.ns-chart canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.ns-chart__tooltip {
    position: absolute;
    top: 0;
    left: 0;
    padding: 6px 10px;
    background: rgba(47, 93, 98, 0.9);
    color: #fff;
    border-radius: 8px;
    font-size: 0.75rem;
    pointer-events: none;
    transform: translate(-50%, -140%);
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(47, 93, 98, 0.25);
}

.ns-scroll {
    max-height: 420px;
    overflow: auto;
    border: 1px solid var(--ns-border);
    border-radius: 12px;
}

.ns-timeline-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.ns-timeline-table th,
.ns-timeline-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--ns-border);
    vertical-align: top;
}

.ns-timeline-table th {
    background: rgba(47, 93, 98, 0.06);
    font-weight: 600;
    color: var(--ns-heading);
    position: sticky;
    top: 0;
    z-index: 1;
}

.ns-timeline-table tbody tr:hover {
    background: rgba(47, 93, 98, 0.04);
}

.ns-timeline-age {
    display: block;
    color: var(--ns-muted);
    font-size: 0.8rem;
}

.ns-list--bullet {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.ns-subcard {
    background: rgba(47, 93, 98, 0.04);
    border: 1px solid rgba(47, 93, 98, 0.12);
    border-radius: 16px;
    padding: 18px 20px;
}

.ns-subcard__title {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ns-heading);
}

.ns-metric-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.ns-metric-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--ns-muted);
    border-bottom: 1px dashed rgba(47, 93, 98, 0.12);
    padding-bottom: 4px;
}

.ns-metric-list li span:first-child {
    font-weight: 600;
    color: var(--ns-heading);
}

.ns-table--compact {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin-top: 8px;
}

.ns-table--compact th,
.ns-table--compact td {
    border: 1px solid rgba(47, 93, 98, 0.12);
    padding: 6px 8px;
    text-align: left;
}

.ns-table--left th,
.ns-table--left td {
    text-align: left;
    vertical-align: top;
}

.ns-table--compact th {
    background: rgba(47, 93, 98, 0.08);
    font-weight: 600;
    color: var(--ns-heading);
}

.ns-details {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--ns-muted);
}

.ns-details > summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--ns-primary);
    margin-bottom: 8px;
}

.ns-details pre {
    background: rgba(47, 93, 98, 0.06);
    border-radius: 12px;
    padding: 12px;
    white-space: pre-wrap;
    color: var(--ns-muted);
}

.ns-footer {
    border-top: 1px solid var(--ns-border);
    padding: 32px 0 48px;
    color: var(--ns-muted);
    font-size: 0.85rem;
}

.ns-footer__copy {
    margin: 0;
}

.ns-loading-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 24, 26, 0.68);
    backdrop-filter: blur(3px);
    z-index: 2000;
    color: #fff;
    text-align: center;
    padding: 24px;
}

.ns-loading-overlay[hidden] {
    display: none;
}

.ns-loading-overlay__content {
    max-width: 320px;
    background: rgba(7, 15, 16, 0.72);
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.ns-loading-overlay__content p {
    margin: 16px 0 0;
    font-size: 1rem;
    line-height: 1.6;
}

.ns-loading-overlay__spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    animation: ns-spin 1s linear infinite;
}

@keyframes ns-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.ns-profile {
    background: var(--ns-surface);
    border-radius: 28px;
    padding: 48px;
    box-shadow: var(--ns-shadow);
}

.ns-profile__header {
    margin-bottom: 32px;
}

.ns-profile__title {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    font-weight: 700;
}

.ns-profile__lead {
    margin: 0;
    color: var(--ns-muted);
}

.ns-profile__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
}

.ns-profile__form-card {
    background: #fffdfa;
    border-radius: 24px;
    padding: 32px;
    box-shadow: inset 0 0 0 1px rgba(166, 124, 82, 0.08);
}

.ns-profile__form fieldset {
    border: none;
    padding: 0;
    margin: 0 0 28px;
}

.ns-profile__form fieldset:last-of-type {
    margin-bottom: 36px;
}

.ns-profile__fieldset legend {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--ns-primary);
}

.ns-form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.ns-form-row--split {
    flex-direction: row;
    gap: 16px;
}

.ns-form-row--split .ns-input,
.ns-form-row--split .input {
    flex: 1;
}

.ns-form-row--actions {
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.ns-input,
.ns-profile__form input[type='text'],
.ns-profile__form input[type='date'],
.ns-profile__form select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(47, 93, 98, 0.25);
    background: #ffffff;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ns-input:focus,
.ns-profile__form input[type='text']:focus,
.ns-profile__form input[type='date']:focus,
.ns-profile__form select:focus {
    outline: none;
    border-color: rgba(166, 124, 82, 0.8);
    box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.2);
}

.ns-profile__hint {
    color: var(--ns-muted);
    font-size: 0.85rem;
    margin: 0;
}

.ns-profile__actions {
    text-align: right;
}

.ns-profile__aside {
    position: sticky;
    top: 120px;
    align-self: start;
}

.ns-profile__summary-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: inset 0 0 0 1px rgba(47, 93, 98, 0.08);
}

.ns-profile__summary-title {
    margin: 0 0 16px;
    font-size: 1.1rem;
}

.ns-profile__summary {
    margin: 0;
    display: grid;
    gap: 12px;
}

.ns-profile__summary div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
}

.ns-profile__summary dt {
    font-weight: 600;
    color: var(--ns-muted);
}

.ns-profile__summary dd {
    margin: 0;
    font-weight: 500;
}

.ns-profile__summary-note {
    margin: 18px 0 0;
    font-size: 0.85rem;
    color: var(--ns-muted);
}

@media (max-width: 1024px) {
    .ns-profile__layout {
        grid-template-columns: 1fr;
    }

    .ns-profile__aside {
        position: static;
        order: -1;
    }
}

@media (max-width: 640px) {
    .ns-profile {
        padding: 32px 24px;
    }

    .ns-profile__form-card {
        padding: 24px;
    }

    .ns-form-row--split {
        flex-direction: column;
    }
}

.ns-compass {
    background: var(--ns-surface);
    border-radius: 28px;
    padding: 48px;
    box-shadow: var(--ns-shadow);
}

.ns-compass__header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.ns-compass__title {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
}

.ns-compass__lead {
    margin: 0;
    color: var(--ns-muted);
    line-height: 1.6;
}

.ns-compass__actions {
    display: flex;
    gap: 12px;
}

.ns-compass__alert {
    margin-bottom: 24px;
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(255, 196, 87, 0.12);
    color: #7c5b1a;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.92rem;
}

.ns-compass__alert--warning {
    background: rgba(224, 49, 49, 0.12);
    color: #8c2f2f;
}

.ns-compass__layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 32px;
    align-items: start;
}

.ns-compass__map-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 12px;
    box-shadow: inset 0 0 0 1px rgba(47, 93, 98, 0.08);
}

.ns-compass__map {
    width: 100%;
    height: 460px;
    border-radius: 20px;
    overflow: hidden;
}

.ns-compass__sidebar {
    display: grid;
    gap: 18px;
}

.ns-compass__profile,
.ns-compass__detail {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: inset 0 0 0 1px rgba(47, 93, 98, 0.08);
}

.ns-compass__profile h2 {
    margin: 0 0 12px;
    font-size: 1.1rem;
}

.ns-compass__profile dl {
    margin: 0;
    display: grid;
    gap: 10px;
}

.ns-compass__profile dl > div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    font-size: 0.92rem;
}

.ns-compass__profile dt {
    font-weight: 600;
    color: var(--ns-muted);
}

.ns-compass__profile dd {
    margin: 0;
}

.ns-compass__detail-label {
    font-size: 0.85rem;
    color: var(--ns-muted);
    margin: 0 0 6px;
}

.ns-compass__detail-title {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.ns-compass__detail-title small {
    font-size: 0.85em;
    color: var(--ns-muted);
}

.ns-compass__detail-meta {
    margin: 0 0 12px;
    color: var(--ns-muted);
    font-size: 0.9rem;
}

.ns-compass__detail-theme {
    margin: 0 0 8px;
    font-weight: 600;
    color: var(--ns-primary);
}

.ns-compass__detail-body {
    margin: 0;
    line-height: 1.6;
    color: var(--ns-heading);
    font-size: 0.95rem;
}

.ns-compass__months {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.ns-compass__month {
    border: 1px solid rgba(47, 93, 98, 0.18);
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    text-align: left;
    display: grid;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ns-compass__month:hover,
.ns-compass__month:focus {
    border-color: rgba(47, 93, 98, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(47, 93, 98, 0.12);
}

.ns-compass__month.is-active {
    border-color: rgba(255, 107, 107, 0.6);
    box-shadow: 0 12px 28px rgba(255, 107, 107, 0.18);
}

.ns-compass__month-number {
    font-weight: 700;
    color: var(--ns-heading);
    font-size: 1.1rem;
}

.ns-compass__month-direction {
    color: var(--ns-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.ns-compass__month-start {
    color: var(--ns-muted);
    font-size: 0.82rem;
}

@media (max-width: 1024px) {
    .ns-compass {
        padding: 36px;
    }

    .ns-compass__layout {
        grid-template-columns: 1fr;
    }

    .ns-compass__sidebar {
        order: -1;
    }

    .ns-compass__map {
        height: 420px;
    }
}

@media (max-width: 640px) {
    .ns-compass {
        padding: 28px 20px;
    }

    .ns-compass__header {
        flex-direction: column;
        align-items: stretch;
    }

    .ns-compass__actions {
        justify-content: flex-start;
    }

    .ns-compass__map {
        height: 320px;
    }

    .ns-compass__months {
        grid-template-columns: 1fr;
    }
}

.ns-direction {
    background: var(--ns-surface);
    border-radius: 28px;
    padding: 48px;
    box-shadow: var(--ns-shadow);
}

.ns-direction__header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.ns-direction__title {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
}

.ns-direction__lead {
    margin: 0;
    color: var(--ns-muted);
    line-height: 1.6;
}

.ns-direction__actions {
    display: flex;
    gap: 12px;
}

.ns-direction__alert {
    margin-bottom: 20px;
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(47, 93, 98, 0.08);
    color: var(--ns-primary);
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.92rem;
}

.ns-direction__alert--warning {
    background: rgba(224, 49, 49, 0.12);
    color: #8c2f2f;
}

.ns-direction__layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 32px;
    align-items: start;
}

.ns-direction__map-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 16px;
    box-shadow: inset 0 0 0 1px rgba(47, 93, 98, 0.08);
}

.ns-direction__map {
    width: 100%;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
}

.ns-direction__controls {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.92rem;
    color: var(--ns-muted);
}

.ns-direction__controls input[type='range'] {
    width: 100%;
}

.ns-direction__sidebar {
    display: grid;
    gap: 20px;
}

.ns-direction__profile,
.ns-direction__legend,
.ns-direction__personal {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: inset 0 0 0 1px rgba(47, 93, 98, 0.08);
}

.ns-direction__profile h2,
.ns-direction__legend h2 {
    margin: 0 0 14px;
    font-size: 1.05rem;
}

.ns-direction__personal dl {
    margin: 0 0 12px;
    display: grid;
    gap: 10px;
    font-size: 0.92rem;
}

.ns-direction__personal dl > div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
}

.ns-direction__personal dt {
    font-weight: 600;
    color: var(--ns-muted);
}

.ns-direction__personal dd {
    margin: 0;
}

.ns-direction__personal-month-control {
    margin: 14px 0 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--ns-muted);
}

.ns-direction__personal-month-control select {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(47, 93, 98, 0.3);
    font-size: 0.92rem;
    background: #fff;
}

.ns-direction__personal-lucky {
    margin-top: 12px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(47, 93, 98, 0.08);
    color: var(--ns-heading);
}

.ns-direction__personal-label {
    margin: 0 0 6px;
    font-size: 0.85rem;
    color: var(--ns-muted);
    letter-spacing: 0.08em;
}

.ns-direction__personal-direction {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.ns-direction__personal-direction small {
    font-size: 0.8rem;
    margin-left: 6px;
    color: var(--ns-muted);
}

.ns-direction__personal-bounds {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: var(--ns-muted);
}

.ns-direction__personal-month-start {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: var(--ns-muted);
}

.ns-direction__personal-month-title {
    margin: 14px 0 6px;
    font-weight: 600;
    color: var(--ns-primary);
}

.ns-direction__personal-month-narrative {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ns-heading);
    line-height: 1.6;
}

.ns-direction__profile dl {
    margin: 0;
    display: grid;
    gap: 12px;
    font-size: 0.92rem;
}

.ns-direction__profile dl > div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
}

.ns-direction__profile dt {
    font-weight: 600;
    color: var(--ns-muted);
}

.ns-direction__profile dd {
    margin: 0;
}

.ns-direction__legend ul {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 10px;
    font-size: 0.92rem;
}

.ns-direction__legend-line {
    display: inline-block;
    width: 26px;
    height: 4px;
    margin-right: 8px;
    border-radius: 999px;
    background: #ff6b6b;
    vertical-align: middle;
}

.ns-direction__legend-line--primary {
    background: #ff6b6b;
}

.ns-direction__legend-line--secondary {
    background: #4dabf7;
}

.ns-direction__legend-line--east-west {
    background: #51cf66;
}

.ns-direction__spots {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: inset 0 0 0 1px rgba(47, 93, 98, 0.08);
}

.ns-direction__spots h2 {
    margin: 0 0 14px;
    font-size: 1.05rem;
}

.ns-direction__spots ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.ns-direction__spots-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.92rem;
}

.ns-direction__spot-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    color: var(--ns-muted);
}

.ns-direction__spot-controls input[type='range'] {
    width: 100%;
}

.ns-direction__spot-empty {
    margin: 16px 0 0;
    font-size: 0.9rem;
    color: var(--ns-muted);
    text-align: center;
}

.ns-direction__spot-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    min-width: 90px;
    text-align: center;
}

.ns-direction__spot-tag--shrine {
    background: #ff922b;
}

.ns-direction__spot-tag--temple {
    background: #845ef7;
}

.ns-direction__spot-tag--historic {
    background: #4263eb;
}

.ns-direction__spot-tag--power {
    background: #20c997;
}

.ns-direction__spot-tag--school {
    background: #f76707;
}
.ns-direction__spot-distance {
    color: var(--ns-muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

.ns-direction__spot-info {
    font-size: 0.9rem;
}

.ns-direction__spot-info-category {
    margin-top: 4px;
    color: #6c6a67;
    font-size: 0.8rem;
}

.ns-direction__spot-info-distance {
    margin-top: 2px;
    color: var(--ns-muted);
    font-size: 0.78rem;
}

@media (max-width: 1024px) {
    .ns-direction {
        padding: 36px;
    }

    .ns-direction__layout {
        grid-template-columns: 1fr;
    }

    .ns-direction__map {
        height: 420px;
    }
}

@media (max-width: 640px) {
    .ns-direction {
        padding: 28px 20px;
    }

    .ns-direction__header {
        flex-direction: column;
        align-items: stretch;
    }

    .ns-direction__map {
        height: 340px;
    }

    .ns-direction__profile dl > div {
        grid-template-columns: 1fr;
    }

    .ns-direction__personal dl > div {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .ns-profile__layout {
        grid-template-columns: 1fr;
    }

    .ns-profile__aside {
        position: static;
        order: -1;
    }
}

@media (max-width: 640px) {
    .ns-profile {
        padding: 32px 24px;
    }

    .ns-profile__form-card {
        padding: 24px;
    }

    .ns-form-row--split {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .ns-header__inner {
        flex-direction: column;
        gap: 12px;
    }

    .ns-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .ns-hero {
        padding: 36px 28px;
        grid-template-columns: 1fr;
    }

    .ns-main {
        padding: 32px 0 60px;
    }

    .ns-grid--two,
    .ns-grid--three {
        grid-template-columns: 1fr;
    }

    .ns-card {
        padding: 26px;
    }

    .ns-scroll {
        max-height: none;
        overflow-x: auto;
    }

    .ns-hero__visual,
    .ns-hiro__visual {
        margin: 16px auto 24px;
        align-items: center;
        max-width: 200px;
    }

    .ns-hero__visual img,
    .ns-hiro__visual img {
        max-height: 260px;
    }
}

@media (max-width: 600px) {
    .ns-container {
        width: calc(100% - 32px);
    }

    .ns-hero {
        padding: 28px 22px;
        border-radius: 20px;
        gap: 24px;
    }

    .ns-hero__lead {
        font-size: 0.98rem;
    }

    .ns-card {
        padding: 24px;
        border-radius: 20px;
    }

    .ns-hero__visual,
    .ns-hiro__visual {
        max-width: 160px;
    }

    .ns-hero__visual img,
    .ns-hiro__visual img {
        max-height: 200px;
    }

    .ns-chart--timeline {
        height: 200px;
        min-height: 180px;
    }

    .ns-timeline-legend {
        font-size: 0.8rem;
        gap: 6px 12px;
        margin: 12px 0 20px;
    }

    .ns-card--accent {
        background: rgba(47, 93, 98, 0.05);
    }

    .ns-card__title {
        font-size: 1.15rem;
    }

    .ns-card__body {
        font-size: 0.95rem;
    }

    .ns-list {
        gap: 12px;
        margin-top: 18px;
    }

    .ns-btn {
        width: 100%;
        padding: 14px 20px;
    }

    .ns-grid--two {
        grid-template-columns: 1fr;
    }

    .ns-grid--three {
        grid-template-columns: 1fr;
    }

    .ns-table th,
    .ns-table td {
        display: block;
        width: 100%;
        border-bottom: none;
    }

    .ns-table tr {
        display: block;
        margin-bottom: 16px;
        padding: 12px 0;
        border: 1px solid var(--ns-border);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.6);
    }

    .ns-table th {
        width: 100%;
        background: none;
        padding-bottom: 4px;
        color: var(--ns-heading);
    }

    .ns-table td {
        padding-top: 0;
        color: var(--ns-muted);
        font-size: 0.9rem;
    }

    .ns-loading-overlay__content {
        width: 100%;
        padding: 24px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.98rem;
    }

    .ns-container {
        width: calc(100% - 24px);
    }

    .ns-header__inner {
        align-items: flex-start;
        gap: 18px;
    }

    .ns-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
        font-size: 0.88rem;
    }

    .ns-hero {
        padding: 26px 18px;
        border-radius: 18px;
    }

    .ns-hero__title {
        font-size: 1.65rem;
    }

    .ns-hero__cta {
        width: 100%;
        justify-content: center;
    }

    .ns-card {
        padding: 22px 20px;
        border-radius: 18px;
    }

    .ns-chart--timeline {
        height: 180px;
        min-height: 160px;
    }

    .ns-card__body {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .ns-pill {
        font-size: 0.75rem;
    }

    .ns-note {
        font-size: 0.78rem;
    }

    .ns-form label {
        font-size: 0.92rem;
    }

    .ns-form input,
    .ns-form select,
    .ns-form textarea {
        padding: 12px;
        font-size: 0.92rem;
    }

    .ns-btn {
        font-size: 0.92rem;
    }

    .ns-loading-overlay__content {
        padding: 22px 20px;
    }

    .ns-loading-overlay__spinner {
        width: 32px;
        height: 32px;
    }
}
