/* @override 
    http://127.0.0.1:8001/static/css/base.css */

@import url(//fonts.googleapis.com/css?family=Roboto:500,300,400);




/* =============================================================== */
/* COLOR 設定*/

:root {
    --main-bg-color: #25211e;
    --main-text-color: #333333;
    --highlight-color: #ff6600;
    --kitsune-color: #e1813a;
    --tab-color: #746c6c;
    --tab-color-hover: #978c8c;
    --tab-textcolor: #e0eba9;
    --tab-textcolor-hover: #f39c2b;
    --title-textcolor: #d79362;
    --body-textcolor: #c3b09c;
    --error-textcolor: #dd5555;
    --success-textcolor: #75dd55;
    --length-width-main-input: 650px;
    --length-width-textinput: 500px;
    --modal-background: #25201e;
    --button-maincolor: #bab18b;
    --button-maincolor-hover: #bac19b;
    --button-checkout: #ed91b0;
    --button-checkout-hover: #c581a4;
}






/* =============================================================== */
html {
    /*    background-color: #f7f7fc;*/
    height: 100%;
    background-color: var(--main-bg-color);
}


body {
    /*    margin:0;*/
    padding-top: 8px;
    padding-left: 16px;
    padding-right: 16px;
    font-family: 'Noto Sans CJK JP', sans-serif;
    font-weight: 400;
    color: var(--body-textcolor);
    /*    height: 100%;*/
}




a {
/*    color:#3ea6a5;*/
    text-decoration: none;
    color: #c75f88;
}

ul {
    float:left;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans CJK JP', sans-serif;
    font-weight: 300;

}

h1 {
    font-size: 2.5em;
    overflow: auto;
    padding: 20px 0 20px 110px;
    color: var(--title-textcolor);
}



.container-login-registration-dashboard h1 {
    font-size: 2.5em;
    overflow: auto;
    padding: 20px 0 20px 40px;
    color: var(--title-textcolor);
}




#page-container {

  position: relative;

}



.success-message {

    color: var(--success-textcolor);
    font-weight: bold;
    
}

.error-message {

    color: var(--error-textcolor);
    font-weight: bold;

}



.login-form tr {

    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}


.login-form td {

    min-width: 150px;

}


.login-form input {

    width: 300px;

}



.container-login-registration-dashboard {
    display: flex;
    flex-flow: column;
    justify-content: center;
    width: var(--length-width-main-input);
    margin-left: auto;
    margin-right: auto;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    padding-bottom: 1rem;
}



.cart {

    display: flex;
    flex-flow: column;
    justify-content: center;

    width: 650px;

    margin-left: auto;
    margin-right: auto;

    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;

    padding-bottom: 1rem;
}


.cart h1 {
    font-size: 2.5em;
    overflow: auto;
    padding: 0px 0 0px 40px;
    color: var(--title-textcolor);
}



.cart-order-img img {

    margin-top: 1.5rem;
    width: 360px;

}



.cart-order-info {




}


.cart-order-info select {

    margin-left: 2rem;

}


.cart-order-info .price > p {

    margin-bottom: 0px;

}


.cart-order-info .qty {

    margin-top: 12px;

}


.cart-order-info .price-all > p {

    margin-bottom: 0px;

}


.cart-order-info .btn-modify {


    background: #94b2c9;


}



.cart-order-info .btn-delete {


    background: #e7afaf;


}


.cart-order-checkout-btn .cost-all {

    padding-top: 1rem;
    font-size: 1.5rem;

}


.dashboard .cart-order-checkout-btn a {

    display: block;
    width: 360px;

    text-align: center;
    text-decoration: none;
    margin-left: auto;
    margin-right: auto;

}



.dashboard .cart-order-checkout-btn a h2 {
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-weight: 550;
    color: #ffffff;
    background-color: var(--button-checkout);
    border-radius: 15px;
}


.dashboard .cart-order-checkout-btn a h2:hover {

    text-decoration: none;
    background-color: var(--button-checkout-hover);
}




.checkout {

    display: flex;
    flex-flow: column;
    justify-content: center;

    width: 650px;

    margin-left: auto;
    margin-right: auto;

    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;

    padding-bottom: 1rem;
}



.checkout h1 {

    font-size: 2.5em;
    overflow: auto;
    padding: 0px 0 0px 40px;
    color: var(--title-textcolor);


}




.paypal-container {

    width: 43%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;

}


.paypal-container h1 {

    padding: 0px 0px 0px 0px;

}


.checkout-address .form-field input {

    width: 400px;

}



#content .story-detail {

    margin-left: auto;
    margin-right: auto;
    
    margin-bottom: 80px;
    padding-left: 150px;
    padding-right: 150px;
    padding-top: 10px;
    padding-bottom: 100px;

}



#content .story-manage p {

    margin-top: 3rem;

}




/* メインボタン、中央揃え、広い面積バージョン */
#content .story-detail form input{

    display: block;
    text-align: center;

}



#content h3 {
    color: #e18d5a;
    text-align: center;
    font-family: 'Noto Sans CJK JP', sans-serif;
    letter-spacing: 0.1rem;
    margin: 50px 30px;
}



#hamburger-menu {

    float: right;

}


