/* 全体のフォントをNoto Serif JPに統一 */
body {
    font-family: 'Noto Serif JP', serif; /* ページ全体のフォントを明朝体に */
}

main {
    max-width: 1000px; /* 横幅を小さく調整 */
    width: 100%;
    margin: auto; /* 中央配置 */
}

/* 見出し（h1）を中央揃え、大きくし、明朝体に変更 */
h1 {
    text-align: center; /* 中央に寄せる */
    font-size: 3rem; /* フォントサイズを大きく設定 */
    font-family: 'Noto Serif JP', serif; /* 明朝体に設定 */
    font-weight: bold; /* 太字に設定 */
    margin-bottom: 2rem; /* 下に余白を追加 */
}

/* 写真と文を並べるためのスタイル */
.flex-container {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 800px;
    margin: auto;
}

/* 画像のスタイル: 丸くトリミングしてサイズ調整可能 */
.flex-container img {
    margin-left: 16px;
    max-width: 30%; /* 画像の最大幅を指定（必要に応じて変更可能） */
    height: auto;
    border-radius: 30%; /* 画像を丸くトリミング */
    object-fit: cover; /* 画像をトリミングしつつサイズを維持 */
    width: 20%; /* 画像の幅を指定（必要に応じて変更可能） */

}

/* テキストのスタイル */
.flex-container div {
    flex: 1;
}

/* カードのスタイル */
.bg-white {
    background-color: white;
}

.shadow-md {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.rounded-lg {
    border-radius: 0.5rem;
}

.p-6 {
    padding: 1.5rem;
}

/* --- レスポンシブ対応のメディアクエリ --- */

/* スマートフォン用 */
@media screen and (max-width: 480px) {
    .flex-container {
        flex-direction: column-reverse; /* スマホ時に画像を本文の上に配置 */
        text-align: center;
    }

    .flex-container img {
        max-width: 80%;
        margin-left: 0;
        width: 35%; /* 画像の幅を指定（必要に応じて変更可能） */

    }

    .flex-container div h2 {
        font-size: 1.5rem;
    }

    .flex-container div p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .flex-container div h3 {
        font-size: 1.2rem;
    }

    h3 .text-2xl {
        font-size: 1.75rem; /* 必要に応じてフォントサイズを調整 */
    }

    .space-between {
        margin-left: 0.5rem; /* 必要に応じてスペースの幅を調整 */
    }

    .p-6 {
        padding: 1rem;
    }

    .bg-white {
        min-height: auto;
        overflow: auto;
    }
}








/* 新しいヘッダー用のスタイル */
.new-header {
    background-color: #11114d;
    color: white;
    padding: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    flex-wrap: wrap;
}

.new-header-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    flex-wrap: wrap;
}

.new-logo {
    width: 50px;
    height: 50px;
    margin-right: 20px;
}

.new-header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.new-header-title {
    margin: 0;
    font-size: 1.5em;
    font-family: 'Noto Serif JP', serif;
    color: white;
}

.new-header-info p {
    margin-top: 5px;
    font-size: 0.8em;
    font-family: 'Noto Serif JP', serif;
    color: white;
}

.new-teisai-container {
    margin-left: auto; /* 左側のスペースを自動的に埋めることで右端に配置 */
    text-align: right;
    display: flex;
    align-items: center;
}

.new-teisai {
    font-family: 'Noto Serif JP', serif;
    font-size: 3em;
    color: white;
    margin: 0;
}

/* HOMEリンクのスタイル */
.new-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.new-nav ul li {
    margin: 0;
}

.new-nav ul li a {
    color: white;
    text-decoration: none;
}

.new-nav ul li a:visited,
.new-nav ul li a:hover,
.new-nav ul li a:active {
    color: white;
}

/* 新しいリンクスタイル */
.new-logo-link, .new-info-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.new-logo-link:hover,
.new-info-link:hover,
.new-logo-link:active,
.new-info-link:active {
    color: inherit;
}

