@charset "utf-8";

/*投稿画面　　*/




/*基本設定-----------------------------------------*/
/* 隙間なく表示させるおまじない */
html, body { 
  margin: 0px;
  padding: 0px;
 }

/* ページ内全体の文字の設定と背景の設定 */
body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center; 


    font-family: "筑紫B丸ゴシック", serif; 
    font-size: 1em;
    color: #333333;
    line-height:1.8em;
    background-color: #322A00;

    
    
    }

/* ページ内全体のリンクの文字色 */
a{text-decoration: none;}
a:link {color: #7a7676;} 


#container{

   position: relative;

   background-color: bisque;
   margin: 0 auto;
   width: 100%;
   max-width :430px;
   background-image: url(back01.png);
   background-size: contain;
   text-align: center;
   
}

#keyvisual{
   width: 100%;
   height: 100vh;
   background-image: url(back04.png);
   background-image: url(back201.png);
   background-size:cover;
   display: flex;
   align-items: center;  /* ← 中央に配置 */
  justify-content: center; 
  
  
}



.edit-container {
  
  width: 90%;
  max-width: 400px;


}

.edit-box {
  background-color: #f4f1e8;
  border-radius: 30px;
  padding: 30px 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
 
}

.section-header {
  display: flex;
  align-items: center; /* ←縦方向中央 */
  justify-content: flex-start; /* ←左寄せ */
  gap: 10px; /* ←アイコンと文字の間 */
  margin-bottom: 20px;
  flex-direction: row; /* ←横並びに固定！ */
}


.section-title {
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: #333;
  margin: 0;
  white-space: nowrap; /* ←改行しない */
}

.back-icon {
  width: 28px;  /* ←小さめに固定 */
  height: 28px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  flex-shrink: 0; /* ←アイコンが大きくならないように */
}




/* 各項目 */
.post-icon {
  width: 24px;
  height: 24px;
}

.edit-item {
  display: flex;
  
  flex-direction: column;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid #ccc;
}

.image-box {
  width: 100px;         /* ←サイズは好きに変えてOK */
  height: 100px;
  border: 2px dashed #aaa;
  border-radius: 10px;   /* ←角を少し丸くしたいとき */
  overflow: hidden;      /* ←中の画像がはみ出さないように */
  background-color: #bbb7ab;
  box-shadow: 0 12px 0px rgba(149, 143, 143, 0.016);
  display: flex;
  justify-content: center;
  align-items: center;

}

/* 中の画像 */
.preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ←画像を枠いっぱいに表示してトリミング */
}



.edit-itemtext{
 flex-direction: column; 
 gap: 8px; 
 padding: 20px 0; 
 border-top: 1px solid #ccc;
  display: flex;
}

.edit-itemtag {
  display: flex;
  
  flex-direction: row;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid #ccc;
}


label {
  font-weight: 600;
  color: #444;
}

input {
  border: none;
  border-bottom: 1px solid #aaa;
  padding: 6px 4px;
  font-size: 1rem;
  outline: none;
  background-color: transparent;
}


.icon-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px dashed #aaa;
}

.button-area {
  display: flex;
  justify-content: center; /* ←中央揃え */
  gap: 20px;               /* ←ボタンの間のすき間 */
  margin-top: 10px;
}

/* 共通ボタンスタイル */
.button-area button {
  flex: 1;                     /* ←2つで均等幅 */
  max-width: 140px;            /* ←ボタン幅の上限（お好みで） */
  padding: 10px 0;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

/* 投稿ボタン */
.post-btn {
  background-color: #000000;   /* ←オレンジ寄り（SNS投稿感） */
  color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.post-btn:hover {
  background-color: #000000;
  transform: translateY(-2px);
}

/* 保存ボタン */
.save-btn {
  background-color: #dcdcdc;
  color: #333;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.save-btn:hover {
  background-color: #cfcfcf;
  transform: translateY(-2px);
}




.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 65px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 20;
  backdrop-filter: blur(6px); /* ちょっとおしゃれな透明感 */
}

.nav-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-icon:hover {
  transform: scale(1.1);
  opacity: 0.8;
}