/* フォント ここから */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');
.noto_sans_jp{
  font-family: "Noto Sans JP", sans-serif;
  /* font-optical-sizing: auto; */
  font-style: normal;
}
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+HK:wght@200..900&display=swap');
.noto_serif_hk{
  font-family: "Noto Serif HK", serif;
  /* font-optical-sizing: auto; */
  font-style: normal;
}
.bold{
    font-weight: bold;
}
/* フォント ここまで */
/* ここからmain.php（layoutファイル） */
.layout_body{
    margin: 70px;
    height: 100vh;
}
@media (max-width: 699px) {  
    .layout_body{
        margin: 17px;
        height: 100vh;
    }
}
/* ヘッダー */
#header{
    height: 75px;
}
.bland_link{
    text-decoration: none;
    color: inherit;
}
.header_line{
    display: flex;
}
.brandLabel{
    letter-spacing: 5px;
    line-height: 20px;
    cursor: pointer;
    z-index: 100;
    color:inherit;
    text-decoration:none;
}
.now_page_label{
    font-size: 50px;
    width: 100%;
    line-height: 50px;
    text-align: center;
    margin-left: calc(48px - 126.59px);
}
.menu_btn{
    cursor: pointer;
    margin-top: -8px;
    border: none;
    background-color: #ffffff00;
}
.menu_btn_line{
    width: 48px;
    height: 6px;
    background-color: #656363;
    margin: 11px 0;
    border-radius: 6px;
}
._margin{
    margin-left: auto !important;
    margin-right: 30px !important;
    width: 315px;
}
@media (max-width: 699px) {  
    .brandLabel{
        display: none;
    }
    .now_page_label{
        font-size: 50px;
        width: 100%;
        line-height: 50px;
        text-align: center;
        margin-left: 0;
    }
    .menu_btn_line {
        width: 22px;
        height: 3px;
        background-color: #656363;
        margin: 7px 0;
        border-radius: 6px;
    }
}
/* ↓共通項目 */
.input_error{
    background-color: red;
    color: white;
    max-width: 300px;
    margin: auto;
    font-size: 16px;
}
/* ↑共通項目 */
/* ↓一覧画面 */
.contents_list{
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
    margin-top: 40px;
}
.contents_outside{
    width: 300px;
    height: 380px;
    margin-bottom: 70px;
    margin-right: 20px;
    margin-left: 20px;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s;
}
.contents_outside:hover{
    opacity: 0.50;
}
.text_contents_outside{
    color: #656363;
    background-color: #F2EEEE;
    height: 200px;
}
.countent_title{
    font-size: 23px;
    text-align: left;
    padding: 15px 23px 4px;
}
.countent_date ,.content_text{
    text-align: left;
    padding: 0 23px;
    text-overflow: ellipsis;
    white-space: wrap;
}
.countent_date{
    font-size: 16px;
}
.content_text{
    font-size: 14px;
    padding-top: 25px;
    line-height: 27px;
    height: 55%;
}
.detail_text{
    text-align: left;
    line-height: 36px;
    padding-bottom: 90px;
    display: flex;
    flex-wrap: wrap;
}
.detail_img{
    margin-top: 10px;
    margin-bottom: 10px;
}
.right_half{
    margin-left: 10px;
    margin-bottom: 10px;
}
.left_half{
    margin-right: 10px;
    margin-bottom: 10px;
}
@media (max-width: 1100px) {  
    .detail_text{
        display: block;
    }
    .right_half, .left_half, .detail_img{
        width: 100% !important;
    }
    .img_center{
        margin-right: 0% !important;
        margin-left: 0% !important;    
    }
}

