/* 基本のスタイルリセット */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* ブラウザの高さ100%を最低限確保する */
    
    /* 以下、既存のスタイル */
    font-family: sans-serif;
    margin: 0;
}

/* 各パーツの色付け */
.header {
    background-color: #333;
    color:#fff;
    padding-bottom:10px;
}
.footer {
    background-color: #333;
    font-size:10px;
    padding: 20px;
    color:#fff;
}

.mainvisual{
    width:100%;
}
/* --- Flexboxの適用エリア --- */
.container {
    flex: 1; /* これが重要！余った縦のスペースをすべてこの要素が占有します */
    display: flex;         /* Flexboxを有効化 */
    flex-wrap: wrap;       /* 幅が足りない時に折り返す設定 */
    min-height: 400px;
}

.main-content {
    background-color: #3498db;
    padding: 20px;
    flex: 1;               /* 空いているスペースをすべて埋める（リキッドの肝） */
    min-width: 300px;      /* スマホ時に潰れすぎないように設定 */
}

.voice-content {
    background-color: #9334db;
    padding: 20px;
    flex: 1;               /* 空いているスペースをすべて埋める（リキッドの肝） */
    min-width: 300px;      /* スマホ時に潰れすぎないように設定 */
}

.greeting-content {
    background-color: #fff;
    padding: 20px;
    flex: 1;               /* 空いているスペースをすべて埋める（リキッドの肝） */
    min-width: 300px;      /* スマホ時に潰れすぎないように設定 */
}

.download-content {
    background-color: #fff09b;
    padding: 20px;
    flex: 1;               /* 空いているスペースをすべて埋める（リキッドの肝） */
    min-width: 300px;      /* スマホ時に潰れすぎないように設定 */
}
.history-content {
    background-color: #c7c2a2;
    padding: 20px;
    flex: 1;               /* 空いているスペースをすべて埋める（リキッドの肝） */
    min-width: 300px;      /* スマホ時に潰れすぎないように設定 */
}

.dl-button {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  color: #000;
  font-size: 14px;
  border-radius: 2px;
  width: 60%;
  max-width: 200px;
  height: 20px;
  font-weight: bold;
  transition: 0.3s;
  background-color: rgb(249, 225, 11);
  margin:0px auto;
}

.dl-button:hover {
  transform: scale(1.05);
}

.btn-green{
      background-color: #00d337;
}


.btn-orange{
      background-color: #ff8a00;
}


.btn-red{
      background-color: red;
}

.pdf-container {
  display: flex;
  width:400px;
  margin: 20px auto;
}

.pdf-button{
display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
  text-decoration: none;
  color: #000;
  font-size: 14px;
  border-radius: 5px;
  width: 40%;
  max-width: 150px;
  height: 50px;
  font-weight: bold;
  transition: 0.3s;
  background-color: rgba(0, 157, 45, 0.6);
  margin:0px auto;
}

.pdf-button:hover {
  transform: scale(1.05);
  background-color: #ff042d;
  color:rgb(255, 251, 0);
}

.member {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  width: 100%;
  margin: 10px auto;
  margin-left: 30px;
  /* 段組みの設定 */
  column-count: 2;
  /* 基本の分割数 */
  column-gap: 20px;
  /* アイテム間の隙間 */
}

.voice {
  display: inline-block;
  font-size:14px;
  line-height: 14px;
  padding:0px 2px;
  margin-left:10px;
  text-decoration: none;
  color: #fff;
  background-color:  #ea1818;
  border-radius: 3px;
  transition: .4s;
}

.voice:hover {
  background: #fffc2f;
  color: rgb(0, 0, 0);
}

a:hover{
    color:#ff042d;
}

    .h-table {
      margin: 10px auto;
      font-size: 14px;
      width: 100%;
      border-collapse: collapse;
    }

    .h-table th,
    td {
      border: 1px solid #8c8c8c;
      padding: 4px;
      text-align: justify;
    }

    .h-table th {
      background-color: #afd8ff;
      width: auto;
      text-align: center;
      vertical-align: middle;
    }


.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    width: 100%;
}
/* ナビゲーションのスタイル */
.nav ul {
    list-style: none;
    display: flex;         /* 横並びにする */
    justify-content: center; /* 中央揃え */
    gap: 40px;             /* 項目間の余白 */
    padding-top: 10px;
}

.nav a {
    color: white;
    text-decoration: none;
}

/* カードレイアウトのスタイル */
.card-container {
    display: flex;
    flex-wrap: wrap;       /* 画面幅に合わせて折り返す */
    gap: 15px;             /* カード同士の隙間 */
    margin-top: 20px;
}

.card-greeting{
    margin-top:0px;
}


.card {
    background-color: white;
    color: #333;
    padding: 20px;
    border-radius: 8px;
    
    /* リキッドカードの設定 */
    flex: 1 1 calc(25% - 15px); /* 3段組み（隙間分を引く） */
    min-width: 150px;               /* 狭くなっても200pxは維持 */
}

.year{
    font-size:20px;
    font-weight: 600;
    color:#3498db;
    margin-bottom:0px;
    text-align: center;
    border-bottom: solid 1px #000;
}
.title{
    font-size:16px;
    font-weight: 500;
    line-height: 1.3;
    color: #ff042d;;
    margin-bottom:10px;
    text-align: center;

}

.text{
    font-size:14px;
    color:#000;
    text-align: center;
    margin-bottom:10px;
}

.white{
    color:#fff;
}


.yellow{
    color:yellow;
}

.greeting{
    margin:10px auto;
    font-size:18px;
    text-align: justify;
    padding:0 50px;
    width:70%;
}

.facephoto{
    width:200px;
    margin:10px auto;
}

.photo{
    width:80%;
    max-width: 200px;
    margin:0 auto;
    box-shadow: 0px 0px 15px -5px #777777;
   transition: 0.3s;
}

.photo:hover{
  transform: scale(1.05);
}

.center{
    display: block;
    width: fit-content; /* 中身の幅に合わせる（または 300px など指定） */
    margin: 0 auto;
}


/* レスポンシブ調整 */
@media (max-width: 480px) {
    .nav ul {
        flex-direction: column; /* スマホではメニューを縦に */
        gap: 5px;
    }
}

/* --- レスポンシブ対応（スマホ表示） --- */
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* 縦並びに変更 */
    }
    
    .member {
  column-count: 1;
}

}