/*共通部分*/
* {
	font-family: Sans-Serif;
}
body{
  background-color: #F2F2F2;
}
.zaimData{
  margin:16px;
}
/*見出し*/
h1 {
	font-size: 1.5em;
}
h2 {
	font-size: 1.25em;
}
.none{
  display: none;
}
/*ヘッダー*/
header{
  position: sticky;
  top: 0;
  height: 50px;
  color: #ffffff;
  background-color: #063761;
}
.headerTitle{
  text-align: center;
  color: #ffffff;
  font-weight: bold;
  font-size:30px;
}
.wrapper {
    display: flex;
    gap: 2%;
    justify-content: space-between;
    margin: 0 auto;
}
.post{
    width:50%;
    border-right: 2px solid #000;
}
form{
  margin:10px;
}
.sidebar{
    width:50%;    
}
.section {
	margin: 30px auto;
	max-width: 800px;
	width: 90%;
	display: block;
	
}
.div-center{
	text-align: center;
	
}
/*ボタン*/
.btn{
    background-color:#FFFFFF;
    color:#C9171E;
    border-color: #C9171E;
	font-size: 20px;
    width: 250px;
    height: 50px;
}
.btn:hover{
    color: #fff;
    background-color: #C9171E;
}
.container {
	background: #fff;
	padding: 40px 50px;
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	width: 90%;
	max-width: 500px;
	animation: fadeIn 0.6s ease-out;
}

.login-btn,
.signup-btn,.logout-btn,.write-btn {
  padding: 6px 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #f9f9f9;
  cursor: pointer;
}

.signup-btn {
  border-color: #a8d8ff;
  background: #e8f4ff;
}
.logout-btn {
  border-color:#ffa8a8 ;
  background: #ffe8e8;
}
.write-btn {
  border-color:#a8ffa8;
  background: #e8ffe8;
}
/*重要*/
#important-announcement {
  position: fixed;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #c62828, #b71c1c);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/*グラフ*/
.chart{
	text-align: center;
}
.canvas_chart{
  width: 900px;
  height: 500px;
}

.macd_chart,.rsi_chart,.ichimoku_chart{
  width: 800px;
  height: 200px;
}
.company_name,.c-form-text {
    height: 2.4em;
    width: 100%;
    padding: 0 16px;
    border-radius: 4px;
    border: none;
    box-shadow: 0 0 0 1px #ccc inset;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
	text-align: center;
}

.company_name:focus,.c-form-text:focus {
    outline: 0;
    box-shadow: 0 0 0 2px rgb(33, 150, 243) inset;
}

/*テーブル*/
table {
    border-collapse: collapse;
    width: 100%;
    
}
table th, table td {
    border: 1px solid #aaa;
    padding: 8px;
}

/*囲み枠*/
.box3 {
    padding: 0.5em 1em;
    margin: 2em 0;
    color: #2c2c2f;
    background: #cde4ff;/*背景色*/
}
.box3 p {
    margin: 0; 
    padding: 0;
}
.btn-square {
    display: inline-block;
    padding: 0.5em 1em;
    text-decoration: none;
    background: #668ad8;/*ボタン色*/
    color: #FFF;
    border-bottom: solid 4px #627295;
    border-radius: 3px;
  }
.btn-square:hover {
    -webkit-transform: translateY(4px);
    transform: translateY(4px);
    border-bottom: none;
}

/*メニュー*/
.hamburger {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
}

#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 998;
}

#drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  background: #fff;
  transform: translateX(-100%);
  transition: 0.3s;
  z-index: 999;
  overflow-y: auto;
}
.div-cent{
  text-align: center;
}
#drawer_right {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100%;
  background: #fff;
  transform: translateX(100%);
  transition: 0.3s;
  z-index: 999;
  overflow-y: auto;
}

#drawer.open {
  transform: translateX(0);
}
#drawer_right.open {
  transform: translateX(0);
}

#overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.close-btn {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: block;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 16px;
}



@media (min-width: 800px) {
  #drawer,#drawer_right {
    width: 520px;
  }
}

@media(max-width:799px){

    .wrapper {
        display: flex;
        flex-direction: column;
    }
    
    .post,
    .sidebar {
        width: 100%;
        border-right: none;
    }

    .slider{
        margin-left: 0px;
      }

    .canvas_chart{
        width: 100%;
        margin:10px;
    }

    .macd_chart,.rsi_chart,.ichimoku_chart{
        width: 800px;
        height: 400px;
        margin:10px;
    }

    .close-btn {
        font-size: 32px;
    }
    #drawer,#drawer_right {
        width: 100%;
    }

    form {
        padding: 24px;
    }

    input, button {
        width: 100%;
        font-size: 16px;
        margin-bottom: 12px;
    }
}