/* =========================================================
   Azami Comments
   画像なし・見出し + テキスト + コメントフォーム構成
========================================================= */

.azami-comment-board {
  margin-top: 48px;
}

/* テーマ見出しのサイズ・余白は変えず、左線だけピンク寄せ */
.azami-comment-board > .c-secTitle {
  border-left-color: #ee8eaf !important;
}

.azami-comment-board > .c-secTitle::before,
.azami-comment-board > .c-secTitle::after {
  background-color: #ee8eaf !important;
  border-color: #ee8eaf !important;
}

.azami-comment-lead {
  margin: 12px 0 24px;
  color: #5e4a52;
  font-size: 15px;
  line-height: 1.9;
}

/* 投稿フォームの外枠（初期配置のみ） */
.azami-comment-formBox {
  margin: 0 0 34px;
}

/* 初期フォーム・返信フォーム共通 */
.azami-comment-board .comment-respond {
  position: relative;
  padding: 26px 28px 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 35%, rgba(255, 255, 255, 0.92) 0, rgba(255, 255, 255, 0.42) 30%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(135deg, #fff8fb 0%, #fff1f6 100%);
  border: 1px solid #f2aac0;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(205, 102, 139, 0.10);
}

.azami-comment-board .comment-reply-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 14px;
  color: #dc5f8c;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

/* 「コメントを投稿する」の左アイコン */
.azami-comment-board .comment-reply-title::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 2px;
  background: url("images/comment-title-icon.png") no-repeat center center;
  background-size: contain;
  flex: 0 0 24px;
}

.azami-comment-board .comment-reply-title small {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.azami-comment-board #cancel-comment-reply-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid #efd0da;
  border-radius: 999px;
  background: #fff;
  color: #aa637c;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 7px rgba(126, 71, 91, .06);
}

.azami-comment-board .azami-comment-form {
  margin: 0;
}

.azami-comment-board .azami-form-row {
  margin: 0 0 16px;
}

.azami-comment-board label {
  display: inline-block;
  margin: 0 0 8px;
  color: #3f3338;
  font-size: 14px;
  font-weight: 700;
}

.azami-comment-board .required {
  color: #dd6f95;
}

.azami-comment-board textarea,
.azami-comment-board input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,0.96);
  border: 1px solid #efbfcd;
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(126, 71, 91, 0.05);
  color: #4c3f45;
  font-size: 14px;
  line-height: 1.7;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.azami-comment-board textarea {
  min-height: 104px;
  padding: 12px 14px;
  resize: vertical;
}

.azami-comment-board input[type="text"] {
  max-width: 520px;
  height: 42px;
  padding: 8px 13px;
}

/* ニックネーム欄を本文欄と同じ縦並びにする */
.azami-comment-board .comment-form-author {
  display: block !important;
  margin: 0 0 16px !important;
}

.azami-comment-board .comment-form-author label {
  display: block !important;
  margin: 0 0 8px !important;
}

.azami-comment-board .comment-form-author input[type="text"] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

.azami-comment-board textarea::placeholder,
.azami-comment-board input[type="text"]::placeholder {
  color: #b8a4ad;
}

.azami-comment-board textarea:focus,
.azami-comment-board input[type="text"]:focus {
  outline: none;
  background: #fff;
  border-color: #e4779c;
  box-shadow: 0 0 0 4px rgba(228, 119, 156, 0.13);
}

.azami-comment-board .form-submit {
  margin: 20px 0 0;
  text-align: center;
}

.azami-comment-board .azami-submit,
.azami-comment-board input[type="submit"] {
  min-width: 240px;
  min-height: 44px;
  padding: 10px 28px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ed7fa4 0%, #d94f83 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  box-shadow: 0 10px 18px rgba(216, 79, 131, .22);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.azami-comment-board .azami-submit::before {
  content: "✎";
  margin-right: 6px;
}

.azami-comment-board input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 22px rgba(216, 79, 131, .28);
  opacity: .96;
}

/* コメント一覧 */
.azami-comment-listHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 34px 0 14px;
}