.image_cover{
    height: 180px;
    width: 300px;
}
.image_cover img{
    width: 100%; /* 親要素の幅にフィット */
    height: 100%; /* 親要素の高さにフィット */
    object-fit: cover; /* アスペクト比を維持しながらカバー */
    display: block; /* 不要な余白を防ぐ */
}
.noimage{
    text-align: center;
    line-height: 180px;
    font-size: 35px;
    color: #999999;
}
.alert-success{
    display: none;
    position: fixed;
    top: 0;
    left: 10%;
    right: 10%;
    text-align: center;
    background-color: #a8a8a8;
    color: white;
    z-index: 100;
}
.no_public_banner{
    position: absolute;
    background-color: #656363;
    color: white;
    padding: 1px 15px;
    font-weight: 200;
}
.mainitems_bottom_str{
    margin: 30px 0 10px;
    color: #656363;
    width: 100%;
}
.mainitems_pagenation{
    width: 100%;
    margin-bottom: 100px;
}
.pagenation_btns{
    margin-top: -3px;
    cursor: pointer;
}
.pagenation_btns:hover{
    opacity: 50%;
}
.pagenation_btn_left{
    transform: rotate(180deg);
    margin-right: 13px;
}
.pagenation_btn_right{
    margin-left: 13px;
}
/* ↑一覧画面 */
/* ↓詳細画面 */
.img_left{
    margin-left: 0;
}
.img_right{
    margin-right: 0;
}
.another_day{
    margin-top: 40px;
}
.center{
    width: 100%;
}
.detail_date{
    font-weight: 400;
    padding: 25px;
}
/* .convex_concave {
    width: 300px;
    height: 150px;
    background-color: #4caf50;
    clip-path: polygon(0 20%, 20% 0, 80% 0, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0 80%);
    margin: 50px auto;
} */
/* ↑詳細画面 */
/* ↓画像アップロードポップアップ */
.uploated_images{
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    max-height: 300px;
    overflow-y: auto;
}
.uploated_images_item_outside{
    height: 100px;
    width: 122px;
    border: 2px solid #656363;
    cursor: pointer;
    margin: 20px 20px 0 0;
    overflow: hidden; /* 子要素がはみ出さないようにする */
    display: flex; /* 画像を中央寄せする場合に有効 */
    justify-content: center;
    align-items: center;
}
.uploated_images_item_outside img{
    width: 100%; /* 親要素の幅にフィット */
    height: 100%; /* 親要素の高さにフィット */
    object-fit: cover; /* アスペクト比を維持しながらカバー */
    display: block; /* 不要な余白を防ぐ */
}
/* ↑画像アップロードポップアップ */
@media screen and (max-width: 740px) {
    ._margin{
        margin-left: auto;
        margin-right: auto !important;
        width: 100%;
    }
}
.menu_box{
    padding: 30px 36px;
    border-radius: 0;
}
.preview_modal_dialog{
    width: 80vw;
    max-width: none;
    height: 85vh;
    max-height: 85vh;
}
.menu_header{
    display: flex;
    justify-content: space-between;
}
.menu_close_btn{
    border: none;
    background-color: #ffffff00;
    width: 30px;
}
.menu_list{
    list-style: none;
    font-size: 28px;
    padding: 0;
    margin-bottom: -17px;
}
.menu_li{
    height: 42px;
    margin: 15px -20px;
    padding-left: 20px;
    line-height: 46px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.menu_li:hover {
    color: #fff;
    background-color: #656363; /* マウスオーバー時の背景色 */
}
.header_form{
    margin: 0 0 0 40%;
    z-index: 100;
    position: relative;
}
.header_form_block{
    text-align: center;
}
.header_form_inside_block{
    text-align: left;
    margin: 0 auto;
}
.header_form_inpot {
   border: none;
    font-size: 20px;
    margin: 10px 0 -5px 10px;
    position: relative;
    background-position: left 12px center;
    cursor: pointer;
    user-select: none;
}
.drop_down_class{
    font-weight: bold;
    font-size: 20px;
    padding-left: 27px;
}
.select_box{
    padding-left: 29px;
    display: none;
    user-select: none;
}
.header_drop_options{
    width: auto;
    cursor: pointer;
}
.header_drop_options:hover {
    color: #fff;
    background-color: #656363; /* マウスオーバー時の背景色 */
}
#add_type, #add_category{
    opacity: 0.5;
    font-family: 'Noto Sans JP';
    font-weight: 500;
}
:root {
    --bs-body-bg: #f8f8f8;
}
html, body {
    background-color: #f8f8f8; /* 全ページ共通の背景色 */
    height: 100%; /* ページ全体の高さを確保 */
    display: flex;
    flex-direction: column;
}

