@charset "utf-8";

@font-face {
    font-family: "azuki";
    src: url(../font/azuki.ttf);
}

html {
  scroll-behavior: smooth;
}

*,
::before,
::after {
  margin: 0;
  padding: 0;
}

img {
  width: 100%;
  box-sizing: border-box;
}

li {
  list-style-type: none;
}

a {
  text-decoration: none;
}

body {
  width: 100vw;
  font-family: "azuki";
  background-color: #fff;
  color: #0f2f4d;
}

i {
    font-family: sans-serif;
}

.wrap {
  width: 100%;
}

/* header */

.header {
 position: fixed;
  width: 100%;
  height: 100px;
  border-bottom: 2px solid #6b8499;
  box-shadow: 3px 0px 5px #6b8499;
  background-color:#c8d1de;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 100;
}

.header h1 {
  margin-left: 20px;
  width: 20%;
  height: 50%;
}

.header h1 a {
  width: 100%;
  height: 100%;
  display: block;
}

.header h1 a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* main */

main {
  display: flex;
  width: 100%;
  margin: 0 auto;
}

/* profile */

.profile {
  width: 20%;
  padding: 20px;
  height: 100vh;
  border-right: 1px solid #6b8499;
  background-color:#c8d1de;
  position: fixed;
  margin-top: 102px;
  z-index: 10;
}

.icon img {
  width: 25%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: 2px solid #fff;
  background-color: #beebe3;
  object-fit: contain;
  margin: 20px 0 15px 10px;
  cursor: pointer;
}

.data {
  margin-left: 10px;
}

.data .profile-data .id {
  margin: 5px 0;
  font-size: 13px;
  color: #6b8499;
}

.data .profile-data dd {
  font-size: 10px;
  margin-top: 10px;
}

.data .profile-data .name {
  margin-top: 5px;
  font-size: 15px;
}

.data .profile-data dd:nth-child(4) {
  width: 70%;
  line-height: 1.3;
}

.data .profile-data dd:last-child {
  color: #4682b4;
  margin-bottom: 15px;
  cursor: pointer;
}

.number {
  width: 70%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
}

.number dl {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.number dl dt {
  font-size: 25px;
  font-weight: bold;
}

.number dl dd {
  font-size: 10px;
}

.follow {
  width: 50%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.follow .button {
  background-color: #4682b4;
  border-radius: 5px;
  color: #fff;
  font-size: 15px;
  padding: 5px 15px;
  cursor: pointer;
}

.follow .chat {
  color: #4682b4;
  font-size: 25px;
  cursor: pointer;
}

/* post */

.post {
  width: 80%;
  display: flex;
  align-items: flex-start;
}

.post .menu ul {
  display: flex;
  flex-direction: column;
  width: fit-content;
  height: 80vh;
  justify-content: center;
  align-items: center;
  margin: 10px auto;
  position: fixed;
  top: 110px;
  left: 25%;
  z-index: 10;
}

.post .menu ul li a {
  display: block;
  margin: 15px 0;
  color: #6b8499aa;
  font-size: 30px;
  cursor: pointer;
}

.post .menu ul li:first-child a {
  color: #6b8499;
  cursor: pointer;
}

.post .menu ul li a:hover {
  color: #6b8499;
  cursor: pointer;
}

.post-content {
  width: 90%;
  height: max-content;
  position: relative;
  top: 150px;
  left: 30%;
}

.post-content .post-details {
  width: 80%;
  margin: 20px auto;
  border: 1px solid #6b8499;
  padding: 30px;
}

.post-content .post-details .account {
  display: flex;
  align-items: center;
}

.post-content .post-details .account .icon img {
  width: 60px;
}

.post-content .post-details .account .name {
  margin-left: 20px;
  font-size: 30px;
}

.post-content .post-details .details {
  display: flex;
}

.post-content .post-details .details img {
  width: 50%;
  aspect-ratio: 1/1;
  object-fit: contain;
}

.post-content .post-details .details .fav {
  width: 45%;
  margin: 0 auto;
}

.post-content .post-details .details .fav i {
    font-size: 40px;
    color: #6b8499;
    margin-right: 20px;
    cursor: pointer;
}

.post-content .post-details .details .fav p {
    font-size: 13px;
    margin-top: 30px;
}

.post-content .post-details .details .fav .hashtag {
    color: #4682b4;
    cursor: pointer;
}


/* =========================================
   Mobile Responsive Styles (max-width: 768px)
   ========================================= */
@media screen and (max-width: 768px) {

    /* --- Header Adjustment --- */
    .header {
        height: 60px; /* 高さをスマホ用に縮小 */
        top: 0;
        left: 0;
    }

    .header h1 {
        width: auto;
        height: 70%;
        margin-left: 15px;
    }

    /* --- Main Layout Reset --- */
    main {
        display: block; /* Flexbox(横並び)を解除 */
        width: 100%;
    }

    /* --- Profile Section Adjustment --- */
    .profile {
        position: relative; /* 固定配置を解除 */
        top: 0;
        width: 100%;
        height: auto;
        margin-top: 60px; /* ヘッダーの高さ分下げる */
        padding: 20px 0;
        border-right: none;
        border-bottom: 2px solid #6b8499;
        box-sizing: border-box;
        z-index: 1;
    }

    .profile .icon img {
        width: 80px;
        margin: 0 auto 15px;
        display: block;
    }

    .data {
        margin-left: 0;
        padding: 0 20px;
        text-align: center;
    }

    .data .profile-data dd:nth-child(4) {
        width: 100%;
        text-align: left;
        margin: 15px 0;
    }

    .number {
        width: 100%;
        margin: 20px 0;
        justify-content: space-around;
    }

    .follow {
        width: 100%;
        justify-content: center;
        gap: 20px;
    }

    /* --- Post Section Adjustment --- */
    .post {
        width: 100%;
        display: block;
    }

    /* Navigation Menu -> Bottom Fixed Bar */
    .post .menu ul {
        flex-direction: row; /* 横並びに変更 */
        width: 100%;
        height: 60px;
        top: auto;
        bottom: 0;
        left: 0;
        background-color: #c8d1de;
        border-top: 2px solid #6b8499;
        justify-content: space-around;
        align-items: center;
        margin: 0;
        box-shadow: 0px -2px 5px rgba(107, 132, 153, 0.3);
        z-index: 1000;
    }

    .post .menu ul li a {
        font-size: 24px;
        margin: 0;
    }

    /* Post Content Layout */
    .post-content {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0;
        padding-bottom: 80px; /* 下部メニューとかぶらないよう余白確保 */
    }

    .post-content .post-details {
        width: 90%; /* 画面幅に合わせて拡大 */
        margin: 20px auto;
        padding: 20px;
        box-sizing: border-box;
        background-color: #fff;
    }

    .post-content .post-details .account .name {
        font-size: 18px;
    }

    /* Details (Image & Text) -> Column Layout */
    .post-content .post-details .details {
        flex-direction: column; /* 画像を上、テキストを下に */
    }

    .post-content .post-details .details img {
        width: 100%;
        margin-bottom: 20px;
    }

    .post-content .post-details .details .fav {
        width: 100%;
        margin: 0;
    }

    .post-content .post-details .details .fav i {
        font-size: 30px; /* アイコンサイズ調整 */
    }
}