/*
Theme Name: MyTheme
Description: クラリエのカスタムテーマ
Version: 1.0
*/

body, html {
  font-family: 'Meiryo', 'メイリオ', 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka', 'MS PGothic', sans-serif;
}

/* 主要な要素にも明示的に指定 */
input, textarea, button, select,
h1, h2, h3, h4, h5, h6,
p, span, div, a, li, ul, ol, label, th, td {
  font-family: 'Meiryo', 'メイリオ', 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka', 'MS PGothic', sans-serif !important;
}

/* ヘッダー全体 */
.site-header {
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 0;
    height: 80px;
    background: #fff;
    border-radius: 0;
    margin: 0;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 2px solid #EADCC2;
}
.header-mypage-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 16px; /* 検索ボタンとの間隔 */
}
.header-search-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    margin-bottom: 0; /* 下余白の初期値。必要に応じて調整 */
}
.header-logo-center {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-logo-center img {
    height: 40px;
    display: block;
}
.header-cart-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: none;
    margin-right: 16px;
    margin-bottom: 0; /* 下余白の初期値。必要に応じて調整 */
}
.header-cart-circle img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    opacity: 0.7;
}
.header-menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    margin-left: 12px;
    cursor: pointer;
}
.header-menu-icon span {
    display: block;
    width: 32px;
    height: 5px;
    background: #222;
    border-radius: 3px;
}
@media (max-width: 900px) {
    .site-header {
        padding: 0;
        height: 64px;
        gap: 10px;
    }
    .header-mypage-icon, .header-search-icon, .header-cart-circle {
        width: 40px;
        height: 40px;
        margin-bottom: 0;
    }
    .header-mypage-icon {
        margin-right: 12px;
    }
    .header-cart-circle {
        margin-right: 12px;
    }
    .header-logo-center img {
        height: 28px;
    }
    .header-cart-circle img {
        width: 24px;
        height: 24px;
    }
    .header-menu-icon {
        margin-left: 6px;
    }
    .header-menu-icon span {
        width: 20px;
        height: 3px;
    }
}
@media (max-width: 600px) {
    .site-header {
        padding: 0;
        height: 56px;
        gap: 0;
    }
    .header-mypage-icon, .header-search-icon, .header-cart-circle {
        width: 32px;
        height: 32px;
        margin-bottom: 0;
    }
    .header-search-icon, .header-cart-circle {
        margin-bottom: 4px;
    }
    .header-mypage-icon {
        margin-right: 8px;
    }
    .header-cart-circle {
        margin-right: 10px;
    }
    .header-logo-center img {
        height: 24px;
    }
    .header-menu-icon {
        margin-left: 0;
        margin-right: 4px;
        gap: 4px;
        align-items: center;
        height: 32px;
        display: flex;
        justify-content: center;
    }
    .header-menu-icon span {
        width: 20px;
        height: 3px;
        margin: 0;
        background: #BDA58B;
        border-radius: 2px;
        display: block;
    }
}

.search-bar-popup {
  display: none;
  position: fixed;
  left: 0;
  top: 80px;
  width: 100vw;
  z-index: 2000;
  background: transparent;
  padding: 0;
  margin: 0;
  right: 0;
  border: none;
  box-shadow: none;
}
.search-bar-popup-inner {
  max-width: 600px;
  margin: 0 auto 0 auto;
  display: flex;
  align-items: center;
  width: 90%;
  background: #fff;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  border: none;
  padding: 0 20px;
  height: 56px;
}
@media (max-width: 600px) {
.search-bar-popup-inner {
  width: 96vw;
  max-width: 96vw;
  min-width: 0;
  margin: 0 auto 0 auto;
  padding: 0 8px;
  border-radius: 0 0 24px 24px;
  height: 44px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  border: none;
}
}


/* ロゴ */
.logo img {
    height: 40px;
}

/* 検索バー */
.search-bar {
    flex: 1;
    display: flex;
    justify-content: center;
}

.search-bar input {
    width: 100%;
    max-width: 300px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 20px;
    outline: none;
}

.search-bar button {
    background: #BDA58B;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 20px;
}

/* カートアイコン */
.cart-icon {
    font-size: 24px;
}

/* ハンバーガーメニュー */
.hamburger-menu {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    width: 30px;
    height: 4px;
    background: black;
    border-radius: 2px;
}



/* メニュー開いた状態 */

/* ヘッダー全体 */
.site-header {
    background: #fff;
    padding: 10px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ヘッダー内のコンテナ（ロゴ・検索・カートを横並びにする） */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ロゴ */
.logo img {
    height: 40px;
    max-width: 120px;
}

/* 検索バー（中央配置） */
.search-bar {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.search-bar form {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 20px;
    overflow: hidden;
}

.search-bar input {
    width: 100%;
    max-width: 300px;
    padding: 8px;
    border: none;
    outline: none;
}

.search-bar button {
    background: #BDA58B;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 0 20px 20px 0;
}

/* 右側のエリア（カート + ハンバーガー） */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* カートアイコン */
.cart-icon img {
    height: 24px;
    width: auto;
}

/* ハンバーガーメニュー */
.hamburger-menu {
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    width: 30px;
    height: 4px;
    background: black;
    border-radius: 2px;
    transition: 0.3s;
}

/* モバイルメニュー */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 9999;
    overflow-y: auto;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
    transform: translateY(-100%);
    opacity: 0;
    margin: 0 auto;
    right: 0;
    box-sizing: border-box;
    background: #fff;
}
.mobile-menu.open {
    display: block;
    transform: translateY(0);
    opacity: 1;
}
@media (min-width: 900px) {
    .mobile-menu.open {
        display: flex;
    }
}


/* ーーーーーーーーー*/


/* 投稿ボタンの装飾 */

.floating-button {
    position: fixed;
    bottom: 80px;  /* 画面下からの距離 */
    right: 20px;   /* 画面右からの距離 */
    background: #BDA58B;  /* ボタンの色（オレンジ） */
    color: white;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: 0.3s;
}

.floating-button:hover {
    background: #EADCC2;  /* ホバー時の色 */
}

@media (max-width: 768px) { /* モバイル用 */
    .floating-button {
        bottom: 60px;
        right: 15px;
        padding: 12px 18px;
        font-size: 14px;
    }
}
/* ーーーーーーーーー*/


/* レシピ投稿フォームの装飾 */
.recipe-container {
    max-width: 600px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.recipe-form label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
}

.recipe-form input, .recipe-form textarea {
    width: 100%;
    padding: 8px;
    margin: 0px 0;
    border-radius: 0;
}

.recipe-form button {
    background: white;
    color: #BDA58B;
    padding: 0px 0px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.recipe-form button:hover {
    background: #fff;
}
/* ーーーーーーーーー*/

/* 画像選択エリア */
.image-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f5ebe1;
  padding: 40px 20px;
  border-radius: 12px;
  width: 100%;
  max-width: 100%; /* はみ出し防止 */
  box-sizing: border-box; /* padding を含めた幅で計算 */
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}

.image-upload-area img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border: none !important;
  outline: none !important;
}

.image-label {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: center;
    background: #f3f3f3;
    border: 2px dashed #ccc;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
}

#image-preview {
  width: 100%;
  aspect-ratio: 4 / 3; /* ←ここを1:1に変更 */
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  display: none;
}

#image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ← ここがトリミングのキモ */
  display: block;
}

.step-image-input {
    display: none;
}

/* ▼ 作り方の画像：縦横比を保ちつつトリミング表示 */
.step-image-preview {
    width: 100%;
    aspect-ratio: 4 / 3; /* ←比率固定（IE対応しないがモダンブラウザはOK） */
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    display: block;
    margin-top: 10px;
    background-color: #f0f0f0;
    overflow: hidden;
  }

.upload-text {
    display: inline-block;
    color: #666;
    font-size: 0.9rem;
    margin-top: 8px;
}

/* 画像プレビュー */
.image-preview img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
  .step-image-preview {
    height: 160px; /* スマホでは少し高さを減らす */
  }
}

/* Mypage、ログイン、登録のフォーム */
.register-container, .login-container, .mypage-container {
    max-width: 400px;
    margin: 50px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.register-form, .login-form {
    display: flex;
    flex-direction: column;
}

.register-form label, .login-form label {
    font-weight: bold;
    text-align: left;
}

.register-form input, .login-form input {
    width: calc(100% - 6%);
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background: #BDA58B;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background: #F5EBE1;
}

.logout-button {
    display: block;
    text-align: center;
    margin-top: 20px;
    background: #333;
    color: white;
    padding: 10px;
    border-radius: 5px;
}
/* ーーーーーーーーー*/


/* ▼ 作り方ステップUI */
#steps-wrapper {
  margin-top: 0px;
}

