--- START OF FILE style.css ---
/* 共通ヘッダー */
header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 4px 2px;
  border-bottom: 1px solid #ddd;
  font-family: 'Segoe UI', sans-serif;
}

header nav a {
  color: #333;
  text-decoration: none;
  margin-left: 2rem;
  font-size: 1rem;
  transition: color 0.3s ease;
}

header nav a:first-of-type {
  margin-left: 0;
}

header nav a:hover {
  color: #3478f6;
}
.site-title {
  font-size: 1.5em;
  font-weight: bold;
  color: white;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}
/*読み取り専用欄を灰色*/
/*input[disabled],*/
/*input[readonly] {*/
/*  border: 1px solid #ccc;*/
/*  background-color: rgb(128, 128, 128);*/
/*  color: #666;*/
/*}*/

/* ヘッダーを左寄せにする */
.navbar {
  background-color: #3478f6; /* 青背景 */
  color: white;
  padding: 10px 20px;
}

/* ロゴとナビゲーションを左寄せ */
.navbar__left {
    display: flex;
    align-items: center;
}

/* ロゴの装飾を白文字・リンク感を消す */
.navbar__logo {
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    margin-right: 30px;
}

/* ナビゲーション全体 */
.navbar__menu a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
    font-weight: bold;
    font-size: 16px;
}

/* ホバー時の装飾 */
.navbar__menu a:hover {
    text-decoration: underline;
}
.navbar__menu nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 5px;
}

.navbar__menu nav a,
.navbar__menu nav button {
  color: white;
  text-decoration: none;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1em;

  /* 👇 以下を追加・調整 */
  padding: 0px 0px;         /* 縮めたパディング */
  min-width: auto;          /* 固定幅があれば解除 */
  flex: 0 0 auto;           /* 幅が勝手に広がらないように */
}


.navbar__menu nav form {
  display: inline;
}


/*フローティングメニューのCSS*/
.fab-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* 共通ボタン */
.fab-container .fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #ff9800;
  color: white;
  font-size: 20px;
  display: flex;
  flex-direction: row-reverse; /* ＋ → メニュー の順で横並び */
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

/* 横展開メニュー */
.fab-container .fab-menu {
    display: flex;
    flex-direction: row; /* 左に並べる */
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateX(-50px); /* 左にオフセット */
    transition: all 0.3s ease;
    pointer-events: none;
}

.fab-container .fab-menu.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.fab-container .main-fab {
  background: #f44336; /* 赤 */
}

.fab-container .top-fab {
  background: #4CAF50; /* 緑 */
}