#main {
    flex-grow: 1; /* メインコンテンツが余った高さを埋める */
}
#bottomline{
    margin-top: 10px;
    width: 88.5%;
    height: 1px;
    background-color: #000;
}

/*フッター*/
footer {
    /* position: absolute;
    bottom: 0; */
    width: 100vw;
    height: 140px;
    text-align: center;
    margin-left: -60px;
    margin-bottom: 10px;
}
.footer_bland{
    font-size: 63px;
    letter-spacing: 5px;
}
.copyright{
    height: 215px;
    margin-top: 6px;
    font-size: 24px;
    letter-spacing: 0.45px;
}
/* ここまでmain.php（layoutファイル） */

/* editer pages begin*/
.btn_base{
    color: #000;
    background-color: #f8f8f8;
    font-weight: 400;
    font-size: 22px;
    border: solid 1.7px #000;
    transition: background-color 0.3s, color 0.3s;
    font-family: "Noto Sans JP", serif;
    font-style: normal;
}
.editer_page_form{
    text-align: center;
}
.login_page{
    max-width: 500px;
    margin: 80px auto 80px;
    padding: 0 16px;
}
.login_input{
    display: block;
    width: 100%;
    font-size: 19px;
    text-align: center;
    border: 0;
    border-bottom: #000 1px solid;
    border-radius: 0;
    background-color: transparent;
    padding: 10px 4px;
    margin-bottom: 8px;
}
.login_input:focus{
    outline: none;
    box-shadow: none;
    border-bottom-color: #656363;
}
.login_actions{
    margin-top: 28px;
    text-align: right;
}
.login_btn{
    padding: 4px 48px;
}
.title_editer{
    margin-top: 10px;
    font-size: 30px;
    border: 0px;
    min-width: 100%;
    text-align: center;
}
.works_title{
    margin-top: 10px;
    font-size: 45px;
    border: 0px;
    text-align: left;
    font-weight: 500;
    max-width: 830px;
    margin: auto;
}
#works_main_image{
    background-color: #EFEFEF;
    height: 600px;
    max-width: 800px;
    margin: auto;
    align-content: center;
}
#no_main_image{
    font-size: 45px;
    font-weight: 500;
    color: #949494;
}
.writing_date{
    margin: 10px 40%;
    font-size: 19px;
    border: 0px;
    width: 20%;
    text-align: center;
}
.contents_editer{
    font-size: 19px;
    border: 0px;
    border-bottom: #000 1px solid;
    margin: 0 12px;
    padding-bottom: 300px;
}
.btn_setting{
    height: 45px;
    border: 2px solid #656363;
    cursor: pointer;
}
.h_btn:hover{
    background-color: #b4b4b4;
    color: white;
}
.right_side{
    margin-left: auto;
    margin-right: 0px;
    margin-top: 20px;
}
.submit_btn{
    width: 116px;
    font-size: 22px;
    display: flex;
    justify-content: center;
    background-color: #656363;
    color: white;
    padding-top: 4px;
    margin-top: 20px;
    margin-left: 25px;
    transition: background-color 0.3s, color 0.3s;
}
.submit_btn::after{
    content: "Submit";
    margin-left: 6px;
}
.image_in_btn{
    width: 173px;
    font-size: 22px;
    display: flex;
    justify-content: center;
    padding-top: 4px;
    margin-top: 20px;
    margin-left: 25px;
    transition: background-color 0.3s, color 0.3s;
}
.image_in_btn::after{
    content: "Imageinsert";
    margin-left: 6px;
}
.img_icon{
    height: 23px;
    margin-top: 6px;
}
.preview_btn{
    width: 170px;
    font-size: 22px;
    display: flex;
    justify-content: center;
    padding-top: 4px;
    margin-top: 20px;
    transition: background-color 0.3s, color 0.3s;
}
.preview_btn::after{
    content: "Preview";
    margin-left: 6px;
}
.pv_im_out{
    height: 27px;
    width: 27px;
    border: 1.5px solid #656363;
    border-radius: 16px;
    margin-top: 4px;
}
.pv_im_inside{
    height: 15px;
    width: 15px;
    background-color: #656363;
    border-radius: 10px;
    margin: 2px 3px auto auto;
}
.display_switch {
    width: 215px;
    text-align: center;
    position: relative;
    line-height: 45px;
}
.switch_length_center{
    width: 26px;
}
.switch_length {
    font-size: 14px;
    display: flex;
    left: 33px;
    /* justify-content: center; 水平方向中央寄せ */
    align-items: center; /* 垂直方向中央寄せ */
    height: 100%;
    position: relative; /* 必須: 背景の上に配置するため */
    z-index: 3;
}
.switch_toggle_bg{
    background-color: #656363;
    position: absolute;
    top: 5px;
    width: 110px;
    height: 33px;
    z-index: 1; /* 背景のレイヤー */
}
.true{
    left: 6px;
    transition: left 0.3s;
}
.false{
    left: 94px;
    transition: left 0.3s;
}
.switch_lengs{
    color: #212529;
    transition: color 0.3s;
}
.switch_select{
    color: white;
    transition: color 0.3s;
}
.inner_toggle{
    background-color: #DADADA;
    width: 15px;
    height: 33px;
    position: absolute;
    z-index: 2;
}
/* editer pages end */

