@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/
    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* =========================================================
   共通変数
========================================================= */
:root {
  --cc-color-heading: #1E2939;
  --cc-color-text: #364153;
  --cc-color-muted: #6d7b72;
  --cc-color-border: #e2e8e0;
  --cc-card-shadow: 0 6px 18px rgba(31, 56, 40, 0.06);
  --cc-green: #00A63E;
  --cc-green-hover: #008F36;
}

/* =========================================================
   共通：ページ全体の幅・中央寄せ
   使用箇所：トップ画面／投稿一覧／投稿フォーム／投稿確認／
             投稿完了／投稿詳細／投稿修正／投稿修正確認／
             マイデータ／登録情報変更
========================================================= */
.cc-recent-posts,
.history-section,
#cc-post-form,
.mw_wp_form_complete #cc-post-form,
.cc-complete-page,
.cc-detail-page {
  max-width: 520px;
  margin: 0 auto;
  font-family: inherit;
  box-sizing: border-box;
}

/* =========================================================
   共通：白いセクションカード
   使用箇所：トップ画面／投稿一覧／投稿フォーム／投稿詳細／
　　　　　　 修正フォーム／マイデータ／登録情報変更
========================================================= */
.cc-recent-posts__card,
.history-empty,
.post-item-wrap,
#cc-post-form .cc-form-section,
.cc-detail-page .cc-form-section {
  background: #fff;
  border: 1px solid var(--cc-color-border);
  border-radius: 18px;
  box-shadow: var(--cc-card-shadow);
}

/* =========================================================
   共通：セクション見出し（緑背景の見出し）
   使用箇所：投稿フォーム／投稿詳細／修正フォーム／登録情報変更
========================================================= */
#cc-post-form .cc-section-title,
.cc-detail-page .cc-section-title {
  all: unset;
  display: block;
  box-sizing: border-box;
  margin: 0 calc(var(--cc-card-x) * -1) 16px;
  padding: 10px 14px;
  background: #F0FDF4;
  color: #016630;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  border-radius: 18px 18px 0 0;
}
.post_content h3.cc-section-title::before {
  display: none !important;
}
/* =========================================================
   共通：フィールド・ラベル
   使用箇所：投稿フォーム／投稿詳細／修正フォーム
========================================================= */
#cc-post-form .cc-field,
.cc-detail-page .cc-field {
  margin-bottom: 16px;
}

#cc-post-form .cc-field:last-child,
.cc-detail-page .cc-field:last-child {
  margin-bottom: 0;
}

#cc-post-form .cc-field-label,
#cc-post-form .cc-photo-label,
.cc-detail-page .cc-field-label {
  display: block;
  margin-bottom: 7px !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: #364153;
}

#cc-post-form .cc-control p {
  margin: 0;
  padding: 0;
}

#cc-post-form .cc-control p:empty {
  display: none;
}

#cc-post-form .cc-control br {
  display: none;
}
/* =========================================================
   共通：被害の種類・程度の縦並び表示
   使用箇所：投稿確認画面／投稿詳細／投稿修正確認
========================================================= */
.cc-damage-confirm-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cc-damage-confirm-row {
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2ef;
}

.cc-damage-confirm-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cc-damage-confirm-label {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #3b4a41;
}

.cc-damage-confirm-value {
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--cc-color-heading);
}

.cc-damage-confirm-value:last-child {
  margin-bottom: 0;
}

/* =========================================================
   共通：差し戻し理由ボックス
   使用箇所：投稿一覧／投稿詳細／投稿修正／投稿修正確認
========================================================= */
.post-reason-box,
.cc-detail-reason-box {
  padding: 10px 12px;
  background: #FEFCE8;
  border: 1px solid #FFF085;
  border-radius: 12px;
}

.post-reason-label,
.cc-detail-reason-box .post-reason-label {
  margin-bottom: 3px;
  font-size: 12px;
  font-weight: 700;
  color: #894B00;
}

.post-reason-text,
.cc-detail-reason-box .post-reason-text {
  font-size: 13px;
  line-height: 1.6;
  color: #894B00;
}

/* =========================================================
   共通：確認モーダル
   使用箇所：投稿フォーム（すべて消す）／投稿詳細（削除確認）
　　　　　　　／修正フォーム（削除確認）
========================================================= */
.cc-reset-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 55, 0.5);
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cc-reset-modal-overlay.is-visible {
  display: flex;
}

.cc-reset-modal {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.cc-reset-modal-text {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--cc-color-heading);
  line-height: 1.6;
  text-align: center;
}

.cc-reset-modal-actions {
  display: flex;
  gap: 10px;
}

.cc-reset-modal-actions button {
  flex: 1;
  min-height: 44px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.cc-reset-modal-cancel {
  border: 1px solid #cfdacf;
  background: #fff;
  color: #3d4d43;
}

.cc-reset-modal-ok {
  border: none;
  background: var(--cc-green);
  color: #fff;
}

.cc-reset-modal-ok:hover {
  background: var(--cc-green-hover);
}

/* =========================================================
   共通：収量バッジ（ピル型ラベル）
   使用箇所：トップ画面／投稿一覧
========================================================= */
.cc-recent-post-item__yield-badge,
.post-yield-badge {
  display: inline-block;
  min-width: 54px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

/* =========================================================
   共通：緑のボタン（送信・修正）
   使用箇所：投稿フォーム／投稿詳細／修正フォーム/登録情報変更
========================================================= */
#cc-post-form .cc-form-actions input[type="submit"]:not(.cancel):not(.mwform-back-button),
#cc-post-form .cc-form-actions button[type="submit"]:not(.cancel):not(.mwform-back-button),
#cc-post-form .cc-form-actions .mwform-submit-button:not(.cancel):not(.mwform-back-button),
#cc-post-form .cc-form-actions .mwform-confirm-button:not(.cancel):not(.mwform-back-button),
.cc-detail-edit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  background-color: var(--cc-green);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 166, 62, 0.25);
}

#cc-post-form .cc-form-actions input[type="submit"]:not(.cancel):not(.mwform-back-button):hover,
#cc-post-form .cc-form-actions button[type="submit"]:not(.cancel):not(.mwform-back-button):hover,
#cc-post-form .cc-form-actions .mwform-submit-button:not(.cancel):not(.mwform-back-button):hover,
#cc-post-form .cc-form-actions .mwform-confirm-button:not(.cancel):not(.mwform-back-button):hover,
.cc-detail-edit-button:hover {
  background-color: var(--cc-green-hover);
  color: #fff;
  text-decoration: none;
}