/*共通ボタン(青)*/
.common-blue-submit-button {
  background-color: #2196F3;
  color: white;                /* 白文字 */
  padding: 8px 16px;           /* 上下8px・左右16pxの余白 */
  border: none;                /* ボーダーなし */
  border-radius: 6px;          /* 丸み */
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.common-blue-submit-button:hover  {
  background-color: rgb(106, 184, 247);      /* hover時に少し濃い緑 */
}

/*共通ボタン(グレー)*/
.common-gray-submit-button {
  background-color: rgb(201, 201, 201);
  color: black;                /* 黒文字 */
  padding: 8px 16px;           /* 上下8px・左右16pxの余白 */
  border: none;                /* ボーダーなし */
  border-radius: 6px;          /* 丸み */
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.common-gray-submit-button:hover  {
  background-color: rgb(155, 155, 155);      /* hover時に少し濃い緑 */
}

/*共通ボタン(緑)*/
.common-green-submit-button {
  background-color: rgb(11, 170, 6);
  color: white;                /* 白文字 */
  padding: 8px 16px;           /* 上下8px・左右16pxの余白 */
  border: none;                /* ボーダーなし */
  border-radius: 6px;          /* 丸み */
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.common-green-submit-button:hover  {
  background-color: rgb(7, 113, 4);      /* hover時に少し濃い緑 */
}
/*共通ボタン(Disabled)*/
.common-disabled-button {
  background-color: #ccc;      /*グレー */
  cursor: not-allowed;
  color: black;                /* 黒文字 */
  padding: 8px 16px;           /* 上下8px・左右16pxの余白 */
  border: none;                /* ボーダーなし */
  border-radius: 6px;          /* 丸み */
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease;
  
}

/*共通ヘッダーのログアウトボタンをリンクのように表示*/
.navbar__menu a,
.logout-button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
}

.logout-button:hover {
    text-decoration: underline;
}

/* ログアウトボタンも他リンクと統一 */
.logout-button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
}

.logout-button:hover {
    text-decoration: underline;
}
/*共通ヘッダーのログアウトボタンをリンクのように表示*/

/* 共通フッター */
/* ===== 共通フッター（AdSense対策） ===== */
.site-footer {
  font-size: 10px;
  margin-top: 40px;
  padding: 16px 8px;
  border-top: 1px solid #e5e5e5;
  text-align: center;
  color: #666;
  background: #fafafa;
}

.footer-links {
  margin-bottom: 6px;
}

.footer-links a {
  font-size: 10px;
  color: #666;
  text-decoration: none;
  margin: 0 4px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 11px;
  color: #999;
}


/* スマホ用フッター */
footer nav {
  display: flex;
  justify-content: space-around;
  padding: 0.8rem;
  background-color: #f8f8f8;
  border-top: 1px solid #ccc;
}

footer nav a {
  font-size: 1.4rem;
  color: #333;
  text-decoration: none;
}

/*-------シンプルテーブル-------*/
.common-simple-table {
  width: 100%;
  border-collapse: collapse;
  font-family: sans-serif;
}

.common-simple-table th,
.common-simple-table td {
  border: 1px solid #000; /* 黒線 */
  padding: 8px 12px;
  text-align: left;
}

.common-simple-table th {
  background-color: #f5f5f5; /* 薄いグレー背景 */
  font-weight: bold;
}


/*-------シンプルテーブル-------*/
/*-------投稿一覧レイアウト-------*/
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 1rem;
}

.post-card:hover {
  transform: translateY(-3px);
}