.registeration,
.dashboard {

    font-family: 'Noto Sans CJK JP', sans-serif;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    padding-right: 35px;
    margin-left: 50px;
}



.dashboard button {

    border-radius: 5px;
    background: var(--button-maincolor);
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    border: none;
    padding: 10px 20px;
    margin: 20px 0;
    width: 200px;
    font-weight: 600;

}



.dashboard button:hover {
    cursor: pointer;
    background: var(--button-maincolor-hover);
}
    


.registeration form,
.dashboard form {
    display: flex;
    flex-direction: column;
}


.registeration form input,
.dashboard form input {
    width: var(--length-width-textinput);
}

.registeration .registeration_btn {

    width: 220px;

}

.dashboard a {

    margin-top: 16px;
    margin-bottom: 16px;

}



.login {

/*    display: flex;
    flex-direction: column;
    padding: 35px;*/
    max-width: 55%;
    margin-left: 50px;

}



.about {
/*    display: flex;
    flex-direction: column;
    padding: 35px;
    max-width: 40%;
    margin-left: 120px;*/


    margin-bottom: 25px;
    width: 100%;

}




#content {

    margin-bottom: 25px;
    width: 100%;
    

}



.story,
.story-edit {
    display: flex;
    flex-wrap: wrap;
    font-family: 'Noto Sans CJK JP', sans-serif;
    margin-left: auto;
    margin-right: auto;
    padding-left: 100px;
    padding-right: 100px;
    justify-content: center;
}




.story .logged_out_p {

    text-align: center;

}



.story-container {
    max-width: 320px;
    min-height: 440px;
    background-color: #352b24;
    margin-top: 20px;
    margin-bottom: 100px;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    border-radius: 10px;
}

.story-container div {


    padding-left: 20px;
    padding-right: 20px;

}

.story-container a {

    color: #6f6f6f;
    font-size: small;
    font-weight: 600;

}


.story-container .product-price {

    text-align: right;
    padding-right: 32px;
    font-weight: bold;
    margin-top: 0px;
    margin-bottom: 0px;
}



.story-container div > h3 a {

    font-size: 1em;
    color: #3ea6a5;

}



.story-edit form label {
    margin-top: 1rem;
    margin-left: 0.5rem;
}






.story-edit div form + button {

    border-radius: 5px;
    background: var(--button-maincolor);
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    border: none;
    padding: 10px 20px;
    width: 200px;
    font-weight: 600;
    margin-top: 100px;
    margin-left: 0;
}



.story-edit-form-div {

    display: block;
    padding-bottom: 25px;

}


.story-edit-form-div form {

    display: block;

}





.story-posts-all {

/*    max-width: 90%;*/

/*    height: 100vh;*/

    padding: 80px;
    margin-bottom: 50px;
}

.story-posts-all h2 {

    padding-top: 50px;

}



.story-posts-all iframe {
    width: 500px;
    max-width: 100%;
    max-height: 100%;

}




.story-detail {

    display: block;

    margin-left: 80px;

}


.story-detail h1 {

    font-size: 2.5em;
    overflow: auto;
    padding: 20px 0 20px 40px;
    color: var(--title-textcolor);


}




.story-detail-category {

    margin-left: 80px;
    font-size: 0.8em;
}


.story-detail-desc {

    margin-left: 80px;
    max-width: 80%;
    word-wrap: break-word;
    white-space: normal;
    margin-bottom: 50px;

}


.story-detail form {
    padding-top: 15px;
}


.story-detail h2 {

    margin-left: 50px;
    
}


.story-detail h5 {

    margin-left: 50px;

}


.story-detail select {

    margin-left: 50px;
    
}

.story-detail button {
    
    margin-left: 80px;
    min-width: 300px;
}


/* 登録して購読ボタン  */
.story-detail .button {

    margin-left: 50px;


}


.story-detail-img-container {

    display: block;
    width: 800px;

}



.story-detail-img-container:first-child img {

    width: 100%;

}


.story-detail-img-container img:not(:first-child) {
    display: inline-block;
    width: 264px;

}




.story-detail .product-price {
    text-align: center;
    margin-left: 300px;
    padding-left: 32px;
    font-weight: bold;
    margin-top: 0px;
    margin-bottom: 0px;

}



.story-studying {

/*    display: block;
    background-color: #f7f7fc;
    */
    min-width: 400px;
    display: inline-block;
    margin-left: 50px;
    padding: 25px;

}







.story-misc {

    font-size: 0.75rem;

}


.story-misc span {

    font-weight: 600;
    color: #a8c20a;

}

.story-misc p {

    font-weight: 600;
    color: #e080b1;

}



.story-container > a {

}


.story-container > a img {
    max-height: 240px;
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}


.story-manage {
    display: block;
    padding: 35px;
    padding-left: 100px;
    width: 500px;
    margin-left: 40px;
}





/* 商品削除関連  */
.story-delete {
    
    width: 500px;  
    font-weight: 800;
    color: var(--error-textcolor);
    display: block;
    margin-left: auto;
    margin-right: auto;

}




.story-delete form input[type=submit] {

    width: 500px;

}


