*{box-sizing: border-box;}
html{scroll-behavior: smooth;}
body{
    margin: 0;
    padding: 0;
    background: #eae7df;
    color: #353b32;
    font-family: 'Yu Mincho', '游明朝', serif;
}
#shell{
    width: 1080px;
    max-width: 100%;
    margin: 0 auto;
    background: #f8f6f0;
}
img{
    display: block;
    max-width: 100%;
}
button, input{font-family: inherit;}

/* 表紙*/
#hyousi{min-height: 0; padding: 45px 45px 60px;}
#hyousi-top{
    width: 100%;
    margin-bottom: 35px;
    border-top: 1px solid #b8b6a8;
}
#hyousi-content{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 800px;
}
#hyousi-text{width: 300px; flex-shrink: 0;}
#hyousi-text h2{
    margin: 0 0 20px;
    font-size: 25px;
    font-weight: normal;
}
#short-line{
    width: 50px;
    margin-bottom: 25px;
    border-top: 2px solid #858a6b;
}
#hyousi-text h3{
    margin: 22px 0 8px;
    color: #59664a;
    font-size: 15px;
    font-weight: normal;
    letter-spacing: 1px;
}
#character-theme, #character-description{
    margin: 0;
    color: #666b5e;
    font-size: 13px;
    line-height: 2;
}
#hyousi-information{
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #d5d0c2;
}
#hyousi-information dl {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px 8px;
    margin: 0;
    font-size: 12px;
    line-height: 1.8;
}
#hyousi-information dt {color: #77796d;}
#hyousi-information dd{
    margin: 0;
    color: #353b32;
}
#hyousi-nav{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 28px;
}
#hyousi-nav p {
    grid-column: 1 / -1;
    margin: 0 0 5px;
    color: #59664a;
    font-size: 13px;
}
#hyousi-nav a {
    display: block;
    padding: 10px 8px;
    border: 1px solid #c9c3b3;
    background: #f2f0e8;
    color: #59604f;
    font-size: 12px;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s, border-color .2s;
}
#hyousi-nav a:hover {
    border-color: #9b875c;
    background: #e9e5d9;
}
#hyousi-image{width: 650px; flex-shrink: 0;}
#hyousi-image img{
    width: 100%;
    height: 709px;
    object-fit: contain;
}

/*三面図*/
.section{
    width: 100%;
    padding: 70px 45px 80px;
    border-top: 1px solid #d6d2c6;
}
.header{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 40px;
    padding-bottom: 18px;
    border-bottom: 1px solid #b8b6a8;
}
.header h2{
    margin: 0;
    font-size: 28px;
    font-weight: normal;
    letter-spacing: 3px;
}
/*切り替え*/
.switcher input, .gallery input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
/*テクスチャボタン*/
#turnaround-switcher, #texture-switcher{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
#turnaround-switcher > label, #texture-switcher > label{
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid #c9c3b3;
    background: #f2f0e8;
    color: #59604f;
    font-size: 12px;
    letter-spacing: 1px;
    transition: .2s;
}
#turnaround-switcher > label:hover,
#texture-switcher > label:hover {border-color: #9b875c;}
:is(#view-render, #view-solid, #view-wire, #texture-body, #texture-bell):checked + label{
    border-color: #aa8950;
    background: #59664a;
    color: #fffdf6;
}
/*三面図*/
.views{
    width: 100%;
    margin-top: 25px;
    display: none;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}
#view-render:checked ~ #render-view,
#view-solid:checked ~ #solid-view,
#view-wire:checked ~ #wire-view {display: flex;}
.views .item{
    width: 33.3%;
    text-align: center;
}
.views .item img{
    width: 100%;
    height: 349px;
    object-fit: contain;
}
.views .item p {
    margin-top: 15px;
    font-size: 13px;
    letter-spacing: 2px;
}
/*concept*/
.concept{
    margin-top: 55px;
    padding: 25px 30px;
    background: #eeece3;
}
.concept h3 {
    margin-top: 0;
    font-size: 18px;
    font-weight: normal;
    letter-spacing: 2px;
}
.concept p {
    margin-bottom: 0;
    color: #62675b;
    font-size: 14px;
    line-height: 2.2;
}
/*モデリングボタン*/
#modeling-switcher{width: 100%;}
#category-buttons{
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
    padding: 3px 2px 12px;
    overflow-x: auto;
    scrollbar-width: thin;
}
#category-buttons label{
    display: block;
    flex: 0 0 calc((100% - 60px)/6);
    min-width: 0;
    padding: 0;
    border: 2px solid transparent;
    background: #e9e2d3;
    text-align: center;
    overflow: hidden;
    transition: border-color .2s;
}
#category-buttons label:hover,
#rigging-switcher > label:hover {border-color: #c4b18a;}
#category-buttons img{
    width: 100%;
    height: 120px;
    object-fit: cover;
}
#category-buttons span{
    display: block;
    padding: 10px 5px;
    color: #3d4935;
    font-size: 14px;
    letter-spacing: 2px;
}
:is(#model-face, #model-hair, #model-horn, #model-bell, #model-clothes, #model-feet):checked ~ #category-buttons label {border-color: transparent;}

#model-face:checked ~ #category-buttons label[for="model-face"],
#model-hair:checked ~ #category-buttons label[for="model-hair"],
#model-horn:checked ~ #category-buttons label[for="model-horn"],
#model-bell:checked ~ #category-buttons label[for="model-bell"],
#model-clothes:checked ~ #category-buttons label[for="model-clothes"],
#model-feet:checked ~ #category-buttons label[for="model-feet"] {
    border-color: #aa8950;
}