.post-thumbnail {
  width: 100%;
/*  width: 800px;*/
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* トップページの投稿一覧に適用されるスタイル */
.post-content h2,
.post-content p {
  color: #000; /* ✅ 明示的に黒に */
  text-decoration: none;
}

.post-content p {
  font-size: 0.9rem;
  color: #333;
  margin: 0.2rem 0;
}

.post-content h2 {
    color: #000;
    /* 以下のpaddingとborder-radiusを削除またはコメントアウトします */
    /* padding: 8px; */
    /* border-radius: 4px; */
}
.post-content h3 {

      background-color: white;
      color: #000;
      padding: 6px;
      border-radius: 4px;
      border-bottom: 4px solid rgb(206, 252, 255);  好みの色
}

.post-card {
  display: block;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  background-color: #fff;
  color: #000; /* ✅ 黒字 */
  text-decoration: none; /* ✅ アンダーライン削除 */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

/* アンダーライン削除 ブラウザによって効かないことがあるため、important設定*/
/* .post-card a h2,
.post-card a p {
  text-decoration: none !important;
} */
/* 投稿カード内のリンク全体にアンダーラインを適用しないように追加 */
.post-card a {
  text-decoration: none !important;
}
/* トップページの投稿一覧に適用されるスタイル */


.detail-link {
  display: none; /* 枠全体がリンクなので非表示にしてもOK */
}


.detail-link:hover {
  text-decoration: underline;
}

/* ページネーション */
.pagination {
  text-align: center;
  margin-top: 1.5rem;
}

.pagination a {
  margin: 0 1rem;
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

main, section {
  max-width: 960px;
  margin: 0 auto;
}

/* レスポンシブ対応 */
@media screen and (max-width: 600px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}

/*通常のh2用*/
.h2 {
  background-color: #007bff;
  color: #fff;
  padding: 4px 12px;     /* ← 縦方向を小さく（上4px・下4px） */
  border-radius: 4px;
  line-height: 1.2;       /* ← テキストの高さを抑える */
  margin: 0 0 8px 0;      /* ← 上下のマージンも最小限に */
}

/*-------投稿一覧レイアウト-------*/
/*-------投稿詳細-------*/
.post-detail {
  padding: 2rem;
}
.post-content-textarea{
    height: 700px;
}
/*-------SNSボタン-------*/
.sns-share-buttons {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
  width: 100%;
}


/* 各ボタン（aタグとbutton）を均等に4分割 */
.sns-share-buttons a,
.sns-share-buttons button {
  flex: 1; /* ← これで等分 */
  height: 40px;
  border: none;
  border-radius: 0; /* 角丸をなくしたければ */
  color: white;
  font-size: 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
/* 各ボタンごとの背景色 */
.btn-x { background-color: #000000; }
.btn-facebook { background-color: #3b5998; }
.btn-line { background-color: #06c755; }
.btn-copy { background-color: #666666; }


.post-detail-thumbnail {
  width: 100%;
/*  width: 800px;*/
  height: auto/*260px*/;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/*投稿情報のテーブル用(カテゴリ、場所など)*/
.info-map-container {
  display: flex;
  flex-wrap: wrap; /* スマホ時折返し可 */
  gap: 2rem;
  margin-top: 1.5rem;
}

/* テーブル側 */
.info-map-container .post-meta {
  flex: 0 0 47%;
    min-width: 300px;
}

/* 地図側 */
.info-map-container .map-container {
  flex: 0 0 47%;
    min-width: 300px;
}
#detailMap {
  width: 100%;
  height: 200px; /* ← 高さを必ず指定 */
  border: 1px solid #ccc;
  border-radius: 6px;
}
#map {
  width: 100%;
  height: 200px;
  border: 1px solid #ccc;
  flex-shrink: 0;
}


.post-infotable {
  border-collapse: collapse;
  width: 50%;
  max-width: 400px;
}
.post-infotable th, .post-infotable td {
  border: 2px solid #fff;
  background-color: rgb(219, 248, 255);
  padding: 1em;
}
.post-infotable th {
  background-color: rgb(164, 225, 255);
  color: white;
  font-weight: bold;
  text-align: center;
  width: 30%;
  min-width: 4em;
}

/*投稿情報のテーブル用(カテゴリ、場所など)*/

/*投稿編集ボタン*/
.edit-button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}
.edit-button:hover {
    background-color: rgb(106, 184, 247);      /* hover時に少し濃い緑 */
}

/* 投稿詳細ページだけに適用されるスタイル */
.post-detail-content h2 {
    background-color: #007bff;
    color: #fff;
    padding: 8px;
    border-radius: 4px;
}
.post-detail-content h3 {
    background-color: white;
    color: #000;
    padding: 6px;
    border-radius: 4px;
    border-bottom: 4px solid #007bff;  好みの色
}
/* 投稿詳細ページだけに適用されるスタイル */
.post-meta {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1rem;
}

.post-meta table {
  flex: 1;
  font-size: 0.8rem;
  border-collapse: collapse;
}

.post-meta table th {
  text-align: left;
  padding-right: 1rem;
  color: #555;
}

.post-meta table td {
  color: #000;
}

.map iframe {
  width: 300px;
  height: 200px;
  border-radius: 6px;
  border: none;
}

.post-body {
  margin: 1rem 0;
  font-size: 1rem;
  line-height: 1.6;
}

.poster-profile {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #f8f8f8;
  border-radius: 6px;
}

.poster-profile img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.poster-profile table {
  width: 100%;
  font-size: 0.95rem;
}

.contact-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.contact-btn:hover {
  background-color: #0056b3;
}


/* 投稿詳細でURLがあればカード表示 */
/*.link-preview-card {*/
/*  border: 1px solid #ccc;*/
/*  padding: 8px;*/
/*  margin-top: 10px;*/
/*  display: flex;*/
/*  gap: 10px;*/
/*  background: #f9f9f9;*/
/*  border-radius: 8px;*/
/*}*/
/*.link-preview-card img {*/
/*  width: 100px;*/
/*  height: auto;*/
/*  object-fit: cover;*/
/*}*/
/* 投稿詳細でURLがあればカード表示 */

  /*-------投稿詳細-------*/

  /*-------ヘッダーボタンスタイル-------*/
  /* ヘッダー全体に背景青 */
  header {
      background-color: #3478f6;
      padding: 12px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
  }


  /*ナビゲーションリンク*/
  header nav {
      background-color: #3478f6; /* 明示的に背景を青に */
  }

  header nav a {
      color: white;
      text-decoration: none;
      margin-left: 20px;
      font-weight: bold;
  }

  header nav {
      border-bottom: none;
      box-shadow: none;
  }

  /*-------ヘッダーボタンスタイル-------*/

  /*-------ユーザー登録-------*/
  .register-container {
    max-width: 80%;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
  }


  .register-title {
      text-align: center;
      font-size: 24px;
      font-weight: bold;
      margin-bottom: 20px;
  }
  /* 横並びのスタイル */
  .profile-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  /* プロフィールアイコンの見た目 */
  .user-icon {
      display: block;
      margin: 0 auto 10px;
      width: 100px;
      height: 100px;
      border-radius: 50%;
      background-color: #ccc;
  }

  /* アップロードボタンの見た目 */
  .upload-button {
      display: block;
      margin: 0 auto 20px;
      background: #f0f0f0;
      padding: 6px 12px;
      border: 1px solid #ccc;
      border-radius: 4px;
      cursor: pointer;
      font-size: 14px;
      text-align: center;
  }

  
  
  .form-group {
    display: flex;
    align-items: center;     /* ラベルと入力欄の縦位置を中央に */
    justify-content: center; /* 中央寄せ（全体を真ん中へ） */
    margin-bottom: 15px;
  }

  .form-group label {
    width: 120px;            /* ラベル幅（揃えたい場合） */
    text-align: left;       /* テキストを右寄せにして入力欄と揃える */
    margin-right: 10px;      /* ラベルと入力欄の間の隙間 */
    font-weight: bold;
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="password"],
  .form-group select,
  .form-group textarea {
    width: 70%;              /* 入力欄の幅 */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
  }

  .login-link {
      text-align: center;
      margin-top: 15px;
      font-size: 14px;
  }

  .login-link a {
      color: #3a81f3;
      text-decoration: none;
  }

  .login-link a:hover {
      text-decoration: underline;
  }

  /*-------ユーザー登録-------*/

  /*-------ログイン-------*/
  .login-container {
      background-color: #fff;
      padding: 40px;
      border-radius: 10px;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
      width: 500px;
      box-sizing: border-box;
  }

  .login-title {
      text-align: center;
      font-size: 26px;
      font-weight: bold;
      margin-bottom: 30px;
  }

  .form-group {
      margin-bottom: 20px;
  }

  input[type="email"],
  input[type="password"] {
      width: 70%;
      padding: 12px;
      border: 1px solid #ccc;
      border-radius: 6px;
      box-sizing: border-box;
      font-size: 16px;
  }

  .register-button {
    display: block;     /* ブロックにして幅を持たせる */
    width: 70%;         /* 入力欄と同じ幅に合わせる */
    margin: 20px auto;  /* 左右autoで中央寄せ */
    background-color: #3a81f3;
    color: #fff;
    border: none;
    padding: 10px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
  }


  .register-button:hover {
      background-color: #1b5fc9;
  }

  .login-link {
      margin-top: 15px;
      text-align: center;
      font-size: 14px;
  }

  .login-link a {
      color: #2d79e6;
      text-decoration: none;
      margin: 0 4px;
  }

  /*-------ログイン*-------/



/*新規投稿・編集*/
/* タイトルテキストボックスのサイズ */
.post-input-title {
    line-height: 1;
    padding: 6px;
    width: 98%;
}

/*投稿・更新ボタン*/
.post-submit-button {
    background-color: #d4f4dd; /* 薄い緑色の背景 */
    color: #2d5016; /* 濃い緑色の文字 */
/*  background-color: #2196F3;*/
/*  color: white;*/
  padding: 8px 16px;           /* 上下8px・左右16pxの余白 */
  border: none;                /* ボーダーなし */
  border-radius: 6px;          /* 丸み */
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease;
}
  /*下書きボタン*/
  .post-draft-button {
   background-color: #fff3cd; /* 薄い黄色の背景 */
   color: #664d03; /* 濃い茶色の文字 */
/*    background-color: #ffc107;*/
/*    color: black;*/
    padding: 8px 16px;           /* 上下8px・左右16pxの余白 */
    border: none;                /* ボーダーなし */
    border-radius: 6px;          /* 丸み */
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease;
  }
/*非公開ボタン*/
.post-private-button {
  background-color: #f8d7da; /* 薄いピンク色の背景 */
  color: #721c24; /* 濃い赤色の文字 */
/*  background-color: #6c757d;*/
/*  color: white;*/
  padding: 8px 16px;           /* 上下8px・左右16pxの余白 */
  border: none;                /* ボーダーなし */
  border-radius: 6px;          /* 丸み */
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease;
}

/*ボタンの右寄せ左寄せ*/
.post-controls-left {
    display: flex;
    justify-content: flex-start; /* 左寄せ */
    width: 100%;
    margin: 15px 0;
    padding: 10px;
}
/*ボタンの右寄せ左寄せ*/
.post-controls-right {
    display: flex;
    justify-content: flex-end; /* 右寄せ */
    width: 100%;
    margin: 15px 0;
    padding: 10px;
}

/*ボタンの編集ボタンとステータスラベルを左右に表示*/
.post-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 10px 0;
}

/* 投稿ステータスの共通スタイル */
.post-status-message {
    padding: 8px 16px;
    border-radius: 20px; /* 丸みを帯びたデザイン */
    font-weight: bold;
    font-size: 12px;
    display: inline-block;
    white-space: nowrap;
    text-transform: none; /* 大文字変換を無効化 */
    letter-spacing: 0.2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid transparent;
}

/* 投稿ステータスの公開（薄い緑色） */
.post-status-public {
    background-color: #d4f4dd; /* 薄い緑色の背景 */
    color: #2d5016; /* 濃い緑色の文字 */
    border: 1px solid #a8d8b9;
}

/* 投稿ステータスの下書き（薄い黄色） */
.post-status-draft {
    background-color: #fff3cd; /* 薄い黄色の背景 */
    color: #664d03; /* 濃い茶色の文字 */
    border: 1px solid #ffda6a;
}

/* 投稿ステータスの非公開（薄いピンク色） */
.post-status-private {
    background-color: #f8d7da; /* 薄いピンク色の背景 */
    color: #721c24; /* 濃い赤色の文字 */
    border: 1px solid #f1aeb5;
}

.post-submit-button:hover  {
  background-color: rgb(106, 184, 247);      /* hover時に少し濃い緑 */
}
/*新規投稿・編集*/


/*-------ドロップダウンリスト-------*/
.selectBox {
    appearance: none;
    padding: 8px 30px 8px 10px;
    border: 1px solid #0066cc;
    border-radius: 4px;
    font-size: 12px;
    background-color: #f0f8ff;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23333' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}
.selectBoxSignup {
    appearance: none;
    width: 70%;
    padding: 8px 30px 8px 10px;
    border: 1px solid #0066cc;
    border-radius: 4px;
    font-size: 12px;
    background-color: #f0f8ff;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23333' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

/*-------ドロップダウンリスト-------*/

/*記事投稿のトグルボタン-------*/
.toggle-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1em;
}

.toggle-label {
  font-size: 1rem;
  color: #333;
}

/* スイッチのスタイル */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/*-------地図表示制御のトグルボタン-------*/


/*-------コンタクト申請一覧-------*/

/*-------コンタクト申請一覧-------*/


/*-------コンタクト申請モーダル-------*/

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-content {
  background-color: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 20px;
  cursor: pointer;
  color: #888;
}

.modal-textarea {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  resize: vertical;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.modal-submit {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.modal-submit:hover {
  background-color: #0056b3;
}

/*-------コンタクト申請モーダル-------*/

/*-------マイページ-------*/
.mypage-container {
    max-width: 800px;
    margin: 2rem auto;
    font-family: sans-serif;
}

/*h2 {*/
/*    margin-bottom: 1rem;*/
/*}*/

.mypage-menu-list {
    list-style: none;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.mypage-menu-list li {
    border-bottom: 1px solid #ddd;
}

mypage-.menu-list li:last-child {
    border-bottom: none;
}

.mypage-menu-link {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

.mypage-menu-link:hover {
    background-color: #f0f8ff;
}


/*-------マイページ-------*/

/* =======================================================
   SCR_CONT_001: コンタクト申請一覧画面 Contact Requests
   ======================================================= */

/* タブナビゲーション */
#contactTabs .nav-link {
  font-weight: 600;
  color: #555;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  margin-right: 2px;
}

#contactTabs .nav-link.active {
  background-color: #ffffff;
  color: #2f6df6;
  border-bottom: 2px solid #2f6df6;
}

/* タブコンテンツのカード */
.contact-request-card {
  border: 1px solid #e3e7ee;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-request-card img.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ccc;
}

.contact-request-content {
  flex: 1;
}

.contact-request-content h5 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-request-content p {
  font-size: 14px;
  margin-bottom: 8px;
  color: #333;
}

/* ボタン */
.contact-request-content form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.contact-request-content .btn-primary {
  background-color: #2f6df6;
  border-color: #2f6df6;
  color: #fff;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .15s ease, transform .02s ease;
}


.contact-request-content .btn-primary:hover {
  background-color: #2456c4;
  border-color: #2456c4;
}

.contact-request-content .btn-secondary {
  background-color: #f9fafb;
  border-color: #cbd5e1;
  color: #334155;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .15s ease, transform .02s ease;
}

.contact-request-content .btn-secondary:hover {
  background-color: #e2e8f0;
}

/* 空データ表示 */
.contact-request-empty {
  color: #94a3b8;
  font-size: 14px;
  padding: 24px 8px;
  text-align: center;
}
/* ======= ローカルCSSタブ切替 ======= */
.sc-contact {
  margin-top: 1rem;
}

/* ラジオボタンは非表示 */
.sc-contact input[type="radio"] {
  display: none;
}

/* タブラベル共通 */
.sc-contact label {
  display: inline-block;
  padding: 8px 16px;
  margin-right: 2px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  font-weight: 600;
  color: #555;
  cursor: pointer;
}

/* 選択中タブ */
.sc-contact input[type="radio"]:checked + label {
  background: #fff;
  color: #2f6df6;
  border-bottom: 2px solid #2f6df6;
}

/* コンテンツ初期非表示 */
.sc-contact .tab-content {
  display: none;
  border: 1px solid #dee2e6;
  border-top: none;
  padding: 16px;
  background: #fff;
}

/* 選択されたタブに対応するコンテンツ表示 */
#tab1:checked ~ #content1,
#tab2:checked ~ #content2,
#tab3:checked ~ #content3,
#tab4:checked ~ #content4,
#tab5:checked ~ #content5 {
  display: block;
}


/*-------ユーザ設定-------*/
 .usersettings-container {
     max-width: 80%;
     margin: 40px auto;
     padding: 30px;
     background: #fff;
     border-radius: 8px;
     box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
     font-family: 'Arial', sans-serif;
 }

 /*-------ユーザ設定-------*/


/* ===== 承認済(#content2) を承認待ちと同配置に ===== */
#content2 .contact-request-card {
  align-items: flex-start;       /* 承認待ちと同じ縦揃え */
}

/* ブロックボタンの色だけ赤に（配置は既存の form レイアウトを流用） */
#content2 .contact-request-content .btn-danger {
  background-color: #d94835;
  border-color: #d94835;
  color: #fff;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .15s ease, transform .02s ease;
}

#content2 .contact-request-content .btn-danger:hover {
  background-color: #c84231;
  border-color: #c84231;
}

#content2 .contact-request-content .btn-danger:active {
  transform: translateY(1px);
}



/* =======================================================
   SCR_CHAT_001: トークルーム(チャット)一覧画面 talk_room
   ======================================================= */
.talk-rooms { margin-top: 12px; }
.talk-room-item{
  display:flex; gap:14px; align-items:center;
  padding:12px 10px; border:1px solid #e6e9ef; border-radius:10px;
  text-decoration:none; color:#000; background:#fff; margin-bottom:12px;
}
.talk-room-item:hover{ background:#f9fbff; }
.talk-room-avatar{ width:52px; height:52px; border-radius:50%; object-fit:cover; border:1px solid #ccd2dd; }

.talk-room-main{ flex:1 1 auto; min-width:0; }
.talk-room-head{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.talk-room-name{ font-weight:800; }
.talk-room-date{ color:#6b7280; font-size:12px; white-space:nowrap; }

.talk-room-last{
  margin:.25rem 0 0 0; color:#111827; opacity:.9;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
@media (max-width:520px){
  .talk-room-item{ padding:10px 8px; }
  .talk-room-date{ font-size:11px; }
}

/* =======================================================
   投稿詳細用 OGPカードデザイン
   ======================================================= */
.ogp-card {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
  margin-top: 1rem;
  overflow: hidden;
}

.ogp-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.ogp-thumb img {
  width: 300px;
  height: 180px;
  object-fit: cover;
}

.ogp-info {
  padding: 0.5rem;
  flex: 1;
}
/* OGPカード：スマホ向けレイアウト */
@media screen and (max-width: 768px) {
  .ogp-card {
    flex-direction: column;  /* 上下に表示 */
  }

  .ogp-thumb img {
    width: 100%;             /* 画面幅いっぱいに */
    height: auto;
    max-height: 200px;
  }

  .ogp-info {
    padding: 1rem;
  }
}
/* ================================
   チャット用 OGPカードデザイン
   ================================ */
.chat-ogp-card {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0;
  background-color: #f8f8f8;
  max-width: 90%;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.1);
}

.chat-ogp-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.chat-ogp-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  overflow: hidden;
  background: #eee;
}

.chat-ogp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-ogp-info {
  padding: 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chat-ogp-info h3 {
  font-size: 14px;
  margin: 0 0 5px;
  font-weight: bold;
  line-height: 1.2;
}

.chat-ogp-info p {
  font-size: 12px;
  margin: 0;
  color: #666;
}

@media screen and (max-width: 600px) {
  .chat-ogp-card {
    flex-direction: column;
    max-width: 100%;
  }

  .chat-ogp-thumb {
    width: 100%;
    height: 180px;
  }

  .chat-ogp-info {
    padding: 8px;
  }
}


/* =======================================================
   SCR_CHAT_002: チャット画面
   ======================================================= */
   /* 吹き出し全体の枠とスクロール */
   .chat-box {
       border: 1px solid #ccc; /* borderクラス相当 */
       padding: 1rem;           /* p-3 相当 */
       margin-bottom: 1rem;     /* mb-3 相当 */
       height: 400px;
       overflow-y: auto;
       background-color: #fff;
       border-radius: 8px;
   }

   /* 吹き出し配置 */
   .chat-row {
       display: flex;
       margin-bottom: 10px;
       align-items: flex-start;
   }

   .chat-row.left {
       justify-content: flex-start;
   }

   .chat-row.right {
       justify-content: flex-end;
   }

   /* 吹き出しスタイル */
   .bubble {
       max-width: 70%;
       padding: 10px 15px;
       border-radius: 15px;
       word-break: break-word;
       line-height: 1.4;
   }

   .bubble.left {
       background-color: #f1f1f1;
       color: #333;
       border-top-left-radius: 0;
       margin-left: 8px;
   }

   .bubble.right {
       background-color: #007bff;
       color: #fff;
       border-top-right-radius: 0;
       margin-right: 8px;
   }

   /* アイコン（相手のみ） */
   .chat-icon {
       width: 36px;
       height: 36px;
       border-radius: 50%;
       object-fit: cover;
   }
   
   /* 送信日時 */
   .timestamp {
       font-size: 0.7rem;  /* お好みで 0.6rem や 10px などに調整可能 */
       line-height: 1;
   }

      
   /* チャット画面のメッセージテキストボックスと送信ボタンのCSS */
   .input-wrapper {
       display: flex;
       align-items: center;
       gap: 8px;
   }

   .chat-input {
       flex: 1;
       resize: none;
       padding: 8px;
       border: 1px solid #ccc;
       border-radius: 8px;
       font-size: 14px;
   }


   /* =======================================================
      画面のエラーメッセージ
      ======================================================= */
   .alert {
     position: relative;
     padding: 0.75rem 1.25rem;
     margin-bottom: 1rem;
     border: 1px solid transparent;
     border-radius: 0.375rem;
     font-size: 0.9rem;
     line-height: 1.5;
   }

   .alert-danger {
     color: #842029;
     background-color: #f8d7da;
     border-color: #f5c2c7;
   }
   .alert {
     position: relative;
     padding: 0.75rem 1.25rem;
     margin-bottom: 1rem;
     border: 1px solid transparent;
     border-radius: 0.375rem;
     font-size: 0.9rem;
     line-height: 1.5;
   }
 .alert-info {
   color: rgb(0, 64, 0);
   background-color: rgb(213, 255, 208);
   border-color: rgb(213, 255, 208);
 }