body {
  margin: 0;
  font-family: "Helvetica Neue", sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

/* すべてphp化したら不要 */
#header {
  background: black;
  color: white;
  padding: 1rem;
  display: flex;
}

/* php用のスタイル */
header.desktop {
  background: black;
  color: white;
  padding: 1rem;
  display: flex;
}

header nav {
  display: flex;
  align-items: center;
  height: 60px;
}

header nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

header img {
  height: 50px;
  width: auto;
  display: block;
  margin: 0;
  padding: 0;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 15px;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #0073e6;
}

/* ===== パンくず（共通） ===== */
.breadcrumbs {
  width: 100%;
  box-sizing: border-box;
  background-color: #fff;       /* 本文カード背景(#fff)に合わせる */
  padding: 8px 12px 0 12px;     /* 上は詰めすぎない */
  margin: 0 0 12px 0;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}

.breadcrumbs li + li::before {
  content: "＞";
  color: #666;
  margin: 0 6px;
}

.breadcrumbs a {
  color: #002b5c;               /* 深い青（紺） */
  text-decoration: none;
  font-weight: 600;
}

.breadcrumbs a:hover {
  color: #004f9f;
  text-decoration: underline;
}

.main-content .hero {
  text-align: center;
  margin-bottom: 2rem;
}

.main-content .hero img {
  max-width: 100%;
  width: 100%;
  max-width: 500px; /* ← 大きくなりすぎないよう制限 */
  height: auto;
  border-radius: 10px;
}

.container {
  display: flex;
  flex-direction: row;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.main-content {
  flex: 3;
  background: #fff;
  padding: 2rem;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.08); /* ← 修正：有効なrgba */
}

.sidebar {
  flex: 1;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.side-menu a {
  color: black;
}

.side-menu a:hover {
  color: grey;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1rem;
}

footer {
  background: #000000;
  color: white;
  text-align: center;
  padding: 1rem;
}

.footer_container {
  display: flex;
  justify-self: start;
  gap: 25px;
}

.footer_container img {
  width: 100%;
  max-width: 200px;
  height: auto;
  padding: 10px;
}

.footer_text_block {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  font-size: 14px;
}

.footer_container a {
  color: white;
  text-decoration: none;
}

.footer_container a:hover {
  color: skyblue;
  text-decoration: none;
}

.menu-toggle,
.nav-mobile {
  display: none;
}

.mobile-banner {
  display: none;
}

@media (max-width: 600px) {
  header.desktop {
    display: none;
  }
  /* 
  #language-select {
    display: none;
  } */

  .nav-mobile img {
    height: 50px; /* 必要に応じて調整 */
    width: auto; /* アスペクト比保持 */
    /* display: block; */
    margin: 0; /* 不要な余白排除 */
    padding: 0;
  }

  .menu-toggle {
    background: #00ade64e;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    display: block;
    position: fixed;
    top: 25px;
    right: 10px;
    z-index: 2000;
  }

  .nav-mobile {
    display: none;
    flex-direction: column;
    background-color: rgba(32, 25, 25, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 20px;
    z-index: 1999;
  }

  .nav-mobile.open {
    display: flex;
  }

  .nav-mobile ul {
    flex-direction: column;
    align-items: flex-start;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-mobile li {
    width: 100%;
    margin-bottom: 20px;
  }

  .nav-mobile li a {
    display: block;
    width: 100%;
    padding: 15px;
    color: white;
    text-decoration: none;
    font-size: 20px;
  }

  .nav-mobile li a:hover {
    background-color: #333;
  }

  .container {
    flex-direction: column; /* ← 縦並びに変更 */
  }

  .sidebar {
    display: block; /* ← 非表示を解除 */
    order: 2; /* ← 下に移動（任意） */
    margin-top: 1rem;
  }

  .footer_container img {
    width: 90%;
    max-width: 150px;
    height: auto;
    padding: 5px;
  }

  .footer_text_block {
    display: none;
  }

  .desktop-banner {
    display: none;
  }

  .mobile-banner {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ccc;
    text-align: center;
    z-index: 9999;
  }

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

  /* パンくず：スマホで少しコンパクトに */
  .breadcrumbs {
    padding: 6px 10px 0 10px;
    margin-bottom: 10px;
  }
  .breadcrumbs li {
    font-size: 12px;
  }
}