* { box-sizing: border-box; margin: 0; padding: 0; }
    body { background-color: #e0f7fa; font-family: sans-serif; color: #333; }
    a { text-decoration: none; }

    /* レイアウト */
    .layout { display: flex; min-height: 100vh; }

    /* サイドバー */
    .sidebar .logo img,.sidebar_buyer .logo img { max-width: 100%; height: auto; margin-bottom: 20px; }
    .sidebar nav a,.sidebar_buyer nav a { display: block; margin-bottom: 10px; padding: 10px; background: #fff; border-radius: 4px; color: #333; }
    .sidebar nav a.active,.sidebar_buyer nav a.active { background: #ff8c00; color: #fff; }
    .sidebar nav a.logout,.sidebar_buyer nav a.logout { background: #777; color: #fff; text-align: center; }

    /* メイン */
    .main { flex: 1; padding: 20px; }

    /* タブ */
    .tabs { display: flex; margin-bottom: 20px; }
    .tab { flex: 1; text-align: center; padding: 10px; background: #777; color: #fff; border-radius: 4px; margin-right: 10px; }
    .tab:last-child { margin-right: 0; }
    .tab.active { background: #ff8c00; }

    /* フォームコンテナ */
    .form-container { background: #fff; padding: 20px; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
    .top-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
    .top-info h2 { font-size: 1.25em; }
    .btn { display: inline-block; padding: 8px 16px; border: none; border-radius: 4px; color: #fff; cursor: pointer; }
    .btn-secondary { background: #777; }
    
    .btn-secondary:hover, .btn-primary:hover { opacity: 0.8; }

    /* フォーム */
    .form-group { display: flex; align-items: center; margin-bottom: 15px; }
    .form-group label { font-weight: 500; }
    .form-group input[type="text"], .form-group select { flex: 1; padding: 8px 10px; border: 1px solid #ccc; border-radius: 4px; }
    .form-group input[readonly] { background: #f0f0f0; }
    .checkbox-group { display: flex; flex-wrap: wrap; }
    .checkbox-group label { margin-right: 15px; display: flex; align-items: center; }
    .checkbox-group input { margin-right: 5px; }
    .button-container { text-align: center; margin-top: 20px; }

    /* レスポンシブ */
    @media (max-width: 768px) {
      .layout { flex-direction: column; }
      .sidebar_buyer { width: 100%; display: flex; overflow-x: auto; }
      .sidebar_buyer nav a { flex: 1; margin-right: 5px; }
      .main { padding: 10px; }
      .tabs { flex-wrap: wrap; }
      .tab { margin-bottom: 10px; flex: none; width: calc(50% - 5px); }
      .form-group { flex-direction: column; align-items: flex-start; }
      .form-group label { width: 92%; margin-bottom: 5px; }
      .form_send  { width:100%;left:0px;}
    }

 /* ベースリセット */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    body {
      background-color: #e0e7fa;  /* 水色背景 */
      font-family: sans-serif;
      color: #333;
    }
    body.buyer , .buyer .sidebar,.sidebar_buyer {
     background-color: #e0f7fa;    
    }
    body.employee , .employee .sidebar {
     background-color: #e0faed;    
    }
    a { text-decoration: none; }

    /* レイアウト */
    .layout {
      display: flex;
      min-height: 83vh;
    }

    /* サイドバー */
    .sidebar_buyer {
      /* background-color: #e0e7fa;  サイドも水色 */
    }
    .sidebar,.sidebar_buyer {
      width: 250px;
      min-width:200px;
      padding: 20px;
    }
    .sidebar .logo ,.sidebar_buyer .logo {
      display: block;
      margin-bottom: 30px;
      text-align: center;
    }
    .sidebar .logo img,.sidebar_buyer .logo img {
      max-width: 100%;
      height: auto;
    }
    .sidebar nav a,.sidebar_buyer nav a {
      display: block;
      padding: 10px 12px;
      margin-bottom: 8px;
      border-radius: 4px;
      color: #333;
      transition: background .2s;
    }
    .sidebar nav a:hover ,.sidebar_buyer nav a:hover {
      background-color: rgba(0,0,0,0.05);
    }

    /* メインコンテンツ */
    .main {
      flex: 1;
      padding: 20px;
    }


.btn[disabled]:hover {
    opacity: .65;
    cursor: default;
}

.fileinput .thumbnail {
    display: inline-block;
    margin-bottom: 10px;
    overflow: hidden;
    text-align: center;
    vertical-align: middle;
    max-width: 360px
}

.fileinput .thumbnail.img-circle {
    border-radius: 50%;
    max-width: 100px
}

.fileinput .thumbnail>img {
    max-height: 100%
}

.fileinput .btn {
    vertical-align: middle
}

.fileinput-exists .fileinput-new,.fileinput-new .fileinput-exists {
    display: none
}

.fileinput-inline .fileinput-controls {
    display: inline
}

.fileinput-filename {
    display: inline-block;
    overflow: hidden;
    vertical-align: middle
}

.form-control .fileinput-filename {
    vertical-align: bottom
}

.thumbnail {
    border: 0 none;
    border-radius: 0;
    padding: 0
}

.btn-file {
    position: relative;
    overflow: hidden;
    vertical-align: middle
}

.btn-file>input {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    font-size: 23px;
    cursor: pointer;
    filter: alpha(opacity=0);
    opacity: 0;
    /* direction: ltr */
}

.reserve_method {
    position: absolute;
    left:calc(50% + 40px);
    top:25%;
    width:70px;
    border:solid 1px #cccccc;
    font-size: 0.9em;
    color:#ffffff;

}

.reserve_method_icon {
    width:70px;
    border:solid 1px #cccccc;
    font-size: 0.9em;
    display:inline-block;
    padding:2px;
    color:#ffffff;
    font-weight: bold;

}

.preopen_display_none {
    display:none !important;
}

.beta_owner {
    background:#2CA8FF;
    text-align: center;
    font-weight: bold;
    font-size:14pt;
    color:#ffffff;
    padding:3px;
}
.beta_owner2 {
    background:#FFA500;
    text-align: center;
    font-weight: bold;
    font-size:14pt;
    color:#ffffff;
    padding:3px;
}
.beta_3 {
    margin-top:73px;
    margin-bottom:-73px;
    z-index:99;
    position: relative;
    background:#FF9B96;
    text-align: center;
    font-weight: bold;
    font-size:14pt;
    color:#ffffff;
    padding:3px;
}
.beta_3.beta_3_2 {
    margin-top:0px;
    margin-bottom:0px;
}

.file_textlink {
    display:inline-block;
    vertical-align: middle;
    text-align:center;
    padding:5px;
    background: #f5f5f5;
    border:solid 1px #CCCCCC;
    width:300px;
    margin-top:5px;
    margin-bottom:5px;
    border-radius: 3px;
}

.blogbanner_div {
    width:75%;
    margin:auto;
    text-align:center;
}
.blogbanner {
    width:47%;
}
.blogbanner_clinic_div{
    padding: 15px;
}
.blogbanner_clinic {
    width:80%;
}
#description{
    resize:both;
    max-height: 500px;
}

#end_messege{
    z-index: 99999;
    position: absolute;
    top:150px;
    margin:0 auto;
    left:0;right:0;
    background:#ffffff;
    border-radius: 10px;
    border: none;
    box-shadow: 2px 2px 4px 0px rgba(95, 95, 95, 0.5);
    padding:15px;
    text-align: center;
    font-size: 16pt;
    min-width: 500px;
    max-width:80%;
    height: 80px;
    font-weight: 500;
    border-bottom: none;
    padding-top: 35px;
    padding-right: 35px;
    padding-left: 24px;
    border:solid 2px #16085a62;
    border-top:solid 3px #15085acd;
    border-bottom:solid 3px #15085acd;
    }
#end_messege.out{
    height: auto;
}
#end_messege .in{
    text-align: left;
    font-weight: 400;
    font-size:0.9em;
    color:red;
}
.waiting_tr {
    background:#ebfaff;
}

.scroll_anchor {
    position:relative;
    top:0px;
}

.fuki-block {
    position: relative;
    height:460px;
    min-width:1110px;
}
/* ハンバーガーメニュー用CSS */
.hamburger-btn-buyer {
    display: none;
    position: fixed;
    top: 10px;
    right: 10px; /* 右側に配置 */
    z-index: 1001;
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 12px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 4px;
}

.hamburger-btn-buyer:hover {
    background: #555;
}

/* SPヘッダー（ロゴ表示用） */
.sp-header-buyer {
    display: none;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #fff;
    z-index: 1000;
    padding: 5px 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    align-items: center;
}

.sp-header-buyer .logo img {
    max-height: 40px;
    width: auto;
}

/* オーバーレイ */
.sidebar-overlay-buyer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.sidebar-overlay-buyer.open {
    display: block;
}


@media screen and (max-width: 600px) {
    .beta_owner {
        font-size:3.7vw;
        text-align: left;
    }
    .beta_owner2 {
        font-size:3.7vw;
        text-align: left;
    }
    .beta_3 {
        font-size:3.7vw;
        text-align: left;
    }

    .blogbanner {
        width:98%;
    }
    .sp_x_scroll {
        overflow-x: scroll;
    }
    div.fuki-blue {
        position: relative;
    }
    div.fuki-blue-text {
        top:50px;
    }
    div.fuki-gray {
        position: relative;
        top:-50px;
        left:0;

    }
    div.fuki-gray-text  {
        position: relative;
        top:-310px;
        left:0;
    }
    div.fuki-orange  {
        position: relative;
        top:-220px;
        left:0;
    }
    div.fuki-orange-text  {
        position: relative;
        top:-490px;
        left:0;
    }
    div.fuki-pink  {
        position: relative;
        top:-400px;
        left:60px;
    }
    div.fuki-pink-text  {
        position: relative;
        top:-630px;
        left:0px;
    }
    div.fuki-block {
        position: relative;
        height:1000px;
        min-width:auto;
        width:98%;
        margin:auto;
    }
    div.caracter_block {
        display: flex;
    }
    div.character1 {
        position: relative;
        top:-600px;
        left:0;
        max-width:30vw;
    }
    div.character2 {
        position: relative;
        top:-600px;
        left:0;
        max-width:30vw;
    }
    div.character3 {
        position: relative;
        top:-600px;
        left:0;
        max-width:30vw;
    }
    div.character1 img,div.character2 img,div.character3 img{
        max-width:30vw;
    }

    div.fllow_top:after {
        content:"";
        border-top:none;
    }
    html a.btn-orange-lg {
        font-size: 18px;
    }

    div.header_scroller {
        top:55px;
        margin-right:0;
        justify-content: space-between;
        width:100%;
        flex-wrap: wrap;
      }
      div.header_scroller button.btn {
        width:31%;
        padding:3px 3px;
      }
      div.header_scroller::after {
          content:" ";
          display: block;
          width:32%;
      }

}

@media screen and (min-width: 680px){
    /* PC幅 */
  .onlypc_block { display:block; }
  .onlypc_inline { display:inline; }
  .onlysp_block { display:none; }
  a[href*="tel:"] {
    cursor: auto !important;
    color: inherit; 
    text-decoration: none;
    pointer-events: none;
  }
}
@media screen and (max-width: 680px){
    /* スマホ幅 */
    .onlypc_block { display:none; }
    .onlypc_inline { display:none; }
    .onlysp_block { display:block; }
    .sp_display_none {display: none !important;}

     .hamburger-btn-buyer {
        display: block;
    }
    
    .sp-header-buyer {
        display: flex;
    }
    
    .sidebar_buyer {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100%;
        background: #fff;
        z-index: 1002;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    }
    
    .sidebar_buyer.open nav{ 
        width:100%;
    }
    .sidebar_buyer.open {
        left: 0;
    }
    .sidebar_buyer.open .logo{
        display:none;
    }
    
    .main {
        margin-left: 0 !important;
        padding-top: 60px; /* SPヘッダー分の余白 */
    }
}

.nav-item {
    font-size: 12px !important;
}

.font_red {
    color: red;
}
.font_orange {
    color:#F0662F;
}
.display_none {
    display: none;
}
.text_right {
    text-align: right;
}

.chat_from span.time, .chat_to span.time, .chat_from_hide span.time {
    float:right;
    display: block;
    font-size:smaller;
}

.chat_from span.status, .chat_to span.status, .chat_from_hide span.status {
    float:right;
    display: block;
    font-size:smaller;
}

.chat_from, .chat_to,.chat_from_hide {
    border:solid 1px #cccccc;
    border-radius: 10px;        /* CSS3A¨A?a?°A|A!E† */
    -webkit-border-radius: 10px;    /* Safari,Google ChromeA§a??A¨ */
    -moz-border-radius: 10px;   /* FirefoxA§a??A¨ */
    padding:5px 7px;
    width: 90%;
}
.chat_from h3,.chat_to h3,.chat_from_hide h3 {
    font-size: 11pt;
    font-weight: bold;

}
.chat_from .h3_span,.chat_to .h3_span {
    font-size: 10pt;
    font-weight: 400;

}
.chat_from {
    background: #ffffff;
    margin-left:9%;
    margin-bottom:10px;
}

.chat_from .delete_link {
	text-align:right;
}

.chat_to .delete_link {
	text-align:right;
}

.chat_from_hide {
    background: #f0f0f0;
    margin-right:9%;
    margin-bottom:10px;
}

.chat_to {
    background: #EAF8FF;
    margin-right:9%;
    margin-bottom:10px;
}

.itemname {
    padding:3px;
    border-radius: 5px;
    background: #F9F5EC;
    color:#976200;
}

.form_send {
    /* margin:auto; */
    /* text-align: center; */
}
.form_send textarea {
    width:100%;
    /* max-width: 800px; */
    margin:auto;
}

.form_send .fileupload{
    background: url("../../assets/img/newupload.png") no-repeat;
    background-position-x: 50%;
    background-position-y: 50%;
    background-size: 60%;
    cursor: pointer;
    padding: 10px 10px;
    width:40px;
    height:40px;
    margin:5px 5px;
    display: inline-block;
    border-radius: 30px;
    padding: 20px 0;
    background-color: #eee;
    box-shadow: 1px 1px 8px 1px #cccccc;
}
.form_send #fileupload{
    display:none;
}
.form_send {
    width:100%;
    background:#ebfaff;
    position: fixed;
    padding:10px 15%;
    border-top:1px #cccccc solid;
    left:220px;
    bottom:0px;
}
.font_999999 {
    color: #999999;
}
.new-box {
    /* width: 200px; */
    /* height: 200px; */
    position: relative;
    /* padding: 30px; */
    /* background-color: #fef2f2; */
}
.new-box:before {
    position: absolute;
    content: "";
    right: -3px;
    top: -6px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 45px 0 0 45px;
    opacity:0.9;
    z-index: 0;
    border-color: #f00 transparent transparent transparent;
}
.new-box:after {
    position: absolute;
    content: "未読有";
    transform: rotate(-315deg);
    display: block;
    font-size: 11px;
    white-space: pre;
    color: #fff;
    top: 6px;
    right: -2px;
    text-align: center;
    z-index: 2;
    line-height: 1;
}

.btn-primary-blue {
    background-color: #005ba2;
    color: #FFFFFF;
}

.font12em {
    font-size: 1.2em;
}
.fllow_top {
    width:95%;
    margin:auto;
    color:#F59394;
    font-weight: 800;
    font-size:25pt;
    padding:10px 0;
}
.fllow_top:after {
    content:"";
    border-top:solid 8px #F59394;
    width:55%;
    position: absolute;
    top:22pt;
    height:10px;
    right:0;
}
.fllow_middle {
    width:95%;
    margin:auto;
    color:red;
    font-size:1.1em;
}

.perfect_guide {
    background: #2BA7FE;
    padding:15px 0 10px;
}
.perfect_guide .perfect_guide_img{
    width:300px;
}
.perfect_guide .title_text{
    color:#fff;
    font-weight: bold;
    font-size: 23pt;
    text-align: center;
    margin-bottom: 15px;
}
.perfect_guide .text{
    font-weight: bold;
    font-size: 16pt;
    text-align: center;
    margin-bottom:10px;
}
.btn-orange{
    background: #FFAB00;
    box-shadow: 3px 5px #976200;
    font-weight: bold;
    padding: 1px 20px;
    font-size: 15px;
    color: #000;
}
a.btn-orange-lg{
    font-size: 23px;
    padding: 15px 30px;
}

a.password_request {
    font-weight: 500;
    font-size:1em;
    color:#888888;
    text-decoration: underline;
}

.icon_pink {
    background:#FF9995;
    color:#FFFFFF;
    font-weight: 400;
    border-radius: 0.1875rem;
    padding:2px 5px;
    font-size:0.8571em;
}
.width_100per {
    width:100% !important;
}
.header_scroller {
    margin-right:270px;

}
.header_scroller button.btn{
    padding:10px 22px 6px;
    margin:3px 1px;
    font-size:14px;
}
.wrapper_top_spacer {
    min-height:110px;
}
.wrapper {
    max-width: 1200px;
    margin:auto;
}

.display_none {
    display: none;
}
input[type="button"].disabled, a.disabled, button.disabled {
    pointer-events: none;
}

.login_text {
    background-color: #00ADFF;
    
    font-size:1.4em;
    font-weight: 600;
    text-align: center;
    padding:20px;
    margin:auto;
    border-radius: 15px;
    margin-bottom:20px;
    .white {
        color:#ffffff;
    }
}

/* 以下video buyで追加 */
.movie_view {
    width:200%;
}

.movie_view th,.movie_view td {
    border:solid 1px #cccccc;
    padding:4px;
    text-align: center;
}
.movie_view td hr {
    margin-top:0;
    margin-bottom:5px;
}
.movie_view th {
    background: #F9F5EC
}
.movie_view th.left {
    width:100px;
    text-align: left;
}

.scroll_y {
    overflow-y: auto;
    width:100%;
}
.scroll_x {
    width:calc(91vw - 230px);
    min-width:900px;
    overflow-x: auto;
}

.enquete {
    height:350px;
}
.enquete > .graph {
    height:300px;
}


.section-container {
            border: 2px solid #a19286;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 20px;
            position: relative;
        }
        .lecture-container {
            border: 1px solid #dee2e6;
            border-radius: 5px;
            padding: 10px;
            margin-bottom: 10px;
            position: relative;
        }
        .delete-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 10;
        }
        .add-btn {
            margin-bottom: 15px;
        }
        .section-title {
            font-weight: bold;
            font-size: 1.1em;
            margin-bottom: 15px;
        }
        .lecture-title {
            font-weight: bold;
            margin-bottom: 10px;
        }
    
    .width10per {
        width:10%;
    }
    .width30per {
        width:30%;
    }
    .width40per {
        width:40%;

    }
    .width50per {
        width:50%;
    }
    .width60per {
        width:60%;
    }

.display-inline {
    display: inline;
}

.form-group input[type=file] {
    opacity:1;
}

.fixheader_content {
    margin-top:90px;
    max-width:1000px;
    margin-left:auto;
    margin-right:auto;
}

.seller_app_title {
    border-width: 3px !important;
    margin-bottom: 1.5rem !important;
    border-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
}
.seller_app_title2 {
    border-width: 3px !important;
    margin-bottom: 1.5rem !important;
    padding:5px;
    border-bottom: 2px solid #e7f2ff !important;
}
.buyer_app_title {
    border-width: 3px !important;
    margin-bottom: 1.5rem !important;
    border-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
}
.buyer_app_title2 {
    border-width: 3px !important;
    margin-bottom: 1.5rem !important;
    border-color: #f8f9fa !important;
    border-bottom: 2px solid #e7f2ff !important;
}
.employee_app_title {
    border-width: 3px !important;
    margin-bottom: 1.5rem !important;
    border-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
}
.employee_app_title2 {
    border-width: 3px !important;
    margin-bottom: 1.5rem !important;
    border-color: #f8f9fa !important;
    border-bottom: 2px solid #e7f2ff !important;
}

.error_ms {
    background-color: #f53b3bcc;
    border-radius: 5px;
    color: #FFFFFF;
    padding-top: .9rem;
    padding-bottom: .9rem;
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
}
.warning_ms {
    background-color: #ffcd9acc;
    border-radius: 5px;
    color: #1c1c1c;
    padding-top: .9rem;
    padding-bottom: .9rem;
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
}
.success_ms {
    background-color: #c0ffc5;
    border-radius: 5px;
    color: #1c1c1c;
    padding-top: .9rem;
    padding-bottom: .9rem;
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
}

.bg-table-th1 {
    background:#4244c1d6 !important;
    color: #ffffff !important;
}

.z-index99 {
    z-index:99;
}

.clearboth{
    clear:both;
}

.saikochiku_login {
    background: #ffffff;
    width:130px;
    margin:5px auto;
    padding:5px;

    text-align: center;
    border:solid 1px #333333;
    border-bottom:solid 2px #333333;
    font-size:1.2em;
    
}