/* 確認する／投稿する／修正するボタンの紙飛行機アイコン（投稿フォームのみの見た目） */
#cc-post-form .cc-form-actions input[type="submit"]:not(.cancel):not(.mwform-back-button),
#cc-post-form .cc-form-actions button[type="submit"]:not(.cancel):not(.mwform-back-button),
#cc-post-form .cc-form-actions .mwform-submit-button:not(.cancel):not(.mwform-back-button),
#cc-post-form .cc-form-actions .mwform-confirm-button:not(.cancel):not(.mwform-back-button),
.cc-detail-edit-button{
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2218%22%20height%3D%2218%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M22%202L11%2013%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3Cpath%20d%3D%22M22%202L15%2022L11%2013L2%209L22%202Z%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: calc(50% - 40px) center;
  padding-left: 26px;
}

#cc-post-form .cc-form-actions,
.cc-detail-page .cc-form-actions {
  padding: 0 8px;
}

.cc-complete-page .cc-complete-card {
  padding: 18px 26px 20px;
}

/* =========================================================
   共通：フローティングボタンの土台（sentinel/placeholder）
   使用箇所：投稿フォーム／投稿詳細／修正フォーム
========================================================= */
#cc-post-form .cc-submit-button-sentinel,
#cc-post-form .cc-submit-button-placeholder,
.cc-detail-page .cc-submit-button-sentinel,
.cc-detail-page .cc-submit-button-placeholder {
  height: 0;
}

#cc-post-form .cc-form-actions .cc-floating-submit-target.is-floating,
.cc-detail-page .cc-form-actions .cc-detail-edit-button.is-floating {
  position: fixed;
  bottom: calc(var(--cc-footer-space, 64px) + 12px);
  z-index: 400;
  margin: 0;
}

/* =========================================================
   トップ画面（固有スタイル）
========================================================= */
.cc-recent-posts__card {
  padding: 18px 16px;
}

.cc-recent-posts__title {
  margin: 0 0 12px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--cc-color-heading);
}

.cc-recent-posts__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cc-recent-posts__empty {
  margin: 0;
  padding: 16px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--cc-color-muted);
  text-align: center;
}

.cc-recent-post-item {
  padding: 14px 16px;
  background: #F8FAFC;
  border-radius: 14px;
}

.cc-recent-post-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cc-recent-post-item__location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cc-color-text);
}

.cc-recent-post-item__pin {
  width: 16px;
  height: 16px;
  color: var(--cc-color-muted);
}

.cc-recent-post-item__date {
  font-size: 13px;
  color: var(--cc-color-muted);
}

.cc-recent-post-item__middle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.cc-recent-post-item__nickname {
  font-size: 16px;
  font-weight: 700;
  color: var(--cc-color-heading);
}

.cc-recent-post-item__damage {
  font-size: 13px;
  color: var(--cc-color-muted);
}

@media (max-width: 480px) {
  .cc-recent-posts__card {
    padding: 16px 14px;
  }

  .cc-recent-post-item {
    padding: 12px 14px;
  }
}

/* =========================================================
   投稿一覧（固有スタイル）
========================================================= */
#cc-post-form .cc-form-intro {
  margin-bottom: 18px;
}

.history-section {
  margin: 0 auto 28px;
}

.history-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.history-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--cc-color-heading);
}

.history-count {
  margin-bottom: 4px;
  font-size: 13px;
  color: #6A7282;
}

.history-count__num {
  font-weight: 700;
  color: #6A7282;
}

.history-note {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--cc-color-heading);
}

.history-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--cc-color-muted);
  font-size: 14px;
}

.post-item {
  display: flex;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.post-thumbnail {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
  background: #f1f5f4;
}

.post-body {
  flex: 1;
  min-width: 0;
}

.post-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-date {
  font-size: 15px;
  font-weight: 700;
  color: var(--cc-color-heading);
}

.post-chevron {
  color: #b7c2bc;
  font-size: 18px;
  line-height: 1;
}

.post-field {
  margin-top: 2px;
  font-size: 13px;
  color: #4A5565;
}

.post-work {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 400;
  color: #4A5565;
}

.post-comment {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #4A5565;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-comment--empty {
  color: #94A3B8;
}

.post-item-wrap {
  margin-bottom: 12px;
  padding: 14px;
}

.post-item-wrap:last-child {
  margin-bottom: 0;
}

.post-reason-box {
  margin-top: 10px;
}

@media (max-width: 480px) {
  .post-item {
    padding: 12px;
  }

  .post-thumbnail {
    width: 76px;
    height: 76px;
  }
}

.post-date-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.post-status {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  color: #4A5565;
}

.post-status-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* 公開済：緑のチェックアイコン */
.post-status--published .post-status-icon {
  color: #00A63E;
}

/* 確認中：虫眼鏡アイコン（圃場名と同じ文字色） */
.post-status--pending .post-status-icon {
  color: #4A5565;
}

/* =========================================================
   投稿フォーム（固有スタイル）
========================================================= */
#weather_damage_block .mwform-checkbox-field,
#pest_damage_block .mwform-checkbox-field,
#beast_damage_block .mwform-checkbox-field {
  display: block;
  margin-bottom: 12px;
}

#weather_damage_block .mwform-checkbox-field label,
#pest_damage_block .mwform-checkbox-field label,
#beast_damage_block .mwform-checkbox-field label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

#weather_damage_block input[type="checkbox"],
#pest_damage_block input[type="checkbox"],
#beast_damage_block input[type="checkbox"] {
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-block !important;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  width: auto !important;
  height: auto !important;
  margin: 0 6px 0 0 !important;
}

#weather_damage_block .cc-weather-damage-select,
#pest_damage_block .cc-pest-damage-select,
#beast_damage_block .cc-beast-damage-select {
  display: none;
  margin: -4px 0 12px 24px;
  padding: 10px;
  border-radius: 14px;
}

#weather_damage_block .cc-weather-damage-select.is-active,
#pest_damage_block .cc-pest-damage-select.is-active,
#beast_damage_block .cc-beast-damage-select.is-active {
  display: block;
}

#weather_damage_block .cc-weather-damage-select select,
#pest_damage_block .cc-pest-damage-select select,
#beast_damage_block .cc-beast-damage-select select {
  min-width: 160px;
  padding: 6px 8px;
}

#weather_damage_block .cc-weather-damage-other-text,
#pest_damage_block .cc-pest-damage-other-text,
#beast_damage_block .cc-beast-damage-other-text,
#cc-post-form .cc-other-text {
  margin-bottom: 8px;
}

#weather_damage_block .cc-weather-damage-other-text input[type="text"],
#pest_damage_block .cc-pest-damage-other-text input[type="text"],
#beast_damage_block .cc-beast-damage-other-text input[type="text"] {
  max-width: 320px;
  width: 100%;
  padding: 6px 8px;
}

#cc-post-form {
  padding: 20px 0 40px;
  color: #1f2a24;
}

#cc-post-form *,
#cc-post-form *::before,
#cc-post-form *::after {
  box-sizing: border-box;
}

