/*
プロジェクトCSSファイル
*/
/* =========================
   Project Create / Edit
   ========================= */

form[action*="/project/newComp"],
form[action*="/project/editComp"] {
    width: 100%;
    max-width: 95%;
    margin: 30px auto 50px;
    padding: 32px 36px 36px;
    box-sizing: border-box;

    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 16px;

    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}


/* =========================
   タイトル
   ========================= */

.project_page_title {
    width: 100%;
    max-width: 900px;
    margin: 30px auto 0;
    box-sizing: border-box;

    color: #124f6a;
    font-size: 25px;
    font-weight: 700;

    border-left: 5px solid #176f91;
    padding: 8px 0 8px 14px;

    border-bottom: 1px solid #d5d5d5;
}

/* =========================
   ラベル
   ========================= */

form[action*="/project/newComp"] > p,
form[action*="/project/editComp"] > p {
    margin: 0 0 8px;

    color: #333;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

form[action*="/project/newComp"] > p:not(:first-of-type),
form[action*="/project/editComp"] > p:not(:first-of-type) {
    margin-top: 25px;
}


/* =========================
   入力欄
   ========================= */

form[action*="/project/newComp"] input[type="text"],
form[action*="/project/newComp"] textarea,
form[action*="/project/editComp"] input[type="text"],
form[action*="/project/editComp"] textarea {
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;

    border: 1px solid #bbb;
    border-radius: 8px;

    background: #fff;
    color: #222;

    font-size: 36px;
    padding: 11px 13px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


/* フォーカス */

form[action*="/project/newComp"] input[type="text"]:focus,
form[action*="/project/newComp"] textarea:focus,
form[action*="/project/editComp"] input[type="text"]:focus,
form[action*="/project/editComp"] textarea:focus {
    border-color: #2583a8;
    box-shadow: 0 0 0 2px rgba(37, 131, 168, 0.12);
}


/* 説明 */

form[action*="/project/newComp"] textarea,
form[action*="/project/editComp"] textarea {
    min-height: 130px;
    line-height: 1.7;
    resize: vertical;
}


/* =========================
   メンバー追加
   ========================= */

#project_member_select {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

#project_member_user {
    flex: 1;
    min-width: 0;
    height: 76px;
    box-sizing: border-box;

    border: 1px solid #d0d0d0;
    border-radius: 8px;

    background: #fff;
    color: #333;

    font-size: 36px;
    padding: 0 12px;
}


/* メンバー追加時の権限 */

#project_member_role {
    flex: 0 0 auto;
    height: 76px;

    border: 1px solid #d0d0d0;
    border-radius: 8px;

    background: #fff;
    color: #333;

    font-size: 34px;
    padding: 0 10px;
}


/* 追加ボタン */

#add_project_member {
    flex: 0 0 auto;

    height: 76px;
    padding: 0 20px;

    border: 1px solid #14526c;
    border-radius: 8px;

    background: linear-gradient(
        #319bc5,
        #14536d
    );

    color: #fff;

    font-size: 34px;
    font-weight: 700;

    cursor: pointer;

    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.35);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.12);
}

#add_project_member:hover {
    background: linear-gradient(
        #3da9d1,
        #165d79
    );
}


/* =========================
   現在のメンバー
   ========================= */

#project_members {
    margin-top: 14px;
    width: 100%;
}


/* メンバー1人分 */

#project_members > .project_member {
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 52px;
    box-sizing: border-box;

    margin-bottom: 8px;
    padding: 8px 12px;

    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 9px;

    color: #4a4050;
    font-size: 34px;
}


/* 名前 */

#project_members > .project_member > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ★ 権限プルダウンを右端へ */

#project_members > .project_member > select {
    margin-left: auto;

    height: 66px;
    min-width: 95px;

    border: 1px solid #bbb;
    border-radius: 6px;

    background: #fff;
    color: #333;

    font-size: 34px;
    padding: 0 8px;
}


/* オーナー */

#project_members > .project_member > strong {
    margin-left: auto;

    color: #14536d;
    font-size: 33px;
    font-weight: 700;
}


/* 削除 */

#project_members > .project_member > label {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-left: 12px;

    color: #555;
    font-size: 33px;
    white-space: nowrap;
}

#project_members > .project_member > label input {
    margin: 0;

    width: 28px;
    height: 28px;

    cursor: pointer;
}


/* =========================
   保存・作成ボタン
   ========================= */

form[action*="/project/newComp"] > p:last-child,
form[action*="/project/editComp"] > p:last-child {
    margin-top: 32px;
    padding-top: 24px;

    border-top: 1px solid #ddd;

    text-align: right;
}

form[action*="/project/newComp"] input[type="submit"],
form[action*="/project/editComp"] input[type="submit"] {
    min-width: 190px;
    height: 68px;

    padding: 0 25px;

    border: 1px solid #14526c;
    border-radius: 8px;

    background: linear-gradient(
        #319bc5,
        #14536d
    );

    color: #fff;

    font-size: 35px;
    font-weight: 700;
    letter-spacing: .03em;

    cursor: pointer;

    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.35);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 2px 5px rgba(0, 0, 0, 0.15);
}

