:root {
    --bg: #081423;
    --panel: rgba(12, 28, 52, 0.94);
    --panel-soft: rgba(17, 35, 64, 0.96);
    --border: rgba(112, 154, 214, 0.18);
    --text: #eef4ff;
    --muted: #98accd;
    --blue: #34b3ff;
    --pink: #ff638f;
    --yellow: #ffc44d;
    --green: #60e6a8;
    --purple: #a259ff;
    --danger: #ff5f78;
}

* {
    box-sizing: border-box;
}

html {
    font-family: "Noto Sans JP", sans-serif;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(33, 89, 180, 0.20), transparent 28%),
        radial-gradient(circle at top right, rgba(153, 71, 255, 0.14), transparent 25%),
        linear-gradient(180deg, #06101d 0%, #081423 100%);
    color: var(--text);
    font-family: "Noto Sans JP", sans-serif;
    font-feature-settings: "palt";
}

body,
input,
button,
select,
textarea {
    font-family: "Noto Sans JP", sans-serif;
}

svg,
svg text {
    font-family: "Noto Sans JP", sans-serif;
}

.topbar {
    min-height: 96px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 10px 0 14px;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
}

.brand-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.brand-logo svg {
    width: 360px;
    height: auto;
    display: block;
    overflow: visible;
    filter:
        drop-shadow(0 0 8px rgba(47, 143, 255, 0.26))
        drop-shadow(0 0 18px rgba(47, 143, 255, 0.14))
        drop-shadow(0 0 10px rgba(85, 231, 218, 0.20))
        drop-shadow(0 0 20px rgba(85, 231, 218, 0.10));
}

.logo-circle-left,
.logo-circle-right {
    fill: none;
    stroke-width: 2.4;
}

.logo-circle-left {
    stroke: #2F8FFF;
}

.logo-circle-right {
    stroke: #55E7DA;
}

.logo-structure line {
    stroke: #69AEFF;
    stroke-width: 2.8;
    stroke-linecap: round;
}

.logo-stat rect {
    fill: #55E7DA;
    filter:
        drop-shadow(0 0 3px rgba(85, 231, 218, 0.16))
        drop-shadow(0 0 6px rgba(85, 231, 218, 0.08));
}

.brand-svg-text text {
    dominant-baseline: middle;
}

.brand-svg-main {
    fill: #f5f8ff;
    font-size: 31px;
    font-weight: 300;
    letter-spacing: -0.045em;
}

.brand-svg-accent {
    fill: #35B6FF;
    font-size: 31px;
    font-weight: 400;
    letter-spacing: -0.045em;
}

.brand-svg-sub {
    fill: rgba(238, 244, 255, 0.94);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.22em;
}

.topnav {
    display: flex;
    justify-content: center;
    gap: 26px;
    min-width: 0;
}

.topnav a {
    color: #d8e5ff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    opacity: 0.84;
    padding: 10px 2px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.topnav a.active,
.topnav a:hover {
    opacity: 1;
    border-bottom-color: #3ba7ff;
}

.topbar-meta {
    text-align: right;
}

.meta-label {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 4px;
}

.meta-value {
    font-size: 15px;
    font-weight: 700;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 18px;
    align-items: start;
}

.left-column,
.right-column {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.card {
    background: linear-gradient(180deg, rgba(12, 28, 52, 0.96), rgba(10, 24, 45, 0.94));
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255,255,255,0.03);
    padding: 24px;
    min-width: 0;
}

.card h2 {
    margin: 0 0 14px;
    font-size: 23px;
    line-height: 1.2;
}

.card h2 span {
    color: #cbd8ef;
    font-size: 17px;
    font-weight: 600;
}

.lead {
    margin: 0 0 22px;
    color: #d6e4ff;
    font-size: 16px;
    line-height: 1.7;
}

/* -------------------------
   TradeHackの需給ロジック
------------------------- */

.info-card {
    overflow: hidden;
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 10px 0 8px;
    align-items: stretch;
}

.concept-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 8px 18px 8px 0;
}

