.layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;

    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.blog-box {
    position: relative;
    z-index: 1;

    width: 420px;
    background: #ffffffcc;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.blog-box h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.blog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-list li {
    margin-bottom: 0.8rem;
}

.blog-list a {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    background: #f7f7f7;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-list a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.blog-list .date {
    font-size: 0.75rem;
    color: #666;
}

@media (max-width: 900px) {
  .layout {
    flex-direction: column;
    align-items: center;
  }

  .blog-box {
    width: 100%;
    max-width: 360px;
  }
}


.post-card {
  background: #ffffffd9;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 2px;
  width: min(700px, 90vw);
  margin: 4rem auto;
  box-shadow: 0 10px 30px rgba(121, 29, 29, 0.71);
  position: relative;
  z-index: 1;
}

.back {
  display: inline-block;
  margin-bottom: 1.5rem;
  text-decoration: none;
  font-size: 0.85rem;
  color: #1b0d0d;
}

.back:hover {
  text-decoration: underline;
}

.post-title {
  margin: 0;
  font-size: 1.8rem;
}

.post-date {
  display: block;
  margin-top: 0.4rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #000000;
}

.post-content {
  line-height: 1.9;
  color: #000000;
  font-size: 1rem;
}

.post-content h2 {
  margin-top: 2.5rem;
  font-size: 1.3rem;
  border-left: 4px solid #ffd6e8;
  padding-left: 0.6rem;
}

.post-content h3 {
  margin-top: 2rem;
  font-size: 1.1rem;
}

.post-content p {
  margin: 1.2rem 0;
}

.post-content a {
  color: #ff7fbf;
  text-decoration: underline;
}

.post-content pre {
  background: #1e1e1e;
  color: #f8f8f2;
  padding: 1rem;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.85rem;
}

.post-content code {
  background: #ffeef7;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  font-size: 0.9em;
}

/* モバイル */
@media (max-width: 600px) {
  .post-card {
    padding: 1.8rem;
    margin: 2rem auto;
  }
}


body {
    margin: 0;
    min-height: 100vh;
    font-family: "Zen Maru Gothic", sans-serif;
    background: none;          /* ← 消す */
    backdrop-filter: none;   /* ← 消す */
    -webkit-backdrop-filter: none; /* ← 消す */
}

.bg {
    position: fixed;
    inset: 0;
    z-index: -2;

    background-image: url('https://cdn.999i.org/momizisan/IMG_4935086432.jpeg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% auto;

}


.bg-blur {
  position: fixed;
  inset: 0;
  z-index: -2;

  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);

  /* blurを有効にするために必要 */
  background: rgba(255, 255, 255, 0.05);
}

.stars {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(1px 1px at 20% 30%, white, transparent),
        radial-gradient(1.5px 1.5px at 70% 80%, white, transparent),
        radial-gradient(1px 1px at 40% 60%, white, transparent),
        radial-gradient(2px 2px at 90% 20%, white, transparent),
        radial-gradient(1px 1px at 10% 90%, white, transparent);
    background-size: 200px 200px;
    animation: twinkle 6s infinite alternate;
}


@keyframes twinkle{
    from {
        opacity: 0.6;
    }
    to {
        opacity: 1;
    }
}

.card {
    background: #ffffffcc;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 2px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    width: 350px;
    height: auto;
    position: relative;
    z-index: 1;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid #ffd6e8;
}

h1 {
    margin: 0.5rem 0;
}

.bio {
    color: #555;
    font-size: 0.95rem;
}

.links {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.7rem;
    justify-content: center;
}

.links a {
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: #ffe4f8;
    text-decoration: none;
    color: #333;
    font-size: 0.85rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

      /* 吹き出しの親要素 */
      .avatar-container {
        position: relative;
        display: inline-block;
        margin-bottom: 1rem;
      }

      /* 吹き出し本体 */
      .speech-bubble {
        position: absolute;
        top: -20px; /* アイコンの上に配置 */
        left: 55px; /* アイコンの右側に寄せる */
        background: #fff;
        border: 2px solid #333;
        border-radius: 18px;
        padding: 8px 16px;
        font-size: 0.80rem;
        font-weight: bold;
        color: #333;
        white-space: nowrap;
        box-shadow: 3px 3px 0px rgba(0,0,0,0.1);
        z-index: 10;
        animation: float 3s ease-in-out infinite;
      }

      /* 矢印（外枠の黒色） */
      .speech-bubble::before {
        content: '';
        position: absolute;
        bottom: -12px;
        left: 20px; /* 左側に寄せてアイコンを指すように */
        border-width: 12px 10px 0 10px;
        border-style: solid;
        border-color: #333 transparent transparent transparent;
        transform: rotate(15deg); /* 少し斜めにしてアイコンに向ける */
        display: block;
        width: 0;
        z-index: 0;
      }

      /* 矢印（内側の白色） */
      .speech-bubble::after {
        content: '';
        position: absolute;
        bottom: -9px;
        left: 21px;
        border-width: 10px 8px 0 8px;
        border-style: solid;
        border-color: #fff transparent transparent transparent;
        transform: rotate(15deg);
        display: block;
        width: 0;
        z-index: 1;
      }

      @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-6px); }
      }

      .avatar {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
      }
