* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f5f5f5;
  }

  /* タイトル部分の背景 */
  .title {
    width: 100%;
    height: 768px;
    background-color: #cbe7ff;
    position: relative; /* 子要素の絶対配置をサポート */
    top: -70px; /* ヘッダーの高さ分だけ上に移動 */
    overflow: hidden; /* 内部の背景画像がはみ出さないようにする */
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 92px; /* 左下の角丸 */
    border-bottom-right-radius: 92px; /* 右下の角丸 */
    clip-path: inset(0 0 0 0 round 0 0 92px 92px); /* 下2つの角をカーブ */
    z-index: 1; /* ヘッダーの下に配置 */
  }

  /* タイトルのロゴ */
  .logo_title {
    width: 1026px; /* 横幅を1058pxに設定 */
    height: 162px; /* 縦幅を162pxに設定 */
    position: absolute; /* 絶対位置で配置 */
    margin: 0 auto; /* 左右の中央揃え */
    top: 26vh; /* 上から26%に配置 */
    transform: scale(1); /* デフォルトサイズ */
  }
  
  /*サブタイトル*/
	.subtitle{
		font-weight: bold;
		margin-top:50px;
	}


  /* 記事分岐4つ */
  .topics {
    display: flex;
    justify-content: center;
    gap: 2.6vw;
    position: absolute; /* 絶対位置で配置 */
    top: 59%; /* 上から59%の位置に配置 */
    transform: scale(1); /* デフォルトサイズ */
  }
  
  /* 記事分岐のボタン1(水色) */
  .topic1 {
    background-color: #cbe7ff;
    border-radius: 50%;
    width: 238px;
    height: 238px;
    display: flex;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
  }

  /* 記事分岐のボタン2(イエロー) */
  .topic2 {
    background-color: #EAE7C6;
    border-radius: 50%;
    width: 238px;
    height: 238px;
    display: flex;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
  }

  /* ボタン内の配置 */
  .topic-content {
    display: flex;
    flex-direction: column; /* 縦方向に整列 */
    align-items: center; /* 中央に配置 */
    color: #717171;
    margin-top: 27%;
  }

  /* 記事分岐名 */
  .title-text {
    font-size: 24px; /* 文字サイズ */
    margin-bottom: 10px; /* アイコンとのスペース */
    white-space: nowrap;
    position: relative;
    font-weight: normal;
  }

  /* 記事分岐名の太字部分 */
  .title-text span {
    font-size: 30px; /* 文字サイズ */
    font-weight: bold;
  }

  /* iconの配置 */
  .topic-content img {
    position: absolute;
    top: 69%;
    transform: translateY(-50%);
  }

  /* 記事分岐アイコンの指定 */
  /* 病院アイコン */
  .hospital-icon {
    width: 12%;
    height: auto;
  }

  /* 発作が起きた時アイコン */
  .hossa-icon {
    width: 10%;
    height: auto;
  }

  /* 生活のコツアイコン */
  .seikatu-icon {
    width: 9%;
    height: auto;
  }

  /* お薬についてアイコン */
  .kusuri-icon {
    width: 9%;
    height: auto;
  }

  /* 新着情報のフォント */
  .new-posts {
    text-align: center;
    max-width: 1060px; /* 最大幅を1060pxに設定 */
    margin: 0 auto; /* コンテンツを中央に配置 */
  }
  
  /* new post部分 */
  .new-posts h2 {
    font-size: 60pt;
    font-weight: normal;
  }

  /* 新着情報 */
  .new-posts p {
    font-size: 24pt;
    margin-top: 20px;
  }

  /* 記事リスト */
  .article-list {
    display: flex;
    justify-content: space-around;
    padding: 20px;
}

  /* 新着記事の表示 */
.articles-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* コンテンツを中央に揃える */
    align-items: center;
    margin: 0 auto;
    gap: 2vw; /* カード間の隙間 */
}
  /* 新着記事のスマホでもセンター表示 */
  @media (max-width: 768px) {
    .articles-container {
        display: flex;
       flex-direction: row;/*  flex-direction: column; 縦並びにする */
        align-items: center; /* 完全に中央にする */
    }
}

  
  /* 新着記事 */
  .article-card {
    width: 325px;
    height: 398px;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    margin: 0 auto; /* 中央揃え */
  }
  
  /* 新着記事のサムネ画像の背景 */
  .article-background {
    width: 100%;
    height: 199px;
    background-color: #ccc;
    position: relative; /* 子要素を相対配置 */
    overflow: hidden; /* 画像がはみ出さないようにする */
  }

  /* 記事のサムネ画像 */
  .article-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像を縦横どちらか最大幅にフィット */
    object-position: center; /* 中央を基準に表示 */
    display: block; /* 不要なスペースを防ぐ */
  }

  /* 記事タイトル・アイコン・内容の表示部分 */
  .article-content {
    padding: 19px 24px 16.5px;
  }

  /* 記事タイトルのアイコン */
  .article-icon {
    width: 47px;
    height: auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    float: left;
    margin-right: 7.6px;
  }
  
  /* 記事タイトル */
  .article-title {
    font-size: 16pt;
    text-align: left;
    line-height: 1.2em;
    min-height: 2em;
  }

  /* 記事内容 */
  .article-text {
    margin: 15px 0px;
    font-size: 14pt;
    text-align: left;
    line-height: 1.2em;
    min-height: 4em;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2行まで表示 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word; /* 単語の途中でも折り返す */
    max-width: 20em; /* 20文字程度の幅に制限 */
    white-space: normal;
    line-height: 1.6; /* 行間を少し広げて見やすく */
  }

  /* 更新日付 */
  .article-date {
    font-size: 14pt;
    color: #777;
    justify-content: flex-end;
    align-items: flex-end;
    display: flex;
  }

  /* 記事詳細のアニメーション */
  .article-link {
    transition: transform 0.2s ease; /* ホバー時のアニメーションを追加 */
  }

  /* 記事詳細へのリンクのアニメーション */
  .article-link:hover {
    transform: scale(1.05); /* ホバー時に少し拡大するエフェクト */
  }

  /* もっと見る */
  .more-link {
    margin-top: 3.5vh;
    display: flex;
    justify-content: flex-end;
    font-size: 20pt;
    margin-right: 1vw;
    cursor: pointer; /* カーソルをポインターに変更 */
    transition: transform 0.2s ease; /* ホバー時のアニメーションを追加 */
  }

  .more-link:hover {
    transform: scale(1.1); /* ホバー時に少し拡大するエフェクト */
  }
  
  .ad-banner {
    background-color: #bbb;
    text-align: center;
    padding: 20px;
    margin: 40px 0;
    font-size: 1.2rem;
  }
  
  footer {
    background-color: #cce5ff;
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
  }

  /* レスポンシブ対応 */

  /* タイトル部分のheight */
  @media (max-height: 780px) {
    .title {
        height: 100vh;
    }
  }

  /* 横幅が1060px以下の場合 */
  @media (max-width: 1060px) {

    /* タイトルの横幅 */
    .logo_title {
      width: 90%;
      height: auto;
    }

    /* .topicsのサイズ */
    .topic1, .topic2 {
      width: 22vw;
      height: 22vw;
    }

    /* topic内の文字サイズ */
    .title-text {
      font-size: 2.2vw;
    }

    .title-text span {
      font-size: 2.8vw;
    }

  }
    /* タイトルロゴ部分
    画面の横幅が1370px以下、または高さが780px以下の場合に縮小  */
    /* @media (max-width: 1370px), (max-height: 780px) {
    /* } */