/* @override 
    http://127.0.0.1:8000/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);
}




/* FOOTER の設定: Footer を含む、Page Containerの中にFooterを置くことが重要！！  */
/* https://www.freecodecamp.org/news/how-to-keep-your-footer-where-it-belongs-59c6aa05c59c/  */
#page-container {

  position: relative;
/*  min-height: 100vh;*/


}


/* FOOTER の設定: Footer を含む、Page Containerの中にFooterを置くことが重要！！  */
/* https://www.freecodecamp.org/news/how-to-keep-your-footer-where-it-belongs-59c6aa05c59c/  */
footer {

    margin-top: auto; /* 常に下へ押し下げる */
}


footer p {

    font-weight: 600;
    text-align: center;
    color: #6f6f6f;
    padding-top: 1rem;
    padding-bottom: 2rem;

}


.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;

}


.footer-container {

    height: 100px;
    background-color: #b88ea3;
}


.footer-contents {

    display: flex;
    font-size: 0.9em;
    margin: 0 auto;
    padding-top: 25px;
    padding-bottom: 15px;
}


    .footer-contents p {
        color: #ffffff;
        font-family: 'Noto Sans CJK JP', sans-serif;
        font-weight: 800;
        letter-spacing: 0.5px;
        margin: 0 auto;
    }


.footer-title {
    display: flex;
    flex-direction: row;


}


    .footer-title p {
        margin: 0 auto;
        color: #ffffff;
        font-family: 'Noto Sans CJK JP', sans-serif;
        font-weight: 800;
        font-size: 0.9em;
        letter-spacing: 1px;
    }

#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: 60px;
    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: #d1769d;
  padding: 12px;
  width: 80px;
  border-radius: 15px;
  margin-left: auto;
  margin-right: auto;
}


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



/*モーダル本体の指定 + モーダル外側の背景の指定*/
.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;

}















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


































/* RESPONSIVE 設定 */
/* @media (max-width: 56rem) { */
@media (max-width: 62rem) {



    body {
        padding: 20px;
        /*        padding-top: 8px;*/
        margin-left: auto;
        margin-right: auto;
        font-family: 'Noto Sans CJK JP', sans-serif;
        font-weight: 400;
        color: #333;
        height: 100%;
    }





    /* ------------------ */
    /* 他の商品の一覧ボタン */
    #product-menu-text {
        color: #ffa5bb;
        height: 42px;
        font-weight: 800;
        font-size: 1.25rem;
        margin: 0;
        position: absolute;
        top: 25%x;
        right: 10%;
        padding-top: 12px;
/*        transition: 0.2s;*/
        overflow: scroll;
        text-shadow: 2px 2px 2px #c2f2b7;
        z-index: 0;
        display: none;
    }





    .product_list_title {

        display: block;


    }


    #product-menu-checkbox:checked + #product-menu-btn #product-menu-text {
        height: 0px;
        padding-top: 0px;
        background-color: #ebfad9;
        z-index: -1;

    }



    /* ---------------------------- */
    /* 商品一覧メニューのボタンのLabel */
    #product-menu-btn {

        width: 80%;
/*        height: 100%;*/
        border: none;
        padding: 0px;
        margin: 0px;
/*        background-color: #e1dcdf;*/

    }

    /* 商品一覧メニューの下地 */
    #product-menu-btn #product-menu-base {

        overflow: hidden;
        margin: 0px;

        border-radius: 25px;
        background-color: #eaedd8;


    }


