* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, "Noto Sans JP", sans-serif;
    background: #ffffff;
    color: #333333;
    font-size: 12px;
    border-top: 8px solid #e7ecef;
}

.site-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 5px 30px;
}

.header-title {
    position: relative;
    width: 100%;
    height: 74px;
    overflow: hidden;
}

.header-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 670px;
    height: 74px;
    background: #08a9d7;
    clip-path: polygon(0 0, 86% 0, 94% 100%, 100% 100%, 0 100%);
}

.header-title::after {
    content: "";
    position: absolute;
    left: 640px;
    bottom: 0;
    width: 500px;
    height: 6px;
    background: #08a9d7;
}

.header-title span {
    position: relative;
    z-index: 2;
    display: block;
    padding: 7px 0 0 22px;
    font-size: 47px;
    line-height: 1.2;
    color: #ffffff;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -2px;
}

.page-layout {
    width: 1200px;
    max-width: calc(100% - 28px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 790px) 310px;
    gap: 42px;
    align-items: start;
}

.left-content {
    min-width: 0;
}

.stock-card {
    border: 1px solid #c8c8c8;
    background: #ffffff;
    padding: 22px;
}

.dax-main-content {
    width: 100%;
}

.dax-header-row {
    margin-bottom: 5px;
}

.dax-section-title {
    font-size: 18px;
    line-height: 1.3;
    color: #111111;
    font-weight: 700;
}

.dax-price-info {
    padding-bottom: 12px;
    border-bottom: 1px solid #cccccc;
}

.dax-current-price-section {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.dax-current-price {
    color: #ef4444;
    font-size: 38px;
    line-height: 1.05;
    font-weight: 700;
}

.dax-change-data {
    color: #ef4444;
    font-size: 14px;
}

.dax-data-status {
    margin-top: 7px;
    color: #777777;
    font-size: 10px;
}

.dax-data-status span {
    color: #4a4a4a;
    text-decoration: underline;
}

.dax-chart-wrapper {
    margin-top: 12px;
}

.dax-chart-controls {
    display: flex;
    margin-bottom: 15px;
}

.dax-chart-controls button {
    min-width: 37px;
    height: 29px;
    padding: 0 8px;
    border: 1px solid #b9b9b9;
    border-right: 0;
    background: #ffffff;
    color: #444444;
    font-size: 10px;
    cursor: pointer;
}

.dax-chart-controls button:last-child {
    border-right: 1px solid #b9b9b9;
}

.dax-chart-controls .time-active {
    background: #0789ff;
    border-color: #0789ff;
    color: #ffffff;
}

.dax-chart-area {
    position: relative;
    width: 100%;
    height: 400px;
    border-bottom: 1px solid #c8c8c8;
}

#myChart {
    width: 100% !important;
    height: 300px !important;
}

.dax-info-table-bottom {
    margin-top: 16px;
    border-top: 1px solid #dddddd;
}

.dax-info-row {
    min-height: 40px;
    display: grid;
    grid-template-columns: 140px 1fr 130px 160px;
    align-items: center;
    border-bottom: 1px solid #e1e1e1;
    color: #666666;
}

.dax-info-value,
.dax-info-value-right {
    color: #26364d;
    font-weight: 600;
}

.dax-info-value-right {
    text-align: right;
}

.dax-custom-table-wrapper {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr 1.1fr 0.9fr 1.1fr;
    margin-top: 16px;
    border-top: 1px solid #111111;
    border-left: 1px solid #111111;
}

.dax-custom-cell {
    min-height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid #111111;
    border-bottom: 1px solid #111111;
    background: #272727;
    color: #ffffff;
    font-size: 12px;
}

.dax-custom-label {
    background: #353535;
}

.dax-session-label {
    font-weight: 700;
}

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

.dax-bottom-data-row {
    padding-top: 10px;
    text-align: right;
    color: #999999;
    font-size: 9px;
}

.history-section {
    margin-top: 43px;
}

.history-table-container h2 {
    margin: 0 0 23px;
    color: #273244;
    font-size: 27px;
    line-height: 1;
}

#loading-status {
    display: none;
    margin: 20px;
    text-align: center;
    font-weight: 700;
}