.step-item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.step-label {
  font-weight: bold;
  font-size: 1.2em;
  text-align: center;
  flex: 1;
}

.step-content {
  display: flex;
  gap: 12px;
  margin-top: 0px;
}

.step-content textarea {
  flex: 1;
  background: #fff;
  border: 1px solid #BDA58B;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  color: #333333;
}

.step-content textarea::placeholder {
  color: #BDA58B;
  opacity: 0.8;
}

.image-drop-area {
  width: 100%;
  height: 200px;
  border: 2px dashed #ccc;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.image-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.image-preview img[src*="upload-photo-icon.png"] {
  width: 40px;
  height: auto;
  position: static;
  object-fit: contain;
}

.step-menu-toggle {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #fff;
}

.step-menu {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  display: none;
  z-index: 10;
}

.step-menu button {
  display: block;
  padding: 10px;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

.step-menu button:hover {
  background: #f4f4f4;
}

.step-label {
  font-weight: bold;
  font-size: 1.1em;
}
.remove-step {
  background-color: #BDA58B;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
}
/* ① ハンドル（3本線） */
.handle {
  background-color: transparent;
  color: #BDA58B;
  font-size: 20px;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: grab;
  display: flex;
  align-items: center;
}

/* ハンドルの中身がアイコン（例：≡）なら以下も */
.handle::before {
  font-size: 18px;
  line-height: 1;
  color: #BDA58B;
}

/* ② 削除ボタン */
.remove-material {
  background-color: #BDA58B;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  width: 100%;
  transition: background-color 0.2s ease-in-out;
}

.remove-material:hover {
  background-color: #BDA58B;
}


.step-separator {
    color: #BDA58B;
    border: none;
    height: 3px;
    background: #BDA58B;
    margin: 20px 0;
    opacity: 0.3;
}
textarea[name="steps_text[]"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  resize: vertical;
  font-size: 16px;
}

/* 画像アップロードエリア */
.image-drop-area {
  width: 100%;
  background-color: #F5EBE1;
  height: 100px;
  border: none;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-drop-area input[type="file"] {
  background: transparent;
}

@media (max-width: 768px) {
  .step-label {
    font-size: 1em;
  }

  .step-item {
    padding: 10px;
  }

  .remove-step {
    font-size: 14px;
    padding: 5px 8px;
  }

  .handle {
    font-size: 18px;
  }

  textarea[name="steps_text[]"] {
    font-size: 14px;
  }
}

.image-label img,
.step-image-preview {
  max-width: 100%;
  height: auto;
  display: block;
}

.step-textarea {
  flex: 1;
  min-width: 200px;
}

.step-image-container {
  width: 120px;
  aspect-ratio: 4 / 3;
  border: 1px dashed #ccc;
  background-color: #f9f9f9;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.step-image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media screen and (max-width: 480px) {
  .step-item {
    flex-direction: column;
    align-items: stretch;
  }

  .step-image-container {
    width: 100%;
    aspect-ratio: 4 / 3;
  }
}

/* ▼ 材料リスト全体の並び用：ulのデフォルトスタイルを消す */
.sortable-list {
  list-style: none;
  padding: 0;
}

/* ▼ 材料ブロック全体のラッパー */
#materials-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ▼ 個別の材料入力ブロック */
.material-item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #fafafa;
  align-items: center;
  margin-bottom: 10px;
}

/* ▼ 並び替えハンドル */
.material-item .handle {
  cursor: grab;
  font-size: 20px;
  padding: 0 8px;
  color: #999;
  background-color: #f0f0f0;
  padding: 4px 8px;
  border-radius: 4px;
  user-select: none;
}

/* ▼ 材料名・URLの入力欄 */
.material-item input[type="text"],
.material-item input[type="url"] {
  flex: 1 1 180px;
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* ▼ 削除ボタン */
.material-item .remove-material {
  background-color: #BDA58B;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

/* ▼ カスタムセレクトのラッパー */
.custom-select-wrapper {
  position: relative;
  user-select: none;
  flex: 1 1 180px;
  max-width: 100%;
}

/* ▼ 表示中の値（クリックして開く部分） */
.custom-select-display {
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  position: relative;
}

/* ▼ ▼ アイコン */
.custom-select-display::after {
  content: "▼";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

/* ▼ ドロップダウン全体 */
.custom-select-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ▼ ドロップダウンの項目 */
.custom-option {
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.custom-option:hover {
  background-color: #f0f0f0;
}

/* ▼ モバイル対応（〜380px） */
@media (max-width: 380px) {
  .material-item {
    flex-direction: column;
    align-items: stretch;
  }

  .custom-select-dropdown {
    position: fixed !important;
    top: 20% !important;
    left: 5% !important;
    width: 90% !important;
    z-index: 9999 !important;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ccc;
  }

  .custom-select-display::after {
    right: 16px;
  }

  body, html {
    transform: none !important; /* transformの影響排除 */
  }
}

/*セレクトボタンなどの装飾*/

.custom-select-wrapper {
  position: relative;
  user-select: none;
  margin-bottom: 10px;
}

.custom-select-display {
  background: white;
  border: 2px solid #ff6600;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  position: relative;
}

.custom-select-display::after {
  content: "▼";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.custom-select-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  z-index: 1000;
  border-radius: 0 0 8px 8px;
  max-height: 200px;
  overflow-y: auto;
}

.custom-option {
  padding: 10px 16px;
  cursor: pointer;
}

.custom-option:hover {
  background-color: #f0f0f0;
}

.material-item {
  margin-bottom: 20px;
}

.handle {
  cursor: move;
  margin-bottom: 6px;
}

.material-name,
.material-url {
  display: block;
  width: 100%;
  margin: 6px 0;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.remove-material {
  padding: 6px 10px;
  font-size: 13px;
  border: none;
  border-radius: 4px;
  background-color: #aaa;
  color: white;
  cursor: pointer;
}


.submit-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
}

/* --- 下書きに保存するボタン --- */
.btn-draft {
  background: #fff;
  color: #BDA58B;
  border: 3px solid #BDA58B;
  padding: 12px 30px;
  border-radius: 9999px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  display: inline-block;
}
.btn-draft:hover {
  background: #F5EBE1;
  color: #BDA58B;
  border-color: #BDA58B;
}

/* --- 投稿するボタン --- */
.btn-publish {
  background: #BDA58B;
  color: #fff;
  padding: 12px 30px;
  border-radius: 9999px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
}
.btn-publish:hover {
  background: #a48c6b;
}

/* 桜の花びら用、header.phpに追加されている*/
.particle {
  width: 24px;
  height: 24px;
  background-image: url('YOUR_IMAGE_PATH/sakura.png'); /* 花びら画像に変更 */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 0; /* 丸みを解除 */
}

/*マイページの編集と下書きボタン*/
.button-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.button-group .btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  background-color: #ff6600;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.button-group .btn:hover {
  background-color: #BDA58B;
}

.button-group .btn-view {
  background-color: #444;
}

.button-group .btn-view:hover {
  background-color: #222;
}

/* ▼ 個別の道具入力ブロック（材料と同じデザイン） */
.tool-item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #fafafa;
  align-items: center;
  margin-bottom: 10px;
}

/* ▼ 並び替えハンドル */
.tool-item .handle {
  cursor: grab;
  font-size: 20px;
  padding: 4px 8px;
  color: #999;
  background-color: #f0f0f0;
  border-radius: 4px;
  user-select: none;
}

/* ▼ 道具名・URLの入力欄 */
.tool-item input[type="text"],
.tool-item input[type="url"] {
  flex: 1 1 180px;
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* ▼ 削除ボタン */
.tool-item .remove-tool {
  background-color: #BDA58B;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

/* ▼ モバイル対応（道具も） */
@media (max-width: 380px) {
  .tool-item {
    flex-direction: column;
    align-items: stretch;
  }
}

/*ここからハンドメイドジャンルの装飾*/
/* ▼ 全体ラッパー枠 */
.genre-selector {
  border: 1px solid #BDA58B;
  border-radius: 5px;
  padding: 4px;
}

/* ▼ 選択済みジャンル（上段） */
.genre-selected-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start; /* ← space-between を削除 */
  position: relative;
  padding-right: 80px; /* ボタンのスペース確保 */
  min-height: 36px; /* ← ボタンが下がらないよう高さ確保 */
}

.genre-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 auto;
}

.genre-toggle {
  position: absolute;
  top: 0;
  right: 0;
  background: transparent;
  border: none;
  font-size: 14px;
  color: #856e5a;
  cursor: pointer;
  line-height: 36px; /* 上下中央に揃える */
}
/* ▼ ボタンスタイル */
.genre-tag {
  font-weight: bold;
  border: 1px solid #d0bfae;
  background: #ffffff;
  color: #BDA58B;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
}

/* ▼ 選択されたジャンル（上段用） */
.genre-tag.selected {
  background-color: #F5EBE1;
  color: #856e5a;
  font-weight: bold;
  border-color: #BDA58B;
}

/* ▼ 開閉エリア */
.genre-dropdown {
  display: none;
  opacity: 0;
  transform: scale(0.98);
  transition: all 0.2s ease;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
}

.genre-dropdown.open {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

/*検索時の表示欄の装飾*/
.autocomplete-wrapper {
  position: relative;
}
.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ccc;
  width: 100%;
  z-index: 10;
  max-height: 180px;
  overflow-y: auto;
}
.autocomplete-item {
  padding: 6px 10px;
  cursor: pointer;
}
.autocomplete-item:hover {
  background-color: #f0f0f0;
}

.material-row {
  position: relative; /* 🔑 これがないと dropdown が浮かない */
}

.autocomplete-dropdown {
  position: absolute;
  z-index: 999;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
}

.autocomplete-option {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}
.autocomplete-option:hover {
  background-color: #f5f5f5;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.section-label span {
  font-size: 0.9em;
  color: #888;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.section-header h2 {
  margin: 0;
}

.auto-hint {
  font-size: 13px;
  color: #999;
}

.auto-added-note {
  display: inline-block;
  font-size: 13px;
  color: #999;
  margin-left: 12px;
  vertical-align: middle;
}

.option-toggle {
  position: relative;
  display: inline-block;
  margin-left: auto;
}

.option-toggle .dots {
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
}

.option-toggle .remove-material {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: #f7dcdc;
  color: #b00;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 14px;
  z-index: 10;
}

.option-toggle .remove-material.hidden {
  display: none;
}

/* 材料・道具の入力フィールドのラッパー */
.material-row .input-wrapper,
.tool-row .input-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
  border: 1px solid #BDA58B;
  border-radius: 8px;
  overflow: hidden;
}

/* 材料・道具の入力フィールド */
.material-name-input,
.material-url-input,
.tool-name-input,
.tool-url-input {
  width: 100%;
  padding: 12px;
  border: none;
  background-color: #fff;
  font-size: 14px;
  color: #856E5A;
  margin: 0;
}

/* URL入力フィールドの特別なスタイル */
.material-url-input,
.tool-url-input {
  border-top: 1px solid #BDA58B;
  border-radius: 0;
  color: #BDA58B;
  font-size: 13px;
}

/* 材料名・道具名入力フィールドの特別なスタイル */
.material-name-input,
.tool-name-input {
  border-radius: 0;
}

/* プレースホルダーのスタイル */
.material-name-input::placeholder,
.tool-name-input::placeholder,
.material-url-input::placeholder,
.tool-url-input::placeholder {
  color: #BDA58B;
  opacity: 0.8;
}

/* メニューボタン（...） */
.material-row .step-menu-toggle,
.tool-row .step-menu-toggle {
  background: transparent;
  color: #BDA58B;
  border: none;
  border-radius: 6px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  font-size: 24px;
}

/* メニュードロップダウン */
.material-row .step-menu,
.tool-row .step-menu {
  position: absolute;
  top: 100%;
  right: 16px;
  background: white;
  border: 1px solid #BDA58B;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 1000;
  min-width: 120px;
  margin-top: 4px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .material-row,
  .tool-row {
    flex-wrap: wrap;
  }

  .input-wrapper {
    width: 100%;
  }
}

/* セクションタイトル */
#materials-section h3,
#tools-section h3 {
  color: #856E5A;
  font-size: 18px;
  margin-bottom: 16px;
  font-weight: bold;
}

/* 自動追加の注釈 */
.auto-added-note {
  color: #856E5A;
  font-size: 14px;
  margin-left: 8px;
}

/* ドラッグ中のスタイル */
.sortable-placeholder {
  border: 2px dashed #BDA58B;
  background-color: #F5EBE1;
  border-radius: 8px;
  margin-bottom: 12px;
  height: 60px;
}

.user-item-card {
  border: 1px solid #ddd;
  background: #fff8f4;
  padding: 12px;
  margin: 8px 0;
  border-radius: 8px;
}

.card-title {
  font-weight: bold;
  color: #856e5a;
}

.card-url a {
  color: #8b7f6d;
  font-size: 13px;
}

/* ▼ 作り方ステップ全体 */
.step-item {
  border: none;
  border-radius: 8px;
  padding: 0px;
}

/* ヘッダー（≡ 手順n ...） */
.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0px;
}