/*    #product-menu-checkbox:checked + #product-menu-btn #product-menu-base {

        max-height: 250px;
        background-color: #faf0fc;
        overflow: scroll;

    }*/



    /* -------------------------------------------------------------- */
    /* 下は Hamberger Menu */
    /* https://alvarotrigo.com/blog/hamburger-menu-css-responsive/ */


    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        visibility: hidden;
        transition: opacity .35s, visibility .35s, height .35s;
        overflow: hidden;
        background: black;
        z-index: 1;
    }

    /* ハンバーガーメニュボタン */
    #hamburger-menu {
        position: fixed;
        top: 40px;
        left: 40px;
        width: 40px;
        height: 36px;
        display: none;
        border: none;
        padding: 0px;
        margin: 0px;
        background: linear-gradient(
          to bottom, 
          #b4aa81, #b4aa81 20%, 
          rgba(255,255,255,0.0) 20%, rgba(255,255,255,0.0) 40%, 
          #b4aa81 40%, #b4aa81 60%, 
          rgba(255,255,255,0.0) 60%, rgba(255,255,255,0.0) 80%, 
          #b4aa81 80%, #b4aa81 100%
        );
    }

    /* ハンバーガーメニュ本体、下地 */
    #hamburger-menu #sidebar-menu {

        visibilty: hidden;
        position: fixed;
        top: 0;
        /* 画面の外に置く */
        left: -250px;
        width: 180px;
        height: 30em;
        background-color: #3ea6a5;
        /* ここでトランジションアニメーション設定 */
        transition: 0.3s;
        padding: 0px 10px;
        box-sizing: border-box;
        border-radius: 25px;
    }

    #hamburger-menu h3 {
      color: #B9FAF8;
      font-size: 2.2rem;
    }

    #hamburger-menu ul {
      padding-left: 0px;
    }

    #hamburger-menu .menu-item {

        margin-bottom: 1.25rem;

    }

    #hamburger-menu li {
      list-style-type: none;
      line-height: 1.5rem;
    }

    #hamburger-menu a {

      color: #6f6f6f;
      font-size: 0.85rem;
      font-weight: 700;
      text-decoration: none;

    }

    #hamburger-menu a:hover {
      text-decoration: underline;
    }

    /*  ------------------  */
    /*  Siblingセレクタ */
    /*  左の条件に当たる要素と、
        その次に続く要素の中で、
        １つの要素に対して、
        同じ階層でありながら、
        右の条件に当たる要素。
        に、この条件は適用される
    */
    /*  つまり、下のセレクタは、
        条件１：CSS擬似クラスのcheckedが#hamburger-inputがチェックされた
        条件２：１番の要素からSiblingである要素で、つまり１つに対して、
        条件３：#hamburger-menuの下層に#sidebar-menuある要素に
        適用される。
        → 結果、ハンバーガメニュー用ボタンがInput要素で定義されていて、
          それが選択されたら、また、ボタンの下層にある下地があった場合、
          それのVisibilityをONにし、左がらの位置を0にする。
          また、#hamburger-inputはチェックボックスなので、
          もう一度クリックされればチェックが外れる。
          よって、そのときは、このセレクタは解除される。
    */
    #hamburger-input:checked + #hamburger-menu #sidebar-menu {

        visibility: visible;
        left: 0;

    }


    /*  ------------------  */
    /*  Tilt セレクタ  */
    /*  左の条件に当たる要素と、
        その次に続く要素の中で、
        複数の要素に対して、
        同じ階層でありながら、
        右の条件に当たる要素。
        に、この条件は適用される。
    */
    #hamburger-input:checked ~ .overlay{

        visibility: visible;
        opacity: 0.4;

    }



    /* ---------------------------------- */
    /* 下は画面レスポンシブ */



    #header {

        width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin: 0;

    }


    #stories {

        display: block;
        text-align: left;
        
/*        width: 80%;*/
        float: right;

        padding-left: 0;
        padding-right: 0;
        border-radius: 25px;

    }


    #stories li {

        padding-top: 10px;
        padding: 1rem;
        width: 100%;

    }



    #content {

        text-align: center;
        padding: 0;
      

    }


    #content h1 {

        text-align: center;
        padding: 2rem;
        font-size: 1.5rem;
    }


    #content h3 {
        padding: 0.75rem;
        color: #3ea6a5;
        margin-bottom: 0;
    }


    #header .menu {

        display: block;
        text-align: left;
        margin-left: auto;
        margin-right: auto;
        margin-top: 3rem;
        padding-left: 0;
        padding-right: 0;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;


        float: left;
    }



    .contents {
        width: 100%;
/*        margin-top: 24px;*/
/*        box-shadow: 0px 3px #d5e7c7;*/


/*        display: flex;
        flex-direction: column;
        
        padding-left: 0;
        padding-right: 0;
        margin: 0;
        height: 160px;
        overflow-y: auto;*/
        

    }





    .contents ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        align-items: left;
    }
    





    .contents ul li {
        font-size: 14pt;
        font-weight: 700;
        margin: 6px 80px 6px 0;
        padding: 0 20px 0 0;
        overflow: hidden;
        max-width: 87%;
    }


    .contents ul li {

        margin-top: 0.55rem;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0.55rem;

        padding: 0;
    }




