@charset "utf-8";/* ←これは文字コード */


/*基本設定★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★*/

/* 画面に隙間ができないようにするおまじない----------------- */
html, body { 
  margin: 0px;
  padding: 0px;
 }

/* サイト全体に係わる設定----------------- */
body {
    font-family: "Noto Serif JP", serif; /* フォントの指定 */
    font-size: 1em; /* フォントサイズの指定 */
    line-height:1.8em; /* 行間の指定 */
    background-color: #1d1e2e; /* 背景色の指定 */
    background-image: url(../back.png); /* 外側背景に表示させている画像 */
}

a{
    text-decoration: none; /* リンクの文字に下線を表示させない */
    color: #ffffff; /* リンクの文字には白色 */
}



/*コンテンツ内の細々した設定★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★*/

/* 中央のコンテンツ表示部分の設定 ----------------------------*/
#container{ 
    background-color: #EDE9E5; /* 背景色 */
    margin: 0 auto; /* 上下の空きなし、左右中央に表示せよ */
    width: 100%; /* 横幅は画面いっぱいまで広げてくれ */
    max-width :390px; /* ただし、横幅の最大は430ピクセルな */
    text-align: center; /* この中にあるものは中央揃えで配置してくれ */
    background-image: url(../back2.png); /* 背景に表示させている画像 */
}
/* 画面上部のキービジュアル部分------------------------- */
#keyvisual{ 
    width: 100%; /* 横幅は左右いっぱい */
    height: 100vh; /* 縦幅はデバイスにあわせて縦いっぱい */
    background-image: url(background.png); /* 画面上部に表示させている画像 */
    background-repeat: no-repeat; /* 背景画像は1回だけ表示 */
    background-size:cover; /* 縦横比キープしていっぱいに表示ね */
    background-position: center; /* 画像は中心から表示してね */
}


body {
  margin: 0;
  font-family: sans-serif;
  background-color: #f9f9f9;
}

.header-box {
  position: fixed;        /* ← 上部固定にしておく */
  top: 35px;              /* ← 50px下に移動！ */
  left: 0;
  right: 0;
  margin:  auto;
  display: flex;
  justify-content: space-between; /* 左右端に配置 */
  align-items: center;
  
  height: 60px;
  padding: 0 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.icon-box img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s;
}

.icon-box img:hover {
  transform: scale(1.1);
}

.icon-box img {
  margin: 0 10px; /* ← 左右に10pxの余白を追加 */
}
/* プロフィール部分（ヘッダー下） ----------------------------- */
.profile-box {
   position: absolute;   /* ← 背景画像(#keyvisual)内で重ねて配置 */
  top: 120px;           /* ← ヘッダーの高さに合わせて調整（ヘッダーが35px＋高さ60pxならこのくらい） */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 90%;
  max-width: 390px;
  text-align: left;
  z-index: 2;           /* ← 背景より前面に */
}

/* 枠画像 */
.profile-frame {
  position: absolute;
  top: -15px;
  left: 0;
  width: 96%;
  height: auto;
  z-index: 1;
  transform: translateX(20px); 
}

.profile-frame img {
  width: 90%;
  height: auto;
  display: block;
}

/* コンテンツ本体（枠の上に表示） */
.profile-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  z-index: 2; /* 枠の上に重ねる */
}

.profile-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 16px;
}

.profile-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info h2 {
  font-size: 1.2em;
  margin: 0 0 8px 0;
  color: #333;
}

.profile-info p {
  font-size: 0.9em;
  color: #444;
  line-height: 1.6;
}

/* 最下段（フッター） */
.footer-box {
  position: fixed;     /* ← 下に固定 */
  bottom: 22px;
  left: 50%;           /* 画面中央基準に配置 */
  left: 0; right: 0; margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: clamp(40px, 8vh, 70px); /* 画面比率に応じて高さ調整 */
  padding: 0 30px;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);  
  z-index: 5;         /* 他の要素より前面に表示 */
}

/* フッター内のアイコン */
.footer-icon img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s;
}

.footer-icon img:hover {
  transform: scale(1.1);
}

.post-image{
  position: relative;
  width: 90%;
  max-width: 390px;
  display: block;
  margin: 0 auto;  /* ←上下も全部 0 に戻す */
  margin-top: 200px;
  margin-bottom: 70px;
  z-index: 1;
  transform: translateX(-9px); /* 左に6px */
}

.post-image img{
width: 108%;
height: auto;
display: block;
}