.editer_page_selecter_box{
    text-align: center;
    font-family: "Noto Serif HK", serif;
    font-style: normal;
}


/* Yii2以下デフォルト */
main > .container {
    padding: 95px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}
.header_brand_label_mobile {
    display: none;
}
@media(max-width:500px){
    .header_form {
        margin: 0 0 0 20%;
        background-color: #ffffff7a;
    }
    main > .container {
        padding: 100px 0 20px;
    }
    .header_line{
        position: fixed;
        top: 38px;
        left: 10%;
        right: 10%;
    }
    .header_form{
        position: fixed;
        top: 88px;
        padding-bottom: 16px;
        padding-right: 15px;
    }
    .header_brand_label_mobile{
        display: inline;
        position: fixed;
        top: 13px;
        margin-left: 6%;
        margin-right: 6%;
        font-size: 18px;
        letter-spacing: 9.7px;
    }
    .footer_bland{
        font-size: 30px;
        margin: 0 -16px;
    }
    .copyright {
        font-size: 12px;
        height: 70px;
    }
    footer {
        margin-left: 0;
        width: 100%;
    }
    .contents_outside{
        width: 100%;
        margin-right: 0px;
        margin-left: 0px;
        margin-bottom: 107px;
    }
    .image_cover {
        height: 225px;
        width: 100%;
    }
    .contents_editer {
        margin: 0;
    }
    .writing_date{
        margin: 0;
        border: 0px;
        width: 100%;
        height: 74px;
    }
    .title_editer{
        font-size: 22px;
    }
    .btn_base{
        width: 100%;
        margin-bottom: 25px;
    }
    .detail_date{
        font-size: 14px;
        padding: 10px 0;
    }
}
/* ↓WORKS一覧（サムネタイプごとにサイズが変わるグリッド）
   Small=1列x1段 / Wide=2列x1段 / Tall=1列x2段。PCは4列、〜1299pxは2列、〜699pxは1列（全カード同じ高さ） */
/* 一覧のカード寸法：1/4 Small の画像 = 300 x 380px を基準に、Wide(2列) / Tall(2段) を同じスケールで構成 */
.works_wrap{
    container-type: inline-size;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}
