
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --toc-bg-color: #f6f6f6;
    --toc-text-color: #36417a;
    --toc-accent-color: #1965b0;
    --sidebar-border-color: #aaaaaa;
    --sidebar-link-color: #333333;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(17, 95, 173, 0.15);
    z-index: 9999;
    pointer-events: none;
}

.reading-progress__bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #1965b0 0%, #2873b8 100%);
    transition: width 0.1s ease-out;
}

.container {
    max-width: 965px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    gap: 15px;
}

article {
    flex: 1;
    max-width: 722px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

aside {
    position: relative;
    width: 230px;
    padding: 15px 0;
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

h1 {
    font-size: 22.8px;
    line-height: 31.2px;
    font-weight: bold;
    color: #777777;
    padding-top: 17px;
}

h2.section-title {
    font-size: 17.6px;
    line-height: 22.9px;
    font-weight: bold;
    color: #575757;
    background-color: #f2f2f2;
    padding: 10px 15px;
}

h3.subsection-title {
    font-size: 15.2px;
    line-height: 19.8px;
    font-weight: bold;
    color: #555555;
    background-color: #f6faff;
    padding: 5px 10px;
    margin: 20px 0 10px;
}

.hero-image {
    width: 100%;
    background-size: cover;
    background-position: center;
    margin: 2rem 0;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.section-image {
    width: 100%;
    background-size: cover;
    background-position: center;
    margin: 10px 0 15px;
}

.section-image img {
    width: 100%;
    height: auto;
    display: block;
}

.case-study-image {
    width: 100%;
    background-size: cover;
    background-position: center;
    margin: 15px auto;
    display: block;
}

.case-study-image img {
    width: 100%;
    height: auto;
}

.case-link {
    color: var(--toc-text-color);
    text-decoration: none;
}

.case-link:hover {
    color: var(--toc-accent-color);
    text-decoration: underline;
    transition: all 0.3s ease;
}

main p {
    font-size: 14.4px;
    line-height: 23px;
    margin: 16px 0;
}

.card {
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  margin: 2rem 0;
}

.card.summary {
    background-color: #f6faff;
    border: none;
    padding: 1rem;
}

.toc {
  margin: 2rem 0;
}

.card-header {
    display: flex;
    align-items: center;
    vertical-align: middle;
    gap: 0.5rem;
    margin-bottom: 10px;
}

.card-header p {
    font-size: 20px;
    line-height: 26px;
    font-weight: bold;
    color: #274673;
}

.card-header .icon {
    display: flex;
    align-items: center;
}

.card-header .icon img {
    display: block;
}

.summary-text {
    font-size: 14.4px;
    line-height: 23px;
}

.highlight {
    font-weight: bold;
    color: #003f9a;
}

.cta-section {
    background: linear-gradient(135deg, #1e5fa3 0%, #2873b8 100%);
    padding: 30px 40px;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: url('/image/useful/wms/cta-bg.png') no-repeat center center;
    background-size: cover;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
    gap: 10px;
}

.cta-text {
    flex: 1;
    max-width: 500px;
}

.cta-text h2 {
  font-size: 22px;
  line-height: 41.6px;
  font-weight: bold;
  color: white;
  margin-bottom: 20px;
  background: none;
}

.cta-text p {
    font-size: 15px;
    line-height: 1.9;
    color: white;
    margin-bottom: 25px;
}

.btn {
    text-decoration: none !important;
    background-color: white;
    color: #115fad !important;
    font-size: 16px;
    line-height: 1.4;
    font-weight: bold;
    padding: 16px 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-image img {
    width: 230px;
}

.sidebar-cta {
    background: linear-gradient(135deg, #1e5fa3 0%, #2873b8 100%);
    border-radius: 16px;
    padding: 24px;
    margin-top: 30px;
    color: #ffffff;
    box-shadow: 0 15px 30px rgba(30, 95, 163, 0.35);
    overflow: hidden;
    position: relative;
}

.sidebar-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.25), transparent 60%);
    pointer-events: none;
}

.sidebar-cta-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-cta-label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.sidebar-cta-title {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 700;
    color: #ffffff;
}

.sidebar-cta-description {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.sidebar-cta-button {
    background-color: #ffffff;
    color: #115fad !important;
    font-weight: bold;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
    text-decoration: none !important;
    display: block;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.sidebar-cta-button:hover {
    background-color: #f0f8ff;
    transform: translateY(-2px);
}

.sidebar-cta-image {
    margin-top: 8px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.sidebar-cta-image img {
    width: 100%;
    max-width: 200px;
    height: auto;
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 0 16px;
    background-color: var(--toc-bg-color);
    border-radius: 12px 12px 0 0;
}

.toc-header h2 {
    font-size: 20px;
    line-height: 20.8px;
    font-weight: bold;
    padding: 0;
    color: var(--toc-text-color);
}

.toc-list {
    padding: 16px;
    background-color: var(--toc-bg-color);
    position: relative;
    max-height: 280px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.toc-list.expanded {
    max-height: 2000px;
}

.toc-link {
    color: var(--toc-text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.toc-link:hover {
    color: var(--toc-accent-color);
    text-decoration: underline;
}

.toc-item {
    color: var(--toc-text-color) !important;
    margin: 10px 0;
    font-size: 14.4px;
    line-height: 20.2px;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 1;
    max-height: 50px;
    overflow: hidden;
    visibility: visible;
    transition: opacity 0.3s ease, max-height 0.3s ease, visibility 0.3s ease, margin 0.3s ease;
    text-decoration: none !important;
}

.toc-item::after {
    content: '›';
    color: currentColor;
    font-weight: bold;
}

.toc-item.indent {
    padding-left: 20px;
}

.toc-item.hidden {
    opacity: 0;
    max-height: 0;
    margin: 0;
    visibility: hidden;
}

.toc-list-wrapper {
    position: relative;
}

.toc-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(246, 246, 246, 0) 0%, rgba(246, 246, 246, 0.9) 50%, var(--toc-bg-color) 100%);
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.toc-gradient.hidden {
    opacity: 0;
}

.toc-footer {
    padding: 15px 0;
    text-align: center;
    background-color: var(--toc-bg-color);
    position: relative;
    z-index: 1;
    border-radius: 0 0 12px 12px;
}

.expand-btn {
    background: none;
    border: none;
    color: var(--toc-text-color);
    font-size: 14.4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.expand-btn:hover {
    color: var(--toc-accent-color);
}

.expand-btn .arrow {
    transition: transform 0.5s ease;
    display: inline-block;
}

.expand-btn.expanded .arrow {
    transform: rotate(180deg);
}

.list {
  list-style: none;
  padding-left: 35px;
  margin: 16px 0;
}

.list li {
    font-size: 14.4px;
    line-height: 23px;
    margin: 5px 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    border: 1px solid #d3d3d3;
}

.table th {
    background-color: #1965b0;
    color: white;
    font-size: 13.3px;
    line-height: 21.2px;
    font-weight: 900;
    padding: 9.5px 16px;
    text-align: center;
    border: 1px solid #d3d3d3;
}

.table th.red {
    background-color: #b01e19;
}

.table td {
    padding: 20px 16px;
    font-size: 13.3px;
    line-height: 21.2px;
    font-weight: bold;
    border: 1px solid #d3d3d3;
    text-align: center;
}

.table td.blue-bg {
    background-color: #dbedff;
    color: #274673;
    text-align: left;
}

.table td.red-bg {
    background-color: #ffdcdb;
    color: #733227;
    text-align: left;
}

.table td.white-bg {
    background-color: white;
    color: #274673;
}

.contact-section {
    text-align: center;
}

.contact-section h2 {
    font-size: 36px;
    line-height: 46.8px;
    font-weight: bold;
    color: #333333;
    margin-top: 8px;
}

.contact-label {
    font-size: 20px;
    line-height: 36px;
    font-weight: bold;
    color: #333333;
}

.form-card {
    border: 1px solid #d3d3d3;
    border-radius: 16px;
    padding: 40px;
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.form-label span {
    font-size: 16px;
    line-height: 28.8px;
    font-weight: bold;
    color: #274673;
}

.badge {
    background-color: #1965b0;
    color: white !important;
    font-size: 10px !important;
    /* line-height: 21.6px; */
    font-weight: bold;
    padding: 2px 12px;
    border-radius: 999px;
}

.form-input {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

.form-textarea {
    width: 100%;
    min-height: 180px;
    padding: 8px 12px;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 28px;
}

.form-col {
    flex: 1;
}

.form-sublabel {
    font-size: 16px;
    line-height: 28.8px;
    color: #274673;
    margin-bottom: 10px;
}

.form-note {
    font-size: 12px;
    line-height: 21.6px;
    color: #787878;
    margin-top: 8px;
}

.privacy-box {
    background-color: white;
    border: 1px solid #d3d3d3;
    border-radius: 8px;
    padding: 18px;
    min-height: 180px;
    font-size: 12px;
    line-height: 21.6px;
    color: #787878;
}

.submit-btn {
    background-color: #1965b0;
    color: white;
    font-size: 20px;
    line-height: 36px;
    font-weight: bold;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    max-width: 458px;
    width: 100%;
    display: block;
    margin: 20px auto 0;
}

.submit-btn:hover {
    background-color: rgba(25, 101, 176, 0.9);
}

.contact-section .privacy-box {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

.contact-section .privacy-box::-webkit-scrollbar {
    width: 6px;
}

.contact-section .privacy-box::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.contact-section .privacy-box::-webkit-scrollbar-thumb {
    background: #c1c1c1;
}

/* サイドバー */
.sidebar-toc {
  background-color: #f2f2f2;
  border-radius: 8px;
}

.sidebar-toc-header {
  padding: 15px 15px 0 15px;
}

.sidebar-toc-header h3 {
    font-size: 14.4px;
    line-height: 23px;
    font-weight: bold;
    color: #575757;
}

.sidebar-toc-list {
  padding: 0 15px 15px 15px;
}

.sidebar-toc-item {
    padding-top: 10px;
    border-top: 1px dashed var(--sidebar-border-color);
    margin-top: 8px;
    color: var(--sidebar-link-color);
}

.sidebar-toc-item .toc-link {
    display: block;
    font-size: 11.8px;
    line-height: 16.7px;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-toc-item .toc-link:hover {
    color: var(--toc-accent-color);
    text-decoration: underline;
}

.back-to-top {
    text-align: right;
    margin: 1rem 0;
}

.back-to-top a {
    font-size: 12.2px;
    line-height: 19.5px;
    color: #0022cc;
    text-decoration: none;
}

.section {
    margin: 56px 0;
}

.fixed-contact-button {
    position: fixed;
    bottom: 24px;
    right: calc((100vw - 965px) / 2);
    background: #d54357;
    color: #ffffff !important;
    width: 230px;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    box-sizing: border-box;
}

.fixed-contact-button.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fixed-contact-button::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #ffffff;
    border-top: 2px solid #ffffff;
    transform: rotate(45deg);
}

.fixed-contact-button:hover {
    background: #bb2a3e;
    transform: translateY(-2px);
    color: #ffffff;
}

@media (max-width: 768px) {
    .JS .Grid3 {
        width: 95%;
        margin: auto;
    }

    .container {
        flex-direction: column;
    }

    aside {
        display: none;
    }

    .cta-section {
        padding: 40px 20px;
    }

    .cta-content {
        flex-direction: column;
    }

    .cta-text {
        max-width: 100%;
    }

    .cta-text h2 {
        font-size: 20px;
    }

    .cta-text p {
        font-size: 14px;
    }

    .btn {
        font-size: 16px;
        padding: 12px 24px;
    }

    .cta-image img {
        width: 150px;
    }

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

    .fixed-contact-button {
        bottom: 16px;
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        width: calc(100vw - 24px);
        max-width: 300px;
        justify-content: center;
        margin: 0 auto;
        padding: 16px 24px;
    }

    .fixed-contact-button.show {
        transform: translateX(-50%) translateY(0);
    }
}