/* ヘッダーとロゴ */
#header {
    background: var(--main-bg-color);
    overflow: auto;
    padding: 40px 20px;
    letter-spacing: .13rem;
    min-height: 88px;
}

#header .logo-container {
    text-align: center;
    margin-top: 6px;
    margin-bottom: 12px;
    height: 81px;
}

#header .logo {

    text-decoration:none;
    font-family:'Noto Sans CJK JP', sans-serif;
    font-weight:100;
    font-size: 36px;
    color: var(--kitsune-color);


}


#header .logo-small {

    color: #566e75;
    font-size: 12px;

}



.logo-container {

    display: flex;
    flex-direction: row;
    justify-content: space-evenly;

}   


.logo-container-layout {

    display: flex;
    flex-direction: row;
    align-items: baseline;


}

.logo-container-layout div {


}

/* ログインなしの状態のロゴー  */
.logo-container-layout > .logo {

    padding-top: 20px;

}


/* SUB TITLE の読み文字  */
    .logo-container-layout p {
        margin-top: -0.25rem;
        letter-spacing: 0.25rem;
        padding-left: 0.5rem;
        margin-left: auto;
        margin-right: auto;
    }


/* ログイン中のロゴー：　ユーザの名前 */
.logo-container h3 {

    font-weight: 800;
    margin-right: 20px;
    color: #b4aa81;
}

/* ログイン中のロゴー：　with */
.logo-container h5 {

    font-weight: 800;
    margin-right: 20px;
    color: #4ca4c6;
}






.contents {
    background: var(--main-bg-color);
    color: #db9a9a;
    display: grid;
    place-items: center;
    list-style: none;
    font-family: 'Noto Sans CJK JP', sans-serif;
}


.contents nav {


    place-items: center;

}



.contents nav img:hover {

    border-radius: 20px;
    background-color: #dd99bb;

}




.contents ul {
    display: flex; 
    align-items: center; 
    list-style:none;
    margin-left: auto;
    margin-right: auto;

}


.contents ul li {

    max-width: 150px;

    font-size: 11pt;

    font-weight: 700;
    margin: 6px 80px 6px 0;
    
    padding: 0 20px 0 0;

    overflow: hidden;
/*    cursor: move;*/

}



.contents ul li > a{

    color: #6f6f6f;

}


.contents ul li span {

    justify-items: right;
    color: #e69b9b;

}




.contents ul li.selected {
    font-weight: 700;   
    
}


/*.contents ul li a:hover {
    
    border-radius: 20px;
    background-color: #dd99bb;
}


.contents ul li span:hover {
    border-radius: 20px;
    background-color: #dd99bb;
    color: #ffffff;
}
*/



.contents ul li:hover {

    text-decoration: none;

}



.contents ul li.placeholder {

  border:1px dashed #ccc;
  padding:0;
  margin:10px 0;

}

/* ストーリーを修正 */
.story-edit a {

    color: #dc2135;
    font-weight: 800;
    margin-top: 0px;
    margin-bottom: 20px;

}

.story-edit a:hover {

    text-decoration: underline;
    
}


.story-edit a + a {

    color: #dc2135;
    font-weight: 800;
    margin-top: 0px;
    margin-bottom: 20px;
    margin-left: 2rem;
}

.story-edit a + a:hover {

    text-decoration: underline;
    
}



ul.content-types {

    margin: 0;
    padding: 0;

}


ul.content-types li {

    list-style: none;
    float: left;
    margin-bottom: 20px;
    background: #efefef;
    padding: 8px 14px;
    margin: 5px;
}


.hidden {
    display:none;
}


.errorlist {
    color:#ae2c2c;
    margin:0;
}

label {
    float:left;
    clear:both;
    margin:8px 0 8px 0;
}

input, select, textarea {
    border: 1px solid #ccc;
    border-bottom: 3px solid #ccc;
    padding: 5px 12px;
    font-size: 16px;
    font-family: 'Noto Sans CJK JP', sans-serif;
    width: 80px;
    clear: both;
}

textarea {
    height:80px;
}

select {

    width: 240px;
    margin-right: 1.4rem;

}

input[type=submit], a.button, button {
    border-radius: 5px;
    background: var(--button-maincolor);
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    border: none;
    padding: 10px 20px;
    margin: 20px 0;
    width: 180px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;

}

input[type=submit]:hover, a.button:hover, button:hover {
    background: var(--button-maincolor-hover);
    text-decoration: none; /* Hover時に下線を消す */

}


input[readonly] {
    border: 0;
    outline: 0;
    background-color: #f0f0f0; /* グレー背景 */
    color: #6f6f6f; /* 薄めの文字色 */
}




.btn-add-to-cart {
    width: 100%;
    
    margin-left: auto;
    margin-right: auto;
}




#id_password2 {

    margin-bottom: 3rem;

}



a.secondary-button {
    border:3px solid #aa6889;
    padding:10px 20px;
    margin:10px 0;
}



ul#product-stories {
    list-style:none;
    overflow:auto;
}

ul#product-stories textarea {
    width:600px;
    height:120px;
}

ul#product-stories li {
    padding:20px;
    overflow:auto;
    cursor:move;
    user-select:none;
}

ul#product-stories li:nth-child(even) {
    background:#efefef;
}

ul#product-stories li:hover {
    background:#ccc;
}