/* 手順タイトル */
.step-label {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  flex: 1;
  color: #BDA58B;
}

/* …ボタン */
.step-actions {
  position: relative;
}

.step-menu-toggle {
  background: #fff;
  color: white;
  font-size: 24px;
  padding: 4px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

/* ドロップダウンメニュー */
.step-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: none;
  min-width: 140px;
  z-index: 20;
}

.step-menu button {
  background: none;
  border: none;
  padding: 10px 12px;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.step-menu button:hover {
  background-color: #f7f7f7;
}

/* 中身（テキスト + 画像）の横並び */
.step-content {
  display: flex;
  gap: 12px;
}

/* テキスト欄 */
.step-content textarea {
  flex: 1;
  background: #fff;
  border: 1px solid #BDA58B;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  color: #333333;
}

.step-content textarea::placeholder {
  color: #BDA58B;
  opacity: 0.8;
}

/* 画像アップロード領域 */
.image-drop-area {
  width: 120px;
  min-height: 90px;
  background: #F5EBE1;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.image-drop-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* アップロードアイコンの場合は小さめに表示 */
.image-drop-area img[src*="upload-photo-icon.png"] {
  width: 40px;
  height: auto;
  position: static;
  object-fit: contain;
}

.step-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  padding: 8px 0;
  z-index: 1000;
  width: 160px;
}

.step-menu button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.step-menu button:hover {
  background-color: #f5f5f5;
}

/* 材料・道具検索セクション */

#material-tool-search-section h2 {
  color: #BDA58B;
  font-size: 18px;
  margin-bottom: 8px;
}

#material-tool-search-input {
  width: 90%;
  padding: 12px;
  border: 1px solid #BDA58B;
  border-radius: 8px;
  font-size: 14px;
  color: #333333;
}

#material-tool-search-input::placeholder {
  color: #BDA58B;
  opacity: 0.8;
}

/* 材料セクション */
#materials-section {
  margin-top: 0px;
}

/* 道具セクション */
#tools-section {
  margin-top: 0px;
}

#materials-section h3, #tools-section h3 {
  color: #BDA58B;
  font-size: 18px;
  margin-bottom: 16px;
  font-weight: bold;
}

/* 材料・道具の行アイテム */
.material-row.recipe-sortable-item,
.tool-row.recipe-sortable-item {
  background-color: white;
  border-radius: 12px;
  padding: 0px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
}

/* ドラッグ中のスタイル */
.recipe-sortable-item.ui-sortable-helper {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 0.9;
}

/* ドラッグ時のプレースホルダー */
.recipe-sortable-item.ui-sortable-placeholder {
  background-color: #F7F1EA;
  border: 2px dashed #BDA58B;
  visibility: visible !important;
}

/* レシピタイトル入力フィールド */
input[name="recipe_title"] {
  width: 100%;
  padding: 8px;
  font-size: 16px;
  border: 1px solid #BDA58B;
  border-radius: 5px;
  background-color: #fff;
  margin-bottom: 8px;
}

input[name="recipe_title"]::placeholder {
  color: #BDA58B;
  opacity: 0.8;
}

input[name="recipe_title"]:focus {
  outline: none;
  border-color: #856E5A;
  box-shadow: 0 0 0 2px rgba(189, 165, 139, 0.1);
}

#steps-wrapper h2 {
  color: #BDA58B;
  font-size: 18px;
  margin-bottom: 8px;
}

#add-step {
  display: block;
  margin: 24px auto 0;
  padding: 12px 24px;
  background: transparent;
  border: none;
  color: #BDA58B;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}

#add-step:hover {
  opacity: 0.8;
}

textarea[name="recipe_description"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #BDA58B;
  border-radius: 8px;
  font-size: 14px;
  color: #333333;
  margin-bottom: 16px;
  font-weight: normal;
}

textarea[name="recipe_description"]::placeholder {
  color: #BDA58B;
  opacity: 0.8;
  font-weight: normal;
}

/* 共通の入力フィールドフォーカススタイル */
textarea:focus,
input[type="text"]:focus,
input[type="url"]:focus {
  outline: none;
  border: 1px solid #BDA58B;
  box-shadow: none;
}

