@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@500;700&display=swap');
/*ベース*/
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 32px;
}
body{
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-family: sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    font-weight: 500;
}
img,video,iframe{
    max-width: 100%;
    height: auto;
}
img{
    vertical-align: top;
}
summary {
    display: block;
    border: none;
    cursor: pointer;
    user-select: none;
}
summary::-webkit-details-marker {
    display: none;
}
/*ベースここまで*/
:root{
    /*
    --main: #6677c2;
    --bg: #f8f3fa;
    */
    /*
    --main-theme: #b3aa93;
    --sub-theme: #b5b3ac;
    --body-bg: #f1eee6;
    --text-dark-color: #7d766a;
    --text-light-color: #fcfcfa;
*/
    --main: #8f7e62;
    --bg: #f1eee6;
    --font:'Arial','ヒラギノ角ゴシック','Hiragino Sans','Menlo','メイリオ', Meiryo , sans-serif;
    --font_ttl: 'Zen Kaku Gothic New','Arial','ヒラギノ角ゴシック','Hiragino Sans','Menlo','メイリオ', Meiryo ,sans-serif;
    --border: 4px solid var(--main);
    --border_slim: 2px solid var(--main);
    --border_light: 1px solid var(--main);
    
/*
    --main: #987951;
    --bg: #ece9e6;
    */
}
body{
    font-family: var(--font);
    color: var(--main);
    font-family: var(--font);
    background-color: var(--bg);
    letter-spacing: .1em;
}
h1,h2,h3,h4,h5,h6{
    font-family: var(--font_ttl);
    font-weight: normal;
    letter-spacing: .15em;
}
a:not(.noLink){
    color: var(--main);
    cursor: pointer;
    box-sizing: content-box;
}
a:not(.noLink):hover{
    text-decoration: none;
    border: var(--border_slim);
    box-sizing: border-box;
}
a.noLink:hover{
    transform: translateY(2px);
}
.border{
    border: var(--border);
    border-top: none;
    border-bottom: none;
    position: fixed;
    width: 97%;
    max-width: 850px;
    height: 100svh;
    top: 0;
    left: 0; right: 0;
    margin: auto;
    user-select: none;
    pointer-events: none;
}
.wrap{
    color: var(--main);
    font-family: var(--font);
    margin: auto;
    padding-bottom: 40px;
    width: 97%;
    max-width: 850px;
    min-height: 100svh;

    background-color: var(--bg);
    /*
    border: var(--border);
    border-top: none;
    border-bottom: none;
    */
}
header{
    border-bottom: var(--border);
    padding: 0;
    display: grid;
    grid-template-columns: 50% 50%;
    grid-row: 2fr 1fr 1fr;
}
header>div{
    padding: 4px 0;
}
.header_h1{
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    border-bottom: var(--border_slim);
    padding: 0;
}
.header_h1 h1{
    font-size: min(2.6rem ,4.5vw);
    text-align: center;
    margin: auto;
    width: fit-content;
    padding: 8px 16px;
    border-right: var(--border_slim);
    border-left: var(--border_slim);
}
.header_item1{
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    padding-left: 16px;
}
.header_item2{
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    border-left: var(--border_slim);
    padding-left: 8px;
}
.header_item3{
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    border-bottom: var(--border_slim);
}
@media screen and (max-width: 600px) {
    header{
        border-bottom: var(--border);
        padding: 0;
        display: grid;
        grid-template-columns: 50% 50%;
        grid-row: 2fr 1fr 1fr 1fr;
    }
    .header_item1,
    .header_item2,
    .header_item3{
        grid-column: 1 / 3;
        padding: 4px 16px;
    }
    .header_item1{
        grid-row: 3 / 4;
        text-align: end;
        width: fit-content;
        border-right: var(--border_slim);
    }
    .header_item2{
        grid-row: 4 / 5;
        border-top: var(--border_slim);
        border-left: none;
        text-align: end;
    }


    
}
header nav ul{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
margin: auto;

}
header nav ul li{
    list-style: none;
}

section{
    border-bottom: var(--border);
    padding-bottom: 32px;
}
section > *{
	padding: 8px max(16px, 3vw);
}
section > :nth-child(2){
    margin-top: 16px;
}

h2{
    font-size: 2.2rem;
    padding: 4px 16px;
    margin-bottom: 8px;
    border-bottom: var(--border_slim);
    border-right: none;
    border-left: none;
}
section > h3{
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    margin-top: 12px;
}
ul{
    margin: 8px auto 12px 2em;
}
ul li>ul{
     margin: 4px auto 4px 1em;
}
em,mark{
    background-color: transparent;
    color: var(--main);
    font-weight: inherit;
    text-decoration: underline;
    text-decoration-style:double;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/*----------------------*/
.up_ul{
    height: 128px;
    padding: 12px;
    margin: 16px max(3vw,16px);
    overflow-y: scroll;
    border: var(--border_slim);
    position: relative;
    margin-top: 24px !important;
}
.up_ul ul{
    margin: 8px 12px;
}
.up_ul ul li{
    display: grid;
    grid-template-columns: 64px auto;
    list-style: none;
}
/*
.up{
    display: grid;
    grid-template-columns: 70px auto;
    height: 128px;
    padding: 12px;
    margin: 8px max(3vw,16px);
    overflow-y: scroll;
    border: var(--border_slim);
    position: relative;
}
    */

    /*
.up dt:not(:last-of-type), .up dd:not(:last-of-type){
    :D
    :)
    :3
}
*/
/*
.up dt{
    padding-left: .5em;

}
.up dd{
    padding-left: .5em;
}
.up::after{
    /*content: "";*/
    /*
    display: inline-block;
    height: 128px;
    overflow: hidden;
    width: 64px;
    border-right: var(--border_slim);
    position: absolute;
    top: 0;
    left: 0;
    background-color: #dcaaf079;

}
*/
.e_wrap{
    margin-bottom: 16px;
}
.e_wrap h3{
    border: var(--border_slim);
    width: fit-content;
    padding: 2px 16px 4px 16px;
}
.e_wrap .e_inner{
    border-left: var(--border_slim);
    padding: 12px;
    margin-left: 16px;
    padding-left: 16px;
}

.grid-e{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.grid-e img{
    object-fit: cover;
    object-position: center 20%;
    width: 120px;
    height: 120px;
    margin: 0;
    border: var(--border_light);
}
@media screen and (max-width: 584px) {
    .grid-e img{
        width: 100px;
        height: 100px;
    }
}
.e_wrap .e_inner h4{
    text-decoration: underline;
    text-decoration-style: double;
    margin-bottom: 8px;
}

.e_details{
    width: fit-content;
    /*
    background: var(--sub-theme);
    border-radius: 4px;
    */

    margin-top: 16px;
    padding: 8px 16px;
    position: relative;
}
.e_details summary{
    font-size: 1.45rem;
    text-decoration: underline;
    text-decoration-style: double;

    /*
    color: var(--text-light-color);
    */
}
.e_details[open]{
    width: fit-content;
    border: var(--border_light);
    /*margin-top: 60px;*/


}
.e_details[open] summary{
    margin-bottom: 16px;
    text-decoration: none;
    /*
    display: inline-block;
    position: absolute;
    top: -49.5px;
    left: 0;
    background: var(--sub-theme);
    padding: 16px;
    border-radius: 16px 16px 0 0;*/
}
details summary::before{
    content: "▷ "
}
details[open] summary::before{
    content: "▽ "
}