.create-content {

    height: 7vh;

}



.story-edit h2 {

    padding-left: 80px;
    padding-right: 80px;
    width: 100%;


}

.story-edit h3 {

    margin-top: 2rem;
    width: 100%;

}


#story-contents div {
    padding:10px 20px;
    border:1px solid #ccc;
    margin-bottom: 5px;
}


#story-contents div.placeholder {
  border:1px dashed #ccc;
}

#story-contents form {
    margin:0;
    padding:0;
}



#story-edit-form input[type=checkbox] {

    width: 30px;
    float: left;
    margin: 0;
    padding: 0;
    margin-bottom: 3rem;
}




/* ポストの修正ボタン  */
#story-contents a {

    color: #dc2135;

}


#story-contents form, a:hover {

    text-decoration: underline;

}




/* ポストの修正ボタン  */
#story-contents a + a {

    color: #ff0000;
        background:none;
    margin: 0;
    padding:0;
    text-transform:none;
    font-weight: 800;
    border: none;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    margin-left: 2rem;
    font-size: 1rem;
}


#story-contents form, a + a:hover {

    text-decoration: underline;

}






#story-contents div:hover {
    cursor:move;
}


#story-contents div p {

    margin-bottom: 1rem;
    overflow: auto;
}



.product-info {

    border: 1px solid #ccc;
    padding: 20px;
    margin-bottom: 20px;
    overflow: auto;

}


.product-info-title {
    font-size: 1.5rem;
    text-align: left;
}



.product-info a:hover {

    text-decoration: underline;

}


.product-info .product-info-delete {

    color:#ff0000;

}


.story-edit form p select {

    width: 475px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}


.story-edit form {


}


.story_edit_btn {
    width: 500px;
    display: block;
    overflow: auto;
    margin-left: auto;
    margin-right: auto;

}


.story-edit form input {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: var(--length-width-main-input);
}


    .story-edit form input[type=submit] {
        width: var(--length-width-main-input);
        display: block;
        margin-top: 2rem;
        margin-left: auto;
        margin-right: auto;
    }



.story-edit form textarea {
    display: block;
    width: var(--length-width-main-input);
    min-height: 250px;
    margin-left: auto;
    margin-right: auto;
}



.story-edit-form-container {
    height: 100vh;
    overflow: auto;
    flex: 1; /* 残りの幅を全部使う */
}


.story-edit-form-container form p select {
    margin-left: unset;
    margin-right: unset;
}


.story-edit-form-container form p input {
    margin-left: unset;
    margin-right: unset;
}


.story-edit-form-container form p textarea {
    margin-left: unset;
    margin-right: unset;
}


.story-edit-form-container form .module_edit_btn input[type=submit] {
    margin-left: unset;
    margin-right: unset;
}



#header a {
    font-size: medium;
    color: var(--tab-textcolor);
    font-weight: 600;
    text-decoration: none;
}


    #header a:hover {
        color: var(--tab-textcolor-hover);
        /*    background-color: var(--tab-color-hover);*/
    }


#header .menu {
    display: flex;
    list-style: none;
    float: right;
    margin: 0;
    padding: 0;
}


#header .menu li {
    margin-right: 10px;
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 5px;
    padding-bottom: 5px;
    /*    background-color: var(--tab-color);*/
    font-size: medium;
    color: var(--tab-textcolor);
    /*    font-weight: 600;*/
    /*    border-radius: 15px;*/
    border-bottom-left-radius: 10px 10px;
    border-bottom-right-radius: 10px 10px;
}

#header .menu form {
    margin-top: unset;
    padding-top: 5px;
}

    #header .menu button {
        width: unset;
        
        margin: unset;
        padding: unset;

        padding-left: 10px;
        padding-right: 10px;

        margin-left: 0;
        margin-right: 0;

        background-color: unset;
        font-size: medium;
        color: var(--tab-textcolor);
        font-weight: 600;
        border: none;
        letter-spacing: 0.12rem;
        text-transform: unset;
    }

#header .menu button:hover {
    cursor: pointer;
    color: var(--tab-textcolor-hover);
}



.helptext {
    color:#ccc;
    padding-left:20px;
}

#chat {
    top: 64px;
    bottom:0;
    position:fixed;
    width:100%;
    overflow-y:scroll;
    padding-bottom:150px;
}

#chat .message {
    background:#efefef;
    padding:10px 20px;
    border-radius:4px;
    width:auto;
    display:inline;
    float:left;
    margin:10px 10px 0;
    min-width:440px;
    clear:both;
}

#chat .message.me {
    display:inline;
    float:right;
    background:#DCEDE0;
    color:#56A668;
}

#chat .date {
    color:#aaa;
    font-style:italic;
    font-size:12px;
}

#chat-input {
    position:absolute;
    bottom:0;
    background:#efefef;
    width:100%;
    padding-top:20px;
}

#chat-input input {
    width:96%;
    position:left;
    float:left;
    display:inline;
    margin-left:2%;
    margin-right:2%;
    padding-left:0;
    padding-right:0;
}


#hamburger-input {
    /*  display: inline-block;*/
    display: none;
}


#product-menu-checkbox {
    display: none;
}



