/* styles.css */

body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding-top: 60px; /* ナビゲーションバーの高さ分の余白を追加 */
    background-color: #ffffff;
    color: #333;
}

.header {
    background-color: #ffffff;
    padding: 10px 0; /* ロゴ画像のために余白を減らす */
    width: 100%;
    position: fixed; /* ナビゲーションバーを固定位置に */
    top: 0;
    left: 0;
    z-index: 1000; /* コンテンツよりも前面に表示 */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px; /* ナビゲーションバーの高さを固定 */
    width: 95%; /* ナビゲーションバーを画面いっぱいに */
    padding: 0 50px;
    box-sizing: border-box; /* パディングを含めた幅計算 */
}

.logo img {
    height: 50px; /* ナビゲーションバーの高さに合わせる */
    width: auto;  /* アスペクト比を固定 */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    transition: background-color 0.3s ease;
}

.nav-links li a:hover {
    background-color: #cccccc;
    border-radius: 5px;
}

.container {
    max-width: 800px; /* コンテンツ部分の最大横幅を設定 */
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    background-color: #339933;
    color: #ffffff;
    padding: 70px 0;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.heading-container {
    max-width: 1000px; /* 見出しの最大横幅 */
    margin: 0 auto;
    padding: 20px 20px;
    text-align: center; /* 見出しを中央寄せ */
}

.content-container {
    max-width: 650px; /* 内容の最大横幅 */
    margin: 0 auto;
    padding: 0 20px;
    text-align: left; /* 見出しを中央寄せ */
    line-height: 1.8; /* 行間を広げる (1.8倍に設定) */
}


.intro-box {
    background-color: #f0f4f8; /* 背景色を少し変える */
    padding: 20px;
    border-radius: 8px; /* 角を丸くする */
    margin-bottom: 20px; /* 下に余白を追加 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 少し影をつける */
    line-height: 1.8; /* 行間を広げる (1.8倍に設定) */
}

.btn {
    display: inline-block;
    background-color: #cc0033;
    color: #ffffff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #cc0033;
}

.projects, .links, .content {
    padding: 60px 0;
    text-align: center;
}

h1 {
    font-size: 36px;
    margin-bottom: 20px;
}
h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.card-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background-color: #bdeabd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 400px;
    text-align: left;
    transition: box-shadow 0.3s ease;
}

.card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.card p {
    font-size: 16px;
    line-height: 1.6;
}

.card a {
    display: block;
    margin-top: 15px;
    color: #ffffff;
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}

.footer {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    padding: 8px 0;
}

ul li a {
    text-decoration: none;
    color: #3498db;
    font-size: 18px;
}

ul li a:hover {
    text-decoration: underline;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 少し影を追加 */
    border-radius: 8px;
    overflow: hidden; /* 角丸効果を適用 */
}

.info-table th, .info-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd; /* ボーダーを設定 */
}

.info-table th {
    background-color: #f0f4f8; /* 見出し部分の背景色 */
    font-weight: 700;
    font-size: 16px;
}

.info-table td {
    background-color: #ffffff; /* データセルの背景色 */
    font-size: 14px;
    line-height: 1.6;
}

.info-table a.btn {
    background-color: #cc0033;
    color: #ffffff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.info-table a.btn:hover {
    background-color: #a60229;
}

/* レスポンシブデザイン用のメディアクエリ */
@media (max-width: 768px) { /* 画面幅が768px以下の場合に適用 */
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        height: auto; /* 高さを自動調整 */
        padding: 10px 20px; /* パディングを調整 */
    }

    .nav-links {
        flex-direction: column; /* リンクを縦に並べる */
        width: 100%; /* リンクリストを幅いっぱいに */
    }

    .nav-links li {
        width: 100%; /* リスト項目も幅いっぱいに */
        border-bottom: 1px solid #ccc; /* 各リンクの間にボーダーを追加 */
    }

    .nav-links li a {
        padding: 5px; /* 各リンクのパディングを調整 */
        display: block; /* リンクをブロック要素にして幅いっぱいに */
        text-align: left; /* リンク内のテキストを左揃え */
    }

    .navbar .logo img {
        height: 40px; /* ロゴ画像の高さを少し小さくする */
    }

    body {
        padding-top: 150px; /* ナビゲーションバーの高さ分余白を追加 */
    }
}


.highlight {
    padding: 15px;
    border: 1px solid #ff4d4d;
    color: #ff0000;
    font-weight: bold;
    font-size: 1.1em;
    margin: 20px 0;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}
table caption {
    caption-side: top;
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
}
table th, table td {
    border: 1px solid #000;
    padding: 10px;
    text-align: center;
}
table th {
    background-color: #f0f0f0;
}

.figure {
    text-align: center;
    margin: 30px 0;
}

.figure img {
    max-width: 100%;
    height: auto;
}

.figure_wide {
    text-align: center;
    margin: 30px -200px;
}

.figure_wide img {
    max-width: 100%;
    height: auto;
}

.subfigure {
    margin-bottom: 20px;
}

.subfigure img {
    max-width: 150%;
    height: auto;
}

.subcaption {
    margin-top: 5px;
    font-style: italic;
}

.caption {
    margin-top: 15px;
    font-weight: bold;
}

/* コンテナ全体のスタイル */
.pdf-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* 各PDFとタイトルのコンテナ */
  .pdf-item-container {
    text-align: center; /* タイトルを中央に揃える */
    flex: 1;
    min-width: 300px;
  }
  
  /* 各iframeのスタイル */
  .pdf-item {
    width: 100%; /* iframeがコンテナに合わせて拡張する */
    height: 600px;
  }
  
