/* WordPress をやめたときに足した見た目（style.css は本番のテーマのまま） */

/* 機械の投稿よけ（人には見えない欄） */
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* お問い合わせ */
.midofarm-contact__submit {
  font-size: 18px; display: block; margin: 0 auto; font-weight: 600;
  border: 1px solid #272727; background: #411D02; color: white; padding: 8px 48px; cursor: pointer;
}
.midofarm-contact__submit:disabled { opacity: 0.6; cursor: wait; }
.midofarm-contact__hint { font-size: 13px; margin-top: 4px; color: #6b5a4b; }
.midofarm-contact__message, .midofarm-order__done {
  max-width: 90%; margin: 0 auto 24px; padding: 12px 16px; border: 1px solid #411D02; background: #fff8ef;
}
.midofarm-contact__message.is-error { border-color: #b42318; color: #b42318; background: #fff4f2; }

/* 注文 */
.midofarm-order__loading { width: 100%; text-align: center; padding: 24px 0; color: #6b5a4b; }
.midofarm-order__zip-status.is-error { color: #b42318; }
.midofarm-order__shipping-option { display: block; margin: 4px 0; }
.midofarm-order__confirm-items { margin: 0 0 12px; padding-left: 1.2em; }

/* 成長の記録：記事の写真（WordPress のブロックの見た目に合わせる） */
.singlePage figure.wp-block-image { margin: 0 0 1.5em; }
.singlePage figure.wp-block-image img { max-width: 100%; height: auto; display: block; }
.singlePage p { margin: 0 0 1em; }
.blog_index__more { text-align: center; margin-top: 24px; }
.blog_index__more a { display: inline-block; padding: 8px 32px; border: 1px solid #411D02; color: #411D02; }
.blog_index--all .col-4 { margin-bottom: 32px; }
.blog_index .col-4 img { width: 100%; }

/* ===== 今の見た目のまま整える（2026-11） =====
   残すもの：アーチ形のスライド・縦書きの見出し・筆記体の英字・「Contents 01」と＃見出し・縦線・こげ茶とクリーム */
:root { --mf-brown: #411D02; --mf-brown-2: #64411E; --mf-cream: #faf8f5; --mf-sand: #ebe6df; --mf-line: #d9cfc2; }

/* メニュー：文字が2行に割れないように */
@media screen and (min-width: 960px) {
  .nav_menu_list { gap: 28px; justify-content: flex-end; }
  .nav_menu_item { width: auto; }
  .nav_menu_item a { white-space: nowrap; font-size: 14px; letter-spacing: .06em; position: relative; }
  .nav_menu_item a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--mf-brown); transform: scaleX(0); transition: transform .25s; }
  .nav_menu_item a:hover::after { transform: scaleX(1); }
}

/* トップのバナー（苗木のお知らせ）：アーチの雰囲気にそろえて角を丸め、少し浮かせる */
.mido-hero-banner img { border-radius: 16px; box-shadow: 0 10px 30px rgba(65, 29, 2, .08); }

/* 成長の記録：写真の上をアーチ形にして、トップのスライドと形をそろえる */
.blog_index .col-4 a { display: block; text-decoration: none; transition: transform .25s; }
.blog_index .col-4 a:hover { transform: translateY(-4px); }
.blog_index .col-4 img { border-radius: 50% 50% 8px 8px / 26% 26% 8px 8px; }
.blog_index .col-4 span { display: block; margin-top: 10px; letter-spacing: .08em; }

/* ご注文：カードの角と線をこげ茶の系統に。選んだカードは線で分かるように */
.midofarm-order__card { border-color: var(--mf-line); background: #fff; }
.midofarm-order__card.is-selected { border-color: var(--mf-brown); box-shadow: 0 0 0 1px var(--mf-brown); }
.midofarm-order__card-image { background: var(--mf-sand); border-radius: 50% 50% 0 0 / 22% 22% 0 0; margin: 12px 12px 0; }
.midofarm-order__product-name { color: var(--mf-brown); }
.midofarm-order__btn--next, .midofarm-order__btn--submit { background: var(--mf-brown); border-color: var(--mf-brown); }

/* アクセス：住所と見学の入口 */
.access_index__address { font-size: 14px; color: var(--mf-brown-2); margin-top: 1rem; }
.access_index__cta a {
  display: inline-block; margin-top: 8px; padding: 10px 36px; border: 1px solid var(--mf-brown);
  color: var(--mf-brown); text-decoration: none; letter-spacing: .08em; transition: background .2s, color .2s;
}
.access_index__cta a:hover { background: var(--mf-brown); color: #fff; }

/* お問い合わせ：ほかの段と同じ見出しの形（Contents 05 ／ ＃お問い合わせ ／ 縦線）にそろえる */
.contact_index { padding: 8vw 0; text-align: center; }
.contact_index h4 { font-size: 28px; font-weight: bold; margin: 0; }
.contact_index .line { border-left: 1px solid var(--mf-brown); height: 80px; display: inline-block; margin: 8px auto; }
.contact_index__lead { font-size: 14px; color: var(--mf-brown-2); margin: 16px 0 0; }
.contact_index table { text-align: left; max-width: 760px; }
.contact_index table th { color: var(--mf-brown); font-weight: 500; font-size: 14px; vertical-align: top; padding-top: 18px; }
.contact_index table td input, .contact_index table td select, .contact_index table td textarea {
  background: #fff; border: 1px solid var(--mf-line); border-radius: 6px; padding: 10px 12px; font: inherit; color: #272727;
}
.contact_index table td input:focus, .contact_index table td select:focus, .contact_index table td textarea:focus {
  outline: none; border-color: var(--mf-brown); box-shadow: 0 0 0 3px rgba(65, 29, 2, .08);
}
.midofarm-contact__submit { margin-top: 24px; padding: 12px 64px; letter-spacing: .1em; }
.midofarm-order__products { justify-content: center; }

/* ===== 商品カード・購入の流れ・お問い合わせ・フッター（2026-11 作り直し） ===== */
.mf-script { font-family: "Pinyon Script", cursive; font-weight: 400; }
.mf-tag { display: inline-block; font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 999px; background: var(--mf-brown); color: #fff; margin-left: 6px; vertical-align: 2px; letter-spacing: .04em; }
.mf-tag--soft { background: var(--mf-sand); color: var(--mf-brown); }
.mf-field { display: flex; flex-direction: column; gap: 6px; text-align: left; margin-bottom: 18px; }
.mf-field__label { font-size: 13px; font-weight: 500; color: var(--mf-brown); letter-spacing: .04em; }
.mf-field__hint { font-size: 12px; color: var(--mf-brown-2); margin: 0; }
.mf-field__hint.is-error { color: #b42318; }
.mf-field input, .mf-field select, .mf-field textarea, .mf-select {
  width: 100%; font: inherit; font-size: 16px; color: #272727; background: #fff;
  border: 1px solid var(--mf-line); border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.mf-field input:focus, .mf-field select:focus, .mf-field textarea:focus, .mf-select:focus {
  outline: none; border-color: var(--mf-brown); box-shadow: 0 0 0 3px rgba(65, 29, 2, .1);
}
.mf-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.mf-form__row--3 { grid-template-columns: 1.4fr 1fr .8fr; }
.mf-readonly { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--mf-sand); color: var(--mf-brown); min-height: 48px; font-size: 15px; }
.mf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 32px;
  background: var(--mf-brown); color: #fff; border: 1px solid var(--mf-brown); border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 500; letter-spacing: .08em; cursor: pointer; transition: background .2s, transform .2s;
}
.mf-btn:hover { transform: translateY(-1px); }
.mf-btn--ghost { background: transparent; color: var(--mf-brown); }
.mf-btn--strong { min-width: 260px; }
.mf-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.mf-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }

/* --- 進み具合 --- */
.mf-steps { display: flex; justify-content: center; gap: 0; list-style: none; padding: 0; margin: 32px auto 40px; max-width: 620px; }
.mf-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: #a2958a; position: relative; border: 0 !important; padding: 0 !important; }
.mf-steps li span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--mf-line); background: #fff; font-family: "Roboto", sans-serif; font-style: italic; position: relative; z-index: 1; }
.mf-steps li + li::before { content: ""; position: absolute; top: 17px; right: 50%; width: 100%; border-top: 1px solid var(--mf-line); }
.mf-steps li.is-active, .mf-steps li.is-done { color: var(--mf-brown); }
.mf-steps li.is-active span { background: var(--mf-brown); border-color: var(--mf-brown); color: #fff; }
.mf-steps li.is-done span { border-color: var(--mf-brown); }
.mf-steps li.is-done + li::before, .mf-steps li.is-active::before { border-color: var(--mf-brown); }

/* --- 商品カード（写真の上はアーチ形） --- */
.mf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 320px)); justify-content: center; gap: 28px; }
.mf-card { position: relative; background: #fff; border: 1px solid var(--mf-line); border-radius: 22px; padding: 14px 14px 18px; text-align: left; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s, transform .2s; }
.mf-card__pick { display: flex; flex-direction: column; cursor: pointer; flex: 1; }
.mf-card__check { position: absolute; opacity: 0; pointer-events: none; }
.mf-card:not(.is-soldout):hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(65, 29, 2, .08); }
.mf-card.is-selected { border-color: var(--mf-brown); box-shadow: 0 0 0 2px var(--mf-brown); }
.mf-card__photo { position: relative; aspect-ratio: 1 / 1; border-radius: 50% 50% 14px 14px / 34% 34% 14px 14px; overflow: hidden; background: var(--mf-sand); }
.mf-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.mf-card__noimage { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mf-brown-2); font-size: 13px; }
.mf-card__badge { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .92); color: var(--mf-brown); font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.mf-card__stamp { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(250, 248, 245, .55); font-family: "Pinyon Script", cursive; font-size: 40px; color: var(--mf-brown); }
.mf-card.is-soldout .mf-card__photo img { filter: grayscale(.7); }
.mf-card__body { padding: 16px 6px 4px; }
.mf-card__name { margin: 0; font-size: 20px; color: var(--mf-brown); letter-spacing: .02em; }
.mf-card__unit { display: inline-block; margin-top: 4px; font-size: 12px; color: var(--mf-brown-2); background: var(--mf-sand); border-radius: 999px; padding: 2px 10px; }
.mf-card__price { margin: 10px 0 0; color: var(--mf-brown); }
.mf-card__price b { font-family: "Roboto", sans-serif; font-style: italic; font-size: 26px; font-weight: 500; margin-right: 2px; }
.mf-card__price small { font-size: 12px; color: var(--mf-brown-2); }
.mf-card__desc { margin: 8px 0 0; font-size: 13px; color: var(--mf-brown-2); line-height: 1.7; }
.mf-card__toggle { margin: 16px 6px 0; display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px; border: 1px solid var(--mf-brown); color: var(--mf-brown); font-size: 14px; letter-spacing: .06em; transition: background .2s, color .2s; }
.mf-card__toggle-on { display: none; }
.mf-card.is-selected .mf-card__toggle { background: var(--mf-brown); color: #fff; }
.mf-card.is-selected .mf-card__toggle-on { display: inline; }
.mf-card.is-selected .mf-card__toggle-on::before { content: "✓ "; }
.mf-card.is-selected .mf-card__toggle-off { display: none; }
.mf-card__extras { margin: 14px 6px 0; padding-top: 14px; border-top: 1px dashed var(--mf-line); display: grid; gap: 12px; }
.mf-card__extras .midofarm-order__product-options { display: flex; flex-direction: column; gap: 6px; }
.mf-card__soldout { margin: 16px 6px 0; text-align: center; font-size: 13px; color: var(--mf-brown-2); }
.mf-qty { display: flex; align-items: center; justify-content: space-between; }
.mf-qty__box { display: flex; align-items: center; border: 1px solid var(--mf-line); border-radius: 999px; overflow: hidden; }
.mf-qty__btn { width: 44px; height: 44px; border: 0; background: #fff; color: var(--mf-brown); font-size: 18px; cursor: pointer; }
.mf-qty__btn:hover { background: var(--mf-sand); }
.mf-qty__box input { width: 48px; height: 44px; border: 0; text-align: center; font: inherit; font-size: 16px; -moz-appearance: textfield; }
.mf-qty__box input::-webkit-outer-spin-button, .mf-qty__box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mf-shop__notes { list-style: none; padding: 0; margin: 28px auto 0; max-width: 640px; font-size: 13px; color: var(--mf-brown-2); }
.mf-shop__notes li::before { content: "・"; }
.mf-shop__empty { margin-bottom: 0; }

/* 合計バー（商品を選ぶと画面の下に出る） */
.mf-orderbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(250, 248, 245, .96); backdrop-filter: blur(6px); border-top: 1px solid var(--mf-line); box-shadow: 0 -8px 24px rgba(65, 29, 2, .06); }
.mf-orderbar__inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mf-orderbar__sum { margin: 0; color: var(--mf-brown); font-size: 14px; }
.mf-orderbar__sum b { font-family: "Roboto", sans-serif; font-style: italic; font-size: 22px; font-weight: 500; }
.mf-orderbar__sum small { display: block; font-size: 11px; color: var(--mf-brown-2); }
body.has-orderbar footer { padding-bottom: 96px; }

/* お届け先：左に入力、右にいつも合計 */
.mf-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; text-align: left; }
.mf-checkout__title, .mf-form__tour-title { margin: 8px 0 16px; font-size: 18px; color: var(--mf-brown); font-weight: 500; }
.mf-checkout__title .mf-script, .mf-form__tour-title .mf-script { display: block; font-size: 22px; color: var(--mf-brown-2); line-height: 1.2; }
.mf-checkout__main > .mf-checkout__title:not(:first-child) { margin-top: 28px; }
.mf-pickup { background: var(--mf-sand); color: var(--mf-brown); border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; font-size: 14px; }
.mf-ship { display: grid; gap: 8px; }
.mf-ship__item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--mf-line); border-radius: 12px; padding: 12px 14px; background: #fff; cursor: pointer; }
.mf-ship__item:has(input:checked) { border-color: var(--mf-brown); box-shadow: 0 0 0 1px var(--mf-brown); }
.mf-ship__item span { flex: 1; }
.mf-ship__item b { color: var(--mf-brown); }
.mf-summary { position: sticky; top: 96px; background: #fff; border: 1px solid var(--mf-line); border-radius: 22px; padding: 22px; }
.mf-summary__title { margin: 0 0 12px; font-weight: 500; color: var(--mf-brown); }
.mf-summary__items { list-style: none; padding: 0; margin: 0 0 12px; font-size: 14px; }
.mf-summary__items li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--mf-line); }
.mf-summary__money { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin: 0; font-size: 14px; color: var(--mf-brown-2); }
.mf-summary__money dd { margin: 0; text-align: right; }
.mf-summary__total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--mf-brown); color: var(--mf-brown); }
.mf-summary__total b { font-family: "Roboto", sans-serif; font-style: italic; font-size: 24px; font-weight: 500; }
.mf-summary__note { margin: 4px 0 0; text-align: right; font-size: 11px; color: var(--mf-brown-2); }

