/* リセット */
* {
  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;
}
.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;
}
/*ここまで共通*/
/* インスタ風 */
body {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  background: #fafafa;
}



/* 検索 */
.search {
  text-align: center;
  padding: 10px;
  background: white;
}

.search input {
  width: 60%;
  max-width: 300px;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid #ccc;
}

/* 投稿ボタン */
.create-btn {
  text-align: center;
  margin: 10px;
}

.create-btn a {
  background: #0095f6;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
}

/* フィード */
.feed {
  max-width: 600px;
  margin: auto;
}

/* 投稿カード */
.post-card {
  background: white;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

/* ヘッダー */
.post-header {
  padding: 10px;
  font-weight: bold;
}

/* 画像 */
.post-card .card-main-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* アクション */
.actions {
  padding: 10px;
  font-size: 20px;
}

/* 本文 */
.content {
  padding: 0 10px 10px;
}

.content p {
  margin: 5px 0;
  color: #333;
}
.view-switch {
  text-align: center;
  margin: 10px;
}

.view-switch a {
  margin: 0 10px;
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
}
.slider {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  display: flex;
  position: relative; /* ← これ絶対必要🔥 */
}

.slides {
  display: flex;
}

.slides img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.slider::-webkit-scrollbar {
  display: none;
}
/* 一覧 */
/* カード一覧 */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 30px; /* 上下左右に20pxの余白を追加 */

  margin: 0 auto;    /* max-widthを指定した場合、これで中央寄せになる */
}

/* カード */
.card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}
/* 画像 */
.card .card-main-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* タイトル */
.card h3 {
  margin: 10px;
  font-size: 18px;
}

/* 本文 */
.card p {
  margin: 0 10px 10px;
  color: #555;
  font-size: 14px;
}

/* リンクの装飾を消す */
.card a {
  text-decoration: none;
  color: black;
}
.slider {
  overflow-x: auto;
  display: flex;
  scroll-snap-type: x mandatory;
}
.slides img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.dots {
  text-align: center;
  margin: 5px 0;
}

.dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 3px;
  background: #ccc;
  border-radius: 50%;
}

.dots .active {
  background: #333;
}
.slider-wrapper {
  position: relative; /* ハートの配置基準 */
  overflow: hidden;   /* はみ出し防止 */
}
.slider {
  position: relative;
}
.slider {
  position: relative; /* ← これ超重要🔥 */
}

.heart {
  position: absolute; /* slider-wrapperに対して絶対配置 */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 100px;   /* 少し大きく */
  color: #ff3b30;     /* 赤色 */
  z-index: 100;       /* 画像より必ず上に */
  pointer-events: none; /* クリックを邪魔しない */
  opacity: 0;
  text-shadow: 0 0 20px rgba(0,0,0,0.3); /* 白い背景でも見えるように */
}

/* アニメーション用クラス */
.heart.show {
  animation: heart-pop 0.8s ease-out forwards;
}

@keyframes likeAnimation {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}
/* スライダーの親要素 */
.slider {
  position: relative;
  overflow-x: auto;
  display: flex;
  scroll-snap-type: x mandatory;
}





@keyframes heart-pop {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  25% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}
h1 {
  text-align: center;
}

/* アイコン */
.user-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 8px;
}
.blue-chat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #e3f2fd; /* 薄い青 */
    border: 2px solid #2196f3; /* 濃い青の枠線 */
    width: 40px;
    height: 40px;
    border-radius: 50%;        /* まん丸にする */
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.blue-chat-icon:hover {
    transform: scale(1.1);     /* ホバーで少し大きく */
    background-color: #bbdefb;
}
.michilogo {
    height: 150px;         /* ヘッダーに収まるスマートな高さ */
    width: auto;
    object-fit: contain;
    cursor: pointer;
    display: block;      /* 左右中央寄せに必須 */
}
.logo-container{
  display: flex;
    justify-content: center; /* 左右中央 */
    min-height: 20vh;        /* 画面の高さの80%を確保（余白の美） */
    flex-direction: column;  /* キャッチコピーなどがある場合、縦に並べる */
}
/* セレクトボックス全体のスタイル */
#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;
}