body, html {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  height: 100%;
}
body{
  background-image: url("/image/kabegami_test2.png");
  background-size: 250px auto;
}
a{
  color:#222;
  text-decoration:none;
}
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ヘッダー */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background-color: #fefefe;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
  z-index: 1010;
}
header.header_small {
  height: 40px;
}

.hidden_header{
  width: 100%;
  height: 75px;
}

.login_error_header{
  position: fixed;
  top: 75px;
  left: 0;
  width: 100%;
  height: 40px;
  display: none;
}
.login_error_box{
  position:relative;
  width: 100%;
  height:100%;
  text-align: center;
  background-color: blue;
  color:white;
}
.login_error_box_text{
  width: 300px;
  height:100%;
  margin:auto;
  display: flex;
  justify-content: center; 
  align-items: center;
}
.login_error_box_button{
  position:absolute;
  top:0;
  right:0;
  width:50px;
  height:100%;
  margin:auto;
  display: flex;
  justify-content: center; 
  align-items: center;
}
.close-button {
      width: 25px;
      height: 25px;
      border-radius: 50%;
      background-color: #ccc;
      color: #fff;
      font-weight: bold;
      font-size: 19px;
      text-align: center;
      line-height: 25px;
      cursor: pointer;
      user-select: none;
      transition: background-color 0.3s ease;
      float:right;
}

.close-button:hover {
  background-color: #111;
}

#logo_box{
  width:220px;
  height:100%;
  margin:0px;
  padding-left:5px;
  display: flex;
  align-items: center;
  float:left;
}
.logo_image_href{
  height:100%;
  margin:0px;
  padding:0px;
  display: flex;
  align-items: center;
}
.logo_image {
  height:calc(100% - 5px);
  margin:0px;
  padding:0px;
}
.menu_box{
  width:70px;
  height:100%;
  margin:0px;
  padding-right:7px;
  display: flex;
  align-items: center;
  justify-content: flex-end; 
  float:right;
  text-align: right;
}
.menu_box img{
  height:60%;
  margin:0px;
  padding:0px;
  border-radius:50%;
  text-align: right;
  cursor: pointer;
}



.menu_login_box{
  width:150px;
  height:100%;
  margin:auto;
  display: flex;
  justify-content: center; 
  align-items: center;
  float:right;
}



/*ログイン会員登録*/
.login_button{
  font-family: Verdana, "ヒラギノ角ゴ Pro","Hiragino Kaku Gothic Pro", "游ゴシック", "Yu Gothic", "メイリオ", Meiryo, sans-serif;
  font-weight:bold;
  font-size:13px;
  margin-right:5px;
  cursor:pointer;
}
.login_dialog_box{
  width:350px;
  height:500px;
  border-radius:10px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index:10000;
  background-color: #111;
  background-image: url("/image/ougi_white.jpg");
  background-size:100% auto;
  display:none;
}
.login_dialog_site_logo_box{
  width:100%;
  height:20%;
  border-top-right-radius:10px;
  border-top-left-radius:10px;
  position:relative;
  margin-bottom:30px;
}
.login_dialog_site_logo{
  width:100%;
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  margin:auto;
  border-top-right-radius:10px;
  border-top-left-radius:10px;
}
.login_dialog_outline_box{
  width:70%;
  height:40%;
  padding:10px;
  margin:auto;
  display: flex;
  justify-content: center; 
  align-items: center;
  border-radius:10px;
  background-color: #fdfdfd;
}
.login_dialog_outline_box span{
  font-size:12px;
}
.login_dialog_button_box{
  width:100%;
  height:20%;
}
.login_dialog_button{
  width:210px;
  height:55px;
  background-color: #4CBCF0;
  margin:auto;
  margin-top:20px;
  margin-bottom:20px;
  border-radius:10px;
  position:relative;
  display:table;
}
.login_dialog_button_link{
  width:100%;
  height:100%;
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  z-index:100000;
  cursor:pointer;
}
.login_dialog_button_icon_box{
  width:50px;
  height:100%;
  padding-right:3px;
  display:table-cell;
  vertical-align: middle;
  border-top-left-radius:10px;
  border-bottom-left-radius:10px;
}
.login_dialog_button_icon{
  height:32px;
  float:right;
  display:table-cell;
  vertical-align: middle;
}
.login_dialog_button_text_box{
  height:100%;
  line-height:0.9em;
  border-top-right-radius:10px;
  border-bottom-right-radius:10px;
  display:table-cell;
  vertical-align: middle;
}
.login_dialog_button_text_box span{
  float:left;
  padding-left:8px;
  font-size:12px;
  color:#fff;
}
.login_dialog_button_text2{
  font-size:14px;
  font-weight:bold;
}
.login_dialog_guideline_box{
  width:100%;
  height:12%;
  margin-top:20px;
  background-color: #999;
  border-bottom-left-radius:10px;
  border-bottom-right-radius:10px;
  position:absolute;
  bottom:0;
  line-height:0.6em;
  text-align: center;
  display: table;
}
.login_dialog_guideline_box_inner{
  width:100%;
  display:table-cell;
  vertical-align: middle;
}
.login_dialog_guideline_box span{
  font-size:11px;
  color:#fff;
  text-align:center;
}
.login_dialog_guideline_box a{
  color:#fff;
}











