/* =========================================================
   Coffee Tasting Log - My Page
   assets/css/coffee-mypage.css
========================================================= */


/* =========================================================
   01. 基本設定・変数
========================================================= */

.coffee-mypage {
  --mp-bg: #f5f2ec;
  --mp-paper: #fbfaf7;
  --mp-white: #ffffff;

  --mp-text: #24211e;
  --mp-title: #171514;
  --mp-sub: #6f675f;
  --mp-muted: #9a9188;

  --mp-line: #d8d0c7;
  --mp-line-soft: #e6e1d8;
  --mp-line-strong: #d6cec1;

  --mp-brown: #6b4328;
  --mp-brown-soft: #f0e6d8;
  --mp-brown-pale: #fff6ea;
  --mp-black: #151313;

  --mp-green-bg: #edf8f3;
  --mp-green-border: #b9dccd;
  --mp-green-text: #276b53;

  --mp-radius: 0;
  --mp-radius-sm: 0;
  --mp-radius-pill: 999px;

  --mp-shadow: none;

  margin: 0 auto;
  color: var(--mp-text);
}

.coffee-mypage * {
  box-sizing: border-box;
}


/* =========================================================
   02. Cocoon本文エリア調整
========================================================= */

.entry-content:has(.coffee-mypage) {
  padding: 48px 44px !important;
  color: var(--mp-text);
  line-height: 1.8;
}

/* Cocoonのh3装飾をマイページ内だけ解除 */
.entry-content:has(.coffee-mypage) .article h3,
.entry-content:has(.coffee-mypage) h3 {
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
}


/* =========================================================
   03. 共通ボタン
========================================================= */

.coffee-mypage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.coffee-mypage-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 13px 22px;
  border: 1px solid var(--mp-black);
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.coffee-mypage-button.primary {
  background: var(--mp-black);
  color: #fff !important;
}

.coffee-mypage-button.secondary {
  background: transparent;
  color: var(--mp-black) !important;
  border-color: var(--mp-line);
}

.coffee-mypage-button:hover {
  background: var(--mp-brown);
  border-color: var(--mp-brown);
  color: #fff !important;
}


/* =========================================================
   04. Hero / プロフィール導入
========================================================= */

.coffee-mypage-hero {
  padding: 56px 42px;
  margin-bottom: 22px;
  background: var(--mp-paper);
  border: 1px solid var(--mp-line);
}

.coffee-mypage-kicker {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mp-brown);
  font-weight: 600;
}

.coffee-mypage-hero h2 {
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: var(--mp-title) !important;
  font-size: clamp(28px, 2vw, 46px) !important;
  line-height: 1.25 !important;
  font-weight: 500 !important;
  letter-spacing: -0.04em !important;
}

.coffee-mypage-hero p {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--mp-sub);
  line-height: 2;
}


/* =========================================================
   05. Summary / 記録数・国・焙煎度・抽出方法
========================================================= */

.coffee-mypage-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: 24px;
  border: 1px solid var(--mp-line);
  background: var(--mp-line);
}

.coffee-summary-card {
  min-height: 132px;
  background: var(--mp-paper);
  padding: 28px 22px;
}

.coffee-summary-card span {
  display: block;
  margin-bottom: 12px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--mp-brown);
  font-weight: 600;
}

.coffee-summary-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--mp-title);
  font-size: clamp(24px, 1vw, 36px);
  font-weight: 500;
  line-height: 1.2;
}

.coffee-summary-card p {
  margin: 0;
  color: var(--mp-muted);
  font-size: 13px;
}


/* =========================================================
   06. Insight / 好きな傾向・次のおすすめ
========================================================= */

.coffee-mypage-insight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-bottom: 24px;
  border: 1px solid var(--mp-line);
}

.coffee-insight-card {
  min-height: 150px;
  background: var(--mp-paper);
  padding: 34px 28px;
}

.coffee-insight-card.main {
  background: var(--mp-white);
}

.coffee-insight-card span {
  display: block;
  margin-bottom: 12px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--mp-brown);
  font-weight: 600;
}

.coffee-insight-card h3 {
  margin: 0 0 14px;
  padding: 0 !important;
  color: var(--mp-title);
  font-size: 20px;
  font-weight: 600;
}

.coffee-insight-card p {
  margin: 0;
  color: var(--mp-sub);
  line-height: 2;
}


/* =========================================================
   07. Ranking / ランキング・傾向
========================================================= */

.coffee-mypage-ranking {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-bottom: 24px;
  border: 1px solid var(--mp-line);
  background: var(--mp-line);
}