#cc-post-form .cc-form-lead,
#cc-post-form .cc-field-label,
#cc-post-form .cc-photo-label,
#cc-post-form .cc-sub-label,
#cc-post-form .cc-section-note,
#cc-post-form .mwform-checkbox-field label,
#cc-post-form input,
#cc-post-form textarea,
#cc-post-form select {
  color: #364153;
}

#cc-post-form .cc-form-section {
  --cc-card-x: 16px;
  margin-bottom: 16px;
  padding: 0 var(--cc-card-x) 28px;
  overflow: hidden;
}

#cc-post-form .cc-form-section-main {
  padding-top: 18px;
  overflow: visible;
}

#cc-post-form .cc-form-section-detail .cc-section-title {
  margin: 24px calc(var(--cc-card-x) * -1) 16px;
  border-radius: 0;
}

#cc-post-form .cc-form-section-detail .cc-section-title:first-child {
  margin-top: 0;
  border-radius: 18px 18px 0 0;
}

#cc-post-form .cc-section-note {
  margin: -8px 0 14px;
  font-size: 12px;
  line-height: 1.6;
  color: #364153;
}

#cc-post-form .cc-sub-label {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #3b4a41;
}

#cc-post-form .cc-required {
  display: inline;
  margin-left: 4px;
  color: #FF0000;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  vertical-align: baseline;
}

#cc-post-form input[type="text"],
#cc-post-form input[type="email"],
#cc-post-form input[type="tel"],
#cc-post-form input[type="number"],
#cc-post-form input[type="url"],
#cc-post-form input[type="search"],
#cc-post-form input[type="password"],
#cc-post-form input[type="date"],
#cc-post-form textarea,
#cc-post-form select {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #d7dfd6;
  border-radius: 13px;
  background: #fff;
  color: #1f2a24;
  font-size: 15px;
  line-height: 1.5;
  outline: none;
}

#cc-post-form input[size],
#cc-post-form textarea[cols] {
  width: 100% !important;
  max-width: 100% !important;
}

#cc-post-form textarea {
  min-height: 128px;
  resize: vertical;
}

#cc-post-form input[type="text"]:focus,
#cc-post-form input[type="email"]:focus,
#cc-post-form input[type="tel"]:focus,
#cc-post-form input[type="number"]:focus,
#cc-post-form input[type="date"]:focus,
#cc-post-form input[type="password"]:focus,
#cc-post-form textarea:focus,
#cc-post-form select:focus {
  border-color: #2f8f5b;
  box-shadow: 0 0 0 3px rgba(47, 143, 91, 0.14);
  background: #fbfffc;
}

#cc-post-form .cc-help-link {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
}

#cc-post-form .cc-help-link a {
  color: #609CFF;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#cc-post-form .cc-photo-upload-item {
  border: none;
  padding: 0;
  background: transparent;
}

#cc-post-form input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #d7dfd6;
  border-radius: 13px;
  background: #fff;
  font-size: 14px;
}

#cc-post-form .mwform-checkbox-field label {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 26px;
  font-size: 14px;
  line-height: 1.6;
  cursor: pointer;
}

#cc-post-form input[type="checkbox"] {
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-block !important;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  margin: 3px 0 0 !important;
  accent-color: #2f8f5b;
}

#cc-post-form .error {
  margin-top: 5px;
  color: #d93025;
  font-size: 12px;
  line-height: 1.5;
}

#cc-post-form .cc-weather-damage-select .error,
#cc-post-form .cc-pest-damage-select .error,
#cc-post-form .cc-beast-damage-select .error {
  margin-top: 2px;
  color: #FF0000;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

#cc-post-form .cc-form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0 0;
}

#cc-post-form .cancel,
#cc-post-form .mwform-back-button {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfdacf !important;
  border-radius: 12px;
  background: #fff !important;
  background-image: none !important;
  color: #3d4d43 !important;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(31, 56, 40, 0.14) !important;
  position: static !important;
}

#cc-post-form .cc-form-title {
  all: unset;
  display: block;
  box-sizing: border-box;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--cc-color-heading);
}

#cc-post-form .cc-form-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

#cc-post-form .cc-form-reset-link {
  flex-shrink: 0;
  border: none;
  background: transparent;
  padding: 0;
  color: var(--cc-color-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

#cc-post-form .cc-form-reset-link:hover {
  color: var(--cc-color-text);
}

/* 写真アップロード：タップ型の枠 */
#cc-post-form .cc-photo-dropzone {
  position: relative;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #CBD5E1;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

#cc-post-form .cc-photo-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

#cc-post-form .cc-photo-control-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  z-index: 1;
  text-align: center;
  padding: 0 12px;
}

#cc-post-form .cc-photo-control-icon svg {
  width: 34px;
  height: 34px;
  color: #94A3B8;
}

#cc-post-form .cc-photo-control-text {
  font-size: 14px;
  font-weight: 700;
  color: #64748B;
}

#cc-post-form .cc-photo-dropzone.is-selected {
  border-color: var(--cc-green);
  background: #F0FDF4;
}

#cc-post-form .cc-photo-dropzone.is-selected .cc-photo-control-text {
  color: #016630;
  word-break: break-all;
}

#cc-post-form .cc-photo-remove-button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  pointer-events: auto;
}

#cc_photo_upload_block .cc-photo-upload-item.is-hidden,
#cc-post-form .cc-photo-upload-item.is-hidden {
  display: none;
}

#cc_photo_upload_block .cc-photo-dropzone {
  position: relative;
}

#cc_photo_upload_block .cc-photo-control-visual {
  pointer-events: none;
}

#cc-post-form .cc-photo-upload-item {
  margin-bottom: 12px;
}

#cc-post-form .cc-photo-upload-item:last-child {
  margin-bottom: 0;
}

/* MW WP Form純正の「保持中ファイル」表示（× ファイル名）を非表示にする */
#cc-post-form .cc-photo-control > .mwform-file-delete[data-mwform-file-delete],
#cc-post-form .cc-photo-control .mw-wp-form_image,
#cc-post-form .cc-photo-control > br {
  display: none !important;
}


/* =========================================================
   日付ピッカー
========================================================= */
#ui-datepicker-div.ui-datepicker {
  border: 1px solid #CFEAD8;
  border-radius: 12px;
  padding: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 56, 40, 0.12);
  z-index: 99999 !important;
}

#ui-datepicker-div .ui-datepicker-header {
  border: none;
  border-radius: 10px;
  background: #F0FDF4;
  color: #016630;
}

#ui-datepicker-div .ui-datepicker-title {
  color: #016630;
  font-weight: 700;
}

#ui-datepicker-div .ui-datepicker-prev,
#ui-datepicker-div .ui-datepicker-next {
  top: 6px;
  border-radius: 999px;
  cursor: pointer;
}

#ui-datepicker-div .ui-datepicker-prev:hover,
#ui-datepicker-div .ui-datepicker-next:hover {
  border: none;
  background: #F0FDF4;
}

#ui-datepicker-div .ui-datepicker th {
  color: #016630;
  font-weight: 700;
}