.history-scroll {
    width: 100%;
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.history-table th {
    height: 45px;
    padding: 8px 5px;
    border: 1px solid #a9a9a9;
    background: #353535;
    color: #ffffff;
    text-align: center;
    font-weight: 400;
}

.history-table thead tr:nth-child(2) th {
    height: 40px;
    background: #555555;
}

.history-table th:first-child {
    width: 200px;
}

.history-table td {
    height: 41px;
    padding: 7px 5px;
    border: 1px solid #bdbdbd;
    background: #ffffff;
    text-align: center;
    color: #444444;
}

.history-table tbody tr:nth-child(even) td {
    background: #f5f5f5;
}

.history-table .result-value {
    font-weight: 700;
    color: #333333;
    font-size: 13px;
}

.right-sidebar {
    padding-top: 2px;
}

.map-card {
    height: 285px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.map-placeholder {
    width: 285px;
    height: 245px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-circle {
    width: 220px;
    height: 190px;
    position: relative;
    border-radius: 50%;
    border: 1px dashed #aecde0;
    background:
        radial-gradient(circle at 35% 40%, #dceef7 0 8%, transparent 9%),
        radial-gradient(circle at 65% 35%, #e9dfb9 0 9%, transparent 10%),
        radial-gradient(circle at 55% 68%, #d7ebdf 0 10%, transparent 11%),
        #f9fcfd;
}

.map-circle span {
    position: absolute;
    display: block;
    padding: 5px 9px;
    background: #ffffff;
    border: 1px solid #d5d5d5;
    font-size: 10px;
}

.map-circle span:nth-child(1) {
    left: 35px;
    top: 35px;
}

.map-circle span:nth-child(2) {
    right: 28px;
    top: 68px;
}

.map-circle span:nth-child(3) {
    left: 90px;
    bottom: 28px;
}

.side-section {
    margin-top: 8px;
}

.side-section h2 {
    margin: 0 0 15px;
    padding-bottom: 9px;
    border-bottom: 1px solid #777777;
    font-size: 20px;
    line-height: 1.2;
    color: #333333;
}

.feature-card {
    min-height: 85px;
    margin-bottom: 12px;
    padding: 15px;
    display: grid;
    grid-template-columns: 46px 1fr 15px;
    align-items: center;
    gap: 10px;
    border: 1px solid #cfdbea;
    border-radius: 12px;
    color: #07529a;
}

.feature-icon {
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #edf7ff;
    color: #1684d8;
    font-size: 20px;
}

.feature-card strong {
    display: block;
    font-size: 15px;
}

.feature-card small {
    display: block;
    margin-top: 4px;
    color: #49749e;
    font-size: 10px;
}

.feature-card > span {
    color: #7796b3;
    font-size: 25px;
}

.beginner {
    margin-top: 30px;
}

.beginner h2 {
    font-size: 18px;
}

.link-box {
    overflow: hidden;
    border: 1px solid #cfdbea;
    border-radius: 8px;
}

.link-box strong {
    display: block;
    padding: 18px;
    color: #333333;
    font-size: 12px;
    border-bottom: 1px solid #dbe2e9;
}

.link-box a {
    display: block;
    padding: 15px 18px;
    border-bottom: 1px solid #dbe2e9;
    color: #075db0;
    text-decoration: none;
    font-size: 12px;
}

.link-box a:last-child {
    border-bottom: 0;
}

@media (max-width: 900px) {
    .site-header {
        padding-bottom: 20px;
    }

    .header-title {
        height: 58px;
    }

    .header-title::before {
        width: 75%;
        height: 58px;
    }

    .header-title::after {
        left: 70%;
    }

    .header-title span {
        padding-top: 7px;
        font-size: 35px;
    }

    .page-layout {
        display: block;
        max-width: calc(100% - 20px);
    }

    .right-sidebar {
        display: none;
    }

    .dax-info-row {
        grid-template-columns: 110px 1fr 110px 140px;
    }
}

@media (max-width: 600px) {
    body {
        border-top-width: 5px;
    }

    .site-header {
        padding: 8px 5px 15px;
    }

    .header-title {
        height: 50px;
    }

    .header-title::before {
        height: 50px;
        width: 88%;
    }

    .header-title::after {
        display: none;
    }

    .header-title span {
        font-size: 29px;
        padding: 7px 0 0 12px;
    }

    .stock-card {
        padding: 12px;
    }

    .dax-section-title {
        font-size: 16px;
    }

    .dax-current-price {
        font-size: 30px;
    }

    .dax-change-data {
        font-size: 11px;
    }

    .dax-chart-controls {
        overflow-x: auto;
    }

    .dax-chart-area {
        height: 320px;
    }

    #myChart {
        height: 260px !important;
    }

    .dax-info-row {
        grid-template-columns: 90px 1fr;
        padding: 7px 0;
    }

    .dax-info-label-right,
    .dax-info-value-right {
        text-align: left;
    }

    .dax-custom-table-wrapper {
        grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
    }

    .dax-custom-cell {
        min-height: 40px;
        font-size: 10px;
    }

    .dax-custom-value {
        font-size: 12px;
    }

    .history-section {
        margin-top: 30px;
    }

    .history-table-container h2 {
        font-size: 23px;
    }

    .history-table {
        min-width: 760px;
    }

    .history-table th:first-child {
        width: 145px;
    }
}