@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ==========================
   Knowledge ReMAP
========================== */

/* =========================================
   Knowledge専用ヘッダーのレイアウト
========================================= */
.knowledge-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin: 40px 0;
    padding-bottom: 40px;
    border-bottom: 1px solid #eef0f4;
}

/* 左側のタイトルエリア */
.knowledge-hero__main {
    flex: 1;
    min-width: 300px;
}

.knowledge-terms {
    margin-bottom: 15px;
}

.knowledge-terms span.knowledge-cat {
    display: inline-block;
    background: #f0f4f8; /* 薄いブルーの背景 */
    color: #3b82f6;      /* ブルーの文字色 */
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 10px;
}

.knowledge-title {
    font-size: 2.4rem;
    font-weight: bold;
    margin: 0 0 15px;
    color: #112244;
    line-height: 1.3;
}

.knowledge-summary {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.7;
}

/* 右側のメタデータ（基本情報）エリア */
.knowledge-meta-box {
    width: 100%;
    max-width: 480px;
}

.meta-list {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2列に分割 */
    gap: 25px 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.meta-list li {
    display: flex;
    flex-direction: column;
}

.meta-list .label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 6px;
    font-weight: 500;
}

.meta-list .value {
    font-size: 0.95rem;
    font-weight: bold;
    color: #222;
    line-height: 1.4;
}

.meta-list .value a {
    color: #3b82f6;
    text-decoration: none;
    transition: 0.3s;
}

.meta-list .value a:hover {
    text-decoration: underline;
}

/* スマホ表示対応 */
@media (max-width: 768px) {
    .knowledge-hero {
        flex-direction: column;
        gap: 30px;
    }
    .knowledge-meta-box {
        max-width: 100%;
        background: #f9f9f9;
        padding: 20px;
        border-radius: 8px;
    }
}

/* =========================================
   Book template
========================================= */
body.single-book #content,
body.single-book .l-container,
body.single-book .l-content,
body.single-book .l-mainContent,
body.single-book .l-mainContent__inner {
    width: 100% !important;
    max-width: none !important;
}

body.single-book .l-content {
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.krm-book-page {
    width: 100%;
    max-width: none !important;
    padding: 0 24px 64px;
    background: #fff;
}

.krm-book-page__inner {
    width: 100%;
    max-width: 1240px !important;
    margin-right: auto;
    margin-left: auto;
}

.krm-book-hero {
    display: grid;
    grid-template-columns: minmax(220px, 330px) minmax(360px, 1fr) minmax(300px, 360px);
    gap: 42px;
    align-items: center;
    padding: 42px 0 38px;
    border-bottom: 1px solid #e8edf5;
}

.krm-book-hero__cover {
    width: 100%;
}

.krm-book-main-cover {
    display: block;
    width: 100%;
    max-width: 310px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 22px 44px rgba(17, 34, 68, 0.18);
}

.krm-book-main-cover--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #eef3f8;
    color: #17315d;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
}

.krm-book-label {
    margin: 0 0 14px;
    color: #1f4e9e;
    font-size: 1rem;
    font-weight: 800;
}

.krm-book-title {
    margin: 0 0 10px;
    color: #0f1f45;
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1.16;
}

.krm-book-subtitle {
    margin: 0 0 10px;
    color: #17315d;
    font-size: 1.28rem;
    font-weight: 700;
}

.krm-book-authors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: #28599f;
    font-weight: 700;
}

.krm-book-authors a {
    color: inherit;
    text-decoration: none;
}

.krm-book-authors a:hover {
    text-decoration: underline;
}

.krm-book-hero-copy {
    margin-bottom: 22px;
    color: #14284d;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.85;
}

.krm-book-hero-copy p {
    margin: 0 0 8px;
}

.krm-book-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin: 0;
    color: #52637b;
    font-size: 0.86rem;
}

.krm-book-facts div {
    display: inline-flex;
    gap: 6px;
    align-items: baseline;
}