#ui-datepicker-div .ui-state-default {
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--cc-color-text);
  text-align: center;
}

#ui-datepicker-div .ui-state-default:hover {
  background: #F0FDF4;
  color: #016630;
}

#ui-datepicker-div .ui-datepicker-today .ui-state-default {
  border: 1px solid #016630;
  color: #016630;
  font-weight: 700;
}

#ui-datepicker-div .ui-datepicker-current-day .ui-state-default,
#ui-datepicker-div .ui-state-active {
  background: #016630 !important;
  color: #fff !important;
  font-weight: 700;
}

#ui-datepicker-div .ui-datepicker-title select,
#ui-datepicker-div .ui-datepicker-month,
#ui-datepicker-div .ui-datepicker-year {
  background: #fff;
  color: #016630;
  border: 1px solid #CFEAD8;
  border-radius: 6px;
  padding: 4px 6px;
  font-weight: 700;
}

/* 積算開始日の日付ピッカー（farm-setup画面専用の配色） */
/* 積算開始日の日付ピッカー：ヘッダー（オレンジ配色＋矢印の絶対配置の土台） */
#ui-datepicker-div.cc-accum-datepicker .ui-datepicker-header {
  background: #FFEDD4;
  position: relative;
}
#ui-datepicker-div.cc-accum-datepicker .ui-datepicker-title,
#ui-datepicker-div.cc-accum-datepicker th {
  color: #9F2D00;
}

/* Prev/Next：年月表示の左右両端に丸ボタンとして配置 */
#ui-datepicker-div.cc-accum-datepicker .ui-datepicker-prev,
#ui-datepicker-div.cc-accum-datepicker .ui-datepicker-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
}
#ui-datepicker-div.cc-accum-datepicker .ui-datepicker-prev { left: 6px; }
#ui-datepicker-div.cc-accum-datepicker .ui-datepicker-next { right: 6px; }
#ui-datepicker-div.cc-accum-datepicker .ui-datepicker-prev:hover,
#ui-datepicker-div.cc-accum-datepicker .ui-datepicker-next:hover {
  background: #FFDAB3;
}

/*
 * 重要：jQuery UIはアイコン画像スプライトを使う .ui-icon 内に
 * prevText/nextText（矢印文字）を入れるため、display:none にすると
 * 矢印まで消える。ここではスプライトを無効化しつつ文字矢印を見せる。
 */
#ui-datepicker-div.cc-accum-datepicker .ui-datepicker-prev .ui-icon,
#ui-datepicker-div.cc-accum-datepicker .ui-datepicker-next .ui-icon {
  display: block;
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  background: none;      /* 壊れたスプライト画像を消す */
  text-indent: 0;        /* jQuery UIが文字を画面外へ飛ばすのを解除 */
  overflow: visible;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: #9F2D00;
}

/* 年・月ドロップダウンの文字色（ベースの緑を上書き） */
#ui-datepicker-div.cc-accum-datepicker .ui-datepicker-title select,
#ui-datepicker-div.cc-accum-datepicker .ui-datepicker-month,
#ui-datepicker-div.cc-accum-datepicker .ui-datepicker-year {
  color: #9F2D00;
}

/* 今日・選択した日付：枠と文字色を #9F2D00 に統一（ベースの緑を上書き） */
#ui-datepicker-div.cc-accum-datepicker .ui-datepicker-today .ui-state-default {
  background: transparent !important;
  border: 1px solid #9F2D00;
  color: #9F2D00;
  font-weight: 700;
}
#ui-datepicker-div.cc-accum-datepicker .ui-datepicker-current-day .ui-state-default,
#ui-datepicker-div.cc-accum-datepicker .ui-state-active {
  background: transparent !important;
  border: 1px solid #9F2D00 !important;
  color: #9F2D00 !important;
  font-weight: 700;
}

/* 日付ホバー時：背景 #FFEDD4／文字 #9F2D00 */
#ui-datepicker-div.cc-accum-datepicker .ui-state-default:hover {
  background: #FFEDD4 !important;
  color: #9F2D00 !important;
}
/* 積算開始日の日付ピッカー：サイズを拡大 */
#ui-datepicker-div.cc-accum-datepicker {
  width: 320px;
  padding: 14px;
  font-size: 16px;
}
#ui-datepicker-div.cc-accum-datepicker .ui-datepicker-header {
  padding: 8px 4px;
}
#ui-datepicker-div.cc-accum-datepicker .ui-datepicker-title {
  text-align: center;
  margin: 0 40px;
  color: #9F2D00;
  font-size: 18px;
}
#ui-datepicker-div.cc-accum-datepicker .ui-datepicker-title select,
#ui-datepicker-div.cc-accum-datepicker .ui-datepicker-month,
#ui-datepicker-div.cc-accum-datepicker .ui-datepicker-year {
  font-size: 16px;
  padding: 6px 10px;
}
#ui-datepicker-div.cc-accum-datepicker table.ui-datepicker-calendar {
  font-size: 16px;
}
#ui-datepicker-div.cc-accum-datepicker th {
  padding: 8px 4px;
}
#ui-datepicker-div.cc-accum-datepicker td {
  padding: 2px;
}
#ui-datepicker-div.cc-accum-datepicker .ui-state-default {
  padding: 8px;
  text-align: center;
  line-height: 1.2;
}

/* =========================================================
   投稿確認画面（.mw_wp_form_confirm）
========================================================= */
.mw_wp_form_confirm #cc-post-form .cc-required,
.mw_wp_form_confirm #cc-post-form #cc-form-reset-trigger,
.mw_wp_form_confirm #cc-post-form .cc-help-link,
.mw_wp_form_confirm #cc-post-form .cc-section-note {
  display: none !important;
}

.mw_wp_form_confirm .cc-photo-control img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--cc-color-border);
  object-fit: cover;
}

.mw_wp_form_confirm #cc_photo_upload_block .cc-photo-upload-item {
  width: 100%;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.mw_wp_form_confirm #cc_photo_upload_block .cc-photo-upload-item:not(.is-hidden) {
  display: block !important;
}

.mw_wp_form_confirm #cc_photo_upload_block .cc-photo-control {
  width: 100%;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.mw_wp_form_confirm #cc_photo_upload_block .cc-photo-dropzone {
  display: block !important;
  min-height: auto !important;
  height: auto !important;
  max-height: none !important;
  border: none !important;
  background: transparent !important;
  overflow: visible !important;
}

.mw_wp_form_confirm #cc_photo_upload_block input[type="file"],
.mw_wp_form_confirm #cc_photo_upload_block .cc-photo-control-visual,
.mw_wp_form_confirm #cc_photo_upload_block .cc-photo-remove-button {
  display: none !important;
}

.mw_wp_form_confirm #cc_photo_upload_block .cc-photo-control img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto !important;
  max-height: none !important;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid var(--cc-color-border);
  object-fit: contain;
}