/*スライドメニュー*/
.slide_menu_box {
  position: fixed;
  top:75px;
  right: -170px;
  width: 170px;
  height: calc(100% - 40px);
  background-color: #f8f8f8;
  z-index: 1000;
}
.slide_menu_box_inner{
  height:100%;
}







/*トップページ*/
.top_button_box {
  flex: 1;
  width: 100%;
  max-width: 375px;
  margin: 0 auto;
  display: flex;
  gap: 35px; /* ボタン間のスペース */
  justify-content: center; /* 中央寄せ */
  padding-top: 20px;
  padding-bottom: 10px;
}

.top_button {
  width:calc(50% - 100px);
  padding: 10px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #fdfdfd 100%);
  color: #111;
  border: none;
  border-radius:10px; /* 角丸 */
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
  float:left;
  text-align: center;
}

.top_subtitle_box {
  flex: 1;
  width: 100%;
  max-width: 375px;
  margin: 0 auto;
  display: flex;
  justify-content: left; /* 中央寄せ */
  padding-top:15px;
  padding-bottom:5px;

}
.top_subtitle_box span{
  color:#333;
  font-size: 18px;
  font-weight: bold;
  padding:2px 6px;
  border-bottom: 3px solid #333;
  margin-left:10px;
}









.article_box{
  width: 100%;
  max-width: 375px;
  min-height: calc(100vh - 75px);
  margin: 0 auto;
  padding-top:5px;
  padding-bottom:20px;
}
.contents_box{
  width: 100%;
  max-width: 375px;
  margin: 0 auto;
  padding-top:5px;
  padding-bottom:5px;
}

.boke_article{
  width: calc(100% - 30px);
  max-width: 375px;
  margin: 0 auto;
  margin-top:20px;
  padding-top:30px;
  padding-bottom:10px;
  color: #111;
  border: none;
  border-radius:10px;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}
.boke_article_image_box{
  width: calc(100% - 60px);
  margin: 0 auto;
}
.boke_article_image{
  width: 100%;
  max-width: 375px;
  margin: 0 auto;
}
.boke_article_text_box{
  width: calc(100% - 40px);
  margin: 0 auto;
  padding-top:30px;
  padding-bottom:20px;
  text-align: center;
}
.boke_article_text_box span{
  color:#111;
  font-size: clamp(20px,10vw, 33px);
  font-weight: bold;
   line-height: 1.5;
}





/*お題クリエイトページ*/
.odai_create_box{
  width:calc(100% - 70px);
  margin: 0 auto;
  margin-top:20px;
  padding-top:10px;
  padding-left:20px;
  padding-right:20px;
  color: #111;
  border-radius:10px;
  box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}
.odai_create_title{
  width:100%;
  margin:auto;
  margin-bottom:20px;
}

.odai_file_upload {
  display: inline-block;
  background-color: #666;
  color: #fff;
  font-weight: bold;
  margin-top:15px;
  padding: 12px 30px;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  font-size: 16px;
}

.odai_file_upload input[type="file"] {
  display: none;
}

.create_outline {
  font-size: 12px;
  color: #444;
  margin-top: 16px;
}