/* スマホ対応のためのメディアクエリ */
@media (max-width: 768px) {
    .new-header {
        padding: 10px;
        flex-direction: column;
        align-items: center;
    }

    .new-logo {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }

    .new-header-title {
        font-size: 1.2em;
    }

    .new-header-info p {
        font-size: 0.7em;
    }

    .new-teisai {
        font-size: 2.5em;
    }

    .new-nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .new-nav ul li {
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .new-header {
        padding: 15px;
    }

    .new-logo {
        width: 35px;
        height: 35px;
    }

    .new-header-title {
        font-size: 1em;
    }

    .new-header-info p {
        font-size: 0.6em;
    }

    .new-teisai {
        font-size: 2em;
    }
}






/* フッター用のスタイル */
.footer-container {
    background-color: #333;  /* フッターの背景色を黒に固定 */
    color: white;            /* フッターのテキスト色を白に固定 */
    padding: 20px 0;         /* 上下のパディング */
    font-family: 'Noto Serif JP', serif;  /* フッター用フォント */
    padding-left: 8%;        /* 左からの余白を追加 */
    width: 100%;             /* フッターの幅を全体に広げる */
    box-sizing: border-box;  /* パディング込みで幅を調整 */
}

.footer-contact {
    margin-bottom: 10px;     /* お問い合わせセクションの下の余白を狭める */
    text-align: left;        /* お問い合わせ情報を左寄せ */
    padding: 10px;           /* お問い合わせセクション内のパディングを狭める */
    color: white;            /* テキスト色を白に固定 */
}

.footer-contact h4 {
    margin-bottom: 8px;      /* タイトルと次の段落の間隔を狭める */
    font-size: 1.5rem;
    color: white;            /* タイトルの色を白に固定 */
}

.footer-contact p {
    margin: 5px 0;           /* 各段落の間隔を狭める */
    line-height: 1.4;        /* テキスト間の行間を狭める */
    color: white;            /* 段落のテキスト色を白に固定 */
}

.footer-link {
    color: white;;          /* リンクの色を青に固定 */
    text-decoration: none;   /* 下線をなくす */
}

.footer-link:hover {
    text-decoration: underline;  /* ホバー時に下線を追加 */
}

.footer-bottom {
    text-align: center;      /* すべてのテキストを中央寄せ */
    margin-top: 15px;        /* 上に余白を追加 */
    font-size: 0.9em;        /* 少し小さめのフォントサイズ */
    color: white;            /* フッターテキストを白に固定 */
}

.footer-bottom p {
    color: white;            /* フッターの段落テキストも白に固定 */
}

/* スマホ対応のためのメディアクエリ */
@media (max-width: 768px) {
    .footer-container {
        padding: 15px 5%;   /* スマホ向けにパディングを小さく */
    }

    .footer-contact {
        padding: 8px;
        text-align: left;   /* スマホでもお問い合わせ情報は左寄せのまま */
    }

    .footer-contact h4 {
        font-size: 1.2rem;  /* タイトルのフォントサイズを小さく */
    }

    .footer-contact p {
        font-size: 0.8rem;  /* 段落のフォントサイズを小さく */
    }

    .footer-bottom {
        text-align: center; /* フッターの下部はスマホでも中央寄せ */
        font-size: 0.8em;   /* フッターのフォントサイズをさらに小さく */
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 10px 3%;   /* さらにパディングを小さく */
    }

    .footer-contact {
        text-align: left;   /* スマホの小さい画面でもお問い合わせ情報は左寄せ */
        padding: 5px;
    }

    .footer-contact h4 {
        font-size: 1rem;    /* タイトルのフォントサイズを小さく */
    }

    .footer-contact p {
        font-size: 0.7rem;  /* 段落のフォントサイズを小さく */
    }

    .footer-bottom {
        text-align: center; /* フッターの下部は常に中央寄せ */
        font-size: 0.7em;   /* フォントサイズをさらに小さく */
    }
}







.icon-container {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.image-container {
    display: flex;
    gap: 10px; /* Space between images */
}

.image-container img {
    width: 100%; /* Make sure the images are responsive */
    max-width: 33%; /* Make sure each image takes up equal space */
}