.mw_wp_form_confirm #cc_photo_upload_block {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.mw_wp_form_confirm #cc_photo_upload_block .cc-photo-upload-item.cc-has-preview {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  margin-bottom: 14px;
}

.mw_wp_form_confirm #cc_photo_upload_block .cc-photo-upload-item.cc-has-preview.is-hidden {
  display: block !important;
}

.mw_wp_form_confirm #cc_photo_upload_block .cc-photo-control img.cc-photo-preview-cache {
  display: block !important;
  width: 100% !important;
  max-width: 280px;
  height: auto !important;
  max-height: none !important;
  margin: 0 auto 14px;
  border-radius: 14px;
  border: 1px solid var(--cc-color-border);
  object-fit: contain;
}

.mw_wp_form_confirm #cc-post-form .cc-form-section,
.mw_wp_form_confirm #cc-post-form .cc-field,
.mw_wp_form_confirm #cc-post-form .cc-control {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.mw_wp_form_confirm #weather_damage_block > .cc-field-label,
.mw_wp_form_confirm #pest_damage_block > .cc-field-label,
.mw_wp_form_confirm #beast_damage_block > .cc-field-label,
.mw_wp_form_confirm #weather_damage_block > .cc-control.cc-checkbox-area,
.mw_wp_form_confirm #pest_damage_block > .cc-control.cc-checkbox-area,
.mw_wp_form_confirm #beast_damage_block > .cc-control.cc-checkbox-area,
.mw_wp_form_confirm #weather_damage_block .cc-damage-detail,
.mw_wp_form_confirm #pest_damage_block .cc-damage-detail,
.mw_wp_form_confirm #beast_damage_block .cc-damage-detail {
  display: none;
}

/* =========================================================
   投稿完了画面
========================================================= */
.mw_wp_form_complete #cc-post-form,
.cc-complete-page {
  padding: 20px 16px 40px;
  color: var(--cc-color-text);
}

.mw_wp_form_complete #cc-post-form .cc-complete-title,
.cc-complete-page .cc-complete-title {
  margin: 0 0 18px;
  color: var(--cc-color-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.mw_wp_form_complete #cc-post-form .cc-complete-card,
.cc-complete-page .cc-complete-card {
  margin: 0 0 24px;
  padding: 18px 18px 20px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(31, 41, 55, 0.08);
  text-align: center;
}

.cc-complete-page .cc-complete-main-text {
  margin: 0 0 18px;
  color: var(--cc-color-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.cc-complete-page .cc-complete-message {
  margin: 0;
  color: var(--cc-color-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
}

.cc-complete-page .cc-complete-close-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--cc-green);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

.cc-complete-page .cc-complete-close-button:hover {
  background: var(--cc-green-hover);
  color: #fff;
  text-decoration: none;
}

/* =========================================================
   投稿詳細画面（固有スタイル）
========================================================= */
.cc-detail-page {
  padding: 20px 0 100px;
  color: var(--cc-color-text);
}

.cc-detail-page *,
.cc-detail-page *::before,
.cc-detail-page *::after {
  box-sizing: border-box;
}

.cc-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cc-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cc-color-text);
  text-decoration: none;
}

.cc-detail-delete-link {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--cc-color-muted);
  white-space: nowrap;
  cursor: pointer;
}

.cc-detail-delete-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.cc-detail-page .cc-detail-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: var(--cc-color-heading);
  line-height: 1.4;
}

.cc-detail-reason-box {
  margin-bottom: 16px;
}

.cc-detail-value {
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--cc-color-heading);
}

.cc-detail-value:last-child {
  margin-bottom: 0;
}

.cc-detail-photo-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cc-detail-photo {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--cc-color-border);
}

.cc-detail-page .cc-form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0 0;
}

.cc-detail-page .cc-form-section.cc-form-section-main {
  padding-top: 18px;
}

.cc-detail-page .cc-form-section-detail .cc-section-title {
  margin: 24px calc(var(--cc-card-x) * -1) 16px;
  border-radius: 0;
}

.cc-detail-page .cc-form-section-detail .cc-section-title:first-child {
  margin-top: 0;
  border-radius: 18px 18px 0 0;
}

.cc-detail-page .cc-form-section {
  --cc-card-x: 16px;
  padding: 0 var(--cc-card-x) 18px;
  margin-bottom: 16px;
}

/* =========================================================
   投稿修正画面（固有スタイル）
========================================================= */
.cc-revise-header-wrap {
  padding-bottom: 0;
}

/* 修正確認画面では「戻る」「削除する」を非表示にする */
.mw_wp_form_confirm .cc-revise-header-wrap .cc-detail-header {
  display: none;
}

.mw_wp_form_confirm #cc-post-form .cc-control br {
  display: inline;
}

/* =========================================================
   マイデータ（固有スタイル）
   ※カードの白背景・角丸・影・余白は post-item-wrap を流用
========================================================= */
.cc-mydata-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cc-mydata-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--cc-color-heading);
}

.cc-mydata-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #4A5565;
  text-decoration: none;
}

.cc-mydata-edit-icon {
  width: 14px;
  height: 14px;
}

.cc-mydata-list {
  display: flex;
  flex-direction: column;
}

.cc-mydata-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #EEF2EF;
}

.cc-mydata-item--last {
  border-bottom: none;
  padding-bottom: 0;
}

.cc-mydata-item:first-child {
  padding-top: 14px;
}

.cc-mydata-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.cc-mydata-icon svg {
  width: 18px;
  height: 18px;
}