/* 確認 */
.mf-confirm { max-width: 720px; margin: 0 auto; text-align: left; }
.mf-confirm .midofarm-order__confirm { background: #fff; border: 1px solid var(--mf-line); border-radius: 22px; padding: 22px 26px; }
.mf-confirm .mf-actions { margin-top: 20px; }
.mf-confirm__note { font-size: 12px; color: var(--mf-brown-2); text-align: center; margin-top: 14px; }

/* 完了 */
.mf-done { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--mf-line); border-radius: 50% 50% 22px 22px / 90px 90px 22px 22px; padding: 64px 32px 32px; text-align: center; }
.mf-done__en { font-family: "Pinyon Script", cursive; font-size: 34px; color: var(--mf-brown-2); margin: 0; }
.mf-done__title { font-size: 24px; color: var(--mf-brown); margin: 4px 0 8px; }
.mf-done__number { margin: 0 0 20px; color: var(--mf-brown-2); }
.mf-done__number b { font-family: "Roboto", sans-serif; color: var(--mf-brown); letter-spacing: .06em; }
.mf-done__steps { text-align: left; counter-reset: d; list-style: none; padding: 0; margin: 0 auto; max-width: 480px; }
.mf-done__steps li { counter-increment: d; position: relative; padding: 0 0 16px 46px; font-size: 14px; color: var(--mf-brown-2); }
.mf-done__steps li::before { content: counter(d); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--mf-brown); color: #fff; display: grid; place-items: center; font-family: "Roboto", sans-serif; font-style: italic; }
.mf-done__steps b { display: block; color: var(--mf-brown); font-size: 15px; }
.mf-done__message { max-width: 520px; margin: 16px auto 0; padding: 14px 18px; border-left: 3px solid var(--mf-brown-2); background: rgba(255,255,255,.6); text-align: left; font-size: 14px; line-height: 1.9; }
.mf-done__note { font-size: 12px; color: var(--mf-brown-2); margin: 8px 0 0; }