.krm-book-facts dt {
    color: #65758f;
    font-weight: 700;
}

.krm-book-facts dd {
    margin: 0;
    color: #172b52;
    font-weight: 800;
}

.krm-book-purchase {
    padding: 24px;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(17, 34, 68, 0.08);
}

.krm-book-purchase h2 {
    margin: 0 0 18px;
    color: #10224a;
    font-size: 1.2rem;
    text-align: center;
}

.krm-book-purchase__list {
    display: grid;
    gap: 14px;
}

.krm-book-purchase__group span {
    display: block;
    margin-bottom: 6px;
    color: #425472;
    font-size: 0.82rem;
    font-weight: 800;
}

.krm-book-purchase__group a,
.krm-book-bottom-cta__links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #b8cdf0;
    border-radius: 6px;
    background: #fff;
    color: #12336d;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
}

.krm-book-purchase__group a:hover,
.krm-book-bottom-cta__links a:hover {
    border-color: #1769ff;
    background: #f5f9ff;
}

.krm-book-benefits-section {
    text-align: center;
}

.krm-book-benefits {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    text-align: center;
}

.krm-book-benefit-card {
    min-height: 210px;
}

.krm-book-benefit-card .krm-card-icon--large {
    margin-right: auto;
    margin-left: auto;
}

.krm-book-editor-content {
    color: #1d3358;
    line-height: 1.9;
}

.krm-book-editor-content > :first-child {
    margin-top: 0;
}

.krm-book-editor-content > :last-child {
    margin-bottom: 0;
}

.krm-book-knowledge-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.krm-book-chapter-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.krm-book-chapter-card {
    min-height: 250px;
}

.krm-book-chapter-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    border: 1px solid #9ec2ff;
    border-radius: 50%;
    color: #1769ff;
    font-size: 1rem;
    font-weight: 800;
}

.krm-book-bottom-cta {
    margin-top: 28px;
    padding: 30px;
    border-radius: 8px;
    background: #0f2b55;
    color: #fff;
    text-align: center;
}

.krm-book-bottom-cta h2 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 1.55rem;
}

.krm-book-bottom-cta__links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

@media (max-width: 1024px) {
    .krm-book-hero {
        grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    }

    .krm-book-purchase {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .krm-book-page {
        padding-right: 16px;
        padding-left: 16px;
    }

    .krm-book-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 26px;
    }

    .krm-book-main-cover {
        max-width: 240px;
    }

    .krm-book-title {
        font-size: 2.1rem;
    }

    .krm-book-hero-copy {
        font-size: 1rem;
    }

    .krm-book-bottom-cta {
        padding: 22px 16px;
    }
}

/* =========================================
   Front page
========================================= */
body.krm-home-template #content,
body.krm-home-template .l-container,
body.krm-home-template .l-content,
body.krm-home-template .l-mainContent,
body.krm-home-template .l-mainContent__inner,
body.front-page #content,
body.front-page .l-container,
body.front-page .l-content,
body.front-page .l-mainContent,
body.front-page .l-mainContent__inner {
    width: 100% !important;
    max-width: none !important;
}