/*    #content ~ footer {


        display: none;

    }*/



    .contents nav .pagination {

        display: flex;
        flex-direction: row;
        margin: auto;
        width: 70%;
/*        padding: 1rem;*/

        
    }   


    .contents nav .pagination .page-item{


        

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

        padding: 1rem;
/*        padding-left: 0.6rem;
        padding-right: 0.6rem;
        padding-top: 0.6rem;
        padding-bottom: 1.6rem;*/

        align-items: center;
        justify-content: center;

        transform: scale(1.4);
    }

    .contents nav .pagination img {


    }

    .contents nav .pagination span {


    }

    #content .story-detail {

        width: 80%;
        margin-top: 1rem;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 80px;
        padding: 25px;


    }



    .story, 
    .login, 
    .story-detail,
    .registeration,
    .dashboard,
    .story-manage,
    .story-edit {
        padding: 0;
        margin: 6vw 0 0  0;
/*        justify-content: center;*/
/*        display: block;*/
/*        height: 100vh;*/
        width: 75vw;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        max-height: 100%;
    }


    .story-detail img {

        width: 100%;

    }


    .story-detail h5 {
        margin-left: auto;
        margin-right: auto;
    }


    .story-detail select {

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

    }


    .story-detail button {
        min-width: 250px;
        margin-left: auto;
        margin-right: auto;       
    }



    .login > p, 
    .story-detail > p,
    .registeration > p,
    .dashboard > p,
    {

        text-align: left;
        
    }
    
    




    
    .story-edit-form-div {

        display: block;
    }


    .story-detail-category {

        margin: 0;
        padding-left: 0.5rem;
        font-size: 1rem;
    }

    .login > p,
    .login-form form table,
    .story-detail h2 {
        padding-left: 0.5rem;
        margin: 0;
        text-align: left;
        padding-top: 1rem;
    }




    .login-form form,
    .story-detail form {

        margin: 0px;
        width: 100%;
        max-width: 100%;
    }


    .about {

        display: flex;
        flex-direction: column;
        padding: 0px;
        max-width: 75%;
        margin-left: auto;
	    margin-right: auto;

    }


    #story-contents div p {

        margin-bottom: 1rem;
        overflow: inherit;
        text-wrap: wrap;
        height: 100%;
        word-wrap: break-word;

    }




    .about p {

        text-align: left;
    }


    /* 横幅100%のボタン */
    .login form input,
    .story-detail form input,
    #id_password2 + input,
    .story_edit_btn > input,
    #story-edit-form + button,
    .story-manage p input[type=submit], 
    .registeration form p > input,
    .dashboard form input,
    .story-edit form p > input,
    .story-delete form input[type=submit] {

        margin: 0;
        padding: 1rem;
        font-size: 1.0rem;
        max-width: 100%;
        border-radius: 15px;
        margin-left: auto;
        margin-right: auto;

    }


    #content .story-manage p a {

        margin: 0;
        padding: 20px;
        font-size: 1.5rem;
        width: 64vw;

        border-radius: 0px;

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

    }


    /* 固有ボタンたちはCSS後半で別個設定 */
    #id_username,
    #id_email,
    #id_last_name,
    #id_first_name
    {

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

        padding-top: 10px;
        padding-bottom: 10px;
        width: 90%;
        border-radius: 15px;

    }

    #id_password,
    #id_password1,
    #id_password2
    {        
        padding-left: 10px;
        padding-right: 10px;

        border-radius: 15px;
        padding-top: 10px;
        padding-bottom: 10px;
        width: 90%;
    }





    /* -------- */
    /* 会員登録用 */
    .registeration > p,
    .registeration form,
    .dashboard > p,
    .dashboard form {

        text-align: left;
        margin-bottom: 4rem;
    }



    #id_password2 {
        margin-bottom: 3rem;
    }






    /* ------------ */
    /* 商品修正画面 */
    .story-manage .product-info {

        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2.5rem;

    }


    .product-info-manage  {

        display: block;
        width: 100%;
        height: 100%;
        padding-bottom: 1rem;

    }


    .product-info-manage div {

        text-align: left;
        padding-bottom: 0.5rem;
        font-weight: 600;

    }

    #header .menu li { 

        color: #6f6f6f;
        text-align: center;
        font-size: 1.25rem;
    }




    #story-edit-form {