/* 材料・道具の検索入力 */
#material-tool-search-input:focus {
  outline: none;
  border: 1px solid #BDA58B;
  box-shadow: none;
}

/* 説明文テキストエリア */
textarea[name="recipe_description"]:focus {
  outline: none;
  border: 1px solid #BDA58B;
  box-shadow: none;
}

/* 作り方のテキストエリア */
.step-content textarea:focus {
  outline: none;
  border: 1px solid #BDA58B;
  box-shadow: none;
}

/* 作り方の画像プレビュー */
.image-preview {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* アップロードアイコンの場合のスタイル上書き */
.image-preview img[src*="upload-photo-icon.png"] {
  width: 40px;
  height: auto;
  position: static;
  object-fit: contain;
}

/* マイページのメインコンテナ */
.mypage-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* プロフィールセクション */
.profile-section {
  text-align: center;
  margin-bottom: 40px;
}

.profile-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-section h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #333;
}

.profile-description {
  max-width: 600px;
  margin: 0 auto 24px;
  color: #666;
  line-height: 1.6;
}

/* プロフィール編集ボタン */
.edit-profile-button {
  display: inline-block;
  padding: 8px 24px;
  background-color: #fff;
  border: 1px solid #BDA58B;
  color: #BDA58B;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.edit-profile-button:hover {
  background-color: #BDA58B;
  color: #fff;
}

/* タブナビゲーション */
.profile-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.profile-tab {
  padding: 8px 32px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #666;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-tab.active {
  color: #BDA58B;
  border-bottom-color: #BDA58B;
}

/* 作品グリッド */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.work-item {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f5f5f5;
  position: relative;
  text-decoration: none;
  display: block;
}

.work-item.draft-item {
  position: relative;
}

.draft-label {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: rgba(239, 108, 0, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* セクションヘッダー */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-header h3 {
  font-size: 20px;
  color: #333;
}

.section-header a {
  color: #BDA58B;
  text-decoration: none;
  font-size: 14px;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .works-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 0 auto 20px;
  }
  
  .work-item {
    width: 100px;
    height: 100px;
    flex: 0 0 100px;
  }
  
  .work-item:nth-child(n+7) {
    display: none;
  }

  .mypage-container {
    margin: 20px auto;
    padding: 20px 8px;
  }

  .section-header {
    padding: 0 8px;
  }
}

@media (max-width: 480px) {
  .works-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
  }
}

/* ログアウトボタン */
.logout-button {
  display: block;
  width: fit-content;
  margin: 40px auto 0;
  padding: 12px 32px;
  background-color: #f5f5f5;
  color: #666;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.logout-button:hover {
  background-color: #e0e0e0;
}

/* 通知メッセージ */
.notice {
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 24px;
  text-align: center;
}

.notice.success {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.notice.draft {
  background-color: #fff3e0;
  color: #ef6c00;
}

/* レシピ詳細ページのスタイル */
.recipe-single-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-sizing: border-box;
}

.recipe-article {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
}

/* レシピコメントセクション */
.recipe-comments {
    margin-top: 0;
    padding: 0px;
    background: #fff;
}

/* おすすめセクション */
.recipe-recommend-section {
    margin-top: 0px;
    padding: 0px;
    background: #fff;
}

/* メインビジュアル */
.recipe-main-visual {
    width: 100%;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.recipe-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* レシピヘッダー */
.recipe-header {
    padding: 24px;
}

.recipe-title {
    font-size: 24px;
    font-weight: bold;
    margin-top: 8px;
    margin-bottom: 8px;
    color: #333;
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.recipe-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
}

.author-link img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* レシピアクションボタン */
.recipe-actions {
    display: flex;
    gap: 24px; /* ボタン間の余白を広めに */
    margin-top: 0;
    margin-bottom: 16px;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: center;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}
.save-button {
    min-width: 0;
    max-width: 100%;
    flex: 2 1 0;
    padding: 0 20px;
    font-size: 15px;
    height: 56px;
    box-sizing: border-box;
    justify-content: center;
}
.share-button {
    min-width: 0;
    max-width: 48px;
    flex: 0 0 48px;
    padding: 0;
    font-size: 0;
    height: 56px;
    box-sizing: border-box;
    justify-content: center;
}
.share-button .action-text {
    display: none;
}
.action-button {
    width: auto;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1.5px solid #BDA58B;
    border-radius:8px;
    background: #fff;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s, border 0.2s;
    font-size: 15px;
    font-weight: 500;
    height: 56px;
    padding: 0 0; /* 個別指定に上書きされる */
}

/* 保存ボタンだけ横長に */
.save-button {
    min-width: 240px;
    max-width: 320px;
    flex: 2 1 240px;
    padding: 0 40px;
}

/* 共有ボタンはやや短め */
.share-button {
    min-width: 140px;
    max-width: 180px;
    flex: 1 1 140px;
    padding: 0 24px;
}

/* 保存済みの色 */
.save-button.saved {
    background: #F5EBE1;
    border-color: #BDA58B;
}

/* ホバー */
.action-button:hover {
    background: #F5EBE1;
    border-color: #BDA58B;
}

/* アイコン */
.action-button .action-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* テキスト */
.action-button .action-text {
    color: #856E5A;
    font-size: 15px;
    font-weight: 500;
}

.share-button:hover {
    background-color: #F5EBE1;
}

.save-button.saved .action-text {
    color: #856E5A;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .recipe-actions {
        margin-top: 12px;
    }

    .action-button {
        padding: 10px;
    }

    .action-button .action-text {
        font-size: 13px;
    }
}

/* 材料・道具セクション */
.recipe-materials {
    padding: 24px;
    border-top: 1px solid #eee;
}

.recipe-materials h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 16px;
}

.materials-container,
.tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.material-item,
.tool-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #F5EBE1;
    border-radius: 8px;
}

.material-name,
.tool-name {
    color: #333;
    font-size: 14px;
}

.material-link,
.tool-link {
    color: #BDA58B;
    text-decoration: none;
    font-size: 13px;
}

/* 作り方セクション */
.recipe-steps {
    padding: 24px;
    border-top: 1px solid #eee;
}

.recipe-steps h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 24px;
}

.step-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    border-radius: 12px;
}

.step-number {
    font-size: 18px;
    font-weight: bold;
    color: #BDA58B;
}

.step-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step-description {
    color: #333;
    line-height: 1.6;
}

/* コメントセクション */
.recipe-comments {
  border-top: 1px solid #ccc;
    margin-top: 0px;
    padding: 0px;
    background: #fff;
}

.recipe-comments h3 {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #333;
}

.comments-list {
    display: flex;
    flex-direction: column-reverse;
    margin-top: 20px;
}

.comment-thread {
    margin-bottom: 20px;
}

.comment {
    background: #F5EBE1;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-menu {
    position: relative;
    margin-left: 8px;
}

.comment-menu-toggle {
    background: none;
    border: none;
    padding: 0 5px;
    font-size: 20px;
    color: #BDA58B;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
}

.comment-menu-toggle span {
    display: block;
    line-height: 1;
    transform: rotate(90deg);
    font-weight: bold;
}

.comment-menu-toggle:hover {
    color: #856E5A;
}

.comment-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #BDA58B;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 120px;
    padding: 4px 0;
}

.comment-menu-dropdown button {
    display: block;
    width: 100%;
    padding: 8px 8px;
    text-align: left;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.comment-menu-dropdown button:hover {
    background: #F5EBE1;
}

.comment-menu-dropdown .delete-comment {
    color: #BDA58B;
}

.comment-menu-dropdown .delete-comment:hover {
    background: #FFF1F0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: bold;
    color: #333;
}

.comment-date {
    color: #666;
    font-size: 0.9em;
}

.comment-content {
    margin: 10px 0;
    color: #333;
    line-height: 1.6;
}

.comment-actions {
    margin-top: 10px;
}

.reply-button {
    background: none;
    border: 1px solid #ddd;
    padding: 4px 12px;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.reply-button:hover {
    background-color: #f0f0f0;
    color: #333;
}

.reply-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#recipe-comment-form,
.reply-form {
    margin-top: 20px;
}

#recipe-comment-form textarea,
.reply-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #BDA58B;
    border-radius: 8px;
    font-size: 14px;
    color: #333333;
    margin-bottom: 12px;
    resize: vertical;
    box-sizing: border-box;
    min-height: 60px; /* ← お好みで数値を調整 */
}

/* プレースホルダーのスタイル */
#recipe-comment-form textarea::placeholder,
.reply-form textarea::placeholder {
    color: #BDA58B;
    opacity: 0.8;
}

/* フォーカス時のスタイル */
#recipe-comment-form textarea:focus,
.reply-form textarea:focus {
    outline: none;
    border: 1px solid #BDA58B;
    box-shadow: none;
}

.submit-comment,
.submit-reply {
    background: #BDA58B;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.submit-comment:hover,
.submit-reply:hover {
    background: #BDA58B;
}

.submit-comment:disabled,
.submit-reply:disabled {
    background: #EADCC2;
    cursor: not-allowed;
}

.cancel-reply {
    background: none;
    border: 1px solid #ddd;
    padding: 8px 20px;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    margin-left: 10px;
}

.cancel-reply:hover {
    background: #f0f0f0;
}

.reply-actions {
    display: flex;
    gap: 10px;
}

.login-prompt {
    text-align: center;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    margin-top: 20px;
}

.login-prompt a {
    color: #BDA58B;
    text-decoration: none;
    font-weight: bold;
}

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

/* シェアモーダル */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.share-modal-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
}

.share-modal h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 16px;
    text-align: center;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.share-buttons button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.3s;
}