.cc-mydata-icon--gray   { background: #F1F5F9; color: #64748B; }
.cc-mydata-icon--teal   { background: #DCFCE7; color: #00A63E; }
.cc-mydata-icon--blue   { background: #DBEAFE; color: #2563EB; }
.cc-mydata-icon--purple { background: #F3E8FF; color: #9810FA; }
.cc-mydata-icon--orange { background: #FFE2E2; color: #FB2C36; }
.cc-mydata-icon--yellow { background: #FEF9C2; color: #F0B100; }

.cc-mydata-text label {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
  font-weight: 700;
  color: #6A7282;
}

.cc-mydata-text p {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1E2939;
  overflow-wrap: break-word;
  word-break: break-word;
}

.cc-mydata-text {
  flex: 1 1 auto;
  min-width: 0;
}

.cc-mydata-password {
  letter-spacing: 2px;
}

/* お問い合わせカード */
.cc-mydata-contact-card {
  text-align: center;
}

.cc-mydata-contact-card .cc-mydata-card-title {
  text-align: left;
}

.cc-mydata-contact-lead {
  margin: 4px 0 18px;
  font-size: 13px;
  line-height: 1.7;
  color: #4A5565;
  text-align: left;
}

.cc-mydata-contact-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  background: var(--cc-green);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0, 166, 62, 0.25);
  box-sizing: border-box;
}

.cc-mydata-contact-button:hover {
  background: var(--cc-green-hover);
  color: #fff;
}

.cc-mydata-contact-icon {
  width: 16px;
  height: 16px;
}

.cc-mydata-contact-caption {
  margin: 10px 0 16px;
  font-size: 12px;
  color: #94A3B8;
}

.cc-mydata-contact-note {
  padding: 12px 14px;
  background: #FEFCE8;
  border: 1px solid #FFF085;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: #894B00;
  text-align: left;
}

.cc-mydata-logout {
  max-width: 520px;
  margin: 24px auto 24px;
  text-align: center;
}

.cc-mydata-logout a {
  font-size: 14px;
  font-weight: 700;
  color: var(--cc-color-muted);
  text-decoration: none;
}

.cc-mydata-logout a:hover {
  color: #4A5565;
}

/* LINE連携／連携解除ボタン */
.cc-mydata-line-link {
  max-width: 520px;
  margin: 20px auto 0;
}

.cc-mydata-line-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
}

/* 連携する：投稿ボタンなどと同様の緑色 */
.cc-mydata-line-button--link {
  border: none;
  background: var(--cc-green);
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 166, 62, 0.25);
}

.cc-mydata-line-button--link:hover {
  background: var(--cc-green-hover);
  color: #fff;
  text-decoration: none;
}

/* 連携を解除する：キャンセルボタンと同様の白色 */
.cc-mydata-line-button--unlink {
  border: 1px solid #cfdacf;
  background: #fff;
  color: #3d4d43;
  box-shadow: 0 6px 14px rgba(31, 56, 40, 0.14);
}

.cc-mydata-line-button--unlink:hover {
  background: #fff;
  color: #3d4d43;
  text-decoration: none;
}

.cc-md-pop-icon {
	display: inline-flex;
	align-items: center;
	color: #4a90d9; /* 添付の傘の色に合わせて調整 */
}
.cc-md-pop-icon-svg {
	width: 14px;
	height: 14px;
	vertical-align: -2px;
}
/* =========================================================
   登録情報変更
========================================================= */
.cc-readonly-value {
  padding: 11px 13px;
  border-radius: 13px;
  background: #F1F5F9;
  color: #64748B;
  font-size: 15px;
  min-height: 46px;
  display: flex;
  align-items: center;
}

#cc-password-reset-trigger.cc-password-reset-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100%;
  min-height: 46px;
  padding: 12px 16px !important;
  border: 1px solid #cfdacf !important;
  border-radius: 12px;
  background: #fff !important;
  color: #3d4d43 !important;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(31, 56, 40, 0.14) !important;
  box-sizing: border-box;
}

.cc-password-reset-button:hover {
  background: #fff !important;
  color: #3d4d43 !important;
}

.cc-password-reset-button-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
 }

#cc-post-form .cc-field.cc-password-reset-field {
  margin-bottom: -14px;
}

#cc-post-form.cc-info-update-form .cc-form-actions input[type="submit"]:not(.cancel):not(.mwform-back-button),
#cc-post-form.cc-info-update-form .cc-form-actions button[type="submit"]:not(.cancel):not(.mwform-back-button) {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2218%22%20height%3D%2218%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M19%2021H5a2%202%200%200%201-2-2V5a2%202%200%200%201%202-2h11l5%205v11a2%202%200%200%201-2%202Z%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22/%3E%3Cpath%20d%3D%22M17%2021v-8H7v8%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22/%3E%3Cpath%20d%3D%22M7%203v5h8%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E") !important;
  background-position: calc(50% - 40px) center !important;
}

#cc-post-form .cc-form-actions a.cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfdacf !important;
  border-radius: 12px;
  background: #fff !important;
  color: #3d4d43 !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(31, 56, 40, 0.14) !important;
  box-sizing: border-box;
}

#cc-post-form .cc-form-actions a.cancel:hover {
  color: #3d4d43;
  text-decoration: none;
}

.cc-info-update-errors {
  max-width: 520px;
  margin: 0 auto 16px;
  padding: 12px 16px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 12px;
  color: #991B1B;
  font-size: 13px;
  line-height: 1.7;
}
.cc-form-actions .cc-info-update-save-button,
.cc-form-actions .cancel {
  margin-bottom: 0;
}

#cc-post-form .cc-form-actions.cc-info-update-actions {
  gap: 30px;
}

.cc-password-control {
  position: relative;
	margin-bottom: 20px;
}

.cc-password-control input {
  padding-right: 15px !important;
}

.cc-password-control .cc-password-toggle {
  position: absolute !important;
  top: 9px !important;
  right: 0px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #94A3B8;
  cursor: pointer;
  padding: 0;
}

.cc-password-toggle-icon {
  width: 20px;
  height: 20px;
}

.cc-password-control {
  width: 100%;
}

.cc-password-control input.cc-password-input {
  width: 100% !important;
  max-width: 100% !important;
}

#cc-post-form .error.cc-password-error {
  margin-top: 2px;
}

/* 温度入力欄の右端に単位（℃）を表示 */
.cc-input-suffix-wrap {
  position: relative;
}
.cc-input-suffix-wrap input[type="number"] {
  padding-right: 34px;
}
.cc-input-suffix-wrap .cc-input-suffix {
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  color: #64748B;
  font-size: 14px;
  pointer-events: none;
}


/* =========================================================
   スマホ幅の調整
========================================================= */
@media (max-width: 959px) {
  #cc-post-form {
    padding: 16px 0 36px;
  }

  #cc-post-form .cc-form-section,
  .cc-detail-page .cc-form-section {
    --cc-card-x: 14px;
    padding: 0 var(--cc-card-x) 16px;
    border-radius: 16px;
  }

  #cc-post-form .cc-section-title,
  .cc-detail-page .cc-section-title {
    font-size: 17px;
	border-radius: 16px 16px 0 0;
  }

  #cc-post-form input[type="text"],
  #cc-post-form textarea,
  #cc-post-form select {
    font-size: 16px;
  }

  .cc-recent-posts__card {
    padding: 16px 14px;
  }

  .post-item {
    padding: 12px;
  }

  .post-thumbnail {
    width: 76px;
    height: 76px;
  }

  .cc-complete-page {
    padding: 16px 12px 36px;
  }

  .cc-complete-page .cc-complete-title {
    font-size: 20px;
  }

  .cc-complete-page .cc-complete-card {
    padding: 18px 16px 20px;
  }

  .cc-detail-page {
    padding: 28px 0 96px;
  }
}

@media (max-width: 959px) {
  .p-fixBtnWrap {
    bottom: calc(var(--app-footer-h) + env(safe-area-inset-bottom) + 12px) !important;
  }
}

/* =========================================================
   マイデータ（週間天気予報 ＋ 積算温度）
   使用箇所：固定ページ [community_mypage_data]
========================================================= */
#community-mypage-data {
  max-width: 520px;
  margin: 0 auto;
  padding: 8px 0px 40px;
  color: var(--cc-color-text);
  box-sizing: border-box;
}

