.h3, h3 {
  font-size: 1.1em; /* 相対的なサイズ指定も可能 */
}
.h4, h4 {
  font-size: 0.8em; /* 相対的なサイズ指定も可能 */
}
.h1, h1 {
  font-size: 1.6em; /* 相対的なサイズ指定も可能 */
  color: navy;
}
.h2, h2 {
  font-size: 1.4em; /* 相対的なサイズ指定も可能 */
  color: navy;
}

body {
  font-family: 'Meiryo', 'メイリオ', 'Segoe UI', 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Arial', sans-serif;
}

.tos-alert {
  border: 2px solid #f99;
  background: #fff3f3;
  color: #a33;
  padding: 1em;
  margin-bottom: 1.5em;
  font-weight: bold;
}

.assistant-message {
  color: blue;
}

.ideaman-message {
  color: green;
}

.highlight {
  color: red;
  font-size: 1.5em; /* 親要素の1.5倍のサイズ */
  font-weight: bold; /* 念のため強調 */
}

.midhighlight {
  color: red;
  font-size: 1.3em; /* 親要素の1.3倍のサイズ */
  font-weight: bold; /* 念のため強調 */
}

.spinner{
  display:none;                 /* 初期は隠す */
  border:4px solid #f3f3f3;
  border-top:4px solid #3498db;
  border-radius:50%;
  width:40px;height:40px;
  animation: spin 1s linear infinite;
  position:fixed;top:50%;left:50%;
  margin:-20px 0 0 -20px;
  z-index:2000;
}
.spinner.active{display:block;} /* ← これだけで表示できる */
@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}

header {
    background: #23395d;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 1000px;
    margin: 0 auto;
    z-index: 1000;
    box-sizing: border-box;
    box-shadow: 0 4px 18px rgba(36, 61, 93, 0.13);
  }

  .header_login {
    background: #A6CAEC;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    box-shadow: 0 4px 18px rgba(36, 61, 93, 0.13);
  }

  /* ヘッダー内ナビゲーションの背景色 */
  .header_login .navbar {
  background-color: #A6CAEC;
  }

/* ナビゲーションメニュー（リンク）の文字色と背景色 */
  .header_login .navbar-nav .nav-link {
    color: #fff;              /* 文字色を白 */
    background: #23395d;  /* 背景を継承・透過 */
    transition: color 0.2s;
  }

  .header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 12px 0 12px;
    flex-wrap: nowrap; /* ← これを追加 */
  }
  
  .btn-sm { /* logout ボタンを小さく */
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
  }

  .logo-container {
    flex-shrink: 1;
  }
  
  .account-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: #fff;
    font-size: 14px;
    gap: 2px;
    flex-shrink: 1;
    min-width: 0;
  }
  
  .navbar {
    width: 100%;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 12px 12px 12px;
    box-sizing: border-box;
  }
  
  .navbar-nav {
    display: flex;
    flex-direction: row; /* 横並びを明示 */
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .navbar-nav .nav-link.active {
    color: #f8f9fa; /* 文字色を白に近い色に変更 */
    background-color: #3A88f8; 
  }
  
  .nav-item {
    min-width: 80px;
    display: flex;
    justify-content: center;
  }
  
  .nav-link_org_delete {
    background: rgba(255,255,255,0.10);
    border: 1.5px solid #2d56bd;
    border-radius: 8px;
    padding: 5px 14px;
    color: #fff;
    text-align: center;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
    box-shadow: 0 1px 6px rgba(64,98,187,0.10);
    font-weight: normal;
    text-decoration: none;
    letter-spacing: 0.05em;
    font-family: 'Meiryo', 'メイリオ', 'Segoe UI', 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Arial', sans-serif;
    font-size: 12px;
  }
  .nav-link {
    background: rgba(100,100,100,0.10);
    border: 1.5px solid #2d56bd;
    border-radius: 8px;
    padding: 5px 14px;
    color: #ffffff;
    text-align: center;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
    box-shadow: 0 1px 6px rgba(233,233,187,0.10);
    font-weight: normal;
    text-decoration: none;
    letter-spacing: 0.05em;
    font-family: 'Meiryo', 'メイリオ', 'Segoe UI', 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Arial', sans-serif;
    font-size: 12px;
  }
  .nav-link:hover {
    background: #fff;
    color: #23395d;
    border: 1.5px solid #fff;
    box-shadow: 0 4px 18px rgba(64,98,187,0.17);
    text-decoration: none;
  }
  .nav-link.active {
    color: #f8f9fa; /* 文字色を白に近い色に変更 */
  }
  .content {
    margin-top: 90px;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e1e7ef;
    border-radius: 8px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }

.blog-container {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    min-height: 500px;  /* 最小の高さを設定 */
}
.blog-content {
    flex: 2;
    padding: 1rem;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.blog-sidebar {
    flex: 1;
    min-width: 250px;  /* 最小幅を設定 */
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;  /* スクロール時に固定 */
    top: 20px;  /* 上部からの距離 */
    height: fit-content;  /* コンテンツに合わせて高さを調整 */
}
.blog-post {
    margin-bottom: 2rem;
    padding: 1rem;
}
.blog-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.blog-sidebar li {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}
.blog-sidebar li:last-child {
    border-bottom: none;
}
.blog-sidebar a {
    color: #333;
    text-decoration: none;
    display: block;
    font-weight: 500;
}
.blog-sidebar a:hover {
    color: #007bff;
}
.blog-sidebar small {
    display: block;
    margin-top: 0.25rem;
    color: #6c757d;
}

/* static/css/style.css */
.resend-code-btn {
  font-size: 0.95em;
}

.error {
  color: red; /* You might already have this, but good to ensure */
  margin-top: 10px;
}

/* ハンバーガーメニュー用 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  margin-left: auto;
}

/* 既存のCSSに追加・修正 */
@media (max-width: 768px) {
  header {
    flex-direction: row;
    align-items: center;
    padding: 10px 8px;
  }
  .header-top {
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }
  .logo-container {
    width: 100%;
    display: flex;
    align-items: center;
    /* justify-content: flex-start; */
  }
  .header-right {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 4px;
  }
  .account-area {
    display: flex;
    flex-direction: row !important;   /* ← column から row に変更 */
    justify-content: flex-end;
    width: auto;           /* 必要に応じて */
    gap: 8px;
    font-size: 14px;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
  }

  .menu-toggle {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-top: 2px;
  }
  .navbar {
    max-height: 0;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    min-height: 0 !important;
    background: none !important; /* 背景色も消して良い */
  }
  .navbar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #23395d;
    padding: 8px 12px;
    width: 100%;
    position: relative;
  }

  /* 追加するCSS（style.cssなどに） */
  .navbar.active .navbar-nav {
    display: flex;
  }
  .nav-link {
    font-size: 16px;
    padding: 12px 10px;
    border-left: 4px solid #4062bb;
    border-right: none;
    width: 100%;
    text-align: left;
  }
  .navbar.active {
    max-height: 350px; /* メニューが開いたときのみ縦に広がる。コンテンツに被らない */
    overflow: visible;
  }
  .logo-container img {  /* ロゴサイズを小さく */
    height: 20px;
    width: auto;
  }
  .menu-toggle {
    display: block;
  }
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none !important;
  }
}