.story-posts-all img {

    max-width: 100%;
    max-height: 100%;

}




.product_list_title {

    display: none;


}




.track-order-items {

    display: inline-block;


}



.track-order-items ul {
    
    min-width: 300px;    
    list-style: none;
    border-left: 1.5mm solid #aaaaaa;
    padding-left: 1rem;
}


.track-order-items ul li{


}


.registeration form input,
.dashboard .form-pdf-generate input {

    width: 300px;


}





/*モーダルを開くボタン*/
.modal-open{
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 50px;
  font-weight: bold;
  color: #fff;
  background: #000;
  margin: auto;
  cursor: pointer;
  transform: translate(-50%,-50%);
}




/*モーダル本体の指定 + モーダル外側の背景の指定*/
.modal-container{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background: rgba(0,0,0,50%);
  padding: 40px 20px;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  box-sizing: border-box;


}

/*モーダル本体の擬似要素の指定*/
.modal-container:before{
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}


/*モーダル本体に「active」クラス付与した時のスタイル*/
.modal-container.active{
  opacity: 1;
  visibility: visible;
}


/*モーダル枠の指定*/
.modal-body {
    position: relative;
    display: inline-block;
    horizontal-align: middle;
    max-width: 300px;
    width: 90%;

}


/*モーダルを閉じるボタンの指定*/
.modal-close{

  color: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.25rem;
  background-color: var(--button-maincolor);
  padding: 12px;
  width: 80px;
  border-radius: 15px;
  margin-left: auto;
  margin-right: auto;
}

.modal-close:hover {
    background-color: var(--button-maincolor-hover);

}


/*モーダル内のコンテンツの指定*/
.modal-content{
    background: var(--modal-background);
    text-align: center;
    padding: 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.25rem;
}




/* ------------------------------------ */


/*モーダル本体の指定 + モーダル外側の背景の指定*/
.modal-container-wait{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background: rgba(0,0,0,50%);
  padding: 40px 20px;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  box-sizing: border-box;


}

/*モーダル本体の擬似要素の指定*/
.modal-container-wait:before{
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}


/*モーダル本体に「active」クラス付与した時のスタイル*/
.modal-container-wait.active{
  opacity: 1;
  visibility: visible;
}


/*モーダル枠の指定*/
.modal-body-wait {
    position: relative;
    display: inline-block;
    horizontal-align: middle;
    max-width: 300px;
    width: 90%;

}


/*モーダルを閉じるボタンの指定*/
.modal-close-wait{

  color: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.25rem;
  background-color: #d1769d;
  padding: 12px;
  width: 80px;
  border-radius: 15px;
  margin-left: auto;
  margin-right: auto;
}


/*モーダル内のコンテンツの指定*/
.modal-content-wait{
    background: #fff;
    text-align: center;
    padding: 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.25rem;
}




.sold-out {
    margin-top: 50px;
    text-align: center;
    font-size: small;
    color: #ac4f4f;
}



.noti-remain {
    margin-top: 15px;
    text-align: center;
    font-size: small;
    color: #497cad;
    text-align: center;
    font-size: small;

}

.noti-remain-detail {
    margin-top: 25px;
    text-align: center;
    font-size: small;
    color: #497cad;
    text-align: left;
    font-size: small;

}





/* About ページ */


/* 全体コンテナ：2カラムのグリッド */
.about-contents {
    max-width: 960px;
    margin: auto auto;
    padding: 0 16px;    

}

