body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: -webkit-fill-available; /* iOSの高さ補正 */
}

.main-wrapper {
  flex: 1; /* コンテンツが画面全体に広がるように調整 */
  position: relative;
}


.header_area{
  position: relative; /* nav_iconのポジション決め用 */
}

/* ==========================
 ベーススタイル（モバイルファースト）
 ========================== */

/* サイトタイトル */
.site-title {
  position: absolute;
  top: 3%;
  left: 5%;
  color: #fff;
  font-size: 2.3rem;
  margin: 0;
  width: calc(100% - 0.8em);
  font-family: Times New Roman, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', 'Hiragino Mincho ProN', "Yu Mincho", YuMincho, "HG明朝B", sans-serif;
}

.ttl2 {
  display: block; /* モバイルでは縦配置 */
}

.sub-title {
  display: block;
  color: rgba(255, 255, 255, 1);
  font-size: 1.2rem;
  letter-spacing: -0.2px;
  margin-top: 0.3em;
}

/* ===================================== 
 更新情報セクションのスタイル
 ===================================== */

.site_updates {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 5px;
  font-size: 12px;
  max-height: 18em;
  /* max-height: 45%; */
  width: calc(100% - 2.5em); /* 画面幅に対して適切な余白を確保 */
  contain: layout paint; /* レンダリング最適化 */
  display: flex;
  flex-direction: column;
}

/* 見出し（What's NEW）を固定表示 */
.whats {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(to top, rgba(0, 46, 230, 1), rgba(38, 204, 255, 1));
  padding: 10px 0 10px 10px;
  color: #fff;
  z-index: 10;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  width: 100%;
}

.site_updates a {
  color: #002EE6;
}

.site_updates a:hover {
  color: #26ccff;
}

/* 更新リスト（スクロール可能エリア） */
.update_list {
  overflow-y: auto; /* 縦スクロールを許可 */
  padding: 37px 0px 0px; /* `.whats` の高さ分の余白を確保 */
}

/* 各更新ブロックのスタイル */
.update_contents {
  display: grid;
  grid-template-columns: 7em 5em 1fr; /* 日付・タグ・内容のレイアウト */
  gap: 0.5em;
  margin: 0 12px 0px 12px; /* 左右の余白を調整 */
  border-bottom: 1px dotted rgba(0, 0, 0, 0.3);
  box-sizing: border-box; /* 横幅の計算を正確にするため */
  width: calc(100% - 24px); /* 親要素と幅を一致 */
  /* color: #1D1D1F; */
  color: #555555;
}

.update_contents:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

/* 各セルのスタイル */
.update_contents > li {
  display: flex;
  align-items: center;
  padding: 0.3em 0 0.3em 0;
}

/* 日付セル */
.update_contents > li:first-child {
  justify-content: flex-end;
  font-size: 15px;
  letter-spacing: -0.5px;
}

/* タグ（UPDATE/NEWなど）セル */
.update_contents > li:nth-child(2) {
  justify-content: center;
  color: red;
  font-size: 0.6rem;
  text-align: center;
  font-weight: bold;
  letter-spacing: -0.6px;
}

/* 内容セル（リンク含む） */
.update_contents > li:last-child {
  justify-content: start;
  text-align: justify;
  letter-spacing: -0.6px;
  font-size: 15px;
  font-feature-settings: "palt";
}

/* ==========================
 タブレット・PC向けの調整
 ========================== */

@media screen and (min-width: 768px) {
  .site-title {
      font-size: 2.5rem;
      top: 3%;
      left: 3%;
      width: calc(100% - 2em);
  }
  .ttl2 {
      display: inline;
  }
  .sub-title {
      font-size: 1.5rem;
      margin-top: 0em;
  }
  .site_updates {
      width: 500px;
      max-height: 16em;
      /* max-height: 26%; */
      right: 2%;
      left: auto;
      bottom: 3%;
      transform: none;
  }

  /* 各セルのスタイル */
  .update_contents > li {
    padding: 0.4em 0 0.4em 0;
  }
}

@media screen and (min-width: 1024px) {
  .site-title {
      top: 5%;
      left: 4%;
      transform: none;
      text-align: left;
      font-size: 3rem;
      width: auto;
  }
  .ttl2 {
      display: inline;
  }
  .sub-title {
      font-size: 2rem;
      margin-top: 0em;
  }
  .site_updates {
      width: 500px;
      max-height: 16em;
      /* max-height: 40%; */
      right: 2%;
      bottom: 4%;
      left: auto;
      transform: none;
  }
  /* 各セルのスタイル */
  .update_contents > li {
    padding: 0.4em 0 0.4em 0;
  }
}