.concept-item + .concept-item {
    border-left: 1px solid rgba(126, 153, 194, 0.18);
    padding-left: 18px;
}

.concept-body {
    min-width: 0;
}

.concept-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.35;
    white-space: nowrap;
}

.concept-item p {
    margin: 0;
    color: #c6d6f3;
    line-height: 1.65;
    font-size: 15px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.concept-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex: 0 0 56px;
    position: relative;
    background: rgba(255,255,255,0.02);
    overflow: hidden;
}

/* 共通 */
.icon-structure::before,
.icon-structure::after,
.icon-stat::before,
.icon-stat::after,
.icon-total::before,
.icon-total::after {
    content: "";
    position: absolute;
}

/* 構造評価 */
.icon-structure {
    border: 1px solid rgba(64, 146, 255, 0.28);
    box-shadow: 0 0 14px rgba(64, 146, 255, 0.12);
}

.icon-structure::before {
    left: 18px;
    top: 15px;
    width: 20px;
    height: 24px;
    border-radius: 4px;

    background:
        /* 上 */
        linear-gradient(#69AEFF,#69AEFF) 0 0 / 20px 2.5px,
        /* 中 */
        linear-gradient(#69AEFF,#69AEFF) 0 11px / 20px 2.5px,
        /* 下（短い） */
        linear-gradient(#69AEFF,#69AEFF) 3px 22px / 14px 2.5px;

    background-repeat: no-repeat;
}

.icon-structure::after {
    left: 27px;
    top: 9px;
    width: 2.5px;
    height: 28px;
    background: #69AEFF;
    border-radius: 4px;
}

/* 統計評価 */
.icon-stat {
    border: 1px solid rgba(46, 226, 196, 0.28);
    box-shadow: 0 0 14px rgba(46, 226, 196, 0.10);
}

.icon-stat::before {
    left: 16px;
    bottom: 15px;
    width: 24px;
    height: 28px;

    background:
        /* 左（短） */
        linear-gradient(#55E7DA,#55E7DA) 0 16px / 4px 12px,
        /* 中（中） */
        linear-gradient(#55E7DA,#55E7DA) 10px 8px / 4px 20px,
        /* 右（長） */
        linear-gradient(#55E7DA,#55E7DA) 20px 0 / 4px 28px;

    background-repeat: no-repeat;
}

.icon-stat::after {
    display: none;
}



/* 総合評価 */
.icon-total {
    border: 1px solid rgba(162, 89, 255, 0.28);
    box-shadow: 0 0 14px rgba(162, 89, 255, 0.12);
}

.icon-total::before {
    left: 10px; /* 14 → 10 */
    top: 15px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #8F47FF;
    background: transparent;
}

.icon-total::after {
    left: 20px; /* 24 → 20 */
    top: 15px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #8F47FF;
    background: rgba(143, 71, 255, 0.10);
}

.disclaimer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(126, 153, 194, 0.14);
    color: #a3b4d3;
    font-size: 14px;
    line-height: 1.6;
}

.search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 0;
    margin-bottom: 16px;
}

.search-form input {
    width: 100%;
    min-width: 0;
    height: 52px;
    border: 0;
    outline: none;
    color: #223048;
    background: #f3f6fb;
    border-radius: 12px 0 0 12px;
    padding: 0 18px;
    font-size: 18px;
}

.search-form button,
.chip,
.fav-btn,
.period {
    border: 0;
    cursor: pointer;
    font-weight: 800;
}

.search-form button {
    height: 52px;
    border-radius: 0 12px 12px 0;
    color: white;
    background: linear-gradient(180deg, #3ea8ff, #2576ff);
    font-size: 18px;
}

.chip-label {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 10px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    background: rgba(118, 142, 181, 0.14);
    color: #dce9ff;
    border-radius: 10px;
    padding: 9px 16px;
    font-size: 15px;
}

.notice {
    margin-top: 16px;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
}

.notice.error {
    background: rgba(255, 95, 120, 0.12);
    color: #ffc0cc;
    border: 1px solid rgba(255, 95, 120, 0.22);
}

.result-panel {
    margin-top: 18px;
    border-radius: 16px;
    border: 1px solid rgba(114, 152, 203, 0.16);
    padding: 18px;
    background: rgba(5, 17, 32, 0.28);
    min-width: 0;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    min-width: 0;
}

.result-header h3 {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.4;
}

.result-date {
    color: var(--muted);
    font-size: 14px;
}

.fav-btn {
    text-decoration: none;
    color: #e2eeff;
    background: rgba(60, 150, 255, 0.12);
    padding: 10px 14px;
    border-radius: 12px;
    white-space: nowrap;
}

.summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 12px;
    margin-bottom: 14px;
}

.summary-box {
    border-radius: 14px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(112,154,214,0.12);
    min-width: 0;
}

.summary-label {
    color: #9db3d8;
    font-size: 13px;
    margin-bottom: 10px;
}

.summary-value {
    font-size: 18px;
    font-weight: 800;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.overall-text {
    font-size: 21px;
}

.overall-text.やや不利 {
    color: #ffc24a;
}

.overall-text.中立 {
    color: #dfe9ff;
}

.overall-text.やや良好 {
    color: #6be3a7;
}

.logic-text {
    font-size: 17px;
}

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

.detail-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(112,154,214,0.12);
    border-radius: 14px;
    padding: 16px;
    min-width: 0;
}

.detail-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 14px;
}

.metric-line {
    display: grid;
    grid-template-columns: 86px minmax(106px, 1fr) auto auto auto;
    align-items: center;
    gap: 10px;
    color: #dce7fb;
    font-size: 14px;
    margin-bottom: 10px;
    min-width: 0;
}

.mini-bar {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 3px;
    min-width: 106px;
}

.seg {
    height: 10px;
    border-radius: 3px;
    background: rgba(255,255,255,0.15);
}

.seg.on {
    background: linear-gradient(180deg, #3ca8ff, #4bc1ff);
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: center;
}

.gauge-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.gauge-arc {
    --accent: #ffc54f;
    --angle: calc(var(--value) * 1.8deg);
    width: min(290px, 100%);
    max-width: 290px;
    height: 160px;
    position: relative;
    overflow: hidden;
}

.gauge-arc::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 290px 290px 0 0;
    background: conic-gradient(
        from 180deg,
        #2c89ff 0deg,
        #35b5ff 60deg,
        #67deaa 104deg,
        #ffc340 146deg,
        #ff8555 178deg,
        rgba(255,255,255,0.10) 178deg,
        rgba(255,255,255,0.10) 180deg,
        transparent 180deg
    );
}

.gauge-arc::after {
    content: "";
    position: absolute;
    left: 28px;
    right: 28px;
    top: 28px;
    bottom: -92px;
    background: #0d203a;
    border-radius: 260px 260px 0 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.gauge-arc .gauge-center {
    position: absolute;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.gauge-score {
    font-size: 68px;
    line-height: 1;
    font-weight: 900;
}

.gauge-label {
    margin-top: 8px;
    font-size: 20px;
    font-weight: 800;
    color: #6fe0a9;
    white-space: nowrap;
}

.gauge-min,
.gauge-max {
    position: absolute;
    bottom: 8px;
    color: #b0c1df;
    font-size: 14px;
    z-index: 2;
}

.gauge-min {
    left: 12px;
}

.gauge-max {
    right: 12px;
}

.gauge-bad .gauge-label {
    color: #ffc44d;
}

.gauge-neutral .gauge-label {
    color: #dce7fb;
}

.gauge-good .gauge-label {
    color: #6fe0a9;
}

.market-stats {
    border-radius: 16px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(112,154,214,0.12);
    overflow: hidden;
    min-width: 0;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 18px;
    font-size: 18px;
}

.stat-row + .stat-row {
    border-top: 1px solid rgba(112,154,214,0.12);
}

.stat-row span {
    color: #dde9fc;
}

.stat-row strong {
    font-size: 20px;
    text-align: right;
}

.accent-red {
    color: #ff7789;
}

.accent-gold {
    color: #ffc54f;
}

.comment-box {
    margin-top: 16px;
    border-radius: 14px;
    border: 1px solid rgba(112,154,214,0.12);
    padding: 16px 18px;
    background: rgba(255,255,255,0.025);
}

.comment-title {
    font-size: 20px;
    font-weight: 800;
    color: #42b1ff;
    margin-bottom: 8px;
}

.comment-box p {
    margin: 0;
    line-height: 1.65;
    color: #dfebfd;
    font-size: 16px;
}

.chart-card {
    padding-bottom: 18px;
}

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

.period-switch {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.period {
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: #d9e6fc;
    font-size: 15px;
    white-space: nowrap;
}

.period.active {
    background: linear-gradient(180deg, #3ea8ff, #2576ff);
}

.legend-line {
    display: flex;
    gap: 22px;
    justify-content: center;
    color: #dbe7fb;
    font-size: 15px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.line {
    width: 24px;
    height: 4px;
    border-radius: 999px;
    display: inline-block;
}

.line.blue {
    background: #3cb2ff;
}

.line.pink {
    background: #ff638f;
}

.chart-wrap {
    position: relative;
    background: rgba(3, 15, 31, 0.68);
    border-radius: 14px;
    padding: 10px 10px 6px;
    min-width: 0;
}

.main-wrap {
    height: 286px;
}

.delta-wrap {
    height: 220px;
    margin-top: 10px;
}

.chart-foot {
    color: #a3b6d4;
    font-size: 14px;
    margin-top: 12px;
    line-height: 1.6;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* -------------------------
   Responsive
------------------------- */

@media (max-width: 1380px) {
    .concept-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .concept-item {
        padding-right: 0;
    }

    .concept-item + .concept-item {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid rgba(126, 153, 194, 0.18);
        padding-top: 18px;
        margin-top: 4px;
    }
}

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

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

    .detail-grid,
    .market-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .app-shell {
        width: min(100vw - 20px, 100%);
    }

    .topbar {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 12px;
        padding: 8px 0 12px;
    }

    .brand-logo svg {
        width: 290px;
    }

    .topnav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .metric-line {
        grid-template-columns: 1fr;
    }

    .search-form {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .search-form input,
    .search-form button {
        border-radius: 12px;
    }

    .result-header,
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 680px) {
    .card {
        padding: 20px 16px;
    }

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

    .lead {
        font-size: 15px;
    }

    .concept-item {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 14px;
    }

    .concept-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .concept-title {
        font-size: 17px;
        white-space: normal;
    }

    .concept-item p {
        font-size: 14px;
    }

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

    .gauge-score {
        font-size: 56px;
    }

    .gauge-label {
        font-size: 18px;
    }
}

.overall-face-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.overall-face {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
}

.overall-face svg {
    width: 100%;
    height: 100%;
    display: block;
}

.face-stroke {
    stroke: #FFD84D;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.face-fill {
    fill: #FFD84D;
}

.overall-text-with-face {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

/* -------------------------
   Landing
------------------------- */

.landing-body,
.login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(33, 89, 180, 0.22), transparent 26%),
        radial-gradient(circle at top right, rgba(153, 71, 255, 0.16), transparent 24%),
        linear-gradient(180deg, #030a15 0%, #071220 100%);
}

.landing-shell {
    width: min(1480px, calc(100vw - 40px));
    margin: 0 auto;
    padding: 24px 0 30px;
}

.landing-header {
    display: flex;
    justify-content: center;
    padding: 10px 0 18px;
}

.landing-logo .brand-logo svg {
    width: 390px;
    filter:
        drop-shadow(0 0 10px rgba(47, 143, 255, 0.32))
        drop-shadow(0 0 24px rgba(47, 143, 255, 0.16))
        drop-shadow(0 0 12px rgba(85, 231, 218, 0.24))
        drop-shadow(0 0 26px rgba(85, 231, 218, 0.12));
}

.landing-main {
    display: grid;
    gap: 28px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border-radius: 26px;
    border: 1px solid rgba(87, 134, 208, 0.16);
    background:
        linear-gradient(180deg, rgba(5, 16, 31, 0.96), rgba(4, 14, 28, 0.94));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 18px 50px rgba(0,0,0,0.28);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-bg-left::before {
    content: "";
    position: absolute;
    left: -6%;
    top: 14%;
    width: 32%;
    height: 58%;
    background:
        linear-gradient(180deg, transparent 0 52%, rgba(41, 166, 255, 0.18) 52% 54%, transparent 54%),
        repeating-linear-gradient(
            90deg,
            rgba(49, 164, 255, 0.18) 0 14px,
            transparent 14px 34px
        );
    mask-image: linear-gradient(to right, rgba(0,0,0,0.95), rgba(0,0,0,0));
    opacity: 0.75;
}

.hero-bg-right::before {
    content: "";
    position: absolute;
    right: -2%;
    bottom: 8%;
    width: 32%;
    height: 42%;
    background:
        linear-gradient(180deg, transparent 0 56%, rgba(185, 72, 255, 0.18) 56% 58%, transparent 58%);
    opacity: 0.7;
}

.hero-bg-right::after {
    content: "";
    position: absolute;
    right: 8%;
    bottom: 14%;
    width: 26%;
    height: 20%;
    border-bottom: 3px solid rgba(211, 72, 255, 0.65);
    border-radius: 0 0 140px 140px;
    transform: skewX(-20deg);
    filter: drop-shadow(0 0 10px rgba(211, 72, 255, 0.15));
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    padding: 30px 24px 56px;
}

.hero-title {
    margin: 12px 0 18px;
    font-size: clamp(34px, 3.6vw, 56px);
    font-weight: 700;
    letter-spacing: 0.03em;

    color: #e8f6ff;

    text-shadow:
        0 0 6px rgba(80, 180, 255, 0.4),
        0 0 14px rgba(80, 180, 255, 0.25),
        0 0 30px rgba(80, 180, 255, 0.15);
}


.hero-copy {
    margin: 0 auto;
    max-width: 760px;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.7;
    color: #eef4ff;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 38px;
}

.hero-btn {
    min-width: 310px;
    min-height: 98px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 28px;
    border-radius: 18px;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
}

.hero-btn span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-btn strong {
    font-size: 20px;
    line-height: 1.2;
}

.hero-btn small {
    margin-top: 6px;
    font-size: 15px;
    opacity: 0.92;
}

.hero-btn-icon {
    font-size: 28px;
    line-height: 1;
}

.hero-btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, #2f68ff 0%, #27c0f5 100%);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.06) inset,
        0 0 18px rgba(46, 131, 255, 0.26);
}

.hero-btn-secondary {
    color: #35b6ff;
    background: rgba(5, 16, 31, 0.55);
    border: 1px solid rgba(53, 182, 255, 0.55);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.landing-section {
    padding-top: 4px;
}

.landing-section-title {
    margin: 0 0 18px;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: #f5f8ff;
}

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

.landing-feature-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 18px;
    padding: 26px 24px;
    border-radius: 20px;
    border: 1px solid rgba(87, 134, 208, 0.18);
    background: linear-gradient(180deg, rgba(8, 20, 38, 0.94), rgba(7, 18, 34, 0.92));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.landing-feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
    background: rgba(255,255,255,0.02);
}

.feature-blue {
    color: #36b5ff;
    border: 1px solid rgba(54, 181, 255, 0.35);
    box-shadow: 0 0 14px rgba(54, 181, 255, 0.10);
}

.feature-cyan {
    color: #38e7d9;
    border: 1px solid rgba(56, 231, 217, 0.35);
    box-shadow: 0 0 14px rgba(56, 231, 217, 0.10);
}

.feature-purple {
    color: #9d6cff;
    border: 1px solid rgba(157, 108, 255, 0.35);
    box-shadow: 0 0 14px rgba(157, 108, 255, 0.10);
}

.landing-feature-body h3 {
    margin: 4px 0 12px;
    font-size: 20px;
    line-height: 1.35;
}

.landing-feature-body p {
    margin: 0;
    color: #d6e4ff;
    font-size: 16px;
    line-height: 1.7;
}

.landing-note-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 28px 30px;
    border-radius: 20px;
    border: 1px solid rgba(87, 134, 208, 0.18);
    background: linear-gradient(180deg, rgba(8, 20, 38, 0.94), rgba(7, 18, 34, 0.92));
}

.landing-note-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffc44d;
    font-size: 24px;
    background: rgba(255, 196, 77, 0.05);
    border: 1px solid rgba(255, 196, 77, 0.22);
}

.landing-note-body h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.landing-note-body p {
    margin: 0 0 6px;
    color: #d8e5ff;
    font-size: 16px;
    line-height: 1.7;
}

.landing-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 24px 4px 0;
}

.landing-footer-brand {
    color: #dce7fb;
    font-size: 16px;
    font-weight: 700;
}

.landing-footer-copy {
    color: #8fa5c8;
    font-size: 14px;
}

.landing-footer-link {
    justify-self: end;
    padding: 14px 22px;
    border-radius: 14px;
    border: 1px solid rgba(120, 154, 214, 0.22);
    color: #dce7fb;
    text-decoration: none;
    background: rgba(10, 23, 43, 0.82);
}

/* -------------------------
   Login
------------------------- */

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(560px, 100%);
    padding: 34px 30px 28px;
    border-radius: 24px;
    border: 1px solid rgba(87, 134, 208, 0.18);
    background: linear-gradient(180deg, rgba(8, 20, 38, 0.96), rgba(7, 18, 34, 0.94));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 20px 50px rgba(0,0,0,0.28);
    text-align: center;
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.login-logo .brand-logo svg {
    width: 320px;
}

.login-title {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.2;
}

.login-copy {
    margin: 0 0 24px;
    color: #c8d8f5;
    font-size: 16px;
}

.login-form {
    display: grid;
    gap: 14px;
}

.login-form input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(108, 143, 196, 0.20);
    background: rgba(5, 16, 31, 0.90);
    color: #eef4ff;
    font-size: 18px;
    outline: none;
}

.login-form input::placeholder {
    color: #7f93b7;
}

.login-form button {
    height: 54px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(180deg, #3ea8ff, #2576ff);
    box-shadow: 0 0 14px rgba(37, 118, 255, 0.22);
}

.login-error {
    margin-top: 16px;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    background: rgba(255, 95, 120, 0.12);
    color: #ffc0cc;
    border: 1px solid rgba(255, 95, 120, 0.22);
}

.login-back {
    display: inline-block;
    margin-top: 18px;
    color: #9cc7ff;
    text-decoration: none;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .landing-feature-grid {
        grid-template-columns: 1fr;
    }

    .landing-footer {
        grid-template-columns: 1fr;
    }

    .landing-footer-link {
        justify-self: start;
    }
}

@media (max-width: 900px) {
    .landing-shell {
        width: min(100vw - 20px, 100%);
        padding-top: 18px;
    }

    .landing-logo .brand-logo svg {
        width: 310px;
    }

    .hero-card {
        min-height: auto;
    }

    .hero-inner {
        padding: 18px 18px 40px;
    }

    .hero-actions {
        gap: 16px;
    }

    .hero-btn {
        min-width: 100%;
    }

    .landing-feature-card {
        grid-template-columns: 70px minmax(0, 1fr);
        padding: 22px 18px;
    }

    .landing-note-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.trial-login-area {
    margin-top: 18px;
    text-align: center;
}

.trial-login-link {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    color: #8fd3ff;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(62, 203, 255, 0.35);
    background: rgba(62, 203, 255, 0.08);
}

.trial-login-link:hover {
    background: rgba(62, 203, 255, 0.14);
}

.mosaic-text {
    display: inline-block;
    min-width: 70px;
    color: transparent !important;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(180, 210, 255, 0.18) 0 4px,
            rgba(180, 210, 255, 0.34) 4px 8px
        );
    border-radius: 6px;
    filter: blur(1px);
    user-select: none;
}

.trial-chart-mask-wrap {
    position: relative;
}

.trial-chart-mask-wrap.is-trial .chart-wrap {
    filter: blur(8px);
    opacity: 0.45;
    pointer-events: none;
    user-select: none;
}

.trial-chart-mask {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: 16px;

    backdrop-filter: blur(12px); /* 強化 */
    background: rgba(8, 20, 38, 0.75); /* 少し濃く */

    z-index: 10;
}

.trial-chart-mask-text {
    padding: 12px 18px;
    border-radius: 999px;
    color: #dcecff;
    font-weight: 800;
    font-size: 14px;
    background: rgba(8, 20, 38, 0.86);
    border: 1px solid rgba(143, 211, 255, 0.28);
}

.trial-detail-mask {
    margin-top: 10px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #dcecff;
    font-size: 13px;
    font-weight: 800;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(180, 210, 255, 0.12) 0 5px,
            rgba(180, 210, 255, 0.28) 5px 10px
        );
    border: 1px solid rgba(143, 211, 255, 0.22);
    filter: blur(0.2px);
}

.login-disclaimer {
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(160, 190, 255, 0.18);
    color: #cbd6ea;
    font-size: 12px;
    line-height: 1.7;
}

.login-disclaimer {
    text-align: left;
    line-height: 1.8;
    letter-spacing: 0.02em;
}

.login-disclaimer p:last-of-type {
    margin-bottom: 12px;
}

.consent-check {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: #f5f8ff;
    font-size: 13px;
    font-weight: 700;
}

.consent-check input {
    margin-top: 3px;
}

.consent-check input[type="checkbox"] {
    width: auto;
    min-width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: #3cb2ff;
}

.trial-login-link {
    border: none;
    cursor: pointer;
}

.follow-modal {
    display: none;
}

.follow-modal.is-open {
    display: block;
}

.follow-modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    z-index: 1000;
}

.follow-modal-card {
    position: fixed;
    z-index: 1001;
    left: 50%;
    top: 50%;
    width: min(420px, calc(100vw - 32px));
    transform: translate(-50%, -50%);
    padding: 22px;
    border-radius: 18px;
    background: #111827;
    border: 1px solid rgba(160, 190, 255, 0.22);
    color: #f5f8ff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    text-align: left;
}

.follow-modal-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}

.follow-modal-text {
    color: #cbd6ea;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.follow-modal-actions {
    display: grid;
    gap: 10px;
}

.follow-modal-primary,
.follow-modal-secondary,
.follow-modal-close {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
}

.follow-modal-primary {
    border: none;
    background: #3cb2ff;
    color: #001428;
}

.follow-modal-secondary {
    border: 1px solid rgba(143, 211, 255, 0.35);
    background: rgba(62, 203, 255, 0.08);
    color: #dcecff;
}

.follow-modal-close {
    margin-top: 10px;
    border: none;
    background: transparent;
    color: #9fb3d9;
}

.follow-modal {
    display: none;
}

.follow-modal.is-open {
    display: block;
}