.share-twitter {
    background: #1DA1F2;
    color: white;
}

.share-facebook {
    background: #1877F2;
    color: white;
}

.share-line {
    background: #00B900;
    color: white;
}

.copy-link {
    background: #F5EBE1;
    color: #856E5A;
}

.close-modal {
    width: 100%;
    padding: 12px;
    background: none;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .recipe-single-container {
        padding: 12px;
    }

    .recipe-header {
        padding: 16px;
    }

    .recipe-title {
        font-size: 20px;
    }

    .materials-container,
    .tools-container {
        grid-template-columns: 1fr;
    }

    .recipe-materials,
    .recipe-steps {
        padding: 16px;
    }
}

.toggle-replies {
    background: none;
    border: none;
    color: #BDA58B;
    cursor: pointer;
    padding: 8px 12px;
    margin: 8px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.toggle-replies:hover {
    color: #856E5A;
}

.toggle-replies .reply-count {
    color: #999;
    font-size: 13px;
}

.comment-thread {
    margin-bottom: 24px;
}

/* コメント返信フォーム */
.reply-form-wrapper {
    margin-top: 12px;
    margin-bottom: 12px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #eee;
}

.reply-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    resize: vertical;
    font-size: 14px;
}

.reply-actions {
    display: flex;
    justify-content: flex-end;
}

.submit-reply {
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    background-color: #BDA58B;
    color: white;
}

.submit-reply:hover {
    background-color: #BDA58B;
}

.comment-replies {
    margin-left: 0px;
    padding-left: 20px;
}

.toggle-replies {
    margin: 10px 0;
    padding: 8px 12px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.toggle-replies:hover {
    color: #333;
}

.reply-count {
    color: #888;
    font-size: 0.9em;
}

.reply-button {
    background: none;
    border: 1px solid #ddd;
    padding: 4px 12px;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.reply-button:hover {
    background-color: #f0f0f0;
    color: #333;
}

.reply-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.read-more {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 0;
    margin-top: 8px;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: #333;
}

.comment-content p {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.full-text {
    margin-bottom: 8px;
}

.work-menu-wrapper {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 9999;
}

.work-menu-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
}

.work-menu-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: background 0.2s;
}

.work-menu-circle:hover {
    background: #ffe9d0;
}

.work-menu-icon {
    width: 16px;
    height: 16px;
    display: block;
}

.work-menu-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    background: #fff;
    border: 1px solid #BDA58B;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    min-width: 120px;
    z-index: 9999;
    padding: 6px 0;
}

.work-menu-dropdown button {
    width: 100%;
    background: none;
    border: none;
    padding: 10px 16px;
    text-align: left;
    color: #856E5A;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.work-menu-dropdown button:hover {
    background: #F5EBE1;
}

.work-item.draft-item, .work-item {
    position: relative;
    overflow: visible;
}

/* ▼ 道具・材料名のフォントサイズ */
.tmr-name {
  font-size: 14px;
}

/* ▼ URLを20文字で省略（...）表示 */
.tmr-url a {
  display: inline-block;
  max-width: 180px; /* 20文字相当。必要に応じて調整 */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.Tool_delete_bottun {
  margin-left: 5px;
  background: #BDA58B;
  color: white;
  padding: 6px 10px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

/* tools_add_button custom styles */
.tools-add-button-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.tools_add_button {
    display: inline-block;
    padding: 8px 100px;
    color: #BDA58B;
    border: 2px solid #BDA58B;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border 0.2s;
    box-shadow: 0 2px 8px rgba(186, 165, 139, 0.08);
}
.tools_add_button:hover, .tools_add_button:focus {
    background: #EADCC2;
    color: #BDA58B;
    border-color: #BDA58B;
    text-decoration: none;
}

.work-item.draft-item img {
    filter: brightness(0.7);
}

.draft-label-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    background: none;
    padding: 0;
    border-radius: 0;
    pointer-events: none;
    z-index: 2;
}

/* .draft-label は不要なら削除（他で使っていなければ） */
.draft-label {
    display: none;
}

.efit_button-wrapper {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
}
.efit_button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.efit_button .work-menu-circle {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}
.efit_button .work-menu-icon {
    width: 16px;
    height: 16px;
    border-radius: 0 !important;
}

.profile-image.profile-image-edit {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px auto;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5ebe1;
    position: relative;
    cursor: pointer;
    border: 4px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.profile-image.profile-image-edit img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.avatar-hint {
    text-align: center;
    font-size: 12px;
    color: #BDA58B;
    margin-top: 8px;
}
.profile-edit-form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.profile-edit-form label {
    font-weight: bold;
    text-align: left;
    margin-bottom: 4px;
}
.profile-edit-form input[type="text"],
.profile-edit-form input[type="email"],
.profile-edit-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f3f3f3;
    font-size: 16px;
    margin-top: 6px;
    margin-bottom: 0;
    box-sizing: border-box;
}
.profile-edit-form input[disabled] {
    background: #e0e0e0;
    color: #888;
}
.profile-edit-form textarea {
    min-height: 80px;
    resize: vertical;
}
.profile-edit-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 24px;
}
.profile-edit-buttons .btn-publish {
    background: #BDA58B;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 20px 40px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.profile-edit-buttons .btn-publish:hover {
    background: #a48c6b;
}
.profile-edit-buttons .btn-draft {
    background: #fff;
    color: #BDA58B;
    border: 2px solid #BDA58B;
    border-radius: 50px;
    padding: 10px 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-align: center;
    line-height: 1.2;
    max-height: 42px;
}
.profile-edit-buttons .btn-draft:hover {
    background: #F5EBE1;
    color: #a48c6b;
    border-color: #a48c6b;
}
.profile-edit-buttons .profile_save_button {
    background: #BDA58B;
    color: #fff;
    border: 2px solid #BDA58B;
    border-radius: 50px;
    padding: 0px 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
    max-height: 42px;
}
.profile-edit-buttons .profile_save_button:hover {
    background: #a48c6b;
}

.parts-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    background: #fff;
}
.parts-table th, .parts-table td {
    border-bottom: 1px solid #ccc;
    padding: 12px 8px;
    text-align: left;
    font-size: 16px;
}
.parts-table th {
    font-weight: bold;
    background: #faf8f5;
}
.parts-table td:last-child, .parts-table th:last-child {
    text-align: center;
    width: 48px;
}
.parts-bookmark {
    font-size: 22px;
    color: #BDA58B;
    vertical-align: middle;
    display: inline-block;
}

.parts-name-cell, .parts-url-cell {
    font-size: 10px;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.parts-bookmark-img {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    display: inline-block;
}

.parts-table th {
    font-size: 14px;
}
.parts-table td.parts-name-cell, .parts-table td.parts-url-cell {
    font-size: 12px;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.parts-table td.parts-name-cell span, .parts-table td.parts-url-cell span {
    font-size: 12px;
}
.parts-table td.parts-name-cell span.truncate, .parts-table td.parts-url-cell span.truncate {
    font-size: 12px;
}
.parts-table tr:first-child td.parts-name-cell, .parts-table tr:first-child td.parts-url-cell {
    font-size: 14px;
}
.parts-bookmark-img {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    display: inline-block;
}

/* 作り方セクションの装飾 */
.styled-steps {
    margin-top: 0px;
}
.styled-step-item {
    margin-bottom: 32px;
}
.styled-step-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}
.styled-step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #BDA58B;
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    margin-right: 16px;
    flex-shrink: 0;
}
.styled-step-description {
    font-size: 14px;
    line-height: 1.7;
    flex: 1;
    margin-top: 0px;
    margin-bottom: 0px;
}

