/* CSS Document */
@import url("https://fonts.googleapis.com/css?family=Inknut+Antiqua:300,400");
@import url("https://fonts.googleapis.com/css?family=Spectral:400,400i,600");
@import url("https://fonts.googleapis.com/css?family=Crimson+Text:400,400i");

html {
  height: 100%; }

body {
  -webkit-text-size-adjust: 100%;
  background-color: #FFF;
  font-family: Arial, Helvetica, sans-serif;
  color: #101010;
  font-size: 12px;
  line-height: 1.6;
  min-height: 100%;
  margin:0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column; }

a:link {
  color: #090C13;
  text-decoration: none; }

a:visited {
  color: #090C13;
  text-decoration: none; }

a:hover {
  color: #D39083;
  text-decoration: none; }

a:active {
  color: #D39083;
  text-decoration: none; }

.here a:link {
  color: #D39083;
  text-decoration: none;
  font-weight: bold; }

#main {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  margin-bottom: 3rem;
}

#footer {
  padding: 1.5rem 1rem;
  margin: 0;
  text-align: center;
  letter-spacing: 0.1em;
  background-color: #F0F0F0;
  color: #909399; }

.goup {
  position: fixed;
  bottom: 3%;
  right: 5%;
  display: none; }

h1 {
  font-family: 'Spectral', serif;
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0.05rem;
  margin:2rem auto 3rem;
  line-height: 1;
  color: #000;
  text-align: center;
  }
h2 {
    font-family: 'Spectral', serif;
    font-weight: 400;
    font-size: 1rem;
    margin:0;
  }
#headline {
    margin:0 auto 2rem;
    text-align: center;
  }
#headline h1 {
      font-size: 1.6rem;
      margin:2rem auto 1rem;
    }
.date {
    letter-spacing: 0.1em;
    margin:0.75rem 0 0;
    color: #808080;
  }

@media (min-width: 650px) {
  h1 {
    font-size:1.6rem;
    margin:2rem auto 4rem;
    }
  h2 {
    font-size: 1.125rem;
    }
  }

  /* 全体のカードコンテナ */
    .card-container {
      display: grid;
      gap: 36px;
      max-width: 1200px;
      margin: 0 auto;
      padding: 16px;
      
  /* デフォルト（モバイル）では1列表示 */
      grid-template-columns: 1fr;
    }

    /* 中間サイズの画面（600px以上）では2列表示 */
    @media (min-width: 600px) {
      .card-container {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    /* 大きな画面（900px以上）では4列表示 */
    @media (min-width: 900px) {
      .card-container {
        grid-template-columns: repeat(4, 1fr);
      }
    }

    /* 各カードのスタイル */
    .card {
      position: relative;
      display: flex;
      flex-direction: column;
    }

    /* カードにリンクを追加 */
    .card a {
      text-decoration: none;
      color: inherit;
      display: block;
      flex-grow: 1;
    }

    /* カード内の画像を4:3のアスペクト比で設定 */
    .card img {
      width: 100%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
      transition: opacity 0.3s ease; /* ホバー時のフェード効果 */
    }

    /* ホバー時の画像不透明度 */
    .card:hover img {
      opacity: 0.8;
    }

    /* テキストコンテンツのボックス */
    .text-content {
      padding: 10px 0;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: flex-start;
      flex-grow: 1;
      position: relative;
      z-index: 2; /* テキストをオーバーレイより上位に表示 */
    }

    /* 日付 */
    .text-content .date {
    letter-spacing: 0.1em;
    margin: 0;
    color: #808080;
    }

    /* 見出し */
    .text-content h2 {
    font-family: 'Spectral', serif;
    font-weight: 400;
    font-size: 1.125rem;
    margin:0;
    }

/* ローディングスピナーのスタイル */
    .loading-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(255, 255, 255, 1.0);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

    .spinner {
      border: 6px solid #f3f3f3;
      border-top: 6px solid #3498db;
      border-radius: 50%;
      width: 50px;
      height: 50px;
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }