/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  color: #333;
  line-height: 1.6;
  background-color: #f9f9f9;
}

/* コンテナ */
.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー */
header {
  background-color: #111;
  color: #fcd34d;
  padding: 15px 0;
}
header .logo {
  font-size: 1.8rem;
  font-weight: bold;
  white-space: nowrap;
}
header .nav-links a {
  margin: 0 15px;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}
header .nav-links a:hover {
  color: #fcd34d;
}
header .language-switch button {
  margin-left: 10px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}
header .language-switch button:hover {
  color: #fcd34d;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-container {
  max-width: 600px;
  margin: auto;
  background: #e5f0ff;
  padding: 10px;
}

.message {
  margin-bottom: 8px;
}

.user {
  font-weight: bold;
  margin-right: 5px;
}

.text {
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
}

.input-box {
  display: flex;
  margin-top: 10px;
}

/* フッター */
footer {
  background-color: #111;
  color: #fcd34d;
  padding: 40px 0;
  text-align: center;
}
footer a {
  color: #fcd34d;
  text-decoration: none;
  margin: 0 5px;
}
footer a:hover {
  text-decoration: underline;
}


.hero-overlay {
   /* position: absolute; */
  inset: 0;
  min-height: 200px;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}
.hero-overlay h1 {
  font-size: 3rem;
  margin-top: 20px;
  margin-bottom: 20px;
  color: #4a3728;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}
.hero {
  position: relative;
  min-height: 200px; /* 最低限の高さ */
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
}
.trinity {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.trinity-item {
  text-align: center;
}

.trinity-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.trinity-item h3 {
  margin-top: 20px;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
}

.trinity-item p {
  font-size: 0.9rem;
  opacity: 0.85;
}
@media (max-width: 768px) {
  .trinity {
    grid-template-columns: repeat(3, 80%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .trinity-item {
    scroll-snap-align: center;
  }
}

/* レスポンシブ */
@media (max-width: 768px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }
  .header-container {
    flex-direction: column;
    gap: 10px;
  }
}
.btn-orange {
  display: inline-block;
  padding: 10px 18px;
  background-color: #ff8c00;   /* オレンジ */
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 9999px;  /* ← ここがポイント */
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-orange:hover {
  background-color: #ff7400;
  transform: translateY(-1px);
}

.btn-orange:active {
  transform: translateY(0);
}
.header-login {
  position: absolute;
  top: 15px;
  right: 20px;
}
/*ベルマーク*/
.header {
  height: 50px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.nav-links .bell {
  position: relative;
  width: 28px;              /* ← 幅を固定 */
  height: 28px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  display: inline-flex;
}
.bell-icon {
  display: block;           /* ← inline をやめる */
  font-size: 22px;
  line-height: 1;
}


@keyframes bell-blink {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(-15deg); }
  50%  { transform: rotate(15deg); }
  75%  { transform: rotate(-10deg); }
  100% { transform: rotate(0deg); }
}

/* 🔴 未読バッジ */
.bell-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 9px;
  height: 9px;
  background: red;
  border-radius: 50%;
}

.hidden {
  display: none;
}
@keyframes bell-shake {
  0%   { transform: rotate(0); }
  10%  { transform: rotate(15deg); }
  20%  { transform: rotate(-15deg); }
  30%  { transform: rotate(10deg); }
  40%  { transform: rotate(-10deg); }
  50%  { transform: rotate(5deg); }
  60%  { transform: rotate(-5deg); }
  100% { transform: rotate(0); }
}

.bell-icon.shake {
  animation: bell-shake 0.6s ease-in-out;
  transform-origin: top center;
}
/*ベルマーク*/
.bell-popup {
  position: absolute;
  top: 36px;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #333;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  white-space: nowrap;
  z-index: 1000;
}
.bell-popup {
  position: absolute;
  top: 36px;
  right: 0;
  width: 260px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  z-index: 9999;
  padding: 6px 0;
}

/* 非表示 */
.bell-popup.hidden {
  display: none;
}

/* 🔔 通知1件 */
.notice-item {
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  white-space: normal;     /* 折り返しOK */
  word-break: break-word;  /* 日本語対応 */
}

/* hover */
.notice-item:hover {
  background: #f5f5f5;
}

/* 区切り線（複数件時） */
.notice-item + .notice-item {
  border-top: 1px solid #eee;
}
.bell {
  position: relative;
  cursor: pointer;
}
.logo img {
  height: 50px;
}
/*ここまで共通*/
/* --- 詳細画面レイアウト --- */
.detail-container {
    max-width: 1100px;
    margin: 50px auto;
    display: flex;
    gap: 50px;
    padding: 0 30px;
}

/* 左側：画像セクション */
.detail-visual {
    flex: 1.2;
    min-width: 0; /* 折り返し対策 */
}

.main-image-container img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease;
}

.thumb-navigation {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 70px;
    overflow-x: auto;
    padding: 5px 0;
}

.thumb-item {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}

.thumb-item:hover {
    border-color: #ff4757;
    transform: translateY(-3px);
}

/* 右側：コンテンツエリア（タイトル左上・文章下） */
.detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* タイトルエリア（左上） */
.content-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.post-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    color: #1a1a1a;
    line-height: 1.2;
}

.post-meta {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #888;
    display: flex;
    gap: 15px;
}

/* 文章エリア（タイトルの下） */
.post-description {
    margin-bottom: 30px;
}

.text-main {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #444;
    white-space: pre-wrap; /* 改行を有効にする */
    margin-bottom: 20px;
}

.text-sub {
    background: #fdf2f2;
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid #ff4757;
    font-size: 1rem;
    color: #555;
    font-style: italic;
}

/* マップ */
.post-map {
    margin-top: auto; /* コンテンツが少なくても下に配置 */
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ddd;
}

/* 戻るボタン */
.content-footer {
    margin-top: 30px;
}

.btn-back {
    display: inline-block;
    padding: 12px 30px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-back:hover {
    background: #ff4757;
    color: #fff;
}

/* レスポンシブ */
@media (max-width: 900px) {
    .detail-container {
        flex-direction: column;
        gap: 30px;
    }
    .main-image-container img {
        height: 350px;
    }
}
.detail-visual-container {
  display: flex;
  gap: 20px;           /* 左右の間隔 */
  flex-wrap: wrap;      /* 画面狭いときは縦に並ぶ */
}

.detail-visual {
  flex: 2;              /* 写真部分をやや広めに */
  min-width: 300px;
}

.detail-map {
  flex: 1;              /* マップ部分を写真より小さめに */
  min-width: 300px;
}

.main-image-container img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.thumb-navigation {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.thumb-item {
  width: 60px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 5px;
}
.large-photo {
    width: 100%;       /* 親要素（content-row）の幅いっぱいに広げる */
    max-width: 800px;  /* 大きくなりすぎないように上限を決める（お好みで） */
    height: auto;      /* 縦横比を保つ（非常に重要！） */
    display: block;    /* 中央寄せにしやすくする */
    margin: 0 auto;    /* 中央寄せ */
    border-radius: 15px; /* 角を丸くする（お好みで） */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* 影をつける（お好みで） */
}
.row-image {
  position: relative; /* テキストの絶対位置の基準 */

}
.row-image img.large-photo {
  width: 100%; /* または固定幅 */
  height: auto;
  display: block;
  border-radius: 8px; /* 任意 */
}


/* 親要素のコンテナ */
.content-row {
    display: flex;
    flex-direction: column; /* 縦に並べる */
    align-items: flex-start; /* これが重要！中身を左端に揃える */
    width: 100%;
    max-width: 800px; /* 写真の最大幅に合わせる */
    margin: 0 auto 50px; /* コンテナ自体は中央、下マージン50px */
}

/* 画像が入るボックス */
.row-image {
    width: 100%; /* コンテナいっぱいに広げる */
    margin-bottom: 15px; /* 写真と文字の間の余白 */
}

/* 写真自体の設定 */
.tabi_img.large-photo {
    width: 100%;  /* ボックスいっぱいに表示 */
    height: auto;
    display: block;
    border-radius: 12px;
}

/* テキストが入るボックス */
.row-text {
    width: 100%;
    text-align: left; /* 左揃えを確定させる */
    padding: 0 5px;   /* 写真の端とピッタリすぎると窮屈なら少しだけ余白 */
}

.row-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}
.content-footer {
    width: 100%;
    text-align: center; /* 中にあるインラインブロック要素を中央に */
    margin-top: 50px;   /* 上に余白 */
    margin-bottom: 50px; /* 下に余白 */
}
.row-text {

bottom: 8px;   /* 左下の少し上 */

background-color: rgba(244, 206, 206, 0.17); /* 文字が見やすくなる背景 */
padding: 4px 8px;
border-radius: 4px;
font-size: 14px;
}
.detail-page-wrapper {
    max-width: 1200px;
    margin: 80px auto; /* 1つ目の数字（80px）が上の余白です。お好みで調整してください */
    padding: 0 20px;
}

/* もし個別に細かく調整したい場合 */
.detail-header-top {
    margin-top: 40px; /* ここでもさらに追加の調整が可能です */
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}
.title-bar {
    display: flex;
    justify-content: space-between; /* 左：タイトル / 右：ボタン */
    align-items: center;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 10px; /* ボタン間の余白 */
}

.action-buttons form {
    margin: 0;
}
/* アイコン */
.user-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 8px;
}
/* カード全体のスタイル（既存であれば不要） */
.card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  max-width: 400px;
  background-color: #fff;
  font-family: sans-serif; /* お好みのフォントに */
}