.styled-step-image {
    margin: 16px auto 0 auto;
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 16/9;
    background: #ddd;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.styled-step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    background: #ddd;
    display: block;
}
@media (max-width: 600px) {
  .styled-step-image {
    aspect-ratio: 16/9;
    margin-left: 0;
    margin-right: 0;
  }
  .recipe-single-container {
    padding: 8px;
    border-radius: 0;
  }
}

/* recipe-description の新デザイン */
.recipe-description {
    background: #F5EBE1;
    border-radius: 10px;
    padding: 8px 16px 8px 16px;
    font-size: 15px;
    color: #333;
    margin-top: 8px;
    margin-bottom: 8px;
    position: relative;
    line-height: 1.7;
    box-sizing: border-box;
}

/* もっと読むリンク */
.recipe-description .read-more {
    display: block;
    text-align: center;
    color: #999;
    font-size: 14px;
    margin: 8px auto 0 auto;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    transition: color 0.2s;
    width: fit-content;
}
.recipe-description .read-more:hover {
    color: #666;
}

.styled-step-description p {
    margin-top: 0px;
    margin-bottom: 0px;
}

.parts-name-cell p {
    margin-top: 0px;
    margin-bottom: 0px;
}

.recipe-description p {
  font-size: 14px;
  margin-top: 0px;
  margin-bottom: 0px;
}

/* 既存の .recipe-actions などはそのまま */

/* スマホ用レスポンシブ調整 */
@media (max-width: 600px) {
  .recipe-actions {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .save-button {
    min-width: 0;
    max-width: 100%;
    flex: 2 1 0;
    padding: 0 20px;
    font-size: 14px;
    height: 44px;
    box-sizing: border-box;
    justify-content: center;
  }
  .share-button {
    min-width: 0;
    max-width: 48px;
    flex: 0 0 48px;
    padding: 0;
    font-size: 0;
    height: 44px;
    box-sizing: border-box;
    justify-content: center;
  }
  .share-button .action-text {
    display: none;
  }
  .action-button {
    width: auto;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* 投稿フォームのエラーメッセージ用 */
.form-error-message {
  background: #fff;
  color: #BDA58B;
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 24px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  border: none;
  box-shadow: none;
  letter-spacing: 0.02em;
}

/* Recipe List Styles */
.recipe-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px;
}

.recipe-list-header {
    margin-bottom: 2rem;
    text-align: center;
}

.recipe-list-header h1 {
    font-size: 20px;
    margin-bottom: 2px;
}

.recipe-count {
    color: #666;
    font-size: 1rem;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.recipe-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-5px);
}

.recipe-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.recipe-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-content {
    padding: 1.5rem;
}

.recipe-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.recipe-excerpt {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.5;
}

.pagination {
    text-align: center;
    margin-top: 2rem;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination .current {
    background: #333;
    color: #fff;
    border-color: #333;
}

.no-recipes {
    text-align: center;
    color: #666;
    padding: 2rem;
}

/* --- レシピ一覧ページ（新デザイン） --- */
.recipe-list-header {
  text-align: center;
  margin-bottom: 12px;
}

.recipe-category-filter {
  display: flex;
  gap: 0px;
  overflow-x: auto;
  margin-bottom: 1rem;
  padding: 0 8px;
}
.category-btn {
  background: #fff;
  border: none;
  border-radius: 10px;
  padding: 0px 0px;
  font-size: 10px;
  color: #333;
  cursor: pointer;
  min-width: 80px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.category-btn.active,
.category-btn:active {
  background: #F5EBE1;
  color: #2b2b2b;
  text-decoration: none;
}

.recipe-tab-filter {
  display: flex;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #ccc;
}
.tab-btn {
  flex: 1;
  background: none;
  border: none;
  font-size: 1rem;
  padding: 10px 0;
  color: #333;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: border 0.2s, color 0.2s;
}
.tab-btn.active {
  border-bottom: 2.5px solid #BDA58B;
  color: #BDA58B;
  font-weight: bold;
}

.recipe-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
}

.recipe-list-card {
  display: flex;
  flex-direction: row;
  background: #fff;
  border: 2px solid #BDA58B;
  border-radius: 14px;
  padding: 18px 16px;
  align-items: stretch;
  gap: 18px;
  box-shadow: none;
  transition: box-shadow 0.2s;
}
.recipe-list-card:hover {
  box-shadow: 0 2px 8px rgba(189, 165, 139, 0.10);
}

.recipe-list-card-left {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* ←ここをspace-between→flex-startに */
}
.recipe-list-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.recipe-list-title {
  max-width: 210px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: bold;
  margin: 0;
  padding: 0;
  margin: 0 0 8px 0;
}

.recipe-list-description-text {
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  min-height: calc(1.5em * 3);
  max-height: calc(1.5em * 3);
}
.bookmark-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.bookmark-btn svg {
  display: block;
}
.bookmark-btn.bottom {
  margin-top: auto;
  align-self: flex-end;
}
.recipe-list-price-row {
  margin-bottom: 8px;
}
.recipe-list-price {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  margin-right: 8px;
}
.recipe-list-description {
  margin: 0;
  padding-left: 1.2em;
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
}

.recipe-list-card-right {
  position: relative;
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
}
.recipe-image-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.favorite-button-wrapper {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}
.favorite-button img, .favorite-button svg {
  width: 28px;
  height: 28px;
  max-width: 100%;
  max-height: 100%;
  display: block;
}

@media (max-width: 600px) {
  .recipe-list-card {
    flex-direction: row;
    gap: 10px;
    padding: 6px 8px;
  }
  .recipe-list-card-left {
    flex: 1 1 0;
    min-width: 0;
  }
  .recipe-list-card-right {
    width: 90px;
    min-width: 70px;
    max-width: 100px;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0;
  }
  .recipe-list-image, .recipe-list-image-placeholder {
    width: 80px;
    height: 60px;
    margin-bottom: 8px;
  }
}

/* favorite-button（保存ボタン） */
.favorite-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #BDA58B;
  transition: color 0.2s;
}
.favorite-button svg {
  stroke: #BDA58B;
  width: 24px;
  height: 24px;
}
.favorite-button:hover svg {
  stroke: #856E5A;
}
.favorite-button.bottom {
  margin-top: auto;
  align-self: flex-end;
}

.recipe-list-favorite-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 8px 0;
}

.favorite-count-icon svg {
  display: block;
  vertical-align: middle;
}

.favorite-count-number {
  font-size: 14px;
  line-height: 1;
  vertical-align: middle;
  display: inline-block;
  color: #BDA58B;
  font-weight: bold;
}

.recipe-list-card-link {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
  max-height: 150px;
  min-height: 150px;
  box-sizing: border-box;
}
.recipe-list-description-text {
  max-width: 200px;
  width: 100%;
  overflow: hidden;
}
.recipe-list-card-right {
  position: relative;
  width: 75px;
  min-width: 75px;
  max-width: 75px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
}
.recipe-list-image, .recipe-list-image-placeholder {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
  margin-bottom: 0;
  display: block;
}
@media (max-width: 600px) {
  .recipe-list-card-link {
    flex-direction: row;
    max-height: 120px;
    min-height: 120px;
  }
  .recipe-list-card-right {
    width: 75px;
    min-width: 75px;
    max-width: 75px;
  }
  .recipe-list-image, .recipe-list-image-placeholder {
    width: 75px;
    height: 75px;
  }
  .recipe-list-description-text {
    max-width: 210px;
    width: 100%;
  }
}

.recipe-list-card-right {
  position: relative;
  width: 75px;
  min-width: 75px;
  max-width: 75px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
}
.favorite-button-wrapper {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
}

.favorite-button img,
.favorite-button svg {
  width: 24px;
  height: 24px;
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.recipe-image-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
}
.recipe-list-image, .recipe-list-image-placeholder {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
  margin-bottom: 0;
  display: block;
}

.recipe-category-filter img {
  border-radius: 16px;
}

/* --- トップページ専用スタイル --- */
.top-main {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  padding-bottom: 32px;
}

/* 特集タブ */
.special-feature-section {
  margin: 0 auto 18px auto;
  padding-top: 12px;
}
.special-feature-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 10px;
}
.special-feature-tab {
  background: #eee;
  border: none;
  border-radius: 12px 12px 0 0;
  padding: 8px 18px;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  outline: none;
}
.special-feature-tab.active {
  background: #fff;
  border-bottom: 2px solid #BDA58B;
  color: #BDA58B;
  font-weight: bold;
}
.special-feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.special-feature-image {
  width: 90%;
  aspect-ratio: 1/1;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin: 0 auto 8px auto;
}
.special-feature-text {
  font-size: 22px;
  color: #222;
  text-align: center;
  line-height: 1.4;
  font-weight: 500;
}

