/*
 * @import "tailwindcss" ではなく、
 * Tailwind の公式ディレクティブを使用します。
 */
/* その他のカスタムCSSやSCSSがあれば、ここに追記またはインポート */
/* Flash メッセージの共通スタイル */
.flash {
  padding: 12px;
  border-radius: 6px;
  margin: 10px 0;
  font-weight: bold;
}
/* 成功メッセージ（緑） */
.flash.success {
  background-color: #d1fae5; /* 薄い緑 */
  border: 1px solid #10b981; /* エメラルドグリーン */
  color: #065f46; /* 濃い緑文字 */
}
/* 通常の通知（青系にする例） */
.flash.notice {
  background-color: #bfdbfe; /* 薄い青 */
  border: 1px solid #3b82f6;
  color: #1e3a8a;
}
/* エラーメッセージ（赤） */
.flash.danger {
  background-color: #fee2e2;
  border: 1px solid #ef4444;
  color: #991b1b;
}
/* -------------------------------------- */
.posts-list {
  max-width: 960px;       /* PC時のコンテンツ幅上限 */
  padding-top: 5px;
  padding-right: 5px;
  padding-left: 5px;
}
.avatar-post-wrapper {
  display: flex;
  align-items: flex-start; /* フレックスbox内の子要素を上部に寄せる */
  gap: 1px;
  margin-bottom: 20px;    /* 投稿ごとの間隔 */
}
.post-item {
  /* フレックスbox内の子要素が1:1の割合で割り当てられる。
  最大限広がろうとする画像に対して、アイコンが固定幅で最小スペースを確保しつつ
  残りを画像などに割り振れる。 */
  flex: 1;
}
/* 投稿全体をリンク化 */
.post-card-link {
  display: block;         /* 全体をブロック要素に */
  text-decoration: none;  /* リンクの下線消す */
  color: inherit;         /* テキスト色継承 */
  border-radius: 12px; /* 丸みでカードっぽくする */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 柔らかい影 */
}
/* 画像エリア */
.image-section {
  width: 100%;
  margin-bottom: 5px;
}
.image-section img {
  width: 100%;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover; /* 画像を枠いっぱいにしつつ、縦横比を保持 */
}
.productname-link {
  color: blue;
  text-decoration: underline;
}
/* チャート＋レビューは縦並び */
.chart-review-wrapper {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
/* チャート部分 */
.chart-section {
  flex: 0 1 300px;        /* 成長:0, 縮小:1, ベース:300px */
}
/* PC版 */
.chart-container {
  height: 250px;    /* チャートが表示される最大高さを設定 */
  max-width: 250px; /* オプション：チャートが画面いっぱいには広がらないように最大幅を設定 */
  margin: 0 auto;   /* オプション：中央寄せ */
}
/* レビュー部分 */
.review-section {
  /* 上、右、下、左の順 */
  padding: 5px 5px 10px 5px;
}
/* モバイル（～767pxまで） */
@media (max-width: 767px) {
.chart-container {
    /* モバイルでも最大幅を制限する場合は、ここで指定します */
    max-width: 180px; /* モバイルでは最大200pxに制限 */
    height: 180px !important;    /* 高さを200pxに制限 */
    margin: 0 auto;   /* 中央寄せを維持 */
    height: auto; /* チャートの高さを柔軟に調整 */
  }


  .chart-section {
    max-width: none;
    flex: 1 1 0; /* 成長:1、縮小:1、ベース:0、画面幅に合わせて強制的に50%ずつ縮小・拡大する */
  }
}
.reaction-container {
  /* 上右下左 */
  padding: 0px 15px 5px 15px;
  display: flex;
  justify-content: space-between; /* 今後メニューが並ぶことを見越してみる */
}
/* いいねアイコンと数横並び */
.like-wrapper {
  display: flex;
  gap: 1px;
}
.trash-can {
  margin-left: auto; /* 自動余白で右へ押し出す */
}
.trash-can:hover {
  color: #000000;
}
/* ====================== */
/* post作成ページ */
/* ====================== */
/* タイトル「Write a review」と送信ボタンを横並びにする */
.post-header {
  display: flex;
  justify-content: space-between; /* 左右両端に分ける */
  align-items: center;           /* 縦位置を揃える */
  margin-bottom: 60px;
}
/* アイコンよりも右のフォームセット */
.new-post-item {
  flex: 1;
  padding: 30px 5px 0px 0px;
  /* フォーム側のコンテンツの最小幅制約を無視
  必要なら0まで縮むことを許可 */
  min-width: 0;
}
.triangle-chart-input {
  margin: 30px 0px 30px 0px;
}
/* -------------------------------------- */
/* 商品リスト */
.product-list-container {
  /* モバイル（デフォルト）: 縦一列 */
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 5px; /* カードの間隔 */
  list-style: none; /* ulのデフォルトの黒点を消す */
  padding: 0;
  margin: auto;
  /* 要素の幅の上限,pc版でいい感じに4枚並ぶ数値 */
  max-width: 1200px;
}
/* 商品レコードの個別カード */
.product-card {
  background-color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  /* はみ出した分は非表示になる　*/
  overflow: hidden;
}
/* カード内の画像エリアと情報エリアのレイアウト */
.product-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* 3. 画像エリアと縦横比 (4:3) の設定 */
.product-image-area {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.product-image-area .product-image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
/* 4. タイトル&タグ$レーダーチャート */
.product-info-area {
  /* 表品名の長さによる見切れ対策 */
  width: 100%;
  text-align: left;
  word-wrap: break-word; /* 長い単語を途中で折る */
  word-break: break-all; /* 英単語でも折り返し可能にする */
}
/* 商品名を左寄せ、下の段にタグを置いて右寄せ */
.product-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* デフォルトは左寄せ */
  width: 100%;
}
/* 単なる商品名 */
.index-product-name {
  margin: 0;
  font-weight: 550; /* 通常よりは太く、boldよりは細い */
}
/* 親のproduct-headerがブロック要素を中身のサイズに合わせて小さくしている。
width: 100%;は左寄せできる変化幅を決めている。*/
.draft-tag-container {
  width: 100%;
  text-align: right;
}
.draft-tag {
  background-color: #969696;
  padding: 1px 8px 1px 8px;
  border-radius: 5px;
}
/* レーダーチャートのコンテナを中央寄せに */
.index-flavorchart-container {
  display: flex;               /* flexboxを使う */
  justify-content: center;     /* 水平方向に中央寄せ */
  width: 100%;
  margin-top: 8px;             /* 少し余白を入れると見やすい */
}
/* -------------------------------------- */
/* Product.nameのリンク
デフォルトで下線がきえているか…? */
.product-name-link {
  color: #000000;
}
.product-name-link:hover {
  text-decoration: underline;
  color: #0070f3;
}
/* ====================================== */
/* pruducts/showページ */
/* レーダーチャート&postボタン */
.chart-post-container {
  display: flex;
  align-items: center;
}
.show-flavorchart-container {
  /* 既存の修正 */
  flex-shrink: 1;
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
}
/* レーダーチャート本体 */
.show-flavorchart-container canvas {
  width: 100% !important;
  height: 100% !important;
}
/* テキストとpostボタンのコンテナ */
.post-from-product {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* テキスト */
.post-text {
  text-align: center;
  padding-left: 3px;
  padding-right: 3px;
  font-style: italic;
}
/* -------------------------------------- */
.product-detail-section {
  /* PCでは残り幅を占有しつつ、縮小を許可します */
  flex: 1 1 0; /* 成長:1, 縮小:1, ベース:0。残り幅を均等に占めます */
  background-color: rgba(240, 240, 240, 1);
  padding: 10px 15px;
  border-radius: 8px;
  margin-top: 5px;
}
/* 商品情報タイトル */
.product-detail-section h2 {
  margin-bottom: 10px;        /* タイトル下のスペースを程よく */
  font-size: 1.2rem;
  font-weight: 600;
}
/* 商品詳細情報の各項目 */
.product-detail-list {
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 600px; /* 枠に対して情報が占める幅 */
}
/* ラベル&値 */
.product-detail-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
}
.detail-label {
  display: inline-block;
  width: 140px; /* ラベル列の幅を統一して揃える */
  font-weight: 600;
  color: #333;
  /* 値の文字数によってはラベルの縮小するので制限 */
  flex-shrink: 0;
}
.detail-value {
  flex: 1;
  color: #555;
  padding-left: 12px; /* ラベルと値の間隔 */
  /* 縮小制約解除、親の幅を超えても必要に応じて縮小 */
  min-width: 0;
  /* スペースのない長い文字列が単語の途中でも折り返される*/
  overflow-wrap: break-word;
}
/* -------------------------------------- */
/* 円形のアイコン */
.rounded-full {
  border-radius: 50%;
  /* 画像が親要素からの引き伸ばしを受けないように 'block' に設定 */
  display: block;
  /* 画像のアスペクト比を維持しつつトリミング */
  -o-object-fit: cover;
     object-fit: cover;
  /* 親要素の幅が狭くなった際、親要素からはみ出さずに柔軟に縮小 */
  max-width: 100%;
}
/* マイページのアイコン */
.user-avatar {
  /* モバイル版: 縦横115pxの円形 */
  width: 115px;
  height: 115px;
}
/* postカードのアイコン */
.user-avatar-s {
  width: 35px;
  height: 35px;
}
/* 親要素に。アイコンに固定幅を設けて潰れ対策
また、対抗要素にmin-width: 0;を加えると縮小幅の制約を無視でき、スペースを確保できる */
.avatar-s-item {
  width: 35px;
  /* 縮小しない */
  flex-shrink: 0;
}
/* PC版 */
@media (min-width: 768px) {
  .user-avatar {
    width: 200px;
    height: 200px;
  }

  .user-avatar-s {
    width: 80px;
    height: 80px;
  }

   /* postアイコンの固定幅設定.
   これがないと35pxで固定され縦長になる*/
  .avatar-s-item {
    width: 85px;
    flex-shrink: 0;
  }

}
/* -------------------------------------- */
/* auth=認証 ログイン/新規登録ページなどのカードデザイン */
.auth-card {
  /* 親クラスの横幅いっぱいに広がる */
  width: 100%;
  /* ただし、最大幅は556pxで留まる */
  max-width: 556px;
  background-color: white;
  /* 内部のコンテンツへの余白。上に32px, 左右に24px, 下に24px */
  padding: 32px 24px 24px;
  /* 
  これ↓の短縮形,左右の余白を自動で均等にとる。結果水平方向に中央寄せになる
  margin-left: auto; 
  margin-right: auto;
  */
  margin: auto;
  box-shadow: 0 0px 8px rgba(0, 0, 0, 0.1);
}
/* auth-catdの親コンテナ */
.auth-card-container {
  /* 直下の子要素を横並びにする(孫要素は適用外) */
  /* また、子要素を柔軟な箱(Flexbox)のルールに従って管理、制御する */
  display: flex;
  /* 要素が持つ最小の高さ 100vhはビューポートの高さの100% を意味し、
  親要素が、スクロールせずに表示される領域いっぱいを覆うことになる */
  min-height: 100vh;

  /* 垂直方向中央寄せ */
  align-items: center;
  /* 水平方向中央寄せ(margin: auto;と重複) */
  justify-content: center;
}
/* h2はカードタイトル専用にしよう */
.auth-card h2 {
  font-size: 24px;
  /* 下の入力欄との間にスペース */
  margin-bottom: 32px;
}
/* pはタイトル直下の説明文,パスワードリセットの説明で使用 */
.auth-card p {
  text-align: center;
  /* 下の入力欄との間にスペース。上のスペースはh2タグで補完 */
  margin-bottom: 24px;
}
.field {
  margin-bottom: 24px;
  /* これは間違い。f.email_fieldなどが生成する<input>要素にwidth: 100%; を適用する必要がある
  width: 100%;
  */
}
.field input[type="email"],
.field input[type="password"],
.field input[type="text"] {
  width: 100%;
  /* 入力欄の縦幅を設定 */
  height: 35px;
  border: 1px solid #ccc;
}
/* ======================== */
/* お問い合わせのtext_areaに適用 */
.text-area {
  width : 100%;
  border: 1px solid #ccc;
}
/* ラジオボタン */
.inquiry-type-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2列に分ける */
  gap: 0.5rem 1rem; /* 上下・左右の間隔 */
  margin-top: 0.5rem;
}
.radio-item {
  display: flex;
  align-items: center;
  gap: 0.25rem; /* ボタンとラベルの間隔 */
}
/* --------------------- */
/* ヘッダータイプの切り替え */
/* --------------------- */
.desktop-header-container {
  display: none;
}
.mobile-header-container {
  display: block;
}
/* 画面幅が800px以上のスクリーンに対応するスタイル */
@media (min-width: 800px) {
  .desktop-header-container {
    display: block;
  }

  .mobile-header-container {
    display: none;
  }
}
/* --------------------- */
/* デスクトップ版ヘッダー */
/* --------------------- */
.desktop-header {
  /* 常に最前面に固定表示 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: black;
  color: white;
  display: flex;
  /* 垂直方向中央寄せ */
  align-items: center;
  /* 応急処置:検索バーより上に表示 */
  z-index: 100;
}
.desktop-header h3 {
  font-size: 24px;
  margin-left: 40px;
}
.header-right-menu {
  /* 左側のマージンが空きスペースを吸収、結果要素全体が右寄せになる
  　　margin-right: auto; と合わせることで中央寄せにもなる */
  margin-left: auto;
  display: flex;
  /* フレックスコンテナの子要素の配置方向を、横並び(デフォ)から縦並びに変更する*/
  flex-direction: column;
  /* 縦並びにしたアイテムを中央に寄せる */
  align-items: center;
}
.header-right-menu div {
  /* 右メニューの子要素(リンクやボタン)を中央に寄せる */
  margin: auto;
  margin-bottom: 5px;
}
.header-right-menu div:nth-child(1) {
  font-size: 14px;
  padding-right: 16px;
}
/* --------------------- */
/* モバイル版ヘッダー */
/* --------------------- */
.mobile-header {
  /* 常に最前面に固定表示 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: black;
  color: white;
  /* ハンバーガーメニューとログインボタンを横並びにする */
  display: flex;
  align-items: center;
  /* 最初の要素(ハンバーガーメニュー)と最後の要素(ログインボタン)を両端にする(その間の要素は等間隔) */
  justify-content: space-between;
  padding: 0 16px;
  /* 応急処置:検索バーより上に表示 */
  z-index: 100;
}
/* 隠されたメニューバー */
.mobile-nav.hidden {
  /* 要素を完全に非表示にする。レイアウト上のスペースも取らない */
  display: none;
}
/* メニューバー */
.mobile-nav {
  /* 固定表示 */
  position: fixed;
  /* 60はヘッダーの高さ。0だと閉じるボタン/ログインボタンを覆ってしまう */
  top: 60;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;

  display: flex;
  flex-direction: column;
  /* Z軸方向の要素の重なり順。大きいほど上 */
  z-index: 90;
}
.mobile-nav ul {
  padding-top: 60px;
  padding-left: 60px;
}
.mobile-nav ul:nth-child(1) {
  font-size: 20px;
}
.mobile-nav ul:nth-child(2) {
  font-size: 16px;
}
.mobile-nav li {
  margin-bottom: 20px;
}
/* ハンバーガーメニューボタン */
#menu-toggle {
  /* spanタグ3つを横並びに */
  display: flex;
  /* 横並びを縦並びに */
  flex-direction: column;
  /* 最初の要素最後の要素を両端に配置し、要素間に均等に余白を儲ける */
  justify-content: space-between;
  /* 枠線を消す。
  button要素はブラウザによって最初からボタンらしい見た目がついているのでリセット */
  border: none;
  /* 背景色を透明にする。下にある要素の背景色が透けて見える。これもデフォルトスタイルのリセットが目的 */
  background: transparent;
  /* タップ領域になる。指操作を意識した */
  width: 44px;
  height: 44px;
  /* 要素内に余白(上下に8px, 左右に5px)、見かけ以上に押しやすい */
  padding: 8px 5px;
}
/* 三本線 */
#menu-toggle span {
  /* インライ要素(spanタグ)などを<p>や<div>のようなブロック要素として扱う */
  /* ブロック要素付与により、親要素の大きさが継承、改行がなされ、幅、高さなどが指定できるようになる */
  display: block;
  width: 100%;
  height: 3px;
  /* colorは文字の色を指定する。
  空の要素の背景を塗って線を作るという理屈なのでbackground-colorが正解 */
  background-color: #fff;
}
/* jsコントローラーでchangeクラスを付与した三本線 */
#menu-toggle.change span:nth-child(1) {
  /* ratate(45deg):45°回転 */
  transform: rotate(45deg);
  /* 左端を固定して右側が回転 */
  transform-origin: left center;
}
#menu-toggle.change span:nth-child(2) {
  opacity: 0;
}
#menu-toggle.change span:nth-child(3) {
  transform: rotate(-45deg);
  transform-origin: left center;
}
.my-page-container {
  display: flex;
  padding-top: 32px;
  padding-left: 16px;
  /* 横方向の子要素間にスペースを開ける */
  gap: 32px;
}
.user-info {
  display: flex;
  flex-direction: column;
  /* 縦並びの子要素にもスペースを設定できる */
  gap: 1rem;
}
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* マイページ下線との間隔 */
  margin-bottom: 8px;
}
.profile-link-container {
  margin-left: auto;
  padding-right: 14px;
}
.edit-profile-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  /* 角を丸くする */
  border-radius: 13px;
  background-color: #7D9D76;
  color: black;
  padding: 4px 16px;
}
.edit-profile-button:hover {
  background-color: #6a8c63;
}
/* レビューの星マーク */
.rating-field .fa-star {
  color: gold;
  font-size: 20px;
  margin-right: 1px;
}
/* ラベルと星を横並びにする */
.rating-field {
  display: flex; /* ラベルと星のコンテナを横並びにする */
  align-items: center; /* 垂直方向の中央揃えで高さを揃える */
  gap: 10px; /* ラベルと星の間に10pxの間隔を空ける */
  padding: 5px 0;
}
/* ラベルのスタイル調整 */
.rating-label {
  /* 修正: 確実に星の開始位置を揃えるため、ラベル内のテキストを右寄せにする */
  text-align: right;
  width: 50px;
  /* 0:縮むな という意味。親コンテナが狭くなっても省略、押しつぶされたりするのを防ぐ */
  flex-shrink: 0;
  font-weight: 600;
}
/* -------------------------------------- */
/* -------------------------------------- */
/* フローティングボタン(post作成) */
.floating-btn {
  position: fixed;        /* 画面に固定 */
  bottom: 30px;           /* 下から30px */
  right: 30px;             /* 右から30px */
  width: 60px;            /* 幅 */
  height: 60px;           /* 高さ */
  background-color: #7D9D76; /* ボタンの背景色 */
  border-radius: 50%;     /* 丸いボタンにする */
  display: flex;          /* 中央寄せ */
  justify-content: center;
  align-items: center;
  font-size: 24px;        /* 「＋」を大きめに */
  text-decoration: none;  /* リンクの下線を消す */
  box-shadow: 0 4px 6px rgba(0,0,0,0.2); /* 影をつける */
  transition: background-color 0.3s ease;
  z-index: 80; /* Z軸の高さヘッダーメニューは90 */
}
.floating-btn:hover {
  background-color: #6a8c63; /* ホバー時に濃く */
}
.floating-btn i {
  color: black
}
/* 固定なしの汎用ボタン「この商品でpostする」などに使用 */
.create-a-post {
  width: 60px;
  height: 60px;
  background-color: #7D9D76;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}
.create-a-post:hover {
  background-color: #6a8c63;
}
.create-a-post i {
  color: black;
}
/* -------------------------------------- */
/* pruducts/indexページ限定/新規商品追加 */
/* フローティングボタン2 (product作成) */
.products-floating-btn {
  position: fixed;        /* 画面に固定 */
  bottom: 110px;           /* 下から110px */
  right: 30px;             /* 右から30px */
  width: 60px;            /* 幅 */
  height: 60px;           /* 高さ */
  background-color: #7D9D76; /* ボタンの背景色 */
  border-radius: 50%;     /* 丸いボタンにする */
  display: flex;          /* 中央寄せ */
  justify-content: center;
  align-items: center;
  font-size: 24px;        /* 「＋」を大きめに */
  text-decoration: none;  /* リンクの下線を消す */
  box-shadow: 0 4px 6px rgba(0,0,0,0.2); /* 影をつける */
  transition: background-color 0.3s ease;
  z-index: 80; /* Z軸の高さヘッダーメニューは90 */
}
.products-floating-btn:hover {
  background-color: #6a8c63; /* ホバー時に濃く */
}
.products-floating-btn p {
  color: black
}
/* -------------------------------------- */
/* 管理者専用/admin/product_drafts.html.erbへ遷移 */
.admin-floating-btn {
  position: fixed;        /* 画面に固定 */
  width: 60px;            /* 幅 */
  height: 60px;           /* 高さ */
  background-color: #ef4444; /* ボタンの背景色 */
  border-radius: 50%;     /* 丸いボタンにする */
  display: flex;          /* 中央寄せ */
  justify-content: center;
  align-items: center;
  font-size: 24px;        /* 「＋」を大きめに */
  text-decoration: none;  /* リンクの下線を消す */
  box-shadow: 0 4px 6px rgba(0,0,0,0.2); /* 影をつける */
  transition: background-color 0.3s ease;
  z-index: 80; /* Z軸の高さヘッダーメニューは90 */
}
.admin-floating-btn:hover {
  background-color: brown;
}
.admin-floating-btn p {
  color: black
}
/* draftに上がってきた申請一覧を確認 */
.draft-index {
  bottom: 30px;           /* 下から30px */
  left: 30px;             /* 右から30px */
}
/* お問い合わせ一覧を確認 */
.contact-index {
  bottom: 110px;           /* 下から110px */
  left: 30px;
}
.approval-or-rejection {
  margin-top: 60px;
  margin-bottom: 20px;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 20px;
}
/* アイコンとテキストをインライン要素(テキストと同様に扱われる)として一体化
さらに垂直方向中央揃えや間隔も制御できる */
.icon-text-container {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
/* ↑を汎用的に使うため、new/editでは別に用意した */
.title-margin {
  margin-bottom: 40px;
}
.btn-margin {
  margin-top: 40px;
}
/* 管理者チャックの説明 */
.notice {
  text-align: center;
  margin: 10px 0px 50px 0px;
  color:rgb(60, 60, 60);
  font-size: 14px;
  -webkit-text-decoration:underline solid black;
          text-decoration:underline solid black;
}
.variety-selection {
  border: 1px solid rgb(60, 60, 60); /* 1pxの枠線 */
  background-color: #f0f0f0;
  padding: 0px 7px 0px 7px;
  border-radius: 5px;
}
.pages-wrapper h1 {
  font-size: 24px;
  margin-bottom: 30px;
  font-weight: 600;
}
.pages-wrapper h2 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 5px;
}
.pages-wrapper ul {
  /* tailwindの実装で消えた黒点を復活させたい */
  list-style: disc;
  /* 黒点をリストの外側に出すことで、段落の頭と重ならない
  なくても変わらないか？ */
  list-style-position: outside;
  /* 重要。黒点はリストの余白部分に表示される。つまりないと見えない */
  padding-left: 1.5rem;
}
.pages-wrapper ol {
  list-style: decimal;
  list-style-position: outside;
  padding-left: 1.5rem;
}
.email-wrapper {
  margin-top: 5px;
  margin-bottom: 5px;
}
.comment-container {
  display: flex;
  gap: 8px;
}
.comment-item-r {
  width: 35px;
  /* 縮小しない */
  flex-shrink: 0;
  padding-top: 4px;
}
.comment-item-l {

  display: flex;
  flex-direction: column;
  /* 最小の制約を無視し、対抗要素のアイコンの形状を保護する狙い */
  min-width: 0;
}
/* ユーザー名と本文にメリハリ */
.comment-user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}
.comment-body {
  font-size: 1rem;
  color: #555;
  word-break: break-word;
}
/* ------------------ */
/* 送信フォーム */
.hidden {
  display: none;
}
.comment-form-container {
  display: flex;
  flex-direction: column;
  padding: 0px 10px;
}
.comment-text textarea {
  width: 100%;
  background-color: #d9d9d9;
  padding: 5px;
}
.comment-submit {
  display: inline-block;
  text-align: right;
}
*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}
::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}
/*
 ! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com
 */