.about-row {
    display: grid;
    gap: 32px;
    margin-bottom: 32px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

/* 段ごとの比率 */
.about-row-1 {
    grid-template-columns: 1fr 1fr; /* 左大きめ */
    margin-bottom: 80px;
}

.about-row-2 {
    grid-template-columns: 1fr 1fr; /* 右大きめ */
    margin-bottom: 80px;
}

.about-row-3 {
    grid-template-columns: 1fr 1fr; /* 半々 */
    margin-bottom: 80px;
}

/* 共通カード */
.about-card {
    border-radius: 4px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.about-card--image {
    background: #222;
    margin-top: 5px;
}

.about-card--text {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5px;
    width: 95%;
    height: 100%;
    flex-direction: column;
    margin-bottom: 50px;
}

.about-card--text .title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}










/* Hero ページ */


/* 全体コンテナ：2カラムのグリッド */
.hero-contents {

}

.hero-row {
    display: grid;
    gap: 32px;
    margin-bottom: 32px;
    width: 860px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;  /* グリッド全体を中央寄せ */
}

/* 段ごとの比率 */
.hero-row-1 {
    /*    grid-template-columns: 1.67fr 1fr;*/
    grid-template-columns: 300px 300px;
    /*    margin-bottom: 80px;*/
}

.hero-row-2 {
/*    grid-template-columns: 1fr 1.67fr;*/
    grid-template-columns: 300px 300px;
/*    margin-bottom: 80px;*/
}

.hero-row-3 {
/*    grid-template-columns: 1.67fr 1fr;*/
    grid-template-columns: 300px 300px;
/*    margin-bottom: 80px;*/
}

/* 共通カード */
.hero-card {
    border-radius: 4px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.hero-card--image {
    background: #222;
    margin-top: 5px;
}

.hero-card--text {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5px;
    width: 95%;
    height: 100%;
    flex-direction: column;
    margin-bottom: 50px;
}

.hero-card--text .title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 100;



}



/* --------------------------------------------------------------- */


.download-here {

    text-align: center;
    width: 100%;
}

.download-here h1 {

    text-align: center;
    padding: unset;
    cursor: pointer;
}


.download-here h1:hover {

    color: var(--button-checkout);
    cursor: pointer;

}

/* --------------------------------------------------------------- */


.sprite-hero-container {

    margin-top: 10px;
    margin-bottom: 40px;
    margin-left: 100px;

}


.sprite-hero {

    margin-right: 10px;


}





.sprite-purchase-container {


    text-align: center;

}




.sprite-purchase {


/*    cursor: pointer;*/

}









/* ---------------------------------------------------------- */


.loading { color:#666; text-align:center; padding:12px; }


/* スピナー */
.spinner {
    display:inline-block; width:18px; height:18px;
    border:2px solid #ccc; border-top-color:#333;
    border-radius:50%; animation:spin 0.8s linear infinite; vertical-align:middle;
    margin-right:6px;
}
@keyframes spin { to { transform: rotate(360deg); } }



/* スケルトン（読み込み中のダミー） */
.skeleton { position:relative; overflow:hidden; background: var(--main-bg-color); border-radius:8px; }


.skeleton::after {
    content:""; position:absolute; inset:0;
    transform:translateX(-100%);
    background:linear-gradient(90deg, transparent, var(--main-bg-color), transparent);
    animation:shimmer 1.2s infinite;
}

@keyframes shimmer { 100% { transform:translateX(100%); } }


/* 親の背景色をカードと合わせておく（白チラ軽減） */
#list, .lazy-slot { background-color: transparent; }

/* slot は高さの“枠”役。余計なズレ防止 */
.lazy-slot { position: relative; }

/* skeleton の見た目 */
.sk-card.skeleton {
    background: var(--main-bg-color);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
    /* 高さの目安を持たせるとより安定 */
    min-height: 120px;
}

.sk-title, .sk-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--kitsune-color), var(--main-bg-color), var(--main-bg-color));
    animation: sk 1.1s infinite linear;
    margin: 10px 0;
}


.sk-title { width: 40%; height: 16px; }

@keyframes sk { 
0% { background-position: 0 0; } 
100% { background-position: 200% 0; } 
}

/* フェード対象 */
.lazy-content { will-change: opacity; }

.lazy-slot { position: relative; }
.sk-card.skeleton {
    background: var(--main-bg-color);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
    /* 中身より少し大きめに。カード高さがまちまちなら 180〜280px など */
    min-height: 200px;
}
.lazy-content { will-change: opacity; }




.purchase-noti {

    text-align: center;

}





/* PAYPAL 決済関連 */

.confirm-modal {


    background: #49352c;


}


#do-capture {

    background: #f56c5e;


}



#do-capture :hover {

    background: #f18d83;


}


.download-form div input {
    width: 350px;
}


.download-form-btn {
    width: 350px;
}



#download_panel_before p strong {

    color: #f7f790;

}



#download_panel .download-form-h3 {

    text-align: unset;
    margin: unset;

}



.download-form-noti {

    padding-left: 23px;

}



.download-form-noti strong {

    color: #f7f790;

}




.hero-image img {

    width: 80%;
    display: block;
    text-align: center;
    text-decoration: none;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 80px;
    cursor: zoom-in;
    box-shadow: 6px 6px 12px -6px rgba(0, 0, 0, 0.25),   /* 近い影（エッジ） */
                20px 20px 40px -10px rgba(0, 0, 0, 0.30);/* 遠い影（環境） */
}



/* ===== Modal base ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;              /* 初期は非表示 */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.85);
  z-index: 9999;
  padding: 24px;              /* 端の余白 */
  cursor: zoom-out;           /* クリックで閉じる感じを出す */
}

.modal-overlay.is-open {
  display: flex;
  animation: modalFade .15s ease-out;
}

.modal-image {
  max-width: min(96vw, 1600px);
  max-height: 90vh;
  width: auto;
  height: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  border-radius: 10px;
  cursor: zoom-out;
  user-select: none;
}

/* ふわっと表示 */
@keyframes modalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}



/* モーダル内で画像をパンできるように */
.modal-overlay { overflow: hidden; }
.modal-image {
  touch-action: none; /* 自前でピンチ処理をするため */
  will-change: transform;
  transform-origin: center center;
}




/* =============================================================== */





.footer-detail-desc {

    margin-left: 80px;
    max-width: 80%;
    word-wrap: break-word;
    white-space: normal;
    margin-bottom: 50px;

}




#content .footer-detail-desc h3 {

    margin: 50px 0px;
    text-align: left;

}






/* ===== Footer (Legals / Networks) ===== */
.site-footer {
  background: #2d2724;
  color: #c98a5e;
  margin-top: 48px;
  padding: 28px 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-left: auto;
  margin-right: auto;

}