/* ジャンル選択 */
.genre-select-section {
  margin: 0 auto 18px auto;
  text-align: center;
}
.genre-select-title {
  font-size: 18px;
  color: #222;
  margin-bottom: 4px;
  position: relative;
}
.genre-select-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: #bbb;
  opacity: 0.3;
  margin: 6px auto 0 auto;
  border-radius: 2px;
  margin-bottom: 18px; /* 下に余白を追加 */
}
.genre-select-list-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 4px;
}
.genre-select-list {
  display: flex;
  gap: 10px;
  padding: 0 8px 0 8px;
  min-width: 420px;
}
.genre-btn {
  min-width: 60px;
  background: #ddd;
  border: none;
  border-radius: 10px;
  padding: 12px 10px 8px 10px;
  font-size: 15px;
  color: #222;
  cursor: pointer;
  outline: none;
  transition: box-shadow 0.2s, border 0.2s;
}
.genre-btn:active, .genre-btn.selected {
  border: 2px solid #4A90E2;
  background: #f5f5f5;
}
.genre-select-filters {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #222;
  margin: 0 18px 0 18px;
}

/* レシピランキング・保存ランキング */
.section-title {
  font-size: 18px;
  color: #222;
  margin-bottom: 4px;
  position: relative;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 4px;
}
.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: #bbb;
  opacity: 0.3;
  margin: 6px auto 0 auto;
  border-radius: 2px;
  margin-bottom: 18px;
}
.recipe-ranking-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 12px;
}
.recipe-card {
  background: #f5f5f5;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.recipe-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  background: #ccc;
}
.recipe-thumb.placeholder {
  background: #ccc;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 8px 8px 0 0;
}
.recipe-title {
  font-size: 14px;
  color: #333;
  margin-top: 4px;
  font-weight: 500;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.see-more-wrapper {
  text-align: center;
  margin: 10px 0 0 0;
}
.see-more-btn {
  display: inline-block;
  background: #F5EBE1;
  color: #BDA58B;
  border-radius: 20px;
  padding: 8px 28px;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  margin-top: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.see-more-btn:hover {
  background: #BDA58B;
  color: #fff;
}

/* SNS・フィードバック */
.sns-feedback-section {
  margin: 24px 0 0 0;
  text-align: center;
}
.sns-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}
.sns-btn {
  display: inline-block;
  background: #eee;
  color: #222;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
}
.sns-btn:hover {
  background: #BDA58B;
  color: #fff;
}
.feedback-btn-wrapper {
  margin: 10px 0 8px 0;
}
.feedback-btn {
  background: #fff;
  color: #BDA58B;
  border: 2px solid #BDA58B;
  border-radius: 9999px;
  padding: 10px 32px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  text-decoration: none;
}
.feedback-btn:hover {
  background: #F5EBE1;
  color: #BDA58B;
  border-color: #BDA58B;
  text-decoration: none;
}
.back-to-top-wrapper {
  margin-top: 10px;
}
.back-to-top {
  color: #888;
  font-size: 13px;
  text-decoration: none;
}

@media (max-width: 600px) {
  .top-main {
    padding-bottom: 16px;
  }
  .special-feature-image {
    width: 98vw;
    min-width: 0;
  }
  .genre-select-list {
    min-width: 340px;
  }
  .recipe-ranking-list {
    gap: 8px;
    padding: 0 4px;
  }
}

/* --- Fix .recipe-title for single and main recipe pages --- */
.recipe-header .recipe-title {
    font-size: 24px !important;
    font-weight: bold !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    color: #333 !important;
    display: block;
}

/* .recipe-title for top page and ranking list (smaller) */
.top-main .recipe-title,
.recipe-ranking-list .recipe-title,
.recipe-card .recipe-title {
    font-size: 14px;
    color: #333;
    margin-top: 0px;
    font-weight: 500;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- 特集スライダー用スタイル --- */
.special-feature-slider {
  position: relative;
  width: 100%;
  min-height: 320px;
  margin: 0 auto 12px auto;
  overflow: hidden;
}
.special-feature-slide {
  display: none;
  width: 100%;
  animation: fadein 0.7s;
}
.special-feature-slide:first-child {
  display: block;
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.special-feature-image {
  width: 100%;
  aspect-ratio: 1/1;
  background: #ddd;
  border-radius: 12px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  max-height: 340px;
  overflow: hidden;
}
.special-feature-caption {
  margin-top: 10px;
  text-align: center;
}
.special-feature-title {
  font-size: 20px;
  font-weight: bold;
  color: #BDA58B;
  margin-bottom: 4px;
}
.special-feature-desc {
  font-size: 15px;
  color: #333;
  margin-bottom: 0;
}
.special-feature-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.special-feature-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #eee;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  border: 2px solid #BDA58B;
}
.special-feature-dot.active {
  background: #BDA58B;
}
@media (max-width: 600px) {
  .special-feature-image {
    min-height: 140px;
    max-height: 220px;
    border-radius: 8px;
  }
  .special-feature-title {
    font-size: 16px;
  }
  .special-feature-desc {
    font-size: 13px;
  }
}

/* --- 特集スライダー 横スライド用 --- */
.special-feature-slider.horizontal {
  overflow: hidden;
  width: 100%;
  position: relative;
  min-height: 220px;
  margin: 0 auto 12px auto;
}
.special-feature-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(.77,0,.18,1);
  will-change: transform;
}
.special-feature-slide {
  flex: 0 0 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: block;
}
.special-feature-image {
  width: 100%;
  aspect-ratio: 1/1;
  background: #ddd;
  border-radius: 16px;
  margin: 0 auto;
  min-height: 180px;
  max-height: 340px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.special-feature-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}
.special-feature-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #eee;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  border: 2px solid #BDA58B;
}
.special-feature-dot.active {
  background: #BDA58B;
}
@media (max-width: 600px) {
  .special-feature-image {
    min-height: 120px;
    max-height: 220px;
    border-radius: 10px;
  }
  .special-feature-dot {
    width: 10px;
    height: 10px;
  }
}

.special-feature-image-4x3 {
  aspect-ratio: 4/3;
  min-height: 0;
  max-height: none;
}
@media (max-width: 600px) {
  .special-feature-image-4x3 {
    aspect-ratio: 4/3;
    border-radius: 10px;
  }
}

/* --- 新着レシピ（トップページ）デザイン調整 --- */
.recipe-ranking-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 0 8px;
  margin-bottom: 24px;
}
.recipe-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(189, 165, 139, 0.10);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 12px 0;
  transition: box-shadow 0.2s;
}
.recipe-card:hover {
  box-shadow: 0 4px 16px rgba(189, 165, 139, 0.18);
}
.recipe-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  background: #eee;
  display: block;
  min-height: 120px;
  max-height: 180px;
}
.recipe-thumb.placeholder {
  background: #eee;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 16px 16px 0 0;
  min-height: 120px;
  max-height: 180px;
}
.recipe-title {
  font-size: 15px;
  color: #333;
  margin-top: 12px;
  font-weight: 500;
  min-height: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.see-more-wrapper {
  text-align: center;
  margin: 18px 0 0 0;
}
.see-more-btn {
  display: inline-block;
  background: #F5EBE1;
  color: #BDA58B;
  border-radius: 22px;
  padding: 14px 48px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  margin-top: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.see-more-btn:hover {
  background: #BDA58B;
  color: #fff;
}
@media (max-width: 600px) {
  .recipe-ranking-list {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 2px;
  }
  .recipe-card {
    border-radius: 12px;
    padding: 0 0 8px 0;
  }
  .recipe-thumb, .recipe-thumb.placeholder {
    border-radius: 12px 12px 0 0;
    min-height: 80px;
    max-height: 120px;
  }
  .see-more-btn {
    font-size: 16px;
    padding: 12px 24px;
  }
}
/* --- ここまで新着レシピ --- */

.recipe-title-bg {
  border-radius: 0 0 16px 16px;
  padding: 12px 0 10px 0;
  text-align: center;
  width: 100%;
  font-size: 15px;
  font-weight: 600;
  color: #856e5a;
  min-height: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(189, 165, 139, 0.04);
}
@media (max-width: 600px) {
  .recipe-title-bg {
    border-radius: 0 0 10px 10px;
    padding: 8px 0 6px 0;
    font-size: 13px;
    background: #fff;
  }
}

/* --- レシピカードのデザイン統一 --- */
.recipe-ranking-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 0 8px;
  margin-bottom: 24px;
}

.recipe-card:hover {
  box-shadow: 0 8px 24px rgba(189, 165, 139, 0.22);
  transform: translateY(-4px) scale(1.02);
  border-color: #e5d3c0;
}


.recipe-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
  background: #eee;
  display: block;
  min-height: 120px;
  max-height: 180px;
  transition: filter 0.2s;
}