/* ユーザー情報セクション全体のコンテナ */
.user-info-header {
  display: flex;
  justify-content: space-between; /* プロフィールと詳細を左右に分ける */
  align-items: center; /* 垂直方向の中央揃え */
  margin-bottom: 60px; /* カードコンテンツとの間隔 */
  padding-bottom: 12px;
}

/* 左側：アイコンと名前、肩書き */
.user-profile {
  display: flex;
  align-items: center;
  
}

.user-main {
  display: flex;
  flex-direction: column; /* 名前と肩書きを縦に並べる */
}

/* 肩書き（biko1）: 特別感を出すために小さく色を変える */
.user-title {
  font-size: 2em;
  color: #777;
  text-transform: uppercase; /* 大文字にしてプロっぽく */
  letter-spacing: 0.5px;
}

/* 右側：その他の詳細情報 */
.user-details {
display: flex;
    flex-direction: column; /* これで縦並びになります */
    gap: 4px;              /* 縦方向の間隔を指定できます */
    font-size: 1em;
    color: #666;
}

/* ユーザー情報全体の枠組み */
.user-info-header {
  display: block; /* 強制的に改行 */
  padding: 10px 0;
  line-height: 1.6; /* 行間を少し広げて読みやすく */
}


.user-name {
  font-weight: bold;
  font-size: 1.5em;
  color: #333;
}