.coffee-ranking-box {
  background: var(--mp-paper);
  padding: 32px 28px;
}

.coffee-ranking-box h3,
.coffee-mypage-empty h3 {
  margin: 0 0 14px;
  padding: 0 !important;
  color: var(--mp-title);
  font-size: 20px;
  font-weight: 600;
}

.coffee-ranking-box ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.coffee-ranking-box li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--mp-line);
}

.coffee-ranking-box li:last-child {
  border-bottom: none;
}

.coffee-ranking-box li span {
  color: var(--mp-text);
}

.coffee-ranking-box li strong {
  color: var(--mp-brown);
  font-weight: 600;
  white-space: nowrap;
}

.coffee-ranking-box p {
  margin: 0;
  color: var(--mp-sub);
  line-height: 1.9;
}


/* =========================================================
   08. Tag Cloud / よく感じる印象
========================================================= */

.coffee-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coffee-tag-cloud span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid var(--mp-line);
  background: var(--mp-white);
  color: var(--mp-text);
  font-size: 13px;
}

.coffee-tag-cloud small {
  color: var(--mp-brown);
}


/* =========================================================
   09. Empty / 未ログイン・記録なし
========================================================= */

.coffee-mypage-empty,
.coffee-mypage-login-message {
  padding: 40px 32px;
  margin-bottom: 34px;
  background: var(--mp-paper);
  border: 1px solid var(--mp-line);
}

.coffee-mypage-empty p,
.coffee-mypage-login-message p {
  color: var(--mp-sub);
  line-height: 2;
}

.coffee-mypage-login-message {
  max-width: 720px;
  margin: 40px auto;
  padding: 44px 36px;
  text-align: center;
}

.coffee-mypage-login-message p {
  margin: 0 0 24px;
}


/* =========================================================
   10. Log List / 過去のテイスティングログ
========================================================= */

.coffee-mypage-list,
#coffee-log-list {
  margin-top: 48px;
  padding-top: 34px;
  border-top: 1px solid var(--mp-line);
}

.coffee-mypage-list h2,
#coffee-log-list > h2 {
  margin: 0 0 24px !important;
  padding: 0 0 14px !important;
  border: none !important;
  border-bottom: 1px solid var(--mp-line) !important;
  background: transparent !important;
  color: var(--mp-title) !important;
  font-size: 24px !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em !important;
}


/* =========================================================
   11. Coffee List Wrapper / 既存一覧ラッパー
========================================================= */

#ct-wrap {
  width: 100%;
  margin: 0 auto 48px;
  font-family: inherit;
}

#ct-wrap * {
  box-sizing: border-box;
}

/* CocoonテーブルCSS対策 */
#ct-wrap table,
#ct-wrap tr,
#ct-wrap th,
#ct-wrap td {
  border: none !important;
  background: transparent !important;
}


/* =========================================================
   12. Saved Message / 保存メッセージ
========================================================= */

#ct-saved-msg {
  display: none;
  max-width: 980px;
  margin: 0 auto 16px;
  padding: 12px 16px;
  border: 1px solid var(--mp-green-border);
  background: var(--mp-green-bg);
  color: var(--mp-green-text);
  font-size: 13px;
}

#ct-saved-msg.show {
  display: block;
}


/* =========================================================
   13. Filter / 絞り込みエリア
========================================================= */

#ct-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  padding: 18px;
  background: var(--mp-white);
  border: 1px solid var(--mp-line-soft);
  box-shadow: none;
}

.ct-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.ct-group label {
  margin: 0;
  color: var(--mp-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

#ct-wrap select,
#ct-wrap input[type="date"],
#ct-wrap input[type="text"],
#ct-wrap input[type="search"] {
  width: 100%;
  height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--mp-line-soft);
  background: var(--mp-paper);
  color: var(--mp-text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  border-radius: 0;
  box-shadow: none;
}

#ct-wrap select:focus,
#ct-wrap input[type="date"]:focus,
#ct-wrap input[type="text"]:focus,
#ct-wrap input[type="search"]:focus {
  border-color: var(--mp-brown);
  background: var(--mp-white);
  box-shadow: none;
}

.ct-action-row {
  display: flex;
  gap: 8px;
  align-self: end;
}

#ct-reset,
#ct-search {
  height: 38px;
  padding: 0 16px;
  border-radius: 0;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

#ct-reset {
  border: 1px solid var(--mp-line-strong);
  background: var(--mp-white);
  color: var(--mp-sub);
}

#ct-reset:hover {
  background: var(--mp-paper);
}

