/* 基本設定 */
body {
    background-color: #e0f7fb;
    font-family: 'Arial', sans-serif;
    margin: 0;
    animation: fadeIn 1s ease-in;
}

.navbar {
    background-color: #00afcc;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 20px;
    background-color: #00afcc;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 175, 204, 0.3);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.menu a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.menu a:hover {
    text-decoration: underline;
}

/* コンテンツ全体のレイアウト */
.container {
    margin-top: 80px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* カードスタイル */
.card {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 175, 204, 0.3);
    transition: transform 0.3s;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

/* ここがポイント！: 順番に登場させる */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
/* 必要に応じて6, 7, 8…と増やせる */

.card:hover {
    transform: translateY(-5px);
}

/* セクションタイトル */
h2 {
    color: #00afcc;
    margin-bottom: 10px;
}

/* リスト */
ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin: 10px 0;
}

a {
    color: #007c94;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ボタンスタイル */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

button {
    background-color: #00afcc;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #008ba1;
    transform: scale(1.05);
}

/* --- アニメーション設定 --- */

/* ページ全体フェードイン */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* カード個別ふわっとアップ */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.button-link {
    display: block; /* ←ブロック要素にする！幅いっぱい広がる */
    width: 100%;    /* ←親(カード)の幅に合わせる */
    background-color: #00afcc;
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
    box-sizing: border-box; /* ←パディング込みで幅調整 */
}

.button-link:hover {
    background-color: #008ba1;
    transform: scale(1.03);
}

.accordion {
    width: 100%;
  }
  
  .accordion-btn {
    background-color: #00afcc;
    color: white;
    padding: 10px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-size: 18px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s;
  }
  
  .accordion-btn:hover {
    background-color: #008ba1;
  }
  
  .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: white;
    border: 1px solid #00afcc;
    border-radius: 0 0 8px 8px;
    margin-top: 5px;
  }
  
  .accordion-content ul {
    list-style: none;
    padding: 10px;
    margin: 0;
  }
  
  .accordion-content ul li a {
    color: #007c94;
    text-decoration: none;
  }
  
  .accordion-content ul li a:hover {
    text-decoration: underline;
  }
  