.recipe-card:hover .recipe-thumb {
  filter: brightness(0.96) saturate(1.1);
}

.recipe-title-bg {
  border-radius: 0 0 18px 18px;
  padding: 14px 0 12px 0;
  text-align: center;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  color: #856e5a;
  min-height: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(189, 165, 139, 0.04);
}

@media (max-width: 600px) {
  .recipe-ranking-list {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 2px;
  }
  .recipe-card {
    border-radius: 12px;
  }
  .recipe-thumb, .recipe-thumb.placeholder {
    border-radius: 12px 12px 0 0;
    min-height: 80px;
    max-height: 120px;
  }
  .recipe-title-bg {
    border-radius: 0 0 12px 12px;
    padding: 10px 0 8px 0;
    font-size: 14px;
  }
}

/* --- 新着レシピ・ランキングカード デザ fイン統一 --- */
.recipe-ranking-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 0 8px;
  margin-bottom: 24px;
}

.recipe-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  transition: box-shadow 0.2s, transform 0.2s;
}

.recipe-card:hover {
  box-shadow: 0 8px 24px rgba(189, 165, 139, 0.22);
  transform: translateY(-2px) scale(1.01);
  border-color: #e5d3c0;
}

.recipe-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  background: #eee;
  display: block;
  min-height: 120px;
  max-height: 180px;
  transition: filter 0.2s;
}

.recipe-card:hover .recipe-thumb {
  filter: brightness(0.97) saturate(1.05);
}

.recipe-title-bg {
  border-radius: 0 0 16px 16px;
  padding: 4px 0 0px 0;
  text-align: center;
  width: 100%;
  font-size: 15px;
  font-weight: 600;
  color: #856e5a;
  min-height: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(189, 165, 139, 0.04);
}

@media (max-width: 600px) {
  .recipe-ranking-list {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 2px;
  }

  .recipe-thumb, .recipe-thumb.placeholder {
    border-radius: 10px 10px 0 0;
    min-height: 70px;
    max-height: 120px;
  }
  .recipe-title-bg {
    border-radius: 0 0 10px 10px;
    padding: 8px 0 6px 0;
    font-size: 13px;
  }
}

.user-mypage-recipe-all-genre-button {
  margin-right: 4px;
  font-size: 16px;
  padding: 8px 18px;
  border-radius: 16px;
  background: #f5ede6;
  color: #222;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
}
.user-mypage-recipe-all-genre-button:last-child {
  margin-right: 0;
}
.user-mypage-recipe-all-genre-button.active, .user-mypage-recipe-all-genre-button.selected {
  background: #ede2d2;
  font-weight: bold;
  text-decoration: underline;
}

.recipe-list-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recipe-list-card {
  position: relative;
}
.work-menu-wrapper.efit_button-wrapper {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
}

.recipe-title-bg, .recipe-title {
  text-decoration: none !important;
  margin-left: 4px;
  margin-right: 4px;
}
.recipe-card a {
  text-decoration: none !important;
}

/* style.css などに追記 */
.section-title.bold {
  font-weight: bold;
}

/* --- ハンバーガーメニュー（背景色なし・SNSはfooter流用） --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 9999;
  overflow-y: auto;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
  transform: translateY(-100%);
  opacity: 0;
  margin: 0 auto;
  right: 0;
  box-sizing: border-box;
  background: #fff;
}
.mobile-menu.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu-inner {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: #fff;
  height: 100vh;
}
.mobile-menu-bottom {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mobile-menu-close {
  position: absolute;
  top: 0px;
  right: 0px;
  font-size: 28px;
  color: #BDA58B;
  background: none;
  border: none;
  z-index: 2;
  cursor: pointer;
  line-height: 1;
  width: 40px;
  height: 40px;
  text-align: right;
}
.mobile-menu-list {
  list-style: none;
  padding: 80px 0 0 0;
  margin: 0 0 0 0;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
}
.mobile-menu-list li {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 56px;
}
.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  color: #BDA58B;
  text-decoration: none;
  font-weight: bold;
  background: none;
  border: none;
  border-radius: 14px;
  padding: 12px 18px 12px 14px;
  transition: background 0.18s, color 0.18s;
  position: relative;
  width: 100%;
  min-height: 56px;
  box-sizing: border-box;
}
.menu-link-left {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu-icon {
  width: 28px;
  height: 28px;
  margin-right: 8px;
  object-fit: contain;
  flex-shrink: 0;
  display: inline-block;
  filter: none;
}
.menu-label {
  display: inline-block;
  font-size: 18px;
  color: #BDA58B;
  font-weight: bold;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu-link .arrow {
  font-size: 22px;
  color: #BDA58B;
  font-weight: normal;
  flex-shrink: 0;
  margin-left: auto;
  min-width: 18px;
  text-align: right;
  align-self: center;
}
.mobile-menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px auto 32px auto;
  width: 100%;
  max-width: 340px;
}
.menu-btn {
  font-size: 18px;
  color: #BDA58B;
  border: 2px solid #BDA58B;
  background: none;
  border-radius: 9999px;
  padding: 8px 0;
  width: 100%;
  margin: 0 auto;
  display: block;
  font-weight: bold;
  transition: background 0.18s, color 0.18s, border 0.18s;
  text-align: center;
  text-decoration: none;
}
.menu-btn:hover, .menu-btn:active {
  background: #F5EBE1;
  color: #BDA58B;
  border-color: #BDA58B;
}
.mobile-menu-social {
  text-align: center;
  width: 100%;
  max-width: 340px;
  background: none;
  margin-bottom: 16px;
}
.follow-title {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 12px;
  color: #222;
  text-align: center;
  margin-top: 24px;
}
.sns-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 10px;
}
.sns-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  background: none;
  box-shadow: none;
  transition: box-shadow 0.18s;
  display: inline-block;
}
.sns-icon:hover {
  box-shadow: 0 2px 8px rgba(189,165,139,0.18);
}

@media (min-width: 900px) {
  .mobile-menu {
    left: 0;
    right: 0;
    top: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: none !important;
    opacity: 1 !important;
    z-index: 9999;
  }
  .mobile-menu-inner {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    height: 90vh;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 0 0 0;
  }
  .mobile-menu-list {
    padding-top: 80px;
    margin-bottom: 48px;
    max-width: 340px;
    width: 100%;
  }
  .mobile-menu-list li {
    min-height: 64px;
  }
  .menu-link {
    font-size: 20px;
    padding: 18px 24px 18px 24px;
    min-height: 64px;
    border-radius: 16px;
  }
  .menu-label {
    font-size: 20px;
    max-width: 220px;
  }
  .menu-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
  }
  .menu-link .arrow {
    font-size: 26px;
    min-width: 24px;
  }
  .mobile-menu-buttons {
    gap: 24px;
    margin: 48px auto 40px auto;
    max-width: 340px;
  }
  .menu-btn {
    font-size: 20px;
    padding: 18px 0;
    border-radius: 9999px;
  }
  .mobile-menu-social {
    max-width: 340px;
    margin-bottom: 24px;
  }
  .follow-title {
    font-size: 20px;
    margin-bottom: 18px;
    margin-top: 32px;
  }
  .sns-icons-row-wrapper,
  .sns-icons-row {
    max-width: 340px;
    gap: 40px;
    padding-top: 32px;
    margin-bottom: 24px;
  }
  .sns-icons-row a img {
    margin-bottom: 10px;
    margin-top: 10px;
  }
}

@media (min-width: 900px) {
  .mobile-menu-inner {
    position: relative;
  }
  .mobile-menu-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
  }
}

@media (min-width: 900px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu.open {
    display: flex !important;
  }
  .mobile-menu-inner {
    position: relative;
  }
  .mobile-menu-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
  }
  .sns-icons-row-wrapper,
  .sns-icons-row {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
    max-width: 340px !important;
    width: 100%;
  }
}

.register-check.button {
    background: #BDA58B;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 16　
    px;
    width: 100%;
    display: block;
}
.register-check.button:hover {
    background: #F5EBE1;
}

.login-button {
  background: #BDA58B;
  color: white;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  width: 100%;
  display: block;
  margin-top: 10px;
}
.login-button:hover {
  background: #F5EBE1;
}

/* 新着レシピカード装飾 */
.recipe-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}

.recipe-thumb,
.recipe-thumb.placeholder {
  width: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.recipe-card-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.40) 40%, rgba(0,0,0,0.0) 100%);
  display: flex;
  align-items: flex-end;
  padding: 0;
  pointer-events: none;
}

.recipe-card-meta {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  width: 100%;
}

.recipe-card-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ccc;
  object-fit: cover;
  margin-right: 10px;
  flex-shrink: 0;
}

.recipe-card-title {
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 20px);
  letter-spacing: 1px;
}