#ct-search {
  border: 1px solid var(--mp-black);
  background: var(--mp-black);
  color: #fff;
}

#ct-search:hover {
  background: var(--mp-brown);
  border-color: var(--mp-brown);
}


/* =========================================================
   14. Count / 件数表示
========================================================= */

#ct-meta {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 14px;
}

#ct-count {
  color: var(--mp-muted);
  font-size: 12px;
}


/* =========================================================
   15. Record List / カードリスト
========================================================= */

.coffee-record-list {
  display: grid;
  gap: 16px;
}

.coffee-record {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 22px;
  background: var(--mp-white);
  border: 1px solid var(--mp-line-soft);
  box-shadow: none;
  border-radius: 0;
}


/* =========================================================
   16. Record Header / カード上部
========================================================= */

.ct-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--mp-line-soft);
}

.ct-date {
  color: var(--mp-text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ct-temperature {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 12px;
  border: 1px solid var(--mp-line-strong);
  border-radius: var(--mp-radius-pill);
  background: var(--mp-paper);
  color: var(--mp-brown);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.ct-card-head {
  margin-bottom: 14px;
}

.ct-title {
  margin: 0 0 6px;
  padding: 0 !important;
  color: var(--mp-title);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.ct-sub {
  margin: 0;
  color: var(--mp-sub);
  font-size: 13px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.ct-country {
  margin: 0 0 4px;
  color: var(--mp-title);
  font-size: 18px;
  font-weight: 700;
}


/* =========================================================
   17. Record Tags / カード内タグ
========================================================= */

.ct-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 18px;
}

.ct-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #eadcca;
  border-radius: var(--mp-radius-pill);
  background: var(--mp-brown-pale);
  color: var(--mp-brown);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}


/* =========================================================
   18. Record Detail / 詳細情報
========================================================= */

.ct-section {
  margin-top: 18px;
}

.ct-section-label {
  margin: 0 0 8px;
  color: var(--mp-brown);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ct-detail-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--mp-line-soft);
}

.ct-detail-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--mp-line-soft);
}

.ct-detail-row span {
  color: var(--mp-muted);
  font-size: 12px;
  line-height: 1.7;
}

.ct-detail-row strong {
  color: var(--mp-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}


/* =========================================================
   19. Taste Pills / 味の評価
========================================================= */

.ct-taste-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ct-taste-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--mp-line-soft);
  border-radius: var(--mp-radius-pill);
  background: var(--mp-paper);
  color: var(--mp-sub);
  font-size: 13px;
  line-height: 1.2;
}


/* =========================================================
   20. Memo / メモ欄
========================================================= */

.ct-memo {
  margin-top: 18px;
  padding: 16px;
  background: var(--mp-paper);
  color: var(--mp-sub);
  font-size: 14px;
  line-height: 1.8;
  border: 1px solid var(--mp-line-soft);
  word-break: keep-all;
  overflow-wrap: anywhere;
}


/* =========================================================
   21. Card Footer / 入力者・編集
========================================================= */

.ct-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.ct-inputer {
  color: var(--mp-muted);
  font-size: 12px;
}

.ct-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--mp-line-strong);
  background: var(--mp-white);
  color: var(--mp-sub);
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.ct-edit-btn:hover {
  background: var(--mp-black);
  border-color: var(--mp-black);
  color: #fff;
}


/* =========================================================
   22. Modal / 編集モーダル
========================================================= */

#ct-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(30, 24, 18, 0.45);
}

#ct-modal-overlay.open {
  display: flex;
}

#ct-modal {
  width: min(100%, 680px);
  max-height: 88vh;
  overflow-y: auto;
  padding: 24px;
  background: var(--mp-white);
  box-shadow: none;
  border: 1px solid var(--mp-line);
}

#ct-modal h3 {
  margin: 0 0 18px;
  padding: 0 !important;
  color: var(--mp-title);
  font-size: 18px;
  line-height: 1.5;
}

.ct-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.ct-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.ct-field label {
  color: var(--mp-muted);
  font-size: 12px;
  line-height: 1.5;
}

.ct-field input[type="text"],
.ct-field input[type="date"],
.ct-field select,
.ct-field textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--mp-line-soft);
  background: var(--mp-paper);
  color: var(--mp-text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  border-radius: 0;
  box-shadow: none;
}

.ct-field select {
  height: 42px;
  appearance: auto;
}

.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  border-color: var(--mp-brown);
  background: var(--mp-white);
  box-shadow: none;
}

.ct-field textarea {
  min-height: 96px;
  resize: vertical;
}

