/* 新しいヘッダー用のスタイル */
.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;
    }
}








body {
  margin: 0;
}

h1 {
  text-align: center;
  margin-top: 20px;
}

.buttons {
  text-align: center;
  margin-top: 20px;
  margin-bottom:50px;
}

.button {
  width: 80px; /* Reduced size for smaller screens */
  cursor: pointer;
  margin: 0 5px;
}

.container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 50px;
}

.container img {
  width: 80%;
  height: auto;
  border: 1px solid #ccc;
}

.hidden {
  display: none;
}

/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
  }

  .container img {
    width: 100%; /* Full width on smaller screens */
  }

  .button {
    width: 60px; /* Smaller button size for mobile */
  }

  h1 {
    font-size: 1.5em;
    margin-top: 15px;
  }


  .new-teisai {
    font-size: 1.5em; /* Adjust "帝祭" size for smaller screens */
    text-align: center;
  }

  .new-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .new-nav ul li {
    margin: 5px 0;
  }
}









/* フッター用のスタイル */
.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;   /* フォントサイズをさらに小さく */
    }
}