/*        overflow: auto;*/

    }



    #story-edit-form + button {

        border-radius: 0px;
        background: #aa6889;
        color: #fff;
        font-size: 1.5rem;
        text-transform: uppercase;
        border: none;
        padding: 10px 20px;
        margin: 20px 0;
        margin-top: 2rem;
        margin-bottom: 8rem;
        padding: 20px;    
        
    }


    .story-edit div form p > label {

        margin-top: 1rem;

    }


    .story_edit_btn > input {

        margin-top: 2rem;

    }

    .story-edit form {

/*        overflow: hidden;*/
        display: block;
        height: 100%;

    }


    .story-edit form p {

        overflow: hidden;
    }



    .story-edit form p select {

        width: 64vw;

    }


    .story-edit div form input{

        margin-bottom: 1rem;
        width: 64vw;
        margin-right: auto;
        margin-left: auto;
    }


    .story-edit form p ~ input {

        width: 60vw;
        
    }


    .story-edit form p input[id=id_title], 
    .story-edit form p input[id=id_file], 
    .story-edit form p input[id=id_url] {

        width: 64vw;
        margin-right: auto;
        margin-left: auto;
    }



    .story-edit form textarea {

        width: 70vw;


    }



    .story-edit-form-container {


        /* UNSET はとても重要！！！ */
        height: unset;  
        overflow: auto;


    }


    .story_edit_btn {
        width: 100%;
        display: block;
        overflow: auto;
        margin-left: auto;
        margin-right: auto;

    }


    .story-edit {

        height: 100vh;

    }

    .story-delete {

        width: 75vw;
    }

    .story-delete form p {

        margin-top: 2rem;
        margin-bottom: 2rem;

    }



    /* ------------ */
    /* ポスト修正の時 */

    .story-edit h3 {
        margin-top: 0.5rem;
        margin-left: 0.5rem

    }

    .story-edit > h2 {

        text-align: left;
        margin-left: 0.5rem
    }

    .story-edit > h2 + a{
        
        display: block;        
        padding-bottom: 1rem

    }


    .create-content {

        display: block;

        margin: 0;
        padding: 0;
        width: 100%;


    }


    ul.content-types {
        display: block;
        margin-left: auto;
        margin-right: auto;


    }


    ul.content-types li {

        list-style: none;

        background: #efefef;
        padding: 12px 16px;
        margin: 0.25rem;

    }

    h3.create-post-title {

        margin-left: 0.5rem;


    }


    #story-contents {

        max-width: 80%;
        display: block;
        margin-left: auto;
        margin-right: auto;

    }


    #story-contents div {

        padding-bottom: 1.5rem;