.works_grid{
    --works-col-w: 300px;
    --works-img-h: 380px;
    --works-text-h: 110px;
    --works-gap-x: 20px;
    --works-gap-y: 40px;
    display: grid;
    grid-template-columns: repeat(4, var(--works-col-w));
    grid-auto-rows: calc(var(--works-img-h) + var(--works-text-h));
    grid-auto-flow: dense;
    justify-content: center;
    column-gap: var(--works-gap-x);
    row-gap: var(--works-gap-y);
    width: 100%;
    margin: 0 0 80px;
    padding: 0 20px;
    box-sizing: border-box;
}
.works_card{
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    cursor: pointer;
    text-align: left;
    opacity: 1;
    transition: opacity 0.3s;
}
.works_card:hover{
    opacity: 0.50;
}
/* ログイン中のみ、カードにマウスを乗せたときに表示する並び替えボタン */
.works_sort_btns{
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 5;
    display: none;
    gap: 4px;
}
.works_card:hover .works_sort_btns{
    display: flex;
}
.works_sort_btn{
    border: none;
    background-color: #656363;
    color: #fff;
    width: 30px;
    height: 26px;
    font-size: 12px;
    line-height: 26px;
    padding: 0;
    cursor: pointer;
}
.works_sort_btn:hover{
    background-color: #000;
}
.works_sort_btn:disabled{
    opacity: 0.35;
    cursor: default;
}
.works_small{
    grid-column: span 1;
    grid-row: span 1;
}
.works_wide{
    grid-column: span 2;
    grid-row: span 1;
}
.works_tall{
    grid-column: span 1;
    grid-row: span 2;
}
.works_card .image_cover{
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    height: auto;
}
.works_card .noimage{
    line-height: normal;
    padding-top: 20%;
}
.works_card .text_contents_outside{
    flex: 0 0 var(--works-text-h);
    height: var(--works-text-h);
    box-sizing: border-box;
    overflow: hidden;
}
.works_card .countent_title{
    font-size: 18px;
    padding: 14px 16px 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.works_card .countent_date,
.works_card .works_artist{
    font-size: 14px;
    padding: 0 16px;
    line-height: 1;
    margin-top: 10px;
}
.works_card .works_artist{
    font-size: 13px;
}
@media (max-width: 1299px) {
    /* 2列。Wide は2列ぶん、Tall は2段 */
    .works_grid{
        grid-template-columns: repeat(2, var(--works-col-w));
    }
}
@media (max-width: 699px) {
    /* 1列（幅いっぱい）。画像は 300:380 の比率を保つ。Wide・Small は1段、Tall は2段 */
    .works_grid{
        --works-gap-x: 0px;
        grid-template-columns: 1fr;
        grid-auto-rows: calc((100cqw - 32px) * 380 / 300 + var(--works-text-h));
        padding: 0 16px;
    }
    .works_wide{
        grid-column: span 1;
    }
    .works_tall{
        grid-row: span 1;
    }
}
/* ↑WORKS一覧 */
/* ↓WORKS登録・詳細 */
.works_select_row{
    max-width: 800px;
    margin: 14px auto 0;
    text-align: left;
    color: #656363;
    font-size: 16px;
    font-weight: 500;
    padding: 0 4px;
}
.works_select_row .works_select_label{
    display: inline-block;
    min-width: 110px;
}
.works_select_row select{
    border: 0;
    border-bottom: 1px solid #656363;
    background: transparent;
    color: #656363;
    font-size: 16px;
    font-weight: 500;
    padding: 2px 24px 2px 6px;
    cursor: pointer;
}
.works_detail_title{
    margin: 10px auto 0;
    font-size: 45px;
    font-weight: 500;
    text-align: left;
    max-width: 800px;
    color: #656363;
    word-break: break-word;
}
.works_detail_main_image{
    background-color: #EFEFEF;
    max-width: 800px;
    margin: 20px auto 0;
    min-height: 200px;
    align-content: center;
    text-align: center;
}
.works_detail_main_image img{
    display: block;
    width: 100%;
    height: auto;
}
.works_detail_meta{
    max-width: 800px;
    margin: 30px auto 0;
    text-align: left;
    color: #656363;
    font-weight: 500;
    line-height: 1.6;
}
.works_detail_meta .works_detail_year{
    margin-bottom: 22px;
}
.works_detail_body{
    max-width: 800px;
    margin: 30px auto 0;
}
@media (max-width: 699px) {
    .works_detail_title{
        font-size: 26px;
    }
    #works_main_image, .works_detail_main_image{
        height: auto;
        min-height: 200px;
    }
    #no_main_image{
        font-size: 26px;
    }
}
/* ↑WORKS登録・詳細 */

/* works 登録画面：メイン画像のボタン */
.works_main_image_btns{
    max-width: 800px;
    margin: 14px auto 14px;
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: center;
}
#works_main_image img#main_image_preview{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* works 登録画面：Artist / Category / Thumbnail のドロップダウン（「ラベル ▶ 値」を1行表示） */
.works_dropdown{
    max-width: 800px;
    margin: 10px auto 0;
    text-align: left;
    position: relative;
    z-index: 50;
    color: #656363;
    padding: 0 4px;
}
.works_dropdown .header_form_inpot{
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}
.works_dropdown .works_select_label{
    display: inline-block;
    min-width: 90px;
}
.works_dropdown .header_form_inpot img{
    height: 13px;
    margin: 0 8px 2px 0;
}
.works_dropdown .select_box{
    background: #f8f8f8;
    padding-left: 114px;
    font-size: 16px;
    font-weight: 500;
}