.azami-comment-listTitle {
  margin: 0;
  color: #4f3e46;
  font-size: 18px;
  font-weight: 700;
}

.azami-comment-listTitle::before {
  content: "💬";
  margin-right: 6px;
  font-size: 16px;
}

.azami-comment-listTitle span {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f7e4eb;
  color: #a65c78;
  font-size: 12px;
  vertical-align: middle;
}

.azami-comment-list,
.azami-comment-list .children {
  margin: 0;
  padding: 0;
  list-style: none;
}

.azami-comment-list .children {
  margin: 14px 0 0 56px;
  padding-left: 18px;
  border-left: 1px dashed #efadc2;
}

.azami-comment-list .children > .azami-comment-item:first-child {
  margin-top: 0;
}

.azami-comment-item {
  margin: 0 0 14px;
}

.azami-comment-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid #f0dce3;
  border-radius: 16px;
  box-shadow: 0 5px 14px rgba(126, 71, 91, .06);
}

.azami-comment-avatar {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* 一般ユーザーは共通アイコン画像をそのまま表示 */
.azami-comment-avatarImage {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* 管理者コメントはSWELL/WordPress側の通常アバターを使用 */
.azami-comment-avatar.is-admin img,
.azami-comment-adminAvatar {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 3px 8px rgba(126, 71, 91, .14);
}

.azami-comment-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
}

.azami-comment-author {
  color: #4c3b43;
  font-size: 14px;
  font-weight: 700;
}

.azami-comment-date {
  margin-left: 10px;
  color: #a39099;
  font-size: 12px;
}

.azami-comment-date a {
  color: inherit;
  text-decoration: none;
}

.azami-comment-awaiting {
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff7df;
  color: #9b7634;
  font-size: 13px;
}

.azami-comment-body {
  color: #55484e;
  font-size: 14px;
  line-height: 1.9;
}

.azami-comment-body p {
  margin: 0 0 .8em;
}

.azami-comment-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.azami-comment-reaction,
.azami-comment-footer a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #efd0da;
  border-radius: 999px;
  background: #fff;
  color: #aa637c;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 7px rgba(126, 71, 91, .05);
}

.azami-comment-reaction {
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.azami-comment-reaction:hover,
.azami-comment-footer a:hover {
  transform: translateY(-1px);
}

.azami-comment-reactionIcon {
  color: #e26e95;
  font-size: 14px;
  line-height: 1;
}

.azami-comment-reactionCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  color: #d55f87;
}

.azami-comment-reaction.is-reacted {
  background: #fff5f8;
  border-color: #e9b6c8;
  color: #c75f84;
}

.azami-comment-reaction.is-reacted .azami-comment-reactionIcon {
  color: #d95a87;
}

.azami-comment-reaction.is-loading,
.azami-comment-reaction:disabled {
  opacity: .72;
  cursor: wait;
  transform: none;
}

.azami-comment-footer a::before {
  content: "↩";
}

.azami-comment-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.azami-comment-nav a {
  color: #b35d7b;
  font-weight: 700;
  text-decoration: none;
}

/* スマホ */
@media (max-width: 768px) {
  .azami-comment-board .comment-respond {
    padding: 22px;
  }

  .azami-comment-board .comment-reply-title::before {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .azami-comment-board input[type="text"] {
    max-width: 100%;
  }

  .azami-comment-list .children {
    margin-left: 22px;
    padding-left: 12px;
  }

  .azami-comment-card {
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 16px;
  }

  .azami-comment-avatarImage,
  .azami-comment-avatar.is-admin img,
  .azami-comment-adminAvatar {
    width: 44px !important;
    height: 44px !important;
  }

  .azami-comment-header {
    display: block;
  }

  .azami-comment-date {
    display: block;
    margin: 3px 0 0;
  }

  .azami-comment-board .comment-reply-title {
    font-size: 18px;
  }

  .azami-comment-board input[type="submit"] {
    width: 100%;
    min-width: 0;
  }
}