form[action*="/project/newComp"] input[type="submit"]:hover,
form[action*="/project/editComp"] input[type="submit"]:hover {
    background: linear-gradient(
        #3da9d1,
        #165d79
    );
}


/* =========================
   スマホ
   ========================= */

@media screen and (max-width: 600px) {

    .project_page_title {
        width: calc(100% - 20px);
        max-width: none;

        margin: 20px auto 0;

        font-size: 21px;
        line-height: 1.4;

        border-left-width: 4px;
        padding: 6px 0 7px 10px;
    }


    form[action*="/project/newComp"],
    form[action*="/project/editComp"] {
        width: calc(100% - 20px);
        max-width: none;

        margin: 16px auto 30px;
        padding: 20px 15px 23px;

        border-radius: 12px;
    }


    form[action*="/project/newComp"] input[type="text"],
    form[action*="/project/newComp"] textarea,
    form[action*="/project/editComp"] input[type="text"],
    form[action*="/project/editComp"] textarea {
        width: 100%;
        max-width: none;

        font-size: 16px;
        padding: 11px 12px;
    }


    form[action*="/project/newComp"] textarea,
    form[action*="/project/editComp"] textarea {
        min-height: 115px;
    }


    /* メンバー追加 */
    #project_member_select {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px;

        width: 100%;
    }


    #project_member_user {
        grid-column: 1 / 3;

        width: 100%;
        height: 44px;
    }


    #project_member_role {
        width: 100%;
        height: 44px;
    }


    #add_project_member {
        height: 44px;
        padding: 0 17px;
    }


    /* メンバー一覧 */
    #project_members > .project_member {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;

        min-height: 48px;

        padding: 9px 10px;
    }


    #project_members > .project_member > span {
        width: 100%;
    }


    #project_members > .project_member > select {
        margin-left: auto;

        height: 36px;
        min-width: 90px;
    }


    #project_members > .project_member > strong {
        margin-left: auto;
    }


    #project_members > .project_member > label {
        margin-left: 4px;
    }


    /* 保存ボタン */
    form[action*="/project/newComp"] > p:last-child,
    form[action*="/project/editComp"] > p:last-child {
        margin-top: 25px;
        padding-top: 18px;

        text-align: center;
    }


    form[action*="/project/newComp"] input[type="submit"],
    form[action*="/project/editComp"] input[type="submit"] {
        width: 100%;
        height: 48px;

        min-width: 0;
    }
}

/* =========================
   Project List
   ========================= */

.project_page_title {
    width: 100%;
    max-width: 900px;
    margin: 30px auto 0;
    box-sizing: border-box;

    color: #124f6a;
    font-size: 40px;
    font-weight: 700;

    border-left: 5px solid #176f91;
    border-bottom: 1px solid #d5d5d5;

    padding: 8px 0 8px 14px;
}


/* =========================
   新規作成
   ========================= */

.project_create_area {
    width: 100%;
    max-width: 900px;

    margin: 20px auto 15px;

    text-align: right;
}

.project_create_area input[type="button"] {
 
    padding: 10px 20px;

    border: 1px solid #14526c;
    border-radius: 8px;

    background: linear-gradient(
        #319bc5,
        #14536d
    );

    color: #fff;

    font-size: 32px;
    font-weight: 700;

    cursor: pointer;

    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.35);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 2px 5px rgba(0, 0, 0, 0.15);
}

.project_create_area input[type="button"]:hover {
    background: linear-gradient(
        #3da9d1,
        #165d79
    );
}


/* =========================
   検索
   ========================= */

.project_search_form {
    width: 100%;
    max-width: 900px;

    margin: 0 auto 25px;

    display: flex;
    align-items: center;
    gap: 8px;
}

.project_search_form .search_text {
    flex: 1;
    min-width: 0;

    height: 84px;
    box-sizing: border-box;

    padding: 0 13px;
    margin-top: 40px;

    border: 1px solid #bbb;
    border-radius: 8px;

    background: #fff;
    color: #222;

    font-size: 32px;

    outline: none;
}

.project_search_form .search_text:focus {
    border-color: #2583a8;
    box-shadow: 0 0 0 2px rgba(37, 131, 168, 0.12);
}

.project_search_form input[type="submit"] {
    flex: 0 0 auto;

    min-width: 75px;
    margin-top: 40px;

    padding: 15px 30px;

    border: 1px solid #14526c;
    border-radius: 8px;

    background: linear-gradient(
        #319bc5,
        #14536d
    );

    color: #fff;

    font-size: 30px;
    font-weight: 700;

    cursor: pointer;

    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.35);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.12);
}

.project_search_form input[type="submit"]:hover {
    background: linear-gradient(
        #3da9d1,
        #165d79
    );
}


/* =========================
   プロジェクト一覧
   ========================= */

#projects {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;
}


/* プロジェクトカード */