/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/
*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}
::before,
::after {
  --tw-content: '';
}
/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/
html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}
/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/
body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}
/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/
hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}
/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/
abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}
/*
Remove the default font size and weight for headings.
*/
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}
/*
Reset links to optimize for opt-in styling instead of opt-out.
*/
a {
  color: inherit;
  text-decoration: inherit;
}
/*
Add the correct font weight in Edge and Safari.
*/
b,
strong {
  font-weight: bolder;
}
/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}
/*
Add the correct font size in all browsers.
*/
small {
  font-size: 80%;
}
/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/
table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}
/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}
/*
Remove the inheritance of text transform in Edge and Firefox.
*/
button,
select {
  text-transform: none;
}
/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/
button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}
/*
Use the modern Firefox focus style for all focusable elements.
*/
:-moz-focusring {
  outline: auto;
}
/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/
:-moz-ui-invalid {
  box-shadow: none;
}
/*
Add the correct vertical alignment in Chrome and Firefox.
*/
progress {
  vertical-align: baseline;
}
/*
Correct the cursor style of increment and decrement buttons in Safari.
*/
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}
/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/
[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}
/*
Remove the inner padding in Chrome and Safari on macOS.
*/
::-webkit-search-decoration {
  -webkit-appearance: none;
}
/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}
/*
Add the correct display in Chrome and Safari.
*/
summary {
  display: list-item;
}
/*
Removes the default spacing and border for appropriate elements.
*/
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}
fieldset {
  margin: 0;
  padding: 0;
}
legend {
  padding: 0;
}
ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}
/*
Prevent resizing textareas horizontally by default.
*/
textarea {
  resize: vertical;
}
/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/
input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}
input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}
/*
Set the default cursor for buttons.
*/
button,
[role="button"] {
  cursor: pointer;
}
/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}
/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}
/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/
img,
video {
  max-width: 100%;
  height: auto;
}
/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.static {
  position: static;
}
.relative {
  position: relative;
}
.left-1\/2 {
  left: 50%;
}
.right-1\/2 {
  right: 50%;
}
.-mx-\[50vw\] {
  margin-left: -50vw;
  margin-right: -50vw;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.table {
  display: table;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.w-\[90\%\] {
  width: 90%;
}
.w-full {
  width: 100%;
}
.w-screen {
  width: 100vw;
}
.max-w-\[400px\] {
  max-width: 400px;
}
.max-w-md {
  max-width: 28rem;
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-rows-2 {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.gap-2 {
  gap: 0.5rem;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-l-lg {
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}
.rounded-r-lg {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}
.border {
  border-width: 1px;
}
.border-gray-300 {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}
.bg-\[\#7D9D76\] {
  --tw-bg-opacity: 1;
  background-color: rgb(125 157 118 / var(--tw-bg-opacity, 1));
}
.bg-cover {
  background-size: cover;
}
.bg-center {
  background-position: center;
}
.bg-no-repeat {
  background-repeat: no-repeat;
}
.p-1 {
  padding: 0.25rem;
}
.p-2 {
  padding: 0.5rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-\[80px\] {
  padding-left: 80px;
  padding-right: 80px;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.pb-5 {
  padding-bottom: 1.25rem;
}
.pt-12 {
  padding-top: 3rem;
}
.text-center {
  text-align: center;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.font-bold {
  font-weight: 700;
}
.font-semibold {
  font-weight: 600;
}
.italic {
  font-style: italic;
}
.text-blue-600 {
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}
.text-red-500 {
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / var(--tw-text-opacity, 1));
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.drop-shadow-lg {
  --tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
/* ヘッダーが表示領域を占領するので全ページの上部を開ける */
body {
  padding-top: 60px;
}
/* コンテンツのカード化 */
.my-card {
  width: 100%;                /* 要素の幅を親要素の100%にする */
  max-width: 800px;           /* 要素の幅の最大値を800ピクセルに制限 */
  margin-left: auto;          /* 左右自動で中央寄せ */
  margin-right: auto;
  background-color: white;    /* 背景色を白にする */
}
/* 斜体小タイトル/ページ左上の見出しに使用 */
.italic-title {
  font-style: italic;
  font-size: 20px;
  font-weight: 600;
}
.title-l {
  font-size: 24px;
  font-weight: 600;
}
/* モバイル（～767pxまで） */
@media (max-width: 767px) {
  .italic-title {
    font-style: italic;
    font-size: 14px;
    font-weight: 600;
  }

  .title-l {
    font-size: 20px;
    font-weight: 600;
  }

  /* my-cardの内側に仕込んで汎用的に使う */
  .padding-wrapper {
    padding-left: 5px;
    padding-right: 5px
  }
}
/* 投稿タイトル共通 */
.bold-title {
  font-weight: 600; /* 通常よりは太く、boldよりは細い */
}
/* -------------------------------------- */
/* 共通: 入力フィールドを親要素の幅いっぱいに広げる */
.input-group input[type="text"],
.input-group input[type="number"],
.input-group textarea {
  width: 100%; /* 親要素の幅いっぱい（余白はpaddingやmarginで確保） */
  border: 1px solid #ccc; /* 1pxの枠線 */
  border-radius: 4px;
  box-sizing: border-box; /* paddingとborderを幅に含める */
}
/* 入力項目、フィールド横並びのスタイル */
.input-group:not(.vertical-group) {
  /* vertical-groupがない .input-group のみに適用 */
  display: flex;
  align-items: center; /* 垂直方向の中央揃え */
  margin-bottom: 15px;
}
.input-group:not(.vertical-group) label {
  /* ラベルは縮まないように固定 */
  flex-shrink: 0;
  width: 100px; /* ラベルの幅を固定し、右の入力欄を揃える */
  font-size: 15px;
  font-weight: 600;
}
.input-group:not(.vertical-group) input[type="text"],
.input-group:not(.vertical-group) input[type="number"] {
  /* 残りの幅をすべて占め、横いっぱいに広がる */
  flex-grow: 1; 
  /* ラベルとの間隔を確保 */
  margin-left: 15px;
}
/* 入力項目、フィールド縦並びのスタイル */
.vertical-group {
  /* デフォルトの縦並び（display: block;）を維持 */
  display: block; 
  margin-bottom: 20px;
}
.vertical-group label {
  /* 縦並びなので、幅いっぱいに広がる必要なし */
  display: block; 
  font-weight: 600;
}
/* --------------楕円形の送信ボタン------------- */
/* 楕円の送信ボタンや、下部大ボタン。
<%= f.submit "Log in" %>が、こちらも<input>要素を生成する */
.actions input[type="submit"] {
  /* 1. ボタンの背景色 */
  background-color: #7D9D76;            
  /* 枠線は不要 */
  border: none;             
  /* 2. 楕円形の形状 */
  /* paddingを大きく取ることで、縦長で楕円に近い形を作る */
  padding: 12px 30px; 
  /* 四隅の半径を28.5pxにする */
  border-radius: 28.5px;    
  /* その他、基本的なスタイル */
  cursor: pointer;          
  font-size: 16px;
  /* フレックスbox内の見出しボタンを揃えたい */
  margin-top: auto;
  margin-bottom: auto;
  width: 100%;
}
/* ホバー時の色を少し濃くする */
.actions input:hover {
  background-color: #6a8c63; /* 少し濃い緑 */
}
/* goggeアカウントでログインボタン */
.oauth-buttons {
  margin-top: 16px;
}
.oauth-buttons form button:hover {
  background-color: #6a8c63;
}
.oauth-buttons form button {
  display: flex;
  justify-content: center;
  align-items: center;

  border: inset 3px;
  border-color: #7D9D76;
  padding: 9px 30px;
  border-radius: 28.5px;
  cursor: pointer;          
  font-size: 16px;
  /* フレックスbox内の見出しボタンを揃えたい */
  margin-top: auto;
  margin-bottom: auto;
  width: 100%;
}
/* アカウント削除ボタン */
.delete-account {
  margin-top: 16px;
}
.delete-account button:hover {
  background-color: #969696;
}
.delete-account button {
  display: flex;
  justify-content: center;
  align-items: center;

  border: inset 3px;
  border-color: #969696;
  padding: 9px 30px;
  border-radius: 28.5px;
  cursor: pointer;          
  font-size: 16px;
  /* フレックスbox内の見出しボタンを揃えたい */
  margin-top: auto;
  margin-bottom: auto;
  width: 100%;
}
/* -------------------------------------- */
/* 赤いアスタリスクで入力必須を表現 */
.required-star {
  color: #e3342f; 
  /* 任意: フォントを太くしたり、サイズを調整したりできます */
  font-weight: bold;
  margin-left: 2px; /* ラベルとの間に少し隙間を空ける */
}
.hover\:bg-\[\#6a8c63\]:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(106 140 99 / var(--tw-bg-opacity, 1));
}
.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.focus\:ring-1:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
@media (min-width: 640px) {
  .sm\:max-w-\[700px\] {
    max-width: 700px;
  }
  .sm\:pt-16 {
    padding-top: 4rem;
  }
  .sm\:text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }
}