#modeling-panels {
    width: 100%;
    margin-top: 15px;
}

/*パネル*/
.panel{
    display: none;
    width: 100%;
    border: 1px solid #d5cbb6;
    background: #f7f4ec;
}

#model-face:checked ~ #modeling-panels #face-panel,
#model-hair:checked ~ #modeling-panels #hair-panel,
#model-horn:checked ~ #modeling-panels #horn-panel,
#model-bell:checked ~ #modeling-panels #bell-model-panel,
#model-clothes:checked ~ #modeling-panels #clothes-panel,
#model-feet:checked ~ #modeling-panels #feet-panel {display: block;}

/*詳細*/
.details > summary {
    padding: 15px 18px;
    color: #3d4935;
    font-size: 14px;
    letter-spacing: 2px;
    list-style-position: inside;
}
.details > summary:hover {color: #aa8950;}
.details[open] > summary {border-bottom: 1px solid #d5cbb6;}
/*レイアウト*/
.layout{
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(260px, .88fr);
    gap: 28px;
    align-items: start;
    padding: 22px;
}
.gallery{min-width: 0;}
.main{
    position: relative;
    height: 360px;
    padding: 14px;
    border: 1px solid #d5cbb6;
    background: #e6e0d2;
}
.main a {
    display: none;
    width: 100%;
    height: 100%;
}
.main img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/*画像切り替え*/
.gallery > input:nth-of-type(1):checked ~ .main a:nth-of-type(1),
.gallery > input:nth-of-type(2):checked ~ .main a:nth-of-type(2),
.gallery > input:nth-of-type(3):checked ~ .main a:nth-of-type(3){
    display: block;
}
/*サムネイル*/
.thumbs{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.thumbs label{
    display: block;
    height: 85px;
    padding: 4px;
    border: 2px solid transparent;
    background: transparent;
    opacity: .65;
    transition: border-color .2s, opacity .2s;
}
.thumbs label:hover{
    border-color: #c4b18a;
    opacity: 1;
}
.thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery > input:nth-of-type(1):checked ~ .thumbs label:nth-of-type(1),
.gallery > input:nth-of-type(2):checked ~ .thumbs label:nth-of-type(2),
.gallery > input:nth-of-type(3):checked ~ .thumbs label:nth-of-type(3){
    border-color: #aa8950;
    opacity: 1;
}
/*解説*/
.explanation h3 {
    margin: 0 0 17px;
    padding-bottom: 11px;
    border-bottom: 1px solid #d5cbb6;
    color: #3d4935;
    font-size: 16px;
    font-weight: normal;
    letter-spacing: 2px;
}
.explanation p {
    margin: 0 0 18px;
    color: #555747;
    font-size: 17px;
    line-height: 2.05;
}
.explanation strong{
    display: block;
    margin-bottom: 4px;
    color: #3d4935;
    font-size: 13px;
}

/*リギング*/
#rigging-switcher{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
#rigging-switcher > label {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    height: 132px;
    padding: 0;
    border: 2px solid transparent;
    background: #e9e2d3;
    text-align: center;
    overflow: hidden;
    transition: border-color .2s;
}
#rigging-switcher > label img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#rigging-switcher > label span {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 10px;
    color: #fffdf6;
    font-size: 16px;
    letter-spacing: 2px;
    text-shadow: 0 1px 4px #000;
    background: #00000035;
}
#rig-foot:checked + label,
#rig-bell:checked + label,
#rig-sleeve:checked + label {
    border-color: #aa8950;
    box-shadow: none;
}
#rigging-switcher > .panel{
    grid-column:  1 / -1;
    margin-top: 15px;
    padding: 0;
}

#rig-foot:checked ~ #foot-panel,
#rig-bell:checked ~ #rig-bell-panel,
#rig-sleeve:checked ~ #sleeve-panel {display: block;}

/*テクスチャ*/
#texture-switcher > .panel{
    width: 100%;
    margin-top: 25px;
}
#texture-body:checked ~ #body-panel,
#texture-bell:checked ~ #texture-bell-panel {display: block;}
.images{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}
.images .item {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    height: 320px;
    padding: 10px;
    border: 1px solid #d5d0c2;
    background: #eeece3;
}
.images img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.captions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.captions p {
    color: #77796d;
    font-size: 12px;
    text-align: center;
}