@charset "UTF-8";

:root {
    --theme-color: #58a;
    --text-color: #333;
    --btn-color: #58a;
}

.contact input,
.contact textarea {
    border-radius: 10px;
}

.contact textarea {
    min-height: 200px;
}

.contact p:nth-child(even) {
    font-size: .8em;
    font-weight: bold;
}

#brand {
    background-color: var(--theme-color);
    height: 50px;
    margin-bottom: 50px;
}

#brand a {
    text-decoration: none;
}

#brand h1 {
    margin-bottom: 0;
    color: var(--theme-color);
    color: #fff;
    line-height: 50px;
}

#login-box {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    padding: 2em;
    width: 400px;
    height: 500px;
    box-shadow: 0 0 20px #acc;
}

.err_msg {
    color: #c55;
    font-size: .8em;
    font-weight: bold;
}

.top_msg {
    padding: 1em 2em;
    background-color: #fec;
}

.top_msg * {
    color: #c55;
    font-weight: bold;
}

.profile_cnt {
    margin-bottom: 1em;
    font-weight: bold;
}


.btn_icon {
    position: relative;
    display: inline-block;
    background-color: #eee;
    text-decoration: none;
    border-radius: 50%;
}

.btn_icon i {
    color: #333;
}

.btn_text small {
    position: absolute;
    display: block;
    margin: 0;
    font-weight: bold;
    text-align: center;
}

.btn_icon.save {
    background-color: var(--theme-color);
}

.btn_icon.save i {
    color: #fff;
}

.btn_icon.delete i {
    color: #c55;
}

.icon_text {
    display: inline-block;
    padding: .5em 1em;
    background-color: #eee;
    border-radius: 5px;
    font-size: .8em;
    font-weight: bold;
    text-decoration: none;
}

.icon_text:hover {
    background-color: #f5f5f5;
}

.icon_text i {
    margin-right: .5em;
}

.icon_text.edit:hover {
    background-color: #585;
    color: #fff;
}

.icon_text.edit:hover i {
    color: #fff;
}

.icon_text.edit i {
    color: #585;
}

#copy {
    position: relative;
}

#copy.copied::before {
    content: 'コピーしました';
    position: absolute;
    top: -2em;
    left: -2em;
    right: -2em;
    display: block;
    padding: .5em 1em;
    width: 100px;
    background-color: rgba(0, 0, 0, .4);
    color: #fff;
    font-size: .8em;
    font-weight: bold;
    border-radius: 5px;
}

/* ユーザートップ */

section#home .add_profile_btn {
    display: block;
    padding: 1em 2em;
    font-size: .8em;
    /*border: 1px solid #58a;*/
    background-color: #eee;
    font-weight: bold;
    /*color: #fff;*/
    border: 1px solid #eee;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
}

section#home .add_profile_btn i {
    margin-right: 1em;
    /*color: #fff;*/
    font-size: .8em;
    vertical-align: middle;
    line-height: 4em;
}

section#home ul.profile_list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 5px;
}

section#home ul.profile_list li {
    position: relative;
    display: block;
    border: 1px solid #eee;
    border-radius: 5px;
}

section#home ul.profile_list li > a {
    overflow: auto;
    display: block;
    padding: 10px;
    padding-bottom: 3.5em;
    height: 100%;
    text-decoration: none;
}

section#home ul.profile_list li a.public::after,
section#home ul.profile_list li a.private::after {
    position: absolute;
    left: 15px;
    bottom: 10px;
    margin-top: 1em;
    padding: .5em 1em;
    /*background-color: #eee;*/
    border: 1px solid;
    border-radius: 5px;
}

section#home ul.profile_list li > a:hover {
    background-color: #fafafa;
}

section#home ul.profile_list li a img {
    float: left;
    display: inline-block;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #eee;
    border-radius: 50%;
    vertical-align: top;
}

section#home ul.profile_list li a .title {
    float: left;
    display: block;
    margin-left: 1em;
    width: calc(100% - 100px);
    font-weight: bold;
}

section#home ul.profile_list li .btn_area {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

section#home ul.profile_list li .btn_area a {
    padding: .5em 1em;
    font-size: .8em;
    text-decoration: none;
    border: 1px solid #555;
}

section#home ul.profile_list li .btn_area a:hover,
section#home ul.profile_list li .btn_area a:hover i {
    border-color: #5a8;
    color: #5a8;
}

section#home ul.profile_list li .btn_area a i {
    margin-left: .5em;
    font-size: .8em;
    transition: .4s;
}

@media screen and (max-width: 640px) {
    section#home ul.profile_list {
        grid-template-columns: repeat(1, 1fr);
    }
}


/* 編集画面（ユーザー） */

/* メインメニュー */

#nav-menu {
    overflow: auto;
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    padding: 100px 0;
    width:  340px;
    max-width: 100%;
    background-color: rgba(0, 0, 0, .4);
    z-index: 200;
    transition: .6s;
}

#nav-menu.opened {
    right: 0;
    width:  100%;
}

#nav-menu .nav-bg {
    overflow: auto;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    padding: 100px 0;
    width: 340px;
    max-width: 100%;
    background-color: #fafafa;
    z-index: 200;
    transition: .6s;
}

#nav-menu.opened .nav-bg {
    right: 0;
}

#nav-menu ul {
    width: 100%;
    /*text-align: center;*/
    list-style-type: none;
}

#nav-menu ul li + li {
    border-top: 1px solid #eee;
}

#nav-menu ul li a {
    display: block;
    padding: 1em 2em;
    text-decoration: none;
    vertical-align: bottom;
}

#nav-menu ul li a:hover {
    background-color: #eee;
}

#nav-menu .ad {
    padding: 0 1em;
}