.site-footer a { color: #c98a5e; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* 画面の“左右いっぱい”を使って2カラム（赤の要望）*/
.footer-grid {
  width: 100%;
  max-width: min(1200px, 92vw); /* 960pxだと右が余るので拡張 */
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr; /* 左=Legals / 右=Networks（青の見出し位置も安定） */
  gap: 24px 64px;
  align-items: start;
}

.footer-group { 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
}

.footer-heading {
  margin: 0 0 4px 0;
  font-size: 0.95rem;
  letter-spacing: .08rem;
  color: #f0e3db;
  font-weight: 700;
  text-transform: uppercase;
}

/* 各グループ内の項目を2列（青の要望）*/
.site-footer .footer-list { 
  list-style: none;
  margin: 0; 
  padding: 0; 
  display: grid; 
  grid-template-columns: repeat(2, minmax(0, auto));
  column-gap: 28px;
  row-gap: 8px;
}








/* コピー部分は中央（黒の要望） */
.footer-bottom {
  width: 100%;
  max-width: min(1200px, 92vw);
  margin: 18px auto 0;
  border-top: 1px dashed rgba(255,255,255,.15);
}



.footer-bottom p {
  margin: 12px 0 0 0;
  text-align: center;
  color: #cbbfb7;
  font-weight: 600;
}





























@media (max-width: 64rem) {

    body {


    }



    /* ==== グリッド：2カラム → 1カラム ==== */
    .about-row,
    .about-row-1,
    .about-row-2,
    .about-row-3 {
      grid-template-columns: 1fr !important;
      gap: 20px;
      margin-bottom: 32px;
    }
    
    .hero-contents { width: 100%; }
    .hero-row,
    .hero-row-1,
    .hero-row-2,
    .hero-row-3 {
      grid-template-columns: 1fr !important;
      gap: 20px;
      width: 100% !important;      /* 860pxの固定幅を解除 */
      margin: 0 auto 24px !important;

    }



    /* hero-row系を1カラムにしつつ、画像→テキストの順に入れ替え */
    .hero-row,
    .hero-row-1,
    .hero-row-2,
    .hero-row-3{
      display: grid;                     /* 既存がGrid想定 */
      grid-template-columns: 1fr;
      grid-template-areas:
        "image"
        "text";                          /* ← 並びを指定（上：image、下：text） */
    }

    /* 子要素をエリアに割り当て */
    .hero-row .hero-card--image{ grid-area: image; }
    .hero-row .hero-card--text { grid-area: text;  }

    /* 他のrowバリエーションも同様に効かせる */
    .hero-row-1 .hero-card--image,
    .hero-row-2 .hero-card--image,
    .hero-row-3 .hero-card--image{ grid-area: image; background: var(--main-bg-color); }

    .hero-row-1 .hero-card--text,
    .hero-row-2 .hero-card--text,
    .hero-row-3 .hero-card--text{ grid-area: text; }


    /* ==== Heroテキスト中央寄せ ==== */
    .hero-row-1 .hero-card--text,
    .hero-row-2 .hero-card--text,
    .hero-row-3 .hero-card--text {
      grid-area: text;
      text-align: center;          /* テキスト中央寄せ */
      display: flex;               /* 要素全体を中央に配置 */
      flex-direction: column;      /* 縦方向に積む */
      align-items: center;         /* 水平方向中央 */
      justify-content: center;     /* 垂直方向中央（高さがある場合） */
      padding: 0 1rem;
      margin: 0 auto;
    }

    /* タイトルや説明文の調整 */
    .hero-card--text .title {
      text-align: center;
      margin-bottom: 0.5rem;
    }

    .hero-card--text .desc p {
      text-align: center;
      margin: 0.25rem 0;
    }

    /* カード内のテキスト/画像ブロック */
    .about-card,
    .hero-card { aspect-ratio: auto; }
    .about-card--text,
    .hero-card--text { width: 100%; margin-bottom: 12px; }
    
    /* 画像/キャンバスを横幅いっぱいに */
    .about-card img,
    .hero-card canvas,
    .sprite-hero,
    .sprite-purchase {
      width: 50% !important;
      height: auto !important;
      margin-left: auto; margin-right: auto;
    }
    
    /* ==== ヘッダー/タイトル周り（中央寄せ） ==== */
    #header{
      padding: 20px 12px;
      display: flex;                 /* 中央寄せ用 */
      justify-content: center;       /* 水平中央 */
      align-items: center;           /* 垂直中央 */
      text-align: center;            /* テキストも中央 */
    }

    #header .logo-container{
      height: auto;
      margin: 0 auto;                /* ブロック自体を中央へ */
      display: flex;
      flex-direction: column;        /* ロゴ+テキストを縦積み */
      align-items: center;           /* 要素中央 */
      justify-content: center;       /* 要素中央 */
      gap: .25rem;
      width: 100%;
    }

    .logo-container{                  /* 念のため単体指定も中央化 */
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    .logo-container-layout{
      text-align: center;            /* 複合要素のテキスト中央 */
    }

    .logo-container-layout p{
      letter-spacing: .12rem;
      margin: .25rem 0 0 0;
      text-align: center;
    }
    
    h1 {
      padding: 16px 0 !important; /* 左110pxの余白を解除 */
      text-align: center;
    }
    
    /* ==== 横並びナビの折返し ==== */
    ul { float: none; }
    .contents ul {
      flex-wrap: wrap;
      gap: 8px 16px;
      margin-left: auto;
      margin-right: auto;
    }
    .contents ul li {
      margin: 6px 12px;
      padding: 0;
      max-width: none;
    }
    
    /* ==== 固定幅コンテナを可変に ==== */
    .container-login-registration-dashboard,
    .checkout,
    .cart {
      width: 100% !important;
      max-width: 92vw;
/*      padding: 0 1rem;*/
      margin-left: auto;
      margin-right: auto;
    }
    .paypal-container { width: 100%; }
    
    .registeration,
    .dashboard,
    .login,
    .about {
      margin-left: 0 !important;
      padding-right: 0 !important;
      max-width: 100%;
    }
    
    /* ==== 詳細ページの左右余白を縮小 ==== */
    #content .story-detail {
      margin-left: auto !important;
      margin-right: auto !important;
      padding-left: 16px !important;
      padding-right: 16px !important;
    }
    .story-detail h2,
    .story-detail h5,
    .story-detail select,
    .story-detail button,
    .story-detail .button {
      margin-left: 0 !important;
    }
    .story-detail-img-container { width: 100% !important; }
    .story-detail-desc {
      margin-left: 0 !important;
      max-width: 100% !important;
      margin-bottom: 32px;
    }
    .story-detail .product-price {
      margin-left: 0 !important;
      padding-left: 0 !important;
    }
    
    /* ==== リスト/カード類の左右パディング縮小 ==== */
    .story,
    .story-edit {
      padding-left: 16px !important;
      padding-right: 16px !important;
    }
    .story-container { max-width: 100%; }
    
    /* ==== 最小幅指定の解除（はみ出し防止） ==== */
    .story-studying {
      min-width: 0 !important;
      margin-left: 0 !important;
      padding: 16px !important;
    }
    
    /* ==== 入力の固定幅をフル幅に ==== */
    input, select, textarea { width: 100% !important; max-width: 100%; }
    .registeration form input,
    .dashboard form input,
    .checkout-address .form-field input,
    .download-form div input,
    .download-form-btn,
    .story-edit form input,
    .story-edit form textarea,
    .story_edit_btn,
    .story-delete,
    .story-delete form input[type=submit] {
      width: 86% !important;
    }
    




    /* ==== 細かいマージンの調整 ==== */
    .sprite-hero-container { margin-left: 0 !important; }
    .track-order-items ul { min-width: 0 !important; }



    /* 画像・動画・キャンバスが画面幅を超えない */
    img, video, canvas, svg {
      max-width: 100% !important;
      height: auto !important;
      display: block;
    }

    /* よく使うコンテンツ領域では強制的にフル幅スケール */
    .about img,
    .hero img,
    .story img,
    .story-detail img,
    .story-detail .story-detail-img-container img,
    .product img,
    .card img,
    .article img {
      width: 100% !important;
    }

    /* 画像ラッパーやカードに固定幅がある場合の無効化 */
    .img-wrap,
    .story-detail-img-container,
    .product-image,
    .hero-card,
    .about-card {
      width: 100% !important;
      max-width: 100% !important;
    }

    /* 長いURL/コードで横スクロールが出るのを抑止 */
    .contents,
    .story,
    .story-detail,
    .article {
      overflow-wrap: anywhere;
      word-break: break-word;
    }
    pre, code, .code-block {
      white-space: pre-wrap;
      word-break: break-word;
      overflow: auto;  /* 行が長い時のみスクロール */
    }

    /* （最終手段：どうしても横スクロールが消えない場合のみ）
    html, body { overflow-x: hidden; }
    */

    /* ===== about-row を 1カラム & 並び順 指定 ===== */
    .about-row,
    .about-row-2,
    .about-row-3{
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "text";
        gap: 20px;
    }

    /* about-row-2 は HTMLで text → image になっているので、CSSで入れ替え */
    .about-row-2 .card--image{ grid-area: image; }
    .about-row-2 .about-card--text{ grid-area: text; }

    /* about-row-3 は image → text だが、明示しておく */
    .about-row-3 .about-card--image{ grid-area: image; }
    .about-row-3 .about-card--text { grid-area: text; }

    /* 画像がはみ出さないように（保険） */
    .about-row img{
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }

    /* 固定幅・左余白がある場合のリセット（任意） */
    .about-row .about-card,
    .about-row .card{
        width: 100% !important;
        margin: 0 !important;
    }

    .dashboard .cart-order-checkout-btn { 
        text-align: center; 
    }
    .dashboard .cart-order-checkout-btn a h2 {
        display: inline-block;    /* 改行後に中央寄せ */
        width: 80%;
        margin-top: 12px;         /* 1行分の余白 */
    }



    .dashboard .cart-order-checkout-btn a {


        width: unset;

    }


    .purchase-noti--yellow { color:#ffeb3b; }


    .hero-image img {

        width: 100%;
        display: block;
        text-align: center;
        text-decoration: none;
        margin-left: auto;
        margin-right: auto;
        margin-top: 20px;
        margin-bottom: 30px;
    }



    .footer-grid { grid-template-columns: 1fr; gap: 16px 0; }
    .site-footer .footer-list { grid-template-columns: 1fr; }

}




