/* works 登録画面：制作年（枠なし＋年ピッカー） */
.works_year_wrap{
    max-width: 800px;
    margin: 10px auto 0;
    position: relative;
    z-index: 60;
}
#create_year.create_year{
    text-align: left;
    display: block;
    margin: 0;
    border: 0;
    outline: none;
    box-shadow: none;
    background: transparent;
    padding: 2px 4px;
    width: 120px;
    font-size: 16px;
    color: #656363;
    cursor: pointer;
}
.year_picker{
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background: #f8f8f8;
    border: 1px solid #656363;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.year_picker_head{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: #656363;
}
.year_picker_head button{
    border: 0;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    color: #656363;
}
.year_grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.year_cell{
    border: 0;
    background: #f4f2f2;
    padding: 8px 0;
    cursor: pointer;
    color: #656363;
}
.year_cell:hover, .year_cell.active{
    background: #656363;
    color: #fff;
}

/* ↓PROFILE（一覧・詳細・登録編集） */
.profile_grid{
    display: grid;
    grid-template-columns: repeat(2, 547px);
    justify-content: center;
    column-gap: 101px;
    row-gap: 135px;
    width: 100%;
    margin: 30px 0 100px;
    padding: 0 20px;
    box-sizing: border-box;
}
.profile_card{
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
    text-align: left;
    transition: opacity 0.3s;
}
.profile_card:hover{
    color: inherit;
    opacity: 0.5;
}
.profile_card_image{
    width: 100%;
    aspect-ratio: 547 / 670;
    background-color: #EFEFEF;
    overflow: hidden;
}
.profile_card_image img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile_card_image .noimage{
    line-height: normal;
    padding-top: 40%;
    margin: 0;
}
.profile_card_text{
    background-color: #F1EEED;
    padding: 26px 47px 24px;
    color: #656363;
}
.profile_card_name{
    font-size: 30px;
    font-weight: 500;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile_card_name_en{
    font-size: 20px;
    line-height: 1.3;
    margin-top: 4px;
    letter-spacing: 0.04em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-height: 1.3em;
}
.profile_detail_main_image,
.profile_main_image{
    max-width: 757px;
    margin: 0 auto;
}
.profile_main_image{
    height: auto;
    aspect-ratio: 757 / 535;
    overflow: hidden;
}
.profile_main_image img#main_image_preview{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile_detail_name,
.profile_name_input{
    max-width: 757px;
    margin: 20px auto 0;
    font-size: 45px;
    font-weight: 500;
    color: #656363;
    text-align: left;
    line-height: 1.3;
    word-break: break-word;
}
.profile_detail_name_en,
.profile_name_en_input{
    max-width: 757px;
    margin: 8px auto 0;
    font-size: 20px;
    color: #656363;
    text-align: left;
    letter-spacing: 0.04em;
}
.profile_name_input,
.profile_name_en_input{
    display: block;
    width: 100%;
    border: 0;
    outline: none;
    box-shadow: none;
    background: transparent;
    padding: 0 4px;
}
.profile_detail_body,
.profile_contents{
    max-width: 757px;
    margin: 60px auto 0;
}
.profile_contents{
    display: block;
    width: 100%;
}
.profile_main_image_btns{
    max-width: 757px;
    margin: 14px auto 0;
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.profile_main_image_btns .btn_base{
    font-size: 18px;
    padding: 2px 10px;
    text-decoration: none;
    line-height: 1.5;
}
.profile_btn_icon{
    height: 14px;
    margin: 0 4px 3px 0;
}
.profile_page_actions{
    max-width: 757px;
    margin: 0 auto;
}
@media (max-width: 1299px) {
    .profile_grid{
        grid-template-columns: repeat(2, 1fr);
        column-gap: 40px;
        row-gap: 60px;
    }
}
@media (max-width: 699px) {
    .profile_grid{
        grid-template-columns: 1fr;
        row-gap: 40px;
        padding: 0 16px;
    }
    .profile_card_text{
        padding: 18px 20px;
    }
    .profile_card_name{
        font-size: 22px;
    }
    .profile_card_name_en{
        font-size: 16px;
    }
    .profile_detail_name,
    .profile_name_input{
        font-size: 26px;
    }
    .profile_detail_main_image,
    .profile_main_image{
        height: auto;
        min-height: 200px;
    }
    .profile_detail_body,
    .profile_contents{
        margin-top: 30px;
    }
}
/* ↑PROFILE */

/* ↓AFFILIATE（一覧・詳細・登録編集。詳細・登録編集は PROFILE のクラスを共用） */
.affiliate_notice{
    max-width: 1300px;
    margin: 20px auto 0;
    padding: 0 20px;
    text-align: left;
    font-size: 14px;
    color: #656363;
}
.affiliate_grid{
    display: grid;
    grid-template-columns: repeat(3, 380px);
    justify-content: center;
    column-gap: 40px;
    row-gap: 60px;
    width: 100%;
    margin: 30px 0 100px;
    padding: 0 20px;
    box-sizing: border-box;
}
.affiliate_card{
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
    text-align: left;
    transition: opacity 0.3s;
}
.affiliate_card:hover{
    color: inherit;
    opacity: 0.5;
}
.affiliate_card_image{
    width: 100%;
    aspect-ratio: 380 / 270;
    background-color: #EFEFEF;
    overflow: hidden;
}
.affiliate_card_image img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.affiliate_card_image .noimage{
    line-height: normal;
    padding-top: 22%;
    margin: 0;
}
.affiliate_card_text{
    background-color: #F1EEED;
    padding: 16px 24px 18px;
    color: #656363;
}
.affiliate_pr{
    display: inline-block;
    border: 1px solid #656363;
    color: #656363;
    font-size: 12px;
    line-height: 1;
    padding: 3px 6px;
    margin-bottom: 8px;
}
.affiliate_detail_pr{
    display: block;
    width: fit-content;
    max-width: 757px;
    margin: 20px auto 0 max(0px, calc((100% - 757px) / 2));
}
.affiliate_card_title{
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.affiliate_card_advertiser{
    font-size: 15px;
    margin-top: 4px;
    min-height: 1.3em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.affiliate_url_input{
    display: block;
    width: 100%;
    max-width: 757px;
    margin: 12px auto 0;
    border: 0;
    border-bottom: 1px solid #656363;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    background: transparent;
    padding: 4px;
    font-size: 16px;
    color: #656363;
}
.affiliate_link_wrap{
    max-width: 757px;
    margin: 40px auto 0;
    text-align: left;
}
.affiliate_link_btn{
    display: inline-block;
    padding: 8px 28px;
    font-size: 18px;
    text-decoration: none;
}
@media (min-width: 700px) {
    .affiliate_edit_btn{
        margin-left: 12px;
    }
}
@media (max-width: 1299px) {
    .affiliate_grid{
        grid-template-columns: repeat(2, minmax(0, 380px));
    }
}
@media (max-width: 799px) {
    .affiliate_detail_pr{
        margin-left: 0;
    }
}
@media (max-width: 699px) {
    .affiliate_grid{
        grid-template-columns: 1fr;
        row-gap: 40px;
        padding: 0 16px;
    }
}
/* ↑AFFILIATE */

/* ↓WORKS一覧のページネーション（◀ [1] [2] [3] ▶。現在ページは塗りつぶし） */
.works_pagination_wrap{
    margin: 60px 0 100px;
    color: #656363;
}
.works_pagination_title{
    font-size: 20px;
    letter-spacing: 0.04em;
    margin-bottom: 22px;
}
.works_pagination{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.works_page_num{
    box-sizing: border-box;
    width: 28px;
    height: 27px;
    border: 1px solid #656363;
    color: #656363;
    font-size: 14px;
    line-height: 25px;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.3s;
}
a.works_page_num:hover{
    color: #656363;
    opacity: 0.5;
}
.works_page_num.current{
    background-color: #656363;
    color: #fff;
}
.works_page_arrow{
    display: inline-flex;
    transition: opacity 0.3s;
}
.works_page_arrow img{
    display: block;
    width: 20px;
    height: 23px;
}
a.works_page_arrow:hover{
    opacity: 0.5;
}
.works_page_arrow.disabled{
    opacity: 0.2;
}
/* ↑WORKS一覧のページネーション */

/* ↓SEO設定画面 */
.seo_page{
    max-width: 800px;
    margin: 30px auto 100px;
    padding: 0 16px;
    text-align: left;
    color: #656363;
}
.seo_page_title{
    font-size: 32px;
    margin-bottom: 16px;
}
.seo_lead, .seo_tips{
    font-size: 15px;
    line-height: 1.8;
}
.seo_tips{
    padding-left: 20px;
    margin-bottom: 30px;
}
.seo_card{
    border-top: 1px solid #656363;
    padding: 22px 0 26px;
}
.seo_card_title{
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
}
.seo_label{
    display: block;
    font-size: 14px;
    margin: 14px 0 4px;
}
.seo_count{
    color: #949494;
    margin-left: 8px;
}
.seo_input{
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #b5b3b3;
    border-radius: 0;
    background: #f8f8f8;
    padding: 8px 10px;
    font-size: 16px;
    color: #333;
}
.seo_input::placeholder{
    color: #b0aeae;
}
.seo_error{
    color: #c0392b;
    font-size: 13px;
    margin-top: 4px;
}
.seo_actions{
    border-top: 1px solid #656363;
    padding-top: 24px;
}
.seo_actions .btn_base{
    padding: 4px 36px;
}
/* ↑SEO設定画面 */

/* ↓SEO設定画面：アクセス分析 */
.seo_report_frame{
    position: relative;
    width: 100%;
    height: 640px;
    border: 1px solid #d6d3d3;
    background: #f7f6f6;
}
.seo_report_frame iframe{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.seo_hint{
    font-size: 13px;
    line-height: 1.7;
    color: #949494;
    margin: 6px 0 0;
}
@media (max-width: 699px) {
    .seo_report_frame{
        height: 480px;
    }
}
/* ↑SEO設定画面：アクセス分析 */

/* ↓LINKS（一覧のみ） */
.links_list{
    list-style: none;
    max-width: 757px;
    margin: 40px auto 100px;
    padding: 0 20px;
    text-align: left;
}
.links_item{
    margin-bottom: 40px;
    padding: 14px 0;
}
.links_link{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    color: #656363;
    text-decoration: none;
    transition: opacity 0.3s;
}
.links_link:hover{
    color: #656363;
    opacity: 0.5;
}
.links_thumb{
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    background: #EFEFEF;
    overflow: hidden;
}
.links_thumb.links_thumb_banner{
    flex: 0 1 auto;
    width: auto;
    height: auto;
    max-width: 100%;
    background: none;
}
.links_thumb.links_thumb_banner img{
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}
.links_thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.links_main{
    display: flex;
    align-items: center;
    gap: 16px;
}
.links_comment{
    margin-top: 10px;
    margin-left: 20px;
    font-size: 14px;
    color: #8a8786;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.links_name{
    font-size: 18px;
    word-break: break-all;
}
.links_nopublic{
    font-size: 11px;
    border: 1px solid #656363;
    padding: 2px 6px;
}
.links_admin{
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.links_admin_form{
    display: flex;
    gap: 8px;
    margin: 0;
}
/* マウスのある環境では、行にマウスを乗せたとき（またはキーボードフォーカス時）だけ管理UIを表示。タッチ端末は常時表示 */
@media (hover: hover) {
    .links_admin{
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.2s;
    }
    .links_item:hover .links_admin,
    .links_item:focus-within .links_admin{
        visibility: visible;
        opacity: 1;
    }
}
.links_form{
    max-width: 757px;
    margin: 30px auto 0;
    text-align: left;
    padding: 0 20px;
}
.links_form_label{
    display: block;
    margin-top: 16px;
    color: #656363;
}
/* ↑LINKS */
.links_form_preview{margin-top:16px}
.links_form_preview img{display:block;width:120px;height:120px;object-fit:cover;margin-bottom:6px;background:#EFEFEF}