body.krm-home-template .l-content,
body.front-page .l-content {
    display: block !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

body.krm-home-template .p-mainVisual,
body.krm-home-template .p-mainVisual__inner,
body.krm-home-template .p-mainVisual__slide,
body.krm-home-template .p-mainVisual__textLayer,
body.krm-home-template .p-topArea,
body.krm-home-template .l-sidebar,
body.krm-home-template #sidebar,
body.krm-home-template .sidebar,
body.krm-home-template .c-widget {
    display: none !important;
}

body.krm-home-template .l-mainContent {
    float: none !important;
    flex-basis: 100% !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.krm-home {
    width: 100%;
    max-width: none !important;
    padding: 0 24px 72px;
    background: radial-gradient(circle at 64% 8%, rgba(96, 130, 255, 0.12), transparent 32%), #fff;
    overflow-x: hidden;
}

.krm-home__inner {
    width: 100%;
    max-width: 1180px !important;
    margin-right: auto;
    margin-left: auto;
}

.krm-home-hero {
    display: grid;
    grid-template-columns: minmax(390px, 0.95fr) minmax(520px, 1.2fr);
    gap: 46px;
    align-items: center;
    width: 100vw;
    min-height: 620px;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding: 56px max(24px, calc((100vw - 1180px) / 2)) 38px;
    background: radial-gradient(circle at 67% 35%, rgba(84, 112, 255, 0.12), transparent 30%), #f7f9ff;
}

.krm-home-eyebrow,
.krm-home-section-kicker {
    margin: 0 0 18px;
    color: #12336d;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
}

.krm-home-hero h1 {
    margin: 0 0 24px;
    color: #08142d;
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.35;
}

.krm-home-lead {
    max-width: 560px;
    margin: 0 0 28px;
    color: #26364f;
    font-size: 1rem;
    line-height: 2;
}

.krm-home-search {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    max-width: 540px;
    min-height: 58px;
    padding: 8px 10px 8px 20px;
    border: 1px solid #e5eaf2;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(17, 34, 68, 0.1);
}

.krm-home-search span {
    color: #0b1835;
    font-size: 1.2rem;
    font-weight: 800;
}

.krm-home-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #162541;
    font-size: 0.94rem;
    outline: 0;
}

.krm-home-search button {
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #07142d;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.krm-home-chip-list,
.krm-home-domain-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.krm-home-chip-list a,
.krm-home-domain-list a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 14px;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #111f3c;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.krm-home-chip-list a:hover,
.krm-home-domain-list a:hover {
    border-color: #9ebdff;
    background: #f4f8ff;
}

.krm-home-graph {
    min-height: 560px;
}

.krm-home-graph__field {
    position: relative;
    width: 100%;
    min-height: 560px;
    border-radius: 50%;
    background:
        linear-gradient(30deg, transparent 49%, rgba(75, 118, 255, 0.16) 50%, transparent 51%),
        linear-gradient(115deg, transparent 49%, rgba(130, 83, 255, 0.12) 50%, transparent 51%),
        linear-gradient(155deg, transparent 49%, rgba(0, 196, 170, 0.1) 50%, transparent 51%),
        radial-gradient(circle at 54% 49%, rgba(69, 104, 255, 0.14), transparent 15%),
        radial-gradient(circle at 52% 50%, #fff 0 0);
    overflow: hidden;
}

.krm-home-graph__field::before,
.krm-home-graph__field::after {
    content: "";
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background-image:
        radial-gradient(circle, rgba(41, 105, 255, 0.55) 0 2px, transparent 3px),
        radial-gradient(circle, rgba(126, 86, 255, 0.35) 0 1px, transparent 2px),
        radial-gradient(circle, rgba(0, 180, 160, 0.28) 0 1px, transparent 2px);
    background-position: 0 0, 18px 24px, 42px 10px;
    background-size: 58px 58px, 44px 44px, 70px 70px;
    opacity: 0.72;
}

.krm-home-graph__field::after {
    inset: 18%;
    border: 1px solid rgba(77, 111, 255, 0.11);
    background-image:
        linear-gradient(35deg, transparent 49%, rgba(59, 130, 246, 0.16) 50%, transparent 51%),
        linear-gradient(120deg, transparent 49%, rgba(124, 58, 237, 0.12) 50%, transparent 51%),
        linear-gradient(160deg, transparent 49%, rgba(20, 184, 166, 0.11) 50%, transparent 51%);
}

.krm-home-graph__center {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 126px;
    height: 126px;
    border: 1px solid #e3e9f6;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 18px 42px rgba(69, 104, 255, 0.18);
    color: #1b4fe0;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    transform: translate(-50%, -50%);
}

.krm-home-node {
    position: absolute;
    z-index: 3;
    color: #0b1835;
    font-weight: 800;
    line-height: 1.35;
}

.krm-home-node small {
    display: block;
    color: #4a5b76;
    font-size: 0.72rem;
    font-weight: 600;
}

.krm-home-node::before,
.krm-home-graph__dot {
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: #3b73ff;
    box-shadow: 0 0 0 12px rgba(59, 115, 255, 0.1);
}

.krm-home-node--management { top: 14%; left: 24%; }
.krm-home-node--psychology { top: 16%; right: 9%; }
.krm-home-node--philosophy { top: 42%; right: 0; }
.krm-home-node--history { bottom: 20%; left: 34%; }
.krm-home-node--technology { right: 6%; bottom: 16%; }
.krm-home-node--psychology::before { background: #8359ff; box-shadow: 0 0 0 12px rgba(131, 89, 255, 0.11); }
.krm-home-node--philosophy::before { background: #19c9a8; box-shadow: 0 0 0 12px rgba(25, 201, 168, 0.1); }
.krm-home-node--history::before { background: #2ba8ff; box-shadow: 0 0 0 12px rgba(43, 168, 255, 0.1); }
.krm-home-node--technology::before { background: #25b7ff; box-shadow: 0 0 0 12px rgba(37, 183, 255, 0.1); }

.krm-home-graph__dot {
    position: absolute;
    z-index: 2;
    margin: 0;
}

.krm-home-graph__dot--a { top: 30%; left: 14%; background: #f59e0b; box-shadow: 0 0 0 10px rgba(245, 158, 11, 0.1); }
.krm-home-graph__dot--b { top: 46%; left: 9%; background: #f59e0b; box-shadow: 0 0 0 10px rgba(245, 158, 11, 0.1); }
.krm-home-graph__dot--c { top: 24%; left: 50%; }
.krm-home-graph__dot--d { top: 68%; left: 54%; background: #39b7ff; box-shadow: 0 0 0 10px rgba(57, 183, 255, 0.11); }
.krm-home-graph__dot--e { top: 22%; right: 18%; background: #865dff; box-shadow: 0 0 0 10px rgba(134, 93, 255, 0.1); }

.krm-home-today,
.krm-home-map-card,
.krm-home-theme,
.krm-home-panel,
.krm-home-start,
.krm-home-knowledge {
    border: 1px solid #e4ebf5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(17, 34, 68, 0.06);
}

.krm-home-today {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 28px;
    align-items: center;
    min-height: 310px;
    padding: 52px 42px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0 42%, rgba(255, 255, 255, 0.36) 75%),
        radial-gradient(circle at 74% 56%, rgba(246, 172, 83, 0.42), transparent 28%),
        linear-gradient(140deg, #fff7eb, #d9e8ff);
}

.krm-home-today h2,
.krm-home-map-card h2,
.krm-home-theme h2,
.krm-home-panel h2,
.krm-home-start h2,
.krm-home-knowledge h2 {
    margin: 0 0 14px;
    color: #0b1835;
    font-weight: 800;
    line-height: 1.35;
}

.krm-home-today h2 {
    font-size: 2.2rem;
}

.krm-home-today p,
.krm-home-map-card p,
.krm-home-theme p {
    max-width: 560px;
    margin: 0 0 18px;
    color: #1f304d;
    line-height: 1.8;
}

.krm-home-today__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 22px;
    color: #20314f;
    font-size: 0.85rem;
    font-weight: 800;
}

.krm-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
}

.krm-home-button--dark {
    background: #07142d;
    color: #fff;
}

.krm-home-today__dates {
    display: grid;
    justify-items: center;
    gap: 18px;
    color: #53637b;
    font-size: 0.82rem;
    font-weight: 800;
    text-align: center;
}

.krm-home-today__dates strong {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #fff;
    color: #0b1835;
    box-shadow: 0 12px 28px rgba(17, 34, 68, 0.12);
}

.krm-home-map-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.64fr) minmax(420px, 1fr);
    gap: 34px;
    align-items: center;
    margin-top: 28px;
    padding: 42px 32px;
    overflow: hidden;
}

.krm-home-mini-map {
    position: relative;
    min-height: 260px;
    background:
        linear-gradient(30deg, transparent 49%, rgba(84, 112, 255, 0.15) 50%, transparent 51%),
        linear-gradient(130deg, transparent 49%, rgba(30, 190, 170, 0.12) 50%, transparent 51%),
        radial-gradient(circle at 50% 50%, rgba(72, 87, 255, 0.13), transparent 27%);
}

.krm-home-mini-map__center,
.krm-home-mini-map span:not(.krm-home-mini-map__center) {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
}

.krm-home-mini-map__center {
    top: 50%;
    left: 50%;
    width: 94px;
    height: 94px;
    background: #5268ff;
    color: #fff;
    box-shadow: 0 14px 34px rgba(82, 104, 255, 0.28);
    transform: translate(-50%, -50%);
}

.krm-home-mini-map span:not(.krm-home-mini-map__center) {
    top: var(--y);
    left: var(--x);
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.84);
    color: #12336d;
    font-size: 0.82rem;
    box-shadow: 0 8px 20px rgba(17, 34, 68, 0.08);
}

.krm-home-theme {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(170px, 0.55fr) minmax(170px, 0.55fr) minmax(170px, 0.55fr);
    gap: 28px;
    margin-top: 28px;
    padding: 36px;
    background:
        linear-gradient(90deg, rgba(5, 16, 34, 0.88), rgba(5, 16, 34, 0.7)),
        radial-gradient(circle at 20% 20%, rgba(89, 136, 74, 0.5), transparent 38%),
        #07142d;
    color: #fff;
}

.krm-home-theme h2,
.krm-home-theme h3 {
    color: #fff;
}

.krm-home-theme h2 {
    font-size: 2.1rem;
}

.krm-home-theme p,
.krm-home-theme a {
    color: rgba(255, 255, 255, 0.86);
}

.krm-home-theme a {
    text-decoration: none;
}

.krm-home-theme h3 {
    margin: 0 0 14px;
    font-size: 0.92rem;
}

.krm-home-theme__people,
.krm-home-theme__knowledge,
.krm-home-theme__books {
    display: grid;
    align-content: start;
    gap: 10px;
}

.krm-home-theme__people a {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
}

.krm-home-theme__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.krm-home-theme__knowledge a {
    display: inline-flex;
    width: fit-content;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
}

.krm-home-theme__books {
    grid-template-columns: repeat(3, 1fr);
}

.krm-home-theme__books h3 {
    grid-column: 1 / -1;
}

.krm-home-theme__books img,
.krm-home-theme__books span {
    display: block;
    width: 64px;
    aspect-ratio: 2 / 3;
    border-radius: 4px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.12);
}

.krm-home-theme__books span {
    padding: 8px;
    color: #fff;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.35;
}

.krm-home-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
}

.krm-home-panel,
.krm-home-start,
.krm-home-knowledge {
    padding: 24px;
}

.krm-home-panel__head {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.krm-home-panel__head h2 {
    margin: 0;
    font-size: 1.25rem;
}

.krm-home-panel__head a {
    color: #245ad6;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.krm-home-person-grid,
.krm-home-book-grid {
    display: grid;
    grid-auto-columns: minmax(220px, 260px);
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 16px;
    margin-right: -8px;
    margin-left: -8px;
    padding: 2px 8px 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
}

.krm-home-person-card,
.krm-home-book-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    min-height: 142px;
    padding: 16px;
    border: 1px solid #e2e9f3;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(17, 34, 68, 0.06);
    color: inherit;
    text-decoration: none;
    scroll-snap-align: start;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.krm-home-person-card:hover,
.krm-home-book-card:hover,
.krm-home-start a:hover {
    border-color: #9ec2ff;
    box-shadow: 0 14px 30px rgba(17, 34, 68, 0.1);
    transform: translateY(-2px);
}

.krm-home-person-card {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
}

.krm-home-person-card strong,
.krm-home-person-card small {
    grid-column: 2;
}

.krm-home-person-card__image {
    display: block;
    grid-row: 1 / span 2;
    width: 72px;
    height: 72px;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    object-fit: cover;
    background: #eef3f8;
}

.krm-home-person-card__image--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1769ff;
    font-size: 1.4rem;
    font-weight: 800;
}

.krm-home-person-card strong,
.krm-home-book-card strong {
    color: #10224a;
    font-size: 0.94rem;
    line-height: 1.4;
}

.krm-home-person-card small,
.krm-home-book-card small {
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.35;
}

.krm-home-book-card img,
.krm-home-book-card > span {
    display: block;
    width: 96px;
    max-width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 6px;
    object-fit: cover;
    background: #eef3f8;
    box-shadow: 0 8px 18px rgba(17, 34, 68, 0.1);
}

.krm-home-book-card > span {
    padding: 10px;
    color: #17315d;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.35;
}

.krm-home-start {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 16px;
    align-content: start;
}

.krm-home-start h2 {
    grid-column: 1 / -1;
    font-size: 1.2rem;
}

.krm-home-start a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    min-height: 108px;
    padding: 18px;
    border: 1px solid #e2e9f3;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(17, 34, 68, 0.05);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.krm-home-start a::after {
    content: "›";
    color: #0f1f45;
    font-size: 1.3rem;
    font-weight: 800;
}

.krm-home-start span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eef5ff;
    color: #1769ff;
    font-weight: 800;
}

.krm-home-start strong,
.krm-home-start small {
    display: block;
    min-width: 0;
    line-height: 1.45;
    writing-mode: horizontal-tb;
}

.krm-home-start small {
    margin-top: 3px;
    color: #64748b;
}

.krm-home-knowledge {
    margin-top: 28px;
}

.krm-home-knowledge .krm-home-domain-list {
    margin-top: 0;
}

@media (max-width: 1100px) {
    .krm-home-hero,
    .krm-home-map-card,
    .krm-home-theme,
    .krm-home-columns {
        grid-template-columns: 1fr;
    }

    .krm-home-hero {
        min-height: 0;
    }

    .krm-home-graph {
        min-height: 430px;
    }

    .krm-home-graph__field {
        min-height: 430px;
    }

    .krm-home-theme__books {
        grid-template-columns: repeat(3, 72px);
    }

    .krm-home-start {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .krm-home {
        padding-right: 16px;
        padding-left: 16px;
    }

    .krm-home-hero {
        grid-template-columns: 1fr;
        width: 100vw;
        margin-right: calc(50% - 50vw);
        margin-left: calc(50% - 50vw);
        padding-right: 16px;
        padding-left: 16px;
        padding-top: 30px;
    }

    .krm-home-hero h1 {
        font-size: 2.25rem;
    }

    .krm-home-search {
        grid-template-columns: auto 1fr;
        border-radius: 18px;
    }

    .krm-home-search button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .krm-home-graph {
        min-height: 360px;
    }

    .krm-home-graph__field {
        min-height: 360px;
    }

    .krm-home-node {
        font-size: 0.78rem;
    }

    .krm-home-node small {
        display: none;
    }

    .krm-home-graph__center {
        width: 102px;
        height: 102px;
    }

    .krm-home-today {
        grid-template-columns: 1fr;
        padding: 30px 22px;
    }

    .krm-home-today__dates {
        grid-template-columns: repeat(3, 1fr);
    }

    .krm-home-map-card,
    .krm-home-theme,
    .krm-home-panel,
    .krm-home-start,
    .krm-home-knowledge {
        padding: 22px;
    }

    .krm-home-mini-map {
        min-height: 220px;
    }

    .krm-home-person-grid,
    .krm-home-book-grid {
        grid-auto-columns: minmax(230px, 82vw);
        grid-template-columns: none;
    }

    .krm-home-start {
        grid-auto-columns: minmax(240px, 82vw);
        grid-auto-flow: column;
        grid-template-columns: none;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline mandatory;
        scrollbar-width: thin;
    }

    .krm-home-start h2 {
        position: sticky;
        left: 0;
        grid-column: auto;
        width: 180px;
        align-self: stretch;
        padding: 4px 12px 0 0;
        background: #fff;
        z-index: 1;
    }

    .krm-home-start a {
        scroll-snap-align: start;
    }
}

/* Codex Test */

/* AUTO DEPLOY TEST */

/* =========================================
   Person template
========================================= */
body.single-person #content,
body.single-person .l-container,
body.single-person .l-content,
body.single-person .l-mainContent,
body.single-person .l-mainContent__inner {
    width: 100% !important;
    max-width: none !important;
}

body.single-person .l-content {
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.krm-person-page {
    width: 100%;
    max-width: none !important;
    padding: 0 24px 64px;
    background: #fff;
}

.krm-person-page__inner {
    width: 100%;
    max-width: 1240px !important;
    margin-right: auto;
    margin-left: auto;
}

.krm-person-hero {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(360px, 1fr) minmax(360px, 460px);
    gap: 40px;
    align-items: center;
    padding: 34px 0 34px;
    border-bottom: 1px solid #e8edf5;
}

.krm-person-hero__image {
    width: 100%;
}

.krm-person-portrait,
.krm-no-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 8px;
    object-fit: cover;
    background: #f4f7fb;
}

.krm-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a99ad;
    font-weight: 700;
}

.krm-person-title {
    margin: 0 0 6px;
    color: #0f1f45;
    font-size: 2.55rem;
    font-weight: 800;
    line-height: 1.25;
}

.krm-person-en-name {
    margin: 0 0 18px;
    color: #2b4b7c;
    font-size: 1.18rem;
    font-weight: 600;
}

.krm-person-summary {
    margin: 0 0 20px;
    color: #1d355f;
    font-weight: 600;
    line-height: 1.85;
}

.krm-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.krm-tag-list--compact {
    gap: 6px;
}

.krm-tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #eef5ff;
    color: #2468d8;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.krm-person-meta {
    padding: 24px;
    border: 1px solid #e3eaf3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(17, 34, 68, 0.05);
}

.krm-meta-list {
    display: grid;
    gap: 18px;
    margin: 0;
}

.krm-meta-list__item {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 14px;
    align-items: start;
}

.krm-meta-list dt {
    color: #516079;
    font-size: 0.82rem;
    font-weight: 700;
}

.krm-meta-list dd {
    margin: 0;
    color: #14284d;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.7;
}

.krm-meta-list a {
    color: #2468d8;
    text-decoration: none;
}

.krm-meta-list a:hover {
    text-decoration: underline;
}

.krm-section {
    padding: 22px 0;
    border-bottom: 1px solid #e8edf5;
}

.krm-section-title {
    margin: 0 0 18px;
    color: #10224a;
    font-size: 1.35rem;
    line-height: 1.35;
}

.krm-timeline {
    display: grid;
    grid-template-columns: repeat(var(--krm-timeline-count), minmax(0, 1fr));
    gap: 16px;
    overflow: visible;
    padding: 30px 0 4px;
    position: relative;
}

.krm-timeline::before {
    content: "";
    position: absolute;
    top: 9px;
    right: 0;
    left: 0;
    height: 2px;
    background: #8fb6ff;
}

.krm-timeline__item {
    position: relative;
    min-width: 0;
    padding: 18px 16px;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.krm-timeline__item::before {
    content: "";
    position: absolute;
    top: -24px;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1769ff;
    transform: translateX(-50%);
}

.krm-timeline__year {
    margin-bottom: 8px;
    color: #1769ff;
    font-weight: 800;
}

.krm-timeline__title {
    margin: 0 0 6px;
    color: #112244;
    font-size: 0.96rem;
    line-height: 1.45;
}

.krm-timeline__description {
    margin: 0;
    color: #334866;
    font-size: 0.86rem;
    line-height: 1.65;
}

.krm-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
    gap: 32px;
    align-items: start;
}

.krm-rich-text {
    color: #1d3358;
    line-height: 1.9;
}

.krm-rich-text > :first-child {
    margin-top: 0;
}

.krm-rich-text > :last-child {
    margin-bottom: 0;
}

.krm-achievements {
    padding: 20px;
    border-radius: 8px;
    background: #f6f9ff;
}

.krm-achievement-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.krm-achievement-list li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 10px;
    align-items: start;
    color: #193059;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.65;
}

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

.krm-card-grid--books {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.krm-card-grid--people,
.krm-card-grid--organizations,
.krm-card-grid--links {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.krm-card {
    display: block;
    min-width: 0;
    padding: 18px;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.krm-card:hover {
    border-color: #9ec2ff;
    box-shadow: 0 12px 28px rgba(17, 34, 68, 0.08);
    transform: translateY(-2px);
}

.krm-card h3 {
    margin: 0 0 8px;
    color: #112244;
    font-size: 1rem;
    line-height: 1.45;
}

.krm-knowledge-card {
    min-height: 220px;
}

.krm-card p {
    margin: 0 0 12px;
    color: #334866;
    font-size: 0.88rem;
    line-height: 1.65;
}

.krm-card-meta {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.krm-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1769ff;
    font-weight: 800;
    line-height: 1;
}

.krm-card-icon--large {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border: 2px solid #1769ff;
    border-radius: 50%;
    font-size: 1.35rem;
}

.krm-book-card {
    text-align: left;
    min-height: 285px;
    padding: 16px;
}

.krm-book-card__cover {
    margin-bottom: 14px;
}

.krm-book-cover {
    display: block;
    width: 100%;
    max-width: 118px;
    aspect-ratio: 2 / 3;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(17, 34, 68, 0.16);
}

.krm-book-cover--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #eef3f8;
    color: #234a85;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
}

.krm-person-card,
.krm-organization-card,
.krm-link-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
}

.krm-person-card {
    min-height: 96px;
}

.krm-person-card__image,
.krm-person-card__image--empty {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    background: #eef3f8;
}

.krm-person-card__image--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1769ff;
    font-weight: 800;
}

.krm-person-card p {
    margin-bottom: 0;
}

.krm-organization-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #eef5ff;
    color: #1769ff;
    font-weight: 800;
    overflow: hidden;
}

.krm-organization-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.krm-link-card strong,
.krm-link-card small {
    display: block;
}

.krm-link-card strong {
    color: #112244;
    line-height: 1.4;
}

.krm-link-card small {
    margin-top: 4px;
    color: #52637b;
    font-size: 0.8rem;
    line-height: 1.5;
}

.krm-editor-content {
    border-bottom: 0;
}

@media (max-width: 1024px) {
    .krm-person-hero {
        grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    }

    .krm-person-meta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .krm-person-page {
        padding-right: 16px;
        padding-left: 16px;
    }

    .krm-person-hero {
        grid-template-columns: 1fr;
        gap: 22px;
        padding-top: 24px;
    }

    .krm-person-hero__image {
        max-width: 260px;
    }

    .krm-person-title {
        font-size: 1.8rem;
    }

    .krm-person-meta {
        padding: 18px;
    }

    .krm-meta-list__item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .krm-profile-grid {
        grid-template-columns: 1fr;
    }

    .krm-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .krm-card-grid,
    .krm-card-grid--books,
    .krm-card-grid--people,
    .krm-card-grid--organizations,
    .krm-card-grid--links {
        grid-template-columns: 1fr;
    }
}
