@import url("https://p.typekit.net/p.css?s=1&k=lme5ved&ht=tk&f=13378.13379.13380.13381.13382.13383.18220.18221.18222.18223.18304.18305.18306.18307.18219.18239.18240.18241.18242.18243.18244.22487.22488.55314&a=7209224&app=typekit&e=css");

@font-face {
    font-family: "utopia-std";
    src: url("https://use.typekit.net/af/4db8bf/00000000000000007735d61c/31/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("woff2");
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "utopia-std-display";
    src: url("https://use.typekit.net/af/a83cc7/00000000000000007735d62b/31/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("woff2");
    font-style: normal;
    font-weight: 400;
}

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

body {
    background-color: white;
    padding: 40px;
    font-family: utopia-std, serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1;
    display: flex;
    max-width: 1200px;
    gap: 80px;
}

body.craft-page {
    background-color: white;
    padding: 1.5rem 2rem;
    max-width: 100%;
}

body.craft-page main {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

body.research-page {
    background-color: #f0f8f0;
    padding: 1.5rem 2rem;
    max-width: 100%;
}

body.craft-page header,
body.research-page header {
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

body.craft-page .profile,
body.research-page .profile {
    flex-direction: row;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

body.craft-page .profile a,
body.research-page .profile a {
    flex-direction: row;
    gap: 0.8rem;
}

body.craft-page .profile-img,
body.research-page .profile-img {
    width: 50px;
    height: 50px;
    float: none;
    margin: 0;
    border: 1px solid #1a1a1a;
}

body.craft-page .site-title,
body.research-page .site-title {
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin: 0;
}

body.craft-page .nav-links,
body.research-page .nav-links {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    gap: 1rem;
}

.doc-frame {
    width: 100%;
    min-height: 70vh;
    height: calc(100vh - 200px);
    border: none;
    border-radius: 0;
    background-color: white;
    display: block;
    box-shadow: none;
}

.doc-container {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    overflow: visible;
}

header {
    min-width: 200px;
    flex-shrink: 0;
}

.profile {
    margin-bottom: 20px;
}

.profile a {
    text-decoration: none;
    color: inherit;
}

.profile-img {
    width: 200px;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

h1 {
    font-family: utopia-std-display, serif;
    font-style: normal;
    font-weight: 400;
    font-size: 36px;
    margin-bottom: 10px;
}

h2, .section-title {
    font-family: utopia-std-display, serif;
    font-weight: 400;
    font-size: 28px;
    padding-top: 30px;
    line-height: 34px;
}

.site-title {
    font-family: utopia-std-display, serif;
    font-style: normal;
    font-weight: 400;
    font-size: 36px;
    margin-bottom: 20px;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 22px;
}

.nav-link {
    text-decoration: none;
    color: #185a9c;
    font-size: 16px;
    line-height: 22px;
}

.nav-link:hover {
    text-decoration: underline;
    color: #ff5500;
}

.nav-link.active {
    color: #ff5500;
}

main {
    flex: 1;
    max-width: 700px;
}

.text, p {
    font-size: 16px;
    padding-top: 5px;
    line-height: 26px;
    text-align: justify;
    margin-bottom: 10px;
}

strong {
    font-weight: 600;
    color: #ff5500;
}

.list {
    line-height: 22px;
    list-style: none;
    margin: 10px 0;
}

.list li {
    margin: 8px 0;
}

.japanese-text {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 1rem;
    margin: 1.5rem 0;
    font-size: 16px;
    line-height: 26px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 10px;
    line-height: 22px;
}

.social-link {
    text-decoration: none;
    color: #185a9c;
}

.social-link:hover {
    text-decoration: underline;
    color: #ff5500;
}

.inline-link {
    color: #185a9c;
    text-decoration: none;
}

.inline-link:hover {
    text-decoration: underline;
    color: #ff5500;
}

a {
    text-decoration: none;
    color: #185a9c;
}

a:hover {
    text-decoration: underline;
    color: #ff5500;
}

/* Hover effect styling */
.hover-container {
    position: relative;
    display: inline-block;
}

.hover-trigger {
    cursor: pointer;
}

.hover-box {
    position: absolute;
    display: none;
    width: 150px;
    height: 150px;
    z-index: 100;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    overflow: hidden;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    margin-left: 10px;
}

.hover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hover-container:hover .hover-box {
    display: block;
}

#footer {
    font-family: utopia-std-display, serif;
    font-size: 14px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    header {
        min-width: auto;
    }

    .profile-img {
        width: 150px;
    }

    main {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    body.craft-page,
    body.research-page {
        padding: 1rem;
    }

    body.craft-page header,
    body.research-page header {
        padding: 0;
        margin-bottom: 0.8rem;
    }

    .doc-frame {
        height: calc(100vh - 150px);
    }
}