/*        height: 100px;*/
        margin-bottom: 10px;
        
    }

    #story-contents form {


    }


    #story-contents a {

        display: block;
        font-size: 1rem;
        margin-bottom: 0.5rem;

    }


    /* ポスト管理画面の削除ボタン  */
    #story-contents a + a {
        margin: 0;
        padding: 0;
        color:#ff0000;
        background:none;
        display: block;
        float:center;
        text-transform:none;
        font-weight: 800;
        border: none;
        font-size: 1rem;
        
    }


    .create-content {
        display: block;
        height: 80px;

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

    }




    /* -------------------- */
    /* 商品内の教材を見るとき */

    #stories li {
        text-align: center;
    }


    #content .story {

        text-align: center;
        height: 100%;
        max-height: 100%;


    }


    .story-posts-all {

        max-width: 100%;
/*        margin-bottom: 200px;*/
        height: 100%;
        max-height: 100%;
        padding: 0px;
    }


    .story-posts-all h2 {

        text-align: left;
        padding-left: 0.5rem;
    }




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

    }

    .story-posts-all p {

        text-align: left;
        padding-left: 0.5rem;

    }


    .story-posts-all .post_images {

        padding: 0;
        margin: 0;

    }

    .story-posts-all .post_download > a {

        padding: 20px;
        margin-top: 1rem;

    }






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


    .story-detail {

        height: 100%;

    }



    .story-detail div {

        padding: 0;
        text-align: left;
        margin: 0px;
        width: 100%;
        max-width: 100%;

    }


    .story-detail-desc > p {

        padding: 0.5rem;
        padding-left: 1rem;
    }


    .story-container {
        max-width: 100%;
        padding: 0;
        flex-wrap: wrap;
        min-width: 80%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2rem;
        min-height: 10rem;
    }


    .story > .story-container {
        max-width: 100%;
        padding: 0;
        flex-wrap: wrap;
        min-width: 80%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2rem;
        min-height: 35rem;
    }



    #header .logo-container {

        display: block;
        text-align: right;
        margin-right: 1.75rem;

    }
    

    
    .story-container > h3 > a {
        padding-left: 1rem;
        font-size: 1.55rem;
        padding: 0;
        padding-left: 0.5rem;
    }
    

    .story-container > h3 + a {

        font-size: 1rem;


    }


    .story-container select {

        width: 30%;
        margin-left: auto;
        margin-right: 1.5rem;

    }


    .sold-out {

        padding-top: 2rem;

    }


    .logo-container-layout {

        display: block;
        padding: 0;
        margin: 0;
        text-align: right;

    }

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

        padding: 0;
        margin: 0;
    }


    /* hibi sansan の読み文字  */
    .logo-container-layout p {

        margin-top: -0.25rem;
        letter-spacing: .35rem;
        padding-left: 0.5rem;
        margin-left: auto;
        margin-right: auto;
    }



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

        font-weight: 800;
        margin: 0;
        margin-bottom: 0.5rem;
        color: #b4aa81;
    }

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

        font-weight: 800;
        margin: 0;
        color: #4ca4c6;
    }


    .story-misc {
        padding-right: 20px;
        font-size: 1rem;
        text-align: right;
        margin: 1rem;
        margin-top: 0;
    }

    .story-misc p {
            
        margin-top: 0.5rem;

    }


    .contents nav {

/*        margin-left: auto;*/
/*        margin-right: auto;*/
        place-items: center;

    }

    label {

        float: none;

    }

    input[type=submit], a.button, button {

        margin-left: auto;
        margin-right: auto;
        width: 12rem;
        font-size: 1.0rem;
        height: 4rem;
    }


    .dashboard a {

        margin-top: 16px;
        margin-bottom: 16px;
        padding: 0;
    }


    /* FOOTER の設定: Footer を含む、Page Containerの中にFooterを置くことが重要！！  */
    /* https://www.freecodecamp.org/news/how-to-keep-your-footer-where-it-belongs-59c6aa05c59c/  */
    #page-container {

      position: relative;
      min-height: 100vh;


    }

    .container-login-registration-dashboard {

        width: 100%;

    }


    .modal-container {

        width: 100%;

    }



    .cart {

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

        background-color: #faf9e1;      /*  YELLOW 系色  */
        width: 100%;

        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: 20px 0 20px 110px;
        color: var(--title-textcolor);
    }




    .cart-order-img img {
        margin-top: 1.5rem;
        width: 100%;
    }



    .cart-order-info {

        padding-left: 1rem;
        padding-right: 1rem;


    }


    .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 {

        margin-bottom: 0;
        background: #94b2c9;
        width: 6rem;

    }



    .cart-order-info .btn-delete {

        margin-top: 0.75rem;
        background: #e7afaf;
        width: 6rem;

    }


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

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

    }



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

        display: block;
        width: 80%;

        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: 12px;
        padding-bottom: 12px;

        font-weight: 500;
        
        color: #ffffff;
        background-color: #dd81b0;
        border-radius: 15px;
    }


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

        text-decoration: none;
        background-color: #ed91b0;
    }




    .checkout {

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

        background-color: #faf9e1;      /*  YELLOW 系色  */
        width: 100%;

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

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

        padding-bottom: 1rem;
    }


    .checkout-address {

        padding: 1rem;

    }



    .paypal-container {

        width: 70%;
        margin-left: auto;
        margin-right: auto;

    }


    .checkout-address .form-field input {

        font-size: 1rem;
        width: 70%;

    }



    #img_box {

        padding-top: 32px;

    }

    .noti-remain-detail {

        text-align: right;
        margin-bottom: 0.5rem;
    }


    .story-detail .product-price {

        padding-top: 1rem;
        padding-bottom: 1rem;

    }



    /* FOOTER の設定: Footer を含む、Page Containerの中にFooterを置くことが重要！！  */
    /* https://www.freecodecamp.org/news/how-to-keep-your-footer-where-it-belongs-59c6aa05c59c/  */
    footer {
        position: absolute;
        width: 100%;
        background-color: var(--main-bg-color);
        bottom: -100px;
        border-radius: 8px;
    }


    footer p {

        font-weight: 600;
        text-align: center;
        color: #6f6f6f;
        padding-top: 1rem;
        padding-bottom: 2rem;


    }



    /* スマホ等：1カラムに落とす */

    .hero-contents {
        grid-template-columns: 1fr;
    }



}


/* 
   @media により、スタイルシートを適用する条件を指定することができます。
   例えば、スマートフォンサイズの場合と、PCディスプレイサイズの場合で、
   適用するスタイルシートを変更することができます。  
*/
@media screen and (max-width: 62rem) {



  #hamburger-menu {
    display: inline;
    z-index: 2;
  }



}