/* データの文字色 */
.user-data {
  color: #333;
}

/* 下部エリア全体のレイアウト */
.bottom-area {
    display: flex;
    flex-direction: column; /* 縦に並べる */
    align-items: center;    /* 左右中央 */
    justify-content: center;/* 上下中央（必要に応じて） */
    margin: 50px auto;      /* 上下に余白を持たせる */
    text-align: center;
    width: 100%;
}

/* いいねボタンのコンテナ */
.like-container {
    margin-bottom: 20px;    /* 下のボタンとの間隔 */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* いいねの数字 */
.like-count {
    font-size: 1.2rem;
    font-weight: bold;
    color: #555;
    margin-top: 5px;
}

/* CSSファイルに追加 */
input[type="checkbox"] {
    transform: scale(1.2); /* 1.2倍くらいに大きくする */
    margin-right: 10px;
}
/* セレクトボックス全体のスタイル */
#lang_all {
    font-size: 18px;       /* 文字サイズ大きく */
    padding: 10px 15px;    /* 内側の余白で高さを調整 */
    border-radius: 12px;   /* 角丸 */
    border: 1px solid #ccc;/* 枠線 */
    background-color: #fff;/* 背景色 */
    width: 200px;          /* 横幅 */
    appearance: none;      /* デフォルト矢印を消す場合 */
    -webkit-appearance: none; /* Safari/Chrome用 */
    -moz-appearance: none; /* Firefox用 */
}

/* セレクトボックスの矢印を独自で作りたい場合 */
#lang_all::after {
    content: "▼";           /* 矢印 */
    position: absolute;
    right: 10px;
    pointer-events: none;
}