#community-mypage-data *,
#community-mypage-data *::before,
#community-mypage-data *::after {
  box-sizing: border-box;
}

/* カード共通 */
#community-mypage-data .cc-md-card {
  margin-bottom: 16px;
  padding: 18px 16px 20px;
  background: #fff;
  border: 1px solid var(--cc-color-border);
  border-radius: 18px;
  box-shadow: var(--cc-card-shadow);
}

#community-mypage-data .cc-md-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

#community-mypage-data .cc-md-card-title {
  all: unset;
  display: block;
  box-sizing: border-box;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #1d3427;
}

#community-mypage-data .cc-md-postcode {
  font-size: 13px;
  color: #8a968d;
  white-space: nowrap;
}

#community-mypage-data .cc-md-no-data {
  margin: 6px 0;
  font-size: 14px;
  color: var(--cc-color-muted);
}

/* ---------- 週間天気予報 ---------- */
#community-mypage-data .cc-md-days {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

#community-mypage-data .cc-md-day {
  flex: 0 0 auto;
  width: calc((100% - 30px) / 4);
  min-width: 74px;
  padding: 12px 6px 14px;
  text-align: center;
  background: #f8faf9;
  border: 1px solid #eef2ef;
  border-radius: 14px;
}

#community-mypage-data .cc-md-day.is-today {
  background: #eef6ff;
  border-color: #bcdcff;
  box-shadow: 0 0 0 1px #bcdcff inset;
}

#community-mypage-data .cc-md-day-label {
  font-size: 13px;
  font-weight: 700;
  color: #26352d;
}

#community-mypage-data .cc-md-day-label.is-sun {
  color: #d93025;
}

#community-mypage-data .cc-md-day-label.is-sat {
  color: #1f6feb;
}

#community-mypage-data .cc-md-day-date {
  margin-top: 2px;
  font-size: 12px;
  color: #8a968d;
}

#community-mypage-data .cc-md-day-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 46px;
  margin: 6px 0;
}

/* 天気アイコン（PNG）。画像ごとに実寸・縦横比が異なる（100x100 〜 33x45）。
   表示サイズは PHP 側が実寸から縦横比どおりに算出し width/height 属性で
   出力するため、ここでは上限のみ指定する。
   width/height を固定値にすると実寸の縦横比と合わず画像が伸びる。 */
#community-mypage-data .cc-md-day-icon img {
  max-width: 38px;
  max-height: 38px;
  object-fit: contain; /* 保険。上記だけで歪みは発生しない */
}

#community-mypage-data .cc-md-day-temp {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

#community-mypage-data .cc-md-temp-high {
  color: #e23b3b;
}

#community-mypage-data .cc-md-temp-sep {
  margin: 0 1px;
  color: #b7c0b8;
  font-weight: 400;
}

#community-mypage-data .cc-md-temp-low {
  color: #2f74d0;
}

#community-mypage-data .cc-md-day-pop {
  margin-top: 6px;
  font-size: 12px;
  color: #2f74d0;
}

#community-mypage-data .cc-md-pop-icon {
  margin-right: 2px;
}

/* ---------- 積算温度 ---------- */
#community-mypage-data .cc-mydata-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

#community-mypage-data .cc-mydata-edit-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

#community-mypage-data .cc-md-accum-name {
  all: unset;
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #26352d;
}

#community-mypage-data .cc-md-accum-empty {
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--cc-color-muted);
}

#community-mypage-data .cc-md-accum-period {
  margin: 0 0 16px;
  font-size: 13px;
  color: #8a968d;
}

#community-mypage-data .cc-md-bar-item {
  margin-bottom: 18px;
}

#community-mypage-data .cc-md-bar-item:last-child {
  margin-bottom: 0;
}

#community-mypage-data .cc-md-bar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

#community-mypage-data .cc-md-bar-label {
  font-size: 14px;
  font-weight: 700;
  color: #26352d;
}

#community-mypage-data .cc-md-bar-value {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

#community-mypage-data .cc-md-bar-cur {
  color: #F54900;
}

#community-mypage-data .cc-md-bar-goal {
  color: #F54900;
}

#community-mypage-data .cc-md-bar-unit {
  color: #9aa4ae;
}

#community-mypage-data .cc-md-bar-item.cc-md-bar--effective .cc-md-bar-cur {
  color: #E17100;
}

#community-mypage-data .cc-md-bar-item.cc-md-bar--effective .cc-md-bar-goal {
  color: #E17100;
}

#community-mypage-data .cc-md-bar-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: #FFEDD4;
  overflow: hidden;
}

#community-mypage-data .cc-md-bar-item.cc-md-bar--effective .cc-md-bar-track {
  background: #FEF3C6;
}

#community-mypage-data .cc-md-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fb923c, #f97316);
  transition: width 0.4s ease;
}

#community-mypage-data .cc-md-bar-fill.cc-md-bar--effective {
  background: linear-gradient(90deg, #fcd34d, #fbbf24);
}

#community-mypage-data .cc-md-bar-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 11px;
  color: #9aa4ae;
}

#community-mypage-data .cc-md-scale-pct {
  font-weight: 700;
  color: #6d7b72;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 400px) {
  #community-mypage-data .cc-md-day {
    width: calc((100% - 30px) / 4);
    min-width: 68px;
  }
}

/* =========================================================
   積算温度の設定（farm-setup）
   既存の #cc-post-form デザインを流用し、ラベル色とボタンのみ変更
   使用箇所：固定ページ [farm_setup]
========================================================= */

/* セクション見出し：オレンジ配色（投稿フォームは緑） */
#cc-post-form.cc-accum-form .cc-section-title {
  background: #FFEDD4;
  color: #9F2D00;
}

/* 積算設定トグル */
#cc-post-form.cc-accum-form .cc-accum-toggle-field {
  margin-bottom: 16px;
  padding: 0 4px;
}

#cc-post-form.cc-accum-form .cc-accum-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #26352d;
  cursor: pointer;
}

#cc-post-form.cc-accum-form .cc-accum-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--cc-green);
}

/* 保存ボタン：緑ボタンを流用し、紙飛行機アイコンを無効化してディスクアイコンに */
#cc-post-form.cc-accum-form .cc-form-actions button[type="submit"]:not(.cancel):not(.mwform-back-button) {
  gap: 8px;
  background-image: none;
  padding-left: 0;
  margin-bottom: 20px;
}

#cc-post-form.cc-accum-form .cc-accum-save-icon {
  width: 18px;
  height: 18px;
}

/* キャンセル：白ボタン（リンク要素のため中央寄せを付与） */
#cc-post-form.cc-accum-form .cc-form-actions .cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* エラー表示 */
#cc-post-form.cc-accum-form .farm-setup-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  color: #d93025;
  font-size: 13px;
  line-height: 1.6;
  list-style: none;
}