#projects .project {
    width: 100%;
    box-sizing: border-box;

    margin-bottom: 12px;
    padding: 18px 20px;

    background: #fff;

    border: 1px solid #ddd;
    border-radius: 10px;

    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.06);

    transition:
        box-shadow .2s ease,
        border-color .2s ease,
        transform .15s ease;
}

#projects .project:hover {
    border-color: #b9cbd2;

    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.10);

    transform: translateY(-1px);
}


/* =========================
   プロジェクト名
   ========================= */

#projects .project_name {
    margin-bottom: 7px;
}

#projects .project_name a {
    color: #124f6a;
    text-decoration: none;
}

#projects .project_name strong {
    font-size: 40px;
    line-height: 1.5;
}

#projects .project_name a:hover {
    color: #176f91;
    text-decoration: underline;
}


/* =========================
   ハッシュタグ
   ========================= */

#projects .project_hashtag {
    margin-bottom: 10px;

    color: #176f91;

    font-size: 32px;
    font-weight: 700;
}


/* =========================
   説明
   ========================= */

#projects .project_description {
    color: #555;

    font-size: 32px;
    line-height: 1.7;

    word-break: break-word;
}


/* =========================
   プロジェクト情報
   ========================= */

.project_info_block {
    width: 100%;
    max-width: 900px;

    margin: 24px auto 0;
}


/* セクション見出し */

.project_section_title {
    margin: 0 0 10px;

    color: #124f6a;

    font-size: 32px;
    font-weight: 700;

    padding-left: 10px;

    border-left: 4px solid #176f91;
}


/* メインハッシュタグ */

.project_hashtag_main {
    margin: 0;

    padding: 12px 15px;

    background: #f3f7f9;

    border: 1px solid #d8e3e7;
    border-radius: 8px;

    color: #176f91;

    font-size: 32px;
    font-weight: 700;
}


/* 概要 */

.project_description_main {
    margin: 0;

    padding: 15px 16px;

    background: #fff;

    border: 1px solid #ddd;
    border-radius: 8px;

    color: #444;

    font-size: 38px;
    line-height: 1.8;

    word-break: break-word;
}


/* =========================
   メンバー
   ========================= */

.project_member_list {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;
    padding: 0;

    list-style: none;
}


/* メンバー */

.project_member_item {
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 58px;

    box-sizing: border-box;

    margin-bottom: 8px;
    padding: 8px 14px;

    background: #f7f7f7;

    border: 1px solid #ddd;
    border-radius: 9px;
}


/* プロフィール画像 */

.project_member_item .users_content_img {
    flex: 0 0 auto;

    width: 42px;
    height: 42px;

    margin-right: 12px;
}


/* 画像 */

.project_member_item .users_img {
    width: 42px;
    height: 42px;

    object-fit: cover;

    border-radius: 50%;
}


/* 名前 */

.project_member_item .user_name {
    width: auto !important;
    max-width: none;
    flex: 1;

    min-width: 0;
    box-sizing: border-box;
}

.project_member_item .user_name a {
    color: #124f6a;
    text-decoration: none;
}

.project_member_item .user_name a:hover {
    text-decoration: underline;
}


/* 権限 */

.project_member_item .user_name strong {
    margin-left: 5px;

    color: #176f91;

    font-size: 12px;
}


/* =========================
   プロジェクト設定
   ========================= */

.project_edit_area {
    width: 100%;
    max-width: 900px;

    margin: 18px auto 28px;

    text-align: right;
}

.project_edit_area a {
    display: inline-block;

    padding: 9px 18px;

    border: 1px solid #14526c;
    border-radius: 8px;

    background: linear-gradient(
        #319bc5,
        #14536d
    );

    color: #fff;

    font-size: 32px;
    font-weight: 700;

    text-decoration: none;

    text-shadow: 0 -1px 0 rgba(0, 0, 0, .35);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .25),
        0 2px 5px rgba(0, 0, 0, .15);
}

.project_edit_area a:hover {
    background: linear-gradient(
        #3da9d1,
        #165d79
    );
}


/* =========================
   投稿見出し
   ========================= */

.project_status_title {
    width: 100%;
    max-width: 900px;

    margin: 35px auto 18px;
}

/* =========================
   プロジェクト情報 開閉ボタン
   ========================= */

.project_info_toggle {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    box-sizing: border-box;

    text-align: left;
}


/* 開閉ボタン */

#project_info_toggle_btn {
    display: inline-block;

    height: 74px;

    padding: 0 18px;

    border: 1px solid #14526c;
    border-radius: 8px;

    margin-top: 20px;

    background: linear-gradient(
        #319bc5,
        #14536d
    );

    color: #fff;

    font-size: 28px;
    font-weight: 700;

    cursor: pointer;

    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.35);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 2px 5px rgba(0, 0, 0, 0.15);
}


#project_info_toggle_btn:hover {
    background: linear-gradient(
        #3da9d1,
        #165d79
    );
}

.project_info_toggle {
    width: calc(100% - 20px);
    max-width: none;

    margin: 0 auto;
}