/* --- お問い合わせ --- */
.mf-form { max-width: 760px; margin: 40px auto 0; background: #fff; border: 1px solid var(--mf-line); border-radius: 28px; padding: 36px 40px 32px; text-align: left; }
.mf-form__group { border: 0; padding: 0; margin: 0 0 22px; }
.mf-form__group legend { margin-bottom: 10px; padding: 0; }
.mf-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mf-choice__item { position: relative; cursor: pointer; }
.mf-choice__item input { position: absolute; opacity: 0; }
.mf-choice__item span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 8px; border: 1px solid var(--mf-line); border-radius: 999px; font-size: 14px; color: var(--mf-brown); transition: background .2s, color .2s, border-color .2s; text-align: center; }
.mf-choice__item input:checked + span { background: var(--mf-brown); border-color: var(--mf-brown); color: #fff; }
.mf-choice__item input:focus-visible + span { box-shadow: 0 0 0 3px rgba(65, 29, 2, .15); }
.mf-form__tour { background: var(--mf-cream); border: 1px solid var(--mf-line); border-radius: 18px; padding: 18px 20px 16px; margin: 0 0 22px; }
.mf-form__tour .mf-field { margin-bottom: 10px; }
.mf-submit { width: 100%; margin-top: 8px; padding: 0; min-height: 56px; }
.mf-submit span { margin-left: 10px; }
.mf-form__tel { text-align: center; font-size: 13px; color: var(--mf-brown-2); margin: 14px 0 0; }
.mf-form__tel a { color: var(--mf-brown); font-weight: 500; }
.mf-form .midofarm-contact__message { max-width: none; border-radius: 12px; }

/* --- メニューの「ご注文」 --- */
@media screen and (min-width: 960px) {
  .nav_menu_item--order a { background: var(--mf-brown); color: #fff !important; padding: 9px 20px !important; border-radius: 999px; }
  .nav_menu_item--order a::after { display: none; }
}

/* --- フッター（上の辺をハウスのアーチの形に） --- */
footer.mf-footer { position: relative; margin-top: 140px; padding: 72px 24px 28px; background: var(--mf-brown); color: #f3ebe1; text-align: left; }
footer.mf-footer::before { content: ""; position: absolute; left: 50%; top: -60px; transform: translateX(-50%); width: min(1100px, 100%); height: 120px; background: var(--mf-brown); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.mf-footer__inner { position: relative; max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.mf-footer__brand img { max-width: 150px; margin: 0; }
.mf-footer__brand .mf-script { font-size: 20px; color: #d8c4ae; margin: 14px 0 4px; }
.mf-footer__catch { margin: 0; font-size: 14px; letter-spacing: .08em; }
.mf-footer__head { margin: 0 0 12px; font-size: 13px; letter-spacing: .2em; color: #d8c4ae; }
.mf-footer__col p, .mf-footer__col address { margin: 0 0 6px; font-style: normal; font-size: 14px; line-height: 1.8; }
.mf-footer__small { font-size: 12px !important; color: #d8c4ae; }
footer.mf-footer a { color: #fff; display: block; }
.mf-footer__tel { font-family: "Roboto", sans-serif; font-style: italic; font-size: 26px; text-decoration: none; margin-top: 6px; }
.mf-footer__mail { font-size: 14px; margin-bottom: 14px; }
.mf-footer__btn { display: inline-block !important; padding: 9px 22px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px; font-size: 13px; text-decoration: none; }
.mf-footer__btn:hover { background: rgba(255, 255, 255, .12); }
.mf-footer__nav { position: relative; max-width: 1080px; margin: 48px auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18); display: flex; flex-wrap: wrap; gap: 8px 28px; }
.mf-footer__nav a { display: inline !important; font-size: 13px; text-decoration: none; color: #e9dccd !important; }
.mf-footer__copy { position: relative; display: block; max-width: 1080px; margin: 16px auto 0; font-size: 12px; color: #c3ad95; }

/* --- スマホ --- */
@media (max-width: 767px) {
  .mf-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .mf-form__row, .mf-form__row--3 { grid-template-columns: 1fr; }
  .mf-checkout { grid-template-columns: 1fr; }
  .mf-summary { position: static; order: -1; }
  .mf-form { padding: 24px 18px; border-radius: 22px; }
  .mf-choice { grid-template-columns: 1fr; }
  .mf-actions { flex-direction: column-reverse; }
  .mf-actions .mf-btn { width: 100%; }
  .mf-btn--strong { min-width: 0; }
  .mf-orderbar .mf-btn { padding: 0 18px; font-size: 14px; }
  .mf-done { border-radius: 50% 50% 18px 18px / 60px 60px 18px 18px; padding: 48px 20px 24px; }
  footer.mf-footer { margin-top: 100px; padding-top: 48px; text-align: center; }
  footer.mf-footer::before { top: -40px; height: 80px; }
  .mf-footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .mf-footer__brand img { margin: 0 auto; }
  .mf-footer__nav { justify-content: center; }
  .mf-footer__copy { text-align: center; }
}
/* hidden を見た目の display より優先する */
.mf-shop [hidden], .mf-form [hidden], .mf-orderbar[hidden], .mf-done[hidden] { display: none !important; }
.midofarm-order.mf-shop { max-width: 1040px; width: 100%; margin-left: auto; margin-right: auto; }
.mf-orderbar__sum b, .mf-orderbar .mf-btn { white-space: nowrap; }
.mf-orderbar__short { display: none; }
@media (max-width: 767px) {
  .mf-orderbar__long { display: none; }
  .mf-orderbar__short { display: inline; }
  .mf-orderbar__sum { font-size: 12px; }
  .mf-orderbar__sum b { font-size: 20px; }
}

/* --- 購入ページ（/order/） --- */
.mf-orderpage__inner { padding: 140px 0 6vw; }
.mf-orderpage__back { text-align: left; font-size: 13px; margin: 0 0 8px; }
.mf-orderpage__back a { color: var(--mf-brown-2); text-decoration: none; }
.mf-orderpage__lead { font-size: 14px; color: var(--mf-brown-2); line-height: 1.9; }

/* --- トップの商品紹介（押すと購入ページへ） --- */
.mf-card--link { text-decoration: none; color: inherit; cursor: pointer; }
.mf-card--link .mf-card__toggle { background: var(--mf-brown); color: #fff; gap: 8px; }
.mf-showcase__cta { text-align: center; margin: 36px 0 0; }
.mf-showcase__cta .mf-btn { color: #fff; text-decoration: none; }
@media (max-width: 767px) {
  .mf-orderpage__inner { padding-top: 110px; }
}

/* ===== オンラインショップ（一覧・商品・カート・ご購入手続き） ===== */
.mf-btn--sm { min-height: 40px; padding: 0 18px; font-size: 13px; }
a.mf-btn { text-decoration: none; }
a.mf-btn:not(.mf-btn--ghost) { color: #fff; }

/* ヘッダーのカート */
.mf-cartlink { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; margin-right: 8px; color: var(--mf-brown); border-radius: 50%; transition: background .2s; }
.mf-cartlink:hover { background: var(--mf-sand); }
.mf-cartlink__count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--mf-brown); color: #fff; font-size: 11px; line-height: 20px; text-align: center; font-family: "Roboto", sans-serif; }
@media screen and (min-width: 960px) {
  .mf-cartlink { margin-left: 18px; margin-right: 0; }
}

/* 商品カード（低めの形） */
.mf-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; max-width: 980px; margin: 32px auto 0; text-align: left; }
.mf-pgrid--center, .mf-pgrid:has(> .mf-pcard:only-child), .mf-pgrid:has(> .mf-pcard:nth-child(2):last-child) { grid-template-columns: repeat(auto-fit, minmax(220px, 280px)); justify-content: center; }
.mf-pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mf-line); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.mf-pcard:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(65, 29, 2, .08); }
.mf-pcard__photo { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--mf-sand); margin: 10px 10px 0; border-radius: 50% 50% 10px 10px / 30% 30% 10px 10px; overflow: hidden; }
.mf-pcard__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mf-pcard__photo .mf-card__stamp { font-size: 30px; }
.mf-pcard.is-soldout img { filter: grayscale(.7); }
.mf-pcard__body { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 8px; padding: 12px 14px 4px; }
.mf-pcard__name { font-size: 16px; font-weight: 500; color: var(--mf-brown); }
.mf-pcard__unit { justify-self: start; grid-column: 1; font-size: 11px; color: var(--mf-brown-2); background: var(--mf-sand); border-radius: 999px; padding: 1px 9px; }
.mf-pcard__price { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; color: var(--mf-brown); white-space: nowrap; }
.mf-pcard__price b { font-family: "Roboto", sans-serif; font-style: italic; font-size: 20px; font-weight: 500; }
.mf-pcard__price small { display: block; font-size: 10px; color: var(--mf-brown-2); }
.mf-pcard__btn { margin: 10px 14px 14px; min-height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--mf-brown); color: #fff; font-size: 13px; letter-spacing: .08em; }
.mf-pcard.is-soldout .mf-pcard__btn { background: var(--mf-sand); color: var(--mf-brown-2); }

/* ページの上（パンくず・見出し） */
.mf-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--mf-brown-2); margin: 0 0 18px; text-align: left; }
.mf-crumbs a { color: var(--mf-brown-2); text-decoration: none; }
.mf-crumbs a::after { content: "›"; margin-left: 6px; }
.mf-page-title { font-size: 26px; color: var(--mf-brown); font-weight: 500; margin: 0 0 24px; text-align: left; }
.mf-page-title .mf-script { display: block; font-size: 26px; color: var(--mf-brown-2); line-height: 1.1; }

/* 商品ページ */
.mf-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; text-align: left; }
.mf-item__photo { position: relative; aspect-ratio: 1 / 1; border-radius: 50% 50% 20px 20px / 28% 28% 20px 20px; overflow: hidden; background: var(--mf-sand); }
.mf-item__photo img { width: 100%; height: 100%; object-fit: cover; }
.mf-item__name { font-size: 30px; color: var(--mf-brown); margin: 0 0 8px; font-weight: 500; }
.mf-item__badge { position: static; display: inline-block; margin-left: 8px; background: var(--mf-sand); }
.mf-item__price { margin: 16px 0 0; color: var(--mf-brown); }
.mf-item__price b { font-family: "Roboto", sans-serif; font-style: italic; font-size: 34px; font-weight: 500; }
.mf-item__price small { font-size: 12px; color: var(--mf-brown-2); }
.mf-item__desc { margin: 16px 0 0; font-size: 14px; line-height: 1.9; color: #4a3a2c; }
.mf-item__field { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.mf-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mf-pill { position: relative; cursor: pointer; }
.mf-pill input { position: absolute; opacity: 0; }
.mf-pill span { display: inline-flex; align-items: baseline; gap: 6px; min-height: 42px; padding: 9px 18px; border: 1px solid var(--mf-line); border-radius: 999px; color: var(--mf-brown); font-size: 14px; background: #fff; }
.mf-pill small { font-size: 11px; color: var(--mf-brown-2); }
.mf-pill input:checked + span { background: var(--mf-brown); border-color: var(--mf-brown); color: #fff; }
.mf-pill input:checked + span small { color: #e9dccd; }
.mf-item__buttons { display: grid; gap: 10px; margin-top: 26px; }
.mf-item__buttons .mf-btn { width: 100%; }
.mf-item__soldout { margin: 22px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--mf-sand); color: var(--mf-brown); }
.mf-item__notes { list-style: none; padding: 0; margin: 22px 0 0; font-size: 12px; color: var(--mf-brown-2); line-height: 1.9; }
.mf-item__notes li::before { content: "・"; }
.mf-item__ship { margin-top: 12px; font-size: 13px; color: var(--mf-brown); }
.mf-item__ship summary { cursor: pointer; }
.mf-item__ship table { margin-top: 8px; width: 100%; max-width: 320px; border-collapse: collapse; }
.mf-item__ship th, .mf-item__ship td { padding: 4px 6px; border-bottom: 1px dashed var(--mf-line); font-weight: 400; text-align: left; }
.mf-item__ship td { text-align: right; }
.mf-item__missing { text-align: center; padding: 48px 0; }
.mf-item__others { margin-top: 72px; }
.mf-item__others-title { color: var(--mf-brown); font-size: 18px; margin: 0; text-align: left; }
.mf-item__others-title .mf-script { display: block; font-size: 22px; color: var(--mf-brown-2); }

/* カート */
.mf-cart { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; text-align: left; }
.mf-cart__list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--mf-line); }
.mf-cart__row { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto auto auto; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--mf-line); }
.mf-cart__photo { display: block; width: 84px; height: 84px; border-radius: 50% 50% 8px 8px / 30% 30% 8px 8px; overflow: hidden; background: var(--mf-sand); }
.mf-cart__photo img { width: 100%; height: 100%; object-fit: cover; }
.mf-cart__info { display: flex; flex-direction: column; gap: 2px; }
.mf-cart__name { color: var(--mf-brown); font-weight: 500; text-decoration: none; }
.mf-cart__meta, .mf-cart__unit { font-size: 12px; color: var(--mf-brown-2); }
.mf-cart__sub { color: var(--mf-brown); min-width: 80px; text-align: right; }
.mf-cart__remove { border: 0; background: none; color: var(--mf-brown-2); font-size: 12px; text-decoration: underline; cursor: pointer; }
.mf-cart__summary { position: sticky; top: 96px; }
.mf-cart__go { width: 100%; margin-top: 18px; }
.mf-cart__continue { display: block; text-align: center; margin-top: 12px; font-size: 13px; color: var(--mf-brown-2); }
.mf-cart__empty { max-width: 480px; margin: 24px auto; padding: 40px 24px; text-align: center; background: #fff; border: 1px solid var(--mf-line); border-radius: 50% 50% 20px 20px / 70px 70px 20px 20px; }
.mf-cart__empty .mf-script { font-size: 28px; color: var(--mf-brown-2); margin: 0; }
.mf-cart__notice { background: #fff4f2; color: #b42318; border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.mf-summary__edit { display: block; margin-top: 10px; font-size: 12px; color: var(--mf-brown-2); text-align: right; }
.mf-done__back { margin: 16px 0 0; }
.mf-done__back a { color: var(--mf-brown); }
.mf-steps li a { display: contents; color: inherit; text-decoration: none; }

/* カートに入れました */
.mf-toast { position: fixed; right: 20px; top: 84px; z-index: 200; width: min(340px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--mf-line); border-radius: 18px; padding: 16px 18px; box-shadow: 0 16px 40px rgba(65, 29, 2, .14); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.mf-toast.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mf-toast__title { margin: 0; font-weight: 500; color: var(--mf-brown); }
.mf-toast__title::before { content: "✓ "; }
.mf-toast__item { margin: 4px 0 12px; font-size: 13px; color: var(--mf-brown-2); }
.mf-toast__actions { display: flex; gap: 8px; }
.mf-toast__actions .mf-btn { flex: 1; }

@media (max-width: 767px) {
  .mf-pgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .mf-pcard__body { grid-template-columns: 1fr; padding: 10px 10px 2px; }
  .mf-pcard__price { grid-column: 1; grid-row: auto; text-align: left; }
  .mf-pcard__name { font-size: 14px; }
  .mf-pcard__btn { margin: 8px 10px 10px; }
  .mf-item { grid-template-columns: 1fr; gap: 24px; }
  .mf-item__name { font-size: 24px; }
  .mf-cart { grid-template-columns: 1fr; }
  .mf-cart__summary { position: static; }
  .mf-cart__row { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "photo info remove" "photo qty sub"; row-gap: 8px; }
  .mf-cart__photo { grid-area: photo; width: 64px; height: 64px; }
  .mf-cart__info { grid-area: info; }
  .mf-cart__row .mf-qty__box { grid-area: qty; justify-self: start; }
  .mf-cart__sub { grid-area: sub; }
  .mf-cart__remove { grid-area: remove; justify-self: end; }
  .mf-toast { right: 16px; top: 72px; }
}
.mf-shop .midofarm-order__panel { max-width: none; }
/* カートの「外す」は×の丸ボタン */
.mf-cart__remove { width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--mf-line); background: #fff; color: var(--mf-brown-2); text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.mf-cart__remove:hover { background: var(--mf-brown); border-color: var(--mf-brown); color: #fff; }
/* ヘッダー：メニューが半分の幅に押し込まれてロゴに重なるのを防ぐ */
@media screen and (min-width: 960px) {
  .header_nav_menu { width: auto; flex: 1; margin-left: 24px; }
}
@media screen and (min-width: 960px) and (max-width: 1199px) {
  .nav_menu_list { gap: 16px; }
  .nav_menu_item a { font-size: 13px; letter-spacing: .02em; }
  .nav_menu_item--order a { padding: 8px 14px !important; }
}

/* ===== ヘッダーの組み直し：左にロゴ、右にメニュー・ショップ・カートをひとまとまり ===== */
header {
  position: sticky; top: 0; z-index: 100;
  width: 100%; box-sizing: border-box;
  padding: 12px 20px;
  background: rgba(250, 248, 245, .94);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(217, 207, 194, .6);
}
header .logo_wrap { flex: none; margin: 0; }
@media screen and (min-width: 960px) {
  header { padding: 14px 40px; }
  .header_nav_menu { flex: 1; width: auto; margin-left: 40px; display: flex; justify-content: flex-end; }
  .nav_menu_list { width: auto; gap: 30px; justify-content: flex-end; }
  .nav_menu_item { width: auto; }
  .nav_menu_item--order { margin-left: 4px; }
  .mf-cartlink { margin-left: 14px; margin-right: -10px; }
}
@media screen and (min-width: 960px) and (max-width: 1199px) {
  header { padding: 12px 24px; }
  .header_nav_menu { margin-left: 24px; }
  .nav_menu_list { gap: 18px; }
}
/* 横はみ出しの隠し方を clip に（hidden だとヘッダーが上に残らない） */
html, body { overflow-x: clip; }

/* 商品ページ：数量とカートに入れるを1行に、すぐに購入は小さく */
.mf-item__buy { display: flex; align-items: center; gap: 12px; width: 100%; }
.mf-item__add { flex: 1; max-width: 280px; min-height: 46px; font-size: 15px; }
.mf-item__quick { margin-top: 10px; padding: 4px 0; border: 0; background: none; color: var(--mf-brown); font: inherit; font-size: 13px; letter-spacing: .04em; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; display: inline-flex; gap: 6px; }
.mf-item__quick:hover { color: var(--mf-brown-2); }

/* スマホのメニュー：ヘッダーの下に開く板 */
@media screen and (max-width: 959px) {
  .header_nav_menu {
    position: absolute; top: 100%; left: 0; right: 0; width: 100%;
    background: var(--mf-cream); border-bottom: 1px solid var(--mf-line); box-shadow: 0 16px 30px rgba(65, 29, 2, .1);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
    max-height: calc(100vh - 90px); overflow-y: auto;
  }
  .header_nav_menu.active { transform: none; opacity: 1; visibility: visible; }
  .nav_menu_list { padding: 4px 20px 20px; height: auto; }
  .nav_menu_item a { padding: 16px 4px; border-bottom: 1px solid var(--mf-line); font-size: 15px; color: var(--mf-brown); }
  .nav_menu_item--order a { margin-top: 16px; border: 0; border-radius: 999px; background: var(--mf-brown); color: #fff; text-align: center; padding: 14px 0; }
}

/* ヘッダー：オンラインショップはアイコン（カートの隣） */
.mf-iconlink { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 48px; height: 48px; color: var(--mf-brown); text-decoration: none; border-radius: 12px; transition: background .2s; }
.mf-iconlink:hover { background: var(--mf-sand); }
.mf-iconlink__label { font-size: 9px; letter-spacing: .06em; line-height: 1; margin-top: 2px; }
.mf-shoplink { margin-left: auto; }
.mf-cartlink { margin-left: 2px; border-radius: 12px; }
.mf-cartlink__count { top: 0; right: 2px; }
@media screen and (min-width: 960px) {
  .nav_menu_item--order { display: none; }
  .mf-shoplink { margin-left: 18px; }
  .mf-cartlink { margin-left: 4px; margin-right: -8px; }
}

/* お支払い方法 */
.mf-paychoice { display: grid; gap: 10px; margin-bottom: 18px; }
.mf-paychoice__item { position: relative; display: block; cursor: pointer; }
.mf-paychoice__item input { position: absolute; left: 16px; top: 18px; accent-color: var(--mf-brown); }
.mf-paychoice__item > span { display: block; padding: 14px 16px 14px 44px; border: 1px solid var(--mf-line); border-radius: 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.mf-paychoice__item:has(input:checked) > span { border-color: var(--mf-brown); box-shadow: 0 0 0 1px var(--mf-brown); }
.mf-paychoice__item b { display: block; color: var(--mf-brown); font-weight: 500; }
.mf-paychoice__item small { display: block; font-size: 12px; color: var(--mf-brown-2); margin-top: 2px; }
.mf-paychoice__brands { display: block; font-style: normal; font-size: 11px; letter-spacing: .08em; color: #8a7a6a; margin-top: 4px; }
.mf-cart__notice--soft { background: var(--mf-sand); color: var(--mf-brown); }
/* お支払い方法は横並び（スマホの細い画面だけ縦） */
.mf-paychoice { grid-template-columns: 1fr 1fr; align-items: stretch; }
.mf-paychoice__item[hidden] + .mf-paychoice__item { grid-column: 1 / -1; }
.mf-paychoice__item > span { height: 100%; box-sizing: border-box; }
@media (max-width: 480px) {
  .mf-paychoice { grid-template-columns: 1fr; }
}
/* カードのブランドのロゴ */
.mf-paychoice__brands { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mf-paychoice__brands svg { width: 46px; height: 29px; display: block; }

/* ===== ヘッダー：2段（2026-11-13・南紀白浜コーヒーと同じ形）
   左にロゴ（2段ぶん）、右の上にショップ・カートのアイコン、右の下にメニュー（右寄せ・行間は詰める） ===== */
.mf-header__icons { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.mf-header__icons .mf-shoplink, .mf-header__icons .mf-cartlink { margin: 0; }
@media screen and (min-width: 960px) {
  header.mf-header--two {
    display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 40px; row-gap: 0; align-items: center;
    padding: 8px 40px 8px;
  }
  header.mf-header--two .logo_wrap { grid-column: 1; grid-row: 1 / span 2; }
  header.mf-header--two .mf-header__icons { grid-column: 2; grid-row: 1; justify-self: end; margin: 0; }
  header.mf-header--two .header_nav_menu { grid-column: 2; grid-row: 2; justify-self: end; margin: 0; width: auto; flex: none; }
  header.mf-header--two .nav_menu_list { justify-content: flex-end; gap: 32px; }
  header.mf-header--two .nav_menu_item a { line-height: 1.4; padding: 2px 0; }
  header.mf-header--two .nav_menu_item--order { display: none; }
  header.mf-header--two .header_contact_hamburger_wrap { display: none; }
  /* アイコンだけ（名前は読み上げ用の aria-label に残す） */
  header.mf-header--two .mf-iconlink { width: 36px; height: 36px; }
  header.mf-header--two .mf-iconlink__label { display: none; }
  header.mf-header--two .mf-cartlink__count { top: -2px; right: -2px; }
}
@media screen and (min-width: 960px) and (max-width: 1199px) {
  header.mf-header--two { padding: 8px 24px; column-gap: 24px; }
  header.mf-header--two .nav_menu_list { gap: 20px; }
}
/* スマホもアイコンだけ */
header.mf-header--two .mf-iconlink__label { display: none; }
@media screen and (max-width: 959px) { header.mf-header--two .mf-iconlink { width: 40px; height: 40px; } }
/* 商品ボックス：「購入する」ボタンの下に余白を広めに */
.mf-pcard__btn { margin-bottom: 24px !important; }

/* ===== 一文字だけの改行を防ぐ（2026-11-13）
   日本語は文節の切れ目でだけ折り返し（auto-phrase）、最後の行が一文字にならないように（pretty）。
   見出しは行の長さをそろえる（balance）。対応していないブラウザでは今までどおり。 ===== */
p, li, dd, dt, small, figcaption, address, td, th, label, blockquote { word-break: auto-phrase; text-wrap: pretty; }
h1, h2, h3, h4, h5, h6 { word-break: auto-phrase; text-wrap: balance; }
/* ヘッダーの背景は本番と同じ（ページと同じクリーム #fffaf5。線・すりガラスは付けない）
   上に残るヘッダーなので、下の中身が透けないよう色だけは塗る */
header, header.mf-header--two { background: #fffaf5 !important; border-bottom: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; }
/* アクセス：スマホでは見出し・縦の線・文をほかの段と同じく中央に（PCは地図の横で左寄せのまま） */
@media screen and (max-width: 767px) {
  .access_index .col-6:last-child { text-align: center; }
  .access_index .col-6:last-child .line { margin-left: auto; margin-right: auto; }
}