#cc-post-form.cc-accum-form ul.farm-setup-error {
  padding-left: 12px;
}

/* 日付欄などの入力例テキスト（placeholderが使えないtype="date"用） */
.cc-field-hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #8a968d;
}

@media (max-width: 480px) {
  .cc-detail-page.cc-revise-header-wrap {
    padding-bottom: 0;
  }
}

/* =========================================================
   認証画面（ログイン／新規登録／パスワードリセット）
   使用箇所：ログイン画面／新規登録画面／パスワードリセット画面
========================================================= */

/* ページ全体の背景色（functions.phpのbody_classフィルターでこの3画面のみ付与） */
#body_wrap.cc-auth-body {
background: linear-gradient(180deg, #F0FDF4 0%, #EFF6FF 50%, #DCFCE7 100%) !important;
}
/* フッター背景 */
#body_wrap.cc-auth-body footer,
#body_wrap.cc-auth-body .l-footer__foot {
  background:#DCFCE7 !important;
}
.cc-auth-page {
  display: flex;
  justify-content: center;
  padding: 40px 16px;
  font-family: inherit;
}

.cc-auth-wrap {
  max-width: 420px;
  width: 100%;
}

.cc-auth-eyebrow {
  margin: 0 0 4px;
  color: var(--cc-color-muted);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.cc-auth-title {
  margin: 0 0 10px;
  color: var(--cc-color-heading);
  font-size: 26px;
  font-weight: 800;
  text-align: center;
}

.cc-auth-info {
  padding: 18px 8px 40px;
}

.cc-auth-info-box {
  margin-bottom: 0;
  padding: 12px;
  background: #fff7e6;
  border-left: 6px solid #ffc84d;
  border-radius: 8px;
}

.cc-auth-info-box strong {
  display: block;
  color: #894B00;
  font-size: 14px;
  line-height: 1.6;
}

.cc-auth-info-box ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #A65F00;
  font-size: 13px;
  line-height: 1.7;
}

.cc-auth-info-box p {
  margin: 8px 0 0;
  color: var(--cc-color-muted);
  font-size: 13px;
  line-height: 1.7;
}

.cc-auth-card {
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(22, 66, 34, 0.08);
}

.cc-auth-tabs {
  display: flex;
  gap: 4px;
  margin: 10px 0 24px;
  padding: 4px;
  background: #eceeec;
  border-radius: 12px;
}

.cc-auth-tab {
  flex: 1;
  padding: 10px 0;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--cc-color-muted);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.cc-auth-tab.is-active {
  background: #fff;
  color: var(--cc-green);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.cc-auth-card-body {
  padding: 18px;
}

.cc-auth-line-btn {
  display: block;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 8px;
  background: #00c853;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.cc-auth-line-btn:hover {
  background: #00a844;
  color: #fff;
  text-decoration: none;
}

.cc-auth-form-panel {
  display: none;
}

.cc-auth-form-panel.is-active {
  display: block;
}

/* Edgeでのパスワード表示アイコン重複を防止 */
.cc-password-input::-ms-reveal,
.cc-password-input::-ms-clear {
	display: none;
}
/* パスワード表示切り替え機能利用時、Edge/IE標準の目・クリアアイコンを非表示にする */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
	display: none;
}
/* 認証画面のフォームは共通の #cc-post-form デザインを流用しつつ、
   カード内に収まるよう余白のみ打ち消す */
.cc-auth-card #cc-post-form {
  max-width: none;
  margin: 0;
  padding: 0;
}

#cc-post-form.cc-auth-form .cc-form-actions {
  padding: 0;
  margin-top: 8px;
}

/* ログイン・新規登録・パスワードリセットのボタンはスクロール追従（フローティング）させない */
#cc-post-form.cc-auth-form .cc-form-actions .is-floating,
#cc-post-form.cc-auth-form .cc-submit-button-sentinel,
#cc-post-form.cc-auth-form .cc-submit-button-placeholder {
  position: static !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: auto !important;
  margin: 0 !important;
  height: auto !important;
  width: 100% !important;
}

#cc-post-form.cc-auth-form textarea.cc-auth-textarea {
  min-height: 90px;
}

.cc-auth-helper {
  margin: 6px 0 14px;
  font-size: 13px;
  text-align: right;
}

.cc-auth-helper a {
  color: #2f8b3a;
  text-decoration: none;
}

.cc-auth-helper a:hover {
  text-decoration: underline;
}

.cc-auth-form-title {
  all: unset;
  display: block;
  margin: 0 0 6px;
  color: var(--cc-color-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}

.cc-auth-form-desc {
  margin: 0 0 20px;
  color: var(--cc-color-muted);
  font-size: 14px;
  line-height: 1.6;
}

.cc-auth-back {
  margin: 16px 0 0;
  text-align: right;
  font-size: 14px;
}

.cc-auth-back a {
  color: #0ba14d;
  text-decoration: none;
}

.cc-auth-back a:hover {
  text-decoration: underline;
}

.cc-auth-message {
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.cc-auth-message div + div {
  margin-top: 4px;
}

.cc-auth-message--error {
  background: #ffecec;
  border: 1px solid #f5c6cb;
  color: #8b1b1b;
}

.cc-auth-message--success {
  background: #ecffef;
  border: 1px solid #c6f5d2;
  color: #0b6b2b;
}

.cc-auth-lead {
  margin: 0 0 16px;
  color: var(--cc-color-text);
  font-size: 14px;
  line-height: 1.6;
}

/* パスワードリセットの送信ボタンは紙飛行機アイコンなし（他画面の緑ボタンを流用） */
#cc-post-form.cc-auth-form.cc-auth-form--reset .cc-form-actions button[type="submit"]:not(.cancel):not(.mwform-back-button) {
  background-image: none;
  padding-left: 0;
}

/* ログイン・新規登録ボタンのアイコンを紙飛行機からドア（ログイン）アイコンに変更 */
#cc-post-form.cc-auth-form .cc-form-actions button[type="submit"]:not(.cancel):not(.mwform-back-button) {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2218%22%20height%3D%2218%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M15%203H19C20.1046%203%2021%203.89543%2021%205V19C21%2020.1046%2020.1046%2021%2019%2021H15%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3Cpolyline%20points%3D%2210%2017%2015%2012%2010%207%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3Cline%20x1%3D%2215%22%20y1%3D%2212%22%20x2%3D%223%22%20y2%3D%2212%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: calc(50% - 40px) center;
}

.cc-postcode-address {
    margin-top: 4px;
	font-size: 12px !important;
	color: #475569;
}
.cc-postcode-address--error {
    color: #dc2626;
	font-size: 12px;
}

@media (min-width: 740px) {
  .cc-auth-page {
    padding: 60px;
  }

  .cc-auth-wrap {
    max-width: 480px;
  }
}