.ct-field input:focus,
.ct-field textarea:focus {
  border-color: var(--mp-brown);
  background: var(--mp-white);
  box-shadow: none;
}

.ct-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.ct-save-btn,
.ct-cancel-btn {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 0;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.ct-save-btn {
  border: 1px solid var(--mp-black);
  background: var(--mp-black);
  color: #fff;
}

.ct-save-btn:hover {
  background: var(--mp-brown);
  border-color: var(--mp-brown);
}

.ct-cancel-btn {
  border: 1px solid var(--mp-line-strong);
  background: var(--mp-white);
  color: var(--mp-sub);
}

.ct-cancel-btn:hover {
  background: var(--mp-paper);
}


/* =========================================================
   23. Pagination / ページネーション
========================================================= */

.ct-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.ct-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--mp-line-strong);
  border-radius: 0;
  background: var(--mp-white);
  color: var(--mp-brown);
  cursor: pointer;
  font-size: 14px;
}

.ct-page-btn:hover {
  background: var(--mp-brown-pale);
}

.ct-page-btn.is-current {
  background: var(--mp-black);
  color: #fff;
  border-color: var(--mp-black);
}

.ct-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}


/* =========================================================
   24. JS Utility
========================================================= */

.ct-hidden {
  display: none !important;
}


/* =========================================================
   25. Tablet / 900px以下
========================================================= */