.create_warning {
  font-size: 12px;
  /*color: #d9534f;*/
  color: #333;
  margin-top: 10px;
}
#odai_preview {
  margin-top: 20px;
  max-width: 100%;
  max-height: 300px;
  border: 1px solid #ccc;
  display: none;
}
.odai_category {
  width:100%;
  padding: 10px;
  margin-bottom:15px;
  border-radius:5px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #333;
  font-size: 16px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='7' viewBox='0 0 10 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}

.odai_category:focus {
  border-color: #8ecae6;
  box-shadow: 0 0 5px rgba(142, 202, 230, 0.5);
  outline: none;
}

label[for="odai_category"] {
  font-weight: bold;
  color: #555;
  margin-bottom: 5px;
  display: inline-block;
}

.odai_submit {
  width:100%;
  margin:auto;
  background-color: #4CBCF0;
  color:#fff;
  border: none;
  padding: 15px;
  font-weight: bold;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
}

.odai_create_info {
  height:30px;
  font-size: 12px;
  margin-top: 10px;
  padding-bottom:20px;
  text-align: center;
  color: #444;
}


footer {
  background-color: #111;
  color: #fff;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 14px;
}


    /* レスポンシブ微調整 */
    @media (min-width: 414px) {
      .top_button_box {
        max-width: 400px;
      }
      .top_subtitle_box {
        max-width: 400px;
      }
      .article_box {
        max-width: 400px;
      }
      .contents_box {
        max-width: 400px;
      }
      .boke_article {
        max-width: 400px;
      }
      .boke_article_image {
        max-width: 400px;
      }
      .login_dialog_box {
        max-width: 400px;
      }
      .modal_dialog {
        max-width: 400px;
      }
    }

    @media (min-width: 768px) {
      .top_button_box {
        max-width: 600px;
      }
      .top_subtitle_box {
        max-width: 600px;
      }
      .article_box {
        max-width: 600px;
      }
      .contents_box {
        max-width: 600px;
      }
      .boke_article {
        max-width: 600px;
      }
      .boke_article_image {
        max-width: 600px;
      }
      .login_dialog_box {
        max-width: 600px;
      }
      .modal_dialog {
        max-width: 600px;
      }
    }

/*設定ページ*/
.profile_edit_box{
  width: calc(100% - 30px);
  margin: 0 auto;
  margin-top:10px;
  padding-top:10px;
  padding-bottom:10px;
  color: #111;
  border: none;
  border-radius:10px;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.profile_form_title{
  width:calc(100% - 40px);
  margin:auto;
  margin-bottom:50px;
}
.profile_form_image_box{
  text-align: center;
  margin-bottom: 20px;
}
.profile_form_image{
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #ddd;
  object-fit: cover;
}
.profile_image_input{
  display: none;
}
.profile_image_label{
  background-color: #333;
  color: #fff;
  display: inline-block;
  padding: 8px 16px;
  margin-top: 10px;
  cursor: pointer;
}
.profile_image_p{
  font-size: 12px;
  color: #777;
}
.profile_form_name{
  width:calc(100% - 40px);
  margin:auto;
  margin-bottom:30px;
}
.profile_form_name input{
  width:calc(100% - 10px);
  height:30px;
  font-size: 20px;
}
.profile_form_comment{
  width:calc(100% - 40px);
  margin:auto;
  margin-bottom: 10px;
}
.profile_form_comment textarea{
  width:calc(100% - 10px);
  height:60px;
  font-size: 20px;
}
.profile_form_button{
  width:calc(100% - 40px);
  margin:auto;
  text-align: center;
  padding-top:   15px;
  padding-bottom:30px;
}
.profile_form_button button{
  background-color: #4CBCF0;
  color: #fff;
  font-size: 20px;
  border: none;
  padding:10px 30px;
  margin:auto;
  cursor: pointer;
}
.show_count1{
  width:calc(100% - 10px);
  color: #000;
  font-size:12px;
  text-align: right;
}
.show_count2{
  width:calc(100% - 10px);
  color: #000;
  font-size:12px;
  text-align: right;
}









/*お題ページ*/
.odai_article_box{
  width: 100%;
  margin: 0 auto;
  padding-left:5px;
}
.odai_subtitle_box {
  flex: 1;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: left; /* 中央寄せ */
  padding-top:15px;
  padding-bottom:5px;

}
.odai_subtitle_box span{
  color:#333;
  font-size: 18px;
  font-weight: bold;
  padding:2px 6px;
  border-bottom: 3px solid #333;
  margin-left:10px;
}
.odai_top_article{
  width: calc(50% - 8px);
  margin-right:5px;
  margin-top:20px;
  padding-top:5px;
  padding-bottom:5px;
  color: #111;
  border: none;
  border-radius:10px;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  float:left;
}
.odai_top_article_image_box{
  height:150px;
  width: calc(100% - 10px);
  margin: 0 auto;
  margin-bottom:5px;
  text-align: center;
  overflow: hidden;
  display: flex;
  justify-content: center; /* 横方向に中央 */
  align-items: center;     /* 縦方向に中央 */
}
.odai_top_article_image{
  max-height: 100%;
  max-width: 100%;
  margin: 0 auto;
}
/* スマホ向け（幅が 767px 以下） */
@media (max-width: 767px) {
      .odai_top_article_image_box{
        height:120px;
      }
}

/* PC向け（幅が 768px 以上） */
@media (min-width: 768px) {
      .odai_top_article_image_box{
        height:180px;
      }
}
.odai_top_article_button_box{
  width: 100%;
  height:40px;
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
  display: flex;
  justify-content: center; /* 横方向に中央 */
  align-items: center;     /* 縦方向に中央 */
}
.odai_top_article_button{
  padding: 3px 15px;
  font-size: 18px;
  background-color: #4CBCF0;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.odai_top_article_button:hover {
  background-color: #f4a600;
}








/*ボケクリエイトページ*/
.boke_create_box{
  width:calc(100% - 70px);
  margin: 0 auto;
  margin-top:20px;
  padding-top:10px;
  padding-bottom:20px;
  padding-left:20px;
  padding-right:20px;
  color: #111;
  border-radius:10px;
  box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.form-container {
  max-width: 500px;
  margin: auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px #ccc;
}

.boke_create_form h2 {
  margin-top: 0;
  font-size: 18px;
}

.image-box {
  text-align: center;
  margin-bottom: 15px;
}

.image-box img {
  max-width: 100%;
  border-radius: 4px;
}

.image-credit {
  font-size: 12px;
  color: #555;
  margin-top: 5px;
}

.boke_create_form form label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

.boke_create_form textarea,
input[type="text"],
select {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.boke_create_warning {
  font-size: 12px;
  color: red;
  margin-top: 5px;
}

.boke_create_form_button{
  width: 100%;
  background-color: #ffcc00;
  border: none;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  margin: 0 auto;
  margin-top: 20px;
}

.boke_create_form_button:hover {
  background-color: #e6b800;
}




















/*ユーザーページ*/
.user_article_box{
  width: calc(100% - 30px);
  margin: 0 auto;
  margin-top:10px;
  padding-top:5px;
  padding-bottom:10px;
  color: #111;
  border: none;
  border-radius:10px;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}
.user_subtitle_box {
  flex: 1;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: left; /* 中央寄せ */
  padding-top:15px;
  padding-bottom:5px;

}
.user_subtitle_box span{
  color:#333;
  font-size: 18px;
  font-weight: bold;
  padding:2px 6px;
  border-bottom: 3px solid #333;
  margin-left:10px;
}
.user_profile_box{
  width: 100%;
  padding: 20px;
}
.user_profile_image_box{
  width: 80px;
  height: 80px;
  float:left;
}
.user_profile_image{
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}
.user_profile_name_box{
  width: calc(100% - 120px);
  height: 80px;
  display: flex;
  align-items: center;
  text-align: left;
  overflow: hidden;
}
.user_profile_name_box span{
  color:#111;
  font-size: 18px;
  font-weight: bold;
  padding-left:15px;
}
.user_profile_contents_box{
  width: 100%;
  padding: 10px;
}
.user_profile_contents_menu_box{
  width: calc(100% - 20px);
  height:30px;
}
.user_profile_contents_menu1{
  width: 50%;
  height:30px;
  text-align: center;
  float:left;
  background-color: #efefef;
  border-bottom: 3px solid #333;
  cursor:pointer;
}
.user_profile_contents_menu1 span{
  color: #111;
}
.user_profile_contents_menu2{
  width: 50%;
  height:30px;
  text-align: center;
  float:left;
  cursor:pointer;
}