/* ヘッダーメニュー */

.top-menu a {
    padding: 0 1em;
    text-decoration: none;
}

.top-menu .logout,
.top-menu .logout * {
    padding: .5em 1em;
    background-color: #eee;
    color: #c55;
    text-align: center;
}

/* プロフィール一覧 */

ul.profile-list {
    margin-top: 50px;
}

ul.profile-list li {
    position: relative;
}

ul.profile-list li + li {
    border-top: 1px solid #eee;
}

ul.profile-list li > a {
    display: block;
    padding: 1em 0;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.6;
}

.public:after,
.private:after {
    margin-top: .5em;
    display: block;
    font-family: 'Font Awesome 5 Free';
    font-size: .6em;
    font-weight: 600;
    white-space: pre-wrap;
}

.public:after {
    content: '\f57e\0020公開';
    color: #5a8;
}

.private:after {
    content: '\f023\0020非公開';
}

/* ボタン */

.iconBtn {
    display: block;
    padding: 0;
    width: 3em;
    height: 3em;
    border-radius: 50%;
    text-align: center;
    background-color: #58a;
    box-shadow: 2px 2px 10px #ace;
}

.new {
    background-color: #eee;
}
.iconBtn.new {
    display: inline-block;
    background-color: #ccc;
    box-shadow: none;
    vertical-align: baseline;
}

.iconBtn.new i {
    color: var(--text-color);
}

.iconBtn.logout {
    background-color: #eee;
    box-shadow: 2px 2px 10px #ccc;
}

.iconBtn.logout i {
    color: #c55;
}

a.homeBtn {
    display: block;
    padding: 0;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    text-align: center;
    background-color: #58a;
    box-shadow: 2px 2px 10px #ace;
}

.menuBtn {
    position: fixed;
    bottom: 2em;
    right: 2em;
    padding: 10px;
    width: 50px;
    height: 50px;
    background-color: #fafafa;
    /*background-color: rgba(0,0,0,0);*/
    border-radius: 50%;
    text-align: center;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 2px;
    z-index: 300;
    transition: .2s;
}

.menuBtn:hover {
    cursor: pointer;
}

.menuBtn > div {
    display: inline-block;
    padding-top: 100%;
    width: 100%;
    background-color: #fff;
    background-color: #58a;
    box-shadow: 0 0 5px #fff;
}

.menuBtn > div:nth-child(1) { transition: .2s; }
.menuBtn > div:nth-child(2) { transition: .3s; }
.menuBtn > div:nth-child(3) { transition: .4s; }
.menuBtn > div:nth-child(4) { transition: .5s; }
.menuBtn > div:nth-child(5) { transition: .6s; }
.menuBtn > div:nth-child(6) { transition: .7s; }
.menuBtn > div:nth-child(7) { transition: .8s; }
.menuBtn > div:nth-child(8) { transition: .9s; }
.menuBtn > div:nth-child(9) { transition: 1s; }

.menuBtn.opened > div {
    background-color: #a58;
}

a.homeBtn i,
.menuBtn i,
.iconBtn i {
    margin: 0;
    line-height: 3em;
    letter-spacing: 0;
    color: #fff;
}

.new,
.new i {
    font-size: .8em;
    font-weight: bold;
    text-align: center;
}

/* 広告 */

.ad {
    margin-top: 4em;
}

.ad h2 {
    font-size: .8em;
    text-align: center;
}


button {
    padding: 1em;
}

input[type=text],
textarea {
    padding: .5em 1em;
    width: 100%;
    /*border: 1px solid #333;*/
}

#main-content {
}

#content {
    /* margin-top: 50px; */
    padding: 0 0 50px;
    /*background-color: #fafafa;*/
    display: grid;
    grid-gap: 2em;
    /*border-top: 1px solid #58a;*/
}

.item {
    position: relative;
    /*padding: 2em 1em;*/
    /*border: 1px solid #ccc;*/
    /*border-radius: 10px;*/
    border: 1px solid #fff;
    border-left: 1px solid #58a;
}

.item.h input {
    padding: 2em 1em;
    border: 0;
    /*border-bottom: 1px solid #aaa;*/
    /*font-size: 1.1em;*/
    font-size: 18px;
    font-weight: bold;
}

.item.textarea textarea {
    padding: 2em 1em;
    border: 0;
    min-height: 200px;
    resize: vertical;
    vertical-align: middle;
    font-size: 18px;
}

.item:hover {
    border: 1px solid #58a;
}
.item:hover button.up,
.item:hover button.down,
.item:hover button.remove {
    opacity: 1;
}

button.up,
button.down {
    position: absolute;
    left: -2em;
    padding: 0;
    width: 1.6em;
    height: 1.6em;
    background-color: #fff;
    color: #333;
    border-radius: 50%;
    line-height: 1.6em;
    text-align: center;
    opacity: 0;
}

button .up i,
button .down i {
    padding: 0;
    font-size: 1em;
    letter-spacing: 0;
}

button.up {
    top: -.6em;
    left: 1em;
}

button.down {
    bottom: -.6em;
    left: 1em;
}

button.remove {
    position: absolute;
    top: -10px;
    right: -10px;
    padding: 0;
    width: 1.5em;
    height: 1.5em;
    background-color: #fff;
    font-family: 'Font Awesome 5 Free';
    font-weight: 600;
    border-radius: 50%;
    line-height: 1.5em;
    text-align: center;
    letter-spacing: 0;
    opacity: 0;
}

/* sns */
.link_twitter {
    display: inline-block;
    margin: 1em 0;
    padding: .2em 2em;
    background-color: #55acee;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.link_twitter:hover {
    color: #fff;
}

.link_twitter i {
    margin-right: .5em;
    color: #fff;
}