@media screen and (max-width: 900px) {
  #ct-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =========================================================
   26. Mobile / 768px以下
========================================================= */

@media screen and (max-width: 768px) {
  .entry-content:has(.coffee-mypage) {
    padding: 28px 16px !important;
  }

  .coffee-mypage {
    max-width: 100%;
  }

  .coffee-mypage-hero {
    padding: 38px 22px;
  }

  .coffee-mypage-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .coffee-mypage-button {
    width: 100%;
  }

  .coffee-mypage-summary,
  .coffee-mypage-insight,
  .coffee-mypage-ranking {
    grid-template-columns: 1fr;
  }

  .coffee-summary-card,
  .coffee-insight-card,
  .coffee-ranking-box {
    padding: 26px 20px;
  }

  .coffee-mypage-list,
  #coffee-log-list {
    margin-top: 38px;
    padding-top: 28px;
  }

  #ct-wrap {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin-bottom: 40px;
  }

  #ct-bar {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px;
    margin-bottom: 12px;
  }

  .ct-group label {
    font-size: 10px;
    line-height: 1.3;
  }

  #ct-wrap select,
  #ct-wrap input[type="date"],
  #ct-wrap input[type="text"],
  #ct-wrap input[type="search"] {
    height: 36px;
    padding: 5px 8px;
    font-size: 12px;
  }

  .ct-group:has(#ct-product-name),
  .ct-group:has(#ct-farm),
  .ct-group:has(#ct-variety),
  .ct-group:has(#ct-process),
  .ct-group:has(#ct-tag) {
    grid-column: 1 / -1;
  }

  .ct-action-row {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-self: auto;
  }

  #ct-reset,
  #ct-search {
    width: 100%;
    height: 40px;
    padding: 0;
    font-size: 13px;
  }

  #ct-meta {
    justify-content: flex-start;
    margin: 8px 0 12px;
  }

  .coffee-record-list {
    gap: 14px;
  }

  .coffee-record {
    max-width: 100%;
    padding: 16px;
  }

  .ct-topbar {
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .ct-date {
    font-size: 15px;
    line-height: 1.3;
  }

  .ct-temperature {
    min-height: 26px;
    padding: 4px 10px;
    font-size: 11px;
  }

  .ct-title {
    font-size: 18px;
    line-height: 1.45;
  }

  .ct-sub {
    font-size: 12px;
  }

  .ct-detail-row {
    display: block;
    padding: 8px 0;
  }

  .ct-detail-row span {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
  }

  .ct-detail-row strong {
    display: block;
    font-size: 13px;
  }

  .ct-memo {
    padding: 12px;
    font-size: 13px;
  }

  .ct-footer {
    gap: 10px;
  }

  #ct-modal {
    width: 100%;
    max-height: 86vh;
    padding: 18px;
  }

  .ct-modal-grid {
    grid-template-columns: 1fr;
  }

  .ct-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ct-save-btn,
  .ct-cancel-btn {
    width: 100%;
  }
}


/* =========================================================
   27. Small Mobile / 420px以下
========================================================= */

@media screen and (max-width: 420px) {
  #ct-bar {
    grid-template-columns: 1fr;
  }

  .ct-group:has(#ct-product-name),
  .ct-group:has(#ct-farm),
  .ct-group:has(#ct-variety),
  .ct-group:has(#ct-process),
  .ct-group:has(#ct-tag) {
    grid-column: auto;
  }

  .ct-action-row {
    grid-column: auto;
  }

  .ct-topbar {
    flex-direction: row;
    align-items: center;
  }

  .ct-title {
    font-size: 17px;
  }

  .ct-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .ct-edit-btn {
    width: 100%;
  }
}

/* =====================================================
   My Page：未ログイン時の案内
===================================================== */

.coffee-mypage-login-message {
  max-width: 760px;
  margin: 40px auto;
  padding: 44px 36px;
  background: #fbfaf7;
  border: 1px solid #d8d0c7;
  color: #24211e;
  text-align: left;
}

.coffee-mypage-login-message p {
  margin: 0 0 26px !important;
  color: #6f675f !important;
  font-size: 15px;
  line-height: 2 !important;
}

.coffee-mypage-login-message::before {
  content: "My Coffee Profile";
  display: block;
  margin-bottom: 14px;
  color: #6b4328;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.coffee-mypage-login-message::after {
  content: "ログインして記録すると、飲んだ国・焙煎度・味の傾向をマイページで確認できます。";
  display: block;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #d8d0c7;
  color: #9a9188;
  font-size: 13px;
  line-height: 1.8;
}

.coffee-mypage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.coffee-mypage-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 13px 22px;
  border: 1px solid #151313;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.coffee-mypage-actions a:first-child {
  background: #151313;
  color: #fff !important;
}

.coffee-mypage-actions a:last-child {
  background: transparent;
  color: #151313 !important;
  border-color: #d8d0c7;
}

.coffee-mypage-actions a:hover {
  background: #6b4328;
  border-color: #6b4328;
  color: #fff !important;
}

@media screen and (max-width: 767px) {
  .coffee-mypage-login-message {
    margin: 28px auto;
    padding: 34px 22px;
  }

  .coffee-mypage-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .coffee-mypage-actions a {
    width: 100%;
  }
}

/* =====================================================
   MY BEST CUPS
===================================================== */

.ct-bestcup-box {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #ebe5dd;
}

.ct-bestcup-current {
  margin-bottom: 8px;
  color: #6b4328;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.ct-bestcup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ct-bestcup-form button {
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid #ddd4ca;
  border-radius: 999px;
  background: #fff;
  color: #5f554d;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}

.ct-bestcup-form button:hover {
  border-color: #6b4328;
  background: #6b4328;
  color: #fff;
}

.ct-bestcup-form button.clear {
  color: #9d948b;
}

/* =====================================================
   MY BEST CUPS 上部表示
===================================================== */

.coffee-mypage-bestcups {
  margin: 56px 0;
}

.coffee-bestcups-heading {
  margin-bottom: 24px;
}

.coffee-bestcups-heading span {
  display: inline-block;
  margin-bottom: 8px;
  color: #8d7b6d;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.coffee-bestcups-heading h3 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.4;
}

.coffee-bestcups-heading p {
  margin: 0;
  color: #7d746b;
}

.coffee-bestcups-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.coffee-bestcup-card {
  padding: 20px;
  border: 1px solid #e7dfd5;
  border-radius: 20px;
  background: #fcfaf7;
}

.coffee-bestcup-rank {
  margin-bottom: 14px;
  color: #6b4328;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.coffee-bestcup-card h4 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.4;
}

.coffee-bestcup-beans {
  margin: 0 0 4px;
  color: #5d544c;
  font-size: 14px;
}

.coffee-bestcup-product {
  margin: 0 0 12px;
  color: #8a8077;
  font-size: 13px;
}

.coffee-bestcup-date {
  color: #9d948b;
  font-size: 12px;
}

.coffee-bestcup-empty {
  color: #9d948b;
  font-size: 13px;
}

@media (max-width: 767px) {

  .coffee-bestcups-grid {
    grid-template-columns: 1fr;
  }

}

/* MY BEST：選択中の順位を強調 */
.ct-bestcup-box .ct-bestcup-current {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  background: #1b1714;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.ct-bestcup-box:has(.ct-bestcup-current) .ct-bestcup-form button {
  opacity: .55;
}

.ct-bestcup-box:has(.ct-bestcup-current) .ct-bestcup-form button:hover {
  opacity: 1;
}

/* MY BEST #1 のとき1位ボタンを強調 */
.ct-bestcup-current:contains("MY BEST #1") {
  background: #1b1714;
}