/*
Theme Name: Astra guruguru Child
Template: astra
Version: 1.0
*/

/* gg_tokens: guruguru全体で使う“新規変数”のみ（既存Astraを上書きしない） */
/* ===============================
   01. Tokens
   =============================== */
:root {
  --gg-bg: #f7f7f5;
  --gg-ink: #3a3a3a;
  --gg-muted: #5a5a5a;
  --gg-line: rgba(0, 0, 0, 0.12);

  --gg-radius: 12px;
  --gg-radius-sm: 10px;

  --gg-space-1: 8px;
  --gg-space-2: 12px;
  --gg-space-3: 16px;
  --gg-space-4: 24px;
}

/* ggml tokens（motif-list専用） */
.ggml {
  --gg-accent: #8f6f64; /* 後で変える */
  --gg-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

/* ===============================
   Link Reset（全体）
   =============================== */
a,
a:link,
a:visited,
a:hover,
a:active {
  text-decoration: none !important;
}

/* ヒーローCTAは特に強制 */
.hero-copy-wrap .hero-cta,
.hero-copy-wrap .hero-cta:link,
.hero-copy-wrap .hero-cta:visited,
.hero-copy-wrap .hero-cta:hover,
.hero-copy-wrap .hero-cta:active {
  text-decoration: none !important;
  color: #fff !important;
}

/* ===============================
   02. Utilities
   =============================== */

/* Help Trigger (？) */
.gg-help-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-left: 6px;
  width: 16px;
  height: 16px;

  font-size: 11px;
  line-height: 1;

  color: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;

  cursor: pointer;
  transition: all 0.15s ease;
}

.gg-help-trigger:hover {
  color: rgba(0, 0, 0, 0.9);
  border-color: rgba(0, 0, 0, 0.35);
}

.gg-field-help {
  margin: 6px 0 12px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.6);
}

.gg-field-help a {
  margin-left: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.gg-cart-pre-note {
  margin: 12px 0 8px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.6);
}

/* カート：推定合計額 → 合計 */
.wc-block-components-totals-footer-item
  .wc-block-components-totals-item__label {
  font-size: 0;
}

.wc-block-components-totals-footer-item
  .wc-block-components-totals-item__label::before {
  content: "合計";
  font-size: 18px;
  font-weight: 700;
}

/* Product total */
.wapf--inner div:nth-child(1) span:first-child {
  font-size: 0;
}
.wapf--inner div:nth-child(1) span:first-child::before {
  content: "商品合計";
  font-size: 14px;
}

/* Options total */
.wapf--inner div:nth-child(2) span:first-child {
  font-size: 0;
}
.wapf--inner div:nth-child(2) span:first-child::before {
  content: "オプション合計";
  font-size: 14px;
}

/* Grand total */
.wapf--inner div:nth-child(3) span:first-child {
  font-size: 0;
}
.wapf--inner div:nth-child(3) span:first-child::before {
  content: "ご注文合計";
  font-size: 14px;
  font-weight: bold;
}

/* ========= お知らせ ========= */

.gg-news-block {
  max-width: 760px;
  margin: 20px auto 0px;
  padding: 0 24px 64px;
}

.gg-news-block .gg-news-list {
  max-width: none;
  margin: 0;
  padding: 0;
}

.gg-news-list {
  max-width: 760px;
  margin: 80px auto 0;
  padding: 0 24px;
}

.gg-news-item {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 14px;
  line-height: 1.6;
}

.gg-news-item:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.gg-news-item span {
  min-width: 96px;
  color: #666;
}

.gg-news-item a {
  color: inherit;
  text-decoration: none;
}

.gg-news-item a:hover {
  opacity: 0.7;
}

.gg-news-more {
  margin: 16px 0 0;
  padding: 0;
  text-align: left;
}

.gg-news-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #5a5a5a;
  text-decoration: none;
  border-bottom: 1px solid rgba(90, 90, 90, 0.35);
  padding-bottom: 3px;
}

.gg-news-more a::after {
  content: "→";
}

.gg-news-more a:hover {
  color: #3a3a3a;
  border-bottom-color: #3a3a3a;
}

@media (max-width: 767px) {
  .gg-news-block,
  .gg-news-list {
    margin-top: 56px;
  }

  .gg-news-item {
    gap: 12px;
    font-size: 13px;
  }

  .gg-news-item span {
    min-width: 86px;
  }
}

/* 商品カテゴリページ：上部余白を詰める */
body.tax-product_cat.ast-separate-container #primary {
  margin-top: 1.2em;
  margin-bottom: 4em;
}

body.tax-product_cat .ast-woocommerce-container {
  padding-top: 0;
}

/* パンくず〜タイトル周り */
body.tax-product_cat .woocommerce-breadcrumb {
  margin-bottom: 14px;
}

body.tax-product_cat .woocommerce-products-header {
  margin-bottom: 18px;
}

body.tax-product_cat .woocommerce-products-header__title {
  margin-bottom: 0;
}

/* 件数・並び替え〜幅ガイド */
body.tax-product_cat .woocommerce-result-count,
body.tax-product_cat .woocommerce-ordering {
  margin-bottom: 14px;
}

body.tax-product_cat .gg-category-width-guide {
  clear: both;
  width: 100%;
  margin: 18px 0 30px;
  padding: 0;
  background: transparent;
  font-size: 14px;
  line-height: 1.8;
}

body.tax-product_cat .gg-category-width-guide p {
  margin: 0 0 4px;
}

body.tax-product_cat .gg-category-width-guide a {
  text-decoration: underline;
}

/* ===============================
   03. Motif List Page
   =============================== */

.ggml {
  max-width: 980px;
  margin: 0 auto;
  padding: var(--gg-space-4) var(--gg-space-3);
  color: var(--gg-ink);
}

.ggml__title {
  font-size: 24px;
  margin: 0 0 var(--gg-space-1);
}

.ggml__lead {
  margin: 0 0 var(--gg-space-2);
  line-height: 1.6;
  color: var(--gg-ink);
}

.ggml__meta {
  margin: 0 0 var(--gg-space-3);
  color: var(--gg-muted);
  font-size: 13px;
}

.ggml__toolbar {
  display: flex;
  gap: var(--gg-space-2);
  align-items: center;
  margin-bottom: var(--gg-space-3);
  flex-wrap: wrap;
}

.ggml__search {
  width: min(520px, 100%);
  padding: 10px 12px;
  border: 1px solid var(--gg-line);
  border-radius: var(--gg-radius-sm);
}

.ggml__pill {
  padding: 8px 10px;
  border: 1px solid var(--gg-line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--gg-muted);
}

.ggml__accordion {
  display: flex;
  flex-direction: column;
  gap: var(--gg-space-2);
}

.ggml__section {
  border: 1px solid var(--gg-line);
  border-radius: var(--gg-radius);
  overflow: hidden;
  background: var(--gg-bg);
}

.ggml__sectionHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--gg-space-2) var(--gg-space-3);
  background: #f4f1ed;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--gg-ink);
}

.ggml__sectionBody {
  display: none;
  padding: var(--gg-space-3);
}

.ggml__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: var(--gg-space-2);
}

.ggml__tile {
  border: 1px solid var(--gg-line);
  border-radius: var(--gg-radius-sm);
  background: var(--gg-bg) !important;
  padding: var(--gg-space-1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  color: var(--gg-ink) !important;
}

.ggml__tile:hover {
  outline: 2px solid rgba(0, 0, 0, 0.08);
}

.ggml__thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.ggml__code {
  font-size: 12px;
  font-weight: 700;
}

.ggml__name {
  font-size: 11px;
  color: var(--gg-muted);
  text-align: center;
  line-height: 1.2;
  min-height: 2.4em;
}

/* ========= ggml ui ========= */
@media (max-width: 480px) {
  .ggml__grid {
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  }
}

/* ggml 検索UIを非表示 */
#ggml-search,
#ggml-count,
.ggml__toolbar {
  display: none !important;
}

/* ついでに最低幅（文字が潰れない） */
.ggml__actions .ggml__btn--ghost {
  min-width: 120px;
}

.ggml__actions--browse {
  justify-content: center;
}

.ggml__hint {
  margin-top: 14px;
  color: #666;
  font-size: 14px;
  line-height: 1.8;
}

.ggml__error {
  padding: 16px;
  border: 1px solid #ddd;
  background: #fff;
}
.ggml__actions--browse .ggml__btn--ghost {
  color: #5f534c;
  border-color: #cfc3bb;
  background: #fff;
}

.ggml__actions--browse .ggml__btn--ghost:hover {
  color: #4e433d;
  border-color: #b8aaa1;
  background: #f8f5f2;
}
/* ===============================
   04. Modal Components
   =============================== */

/* ===============================
   Help Modal (finish / setting)
   =============================== */

.gg-help-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gg-help-modal.is-open {
  display: flex;
}

.gg-help-modal__panel {
  position: relative;
  width: min(1100px, 94vw);
  max-height: 72vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.gg-help-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 18px;
  cursor: pointer;
  border: 0;
  background: transparent;
}

.gg-help-modal__body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.gg-help-item {
  display: block;
  text-align: center;
  padding: 10px;
}

.gg-help-item img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  margin: 0 auto 8px;
  border-radius: 6px;
  display: block;
}

.gg-help-item__title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.gg-help-item__desc {
  font-size: 12px;
  line-height: 1.6;
  color: #555;
}

@media (max-width: 767px) {
  .gg-help-modal__body {
    grid-template-columns: 1fr;
  }
}

/* FPD Info モーダル */
.gg-fpd-help {
  text-align: left;
  line-height: 1.8;
  font-size: 14px;
}

.gg-fpd-help h4 {
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.gg-fpd-help p {
  margin: 6px 0 12px;
}

.gg-fpd-help hr {
  margin: 16px 0;
  border: none;
  border-top: 1px solid #ddd;
}
/* ========= motif list (ggml)modal ========= */

.ggml__modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.ggml__modal[aria-hidden="false"] {
  display: block;
}

.ggml__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.ggml__dialog {
  position: relative;
  max-width: 520px;
  margin: 6vh auto;
  background: var(--gg-bg);
  border-radius: var(--gg-radius);
  overflow: hidden;
  box-shadow: var(--gg-shadow);
}

.ggml__close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: var(--gg-bg);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 18px;
}

.ggml__modalBody {
  padding: var(--gg-space-4) var(--gg-space-3);
}

.ggml__imgWrap {
  background: #fafafa;
  border: 1px solid var(--gg-line);
  border-radius: var(--gg-radius);
  padding: var(--gg-space-3);
  display: flex;
  justify-content: center;
  margin-bottom: var(--gg-space-3);
}

#ggml-modal-img {
  max-width: 320px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.ggml__modalTitle {
  margin: 0 0 var(--gg-space-1);
  font-size: 20px;
}

.ggml__modalSub {
  margin: 0 0 var(--gg-space-2);
  color: var(--gg-muted);
  font-size: 13px;
}

.ggml__modalText {
  text-align: center;
  font-size: 14px;
  line-height: 1.9;
  color: #666;
  letter-spacing: 0.08em;
  margin-top: 0px;
}

.ggml__modalTagsLead {
  text-align: center;
  font-size: 12px;
  color: #8a837d;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.ggml__modalEn {
  font-size: 12px;
  color: #9a948f;
  margin-top: 4px;
}

.ggml__modalTags {
  margin: 8px 0 18px;
  font-size: 20px;
  line-height: 2;
  color: #3f3a36;
  letter-spacing: 0.14em;
  font-weight: 500;
}

.ggml__tagSep {
  opacity: 0.3;
}

.ggml__actions {
  display: flex;
  gap: var(--gg-space-2);
  justify-content: flex-end;
  margin-top: 28px;
}

.ggml__btn {
  padding: 10px 14px;
  border-radius: var(--gg-radius-sm);
  border: 1px solid var(--gg-line);
  background: var(--gg-bg);
  cursor: pointer;
  font-weight: 700;
}

.ggml__btn--primary {
  background: var(--gg-accent);
  border-color: var(--gg-accent);
  color: #fff;
}

.ggml__btn--ghost {
  background: var(--gg-bg);
}

@media (max-width: 480px) {
  .ggml__dialog {
    margin: 2vh 10px;
  }
}

/* ========= ここまでmotif list (ggml) ========= */

/* =========  ここからMotif Modal ========= */

/* モーダルが閉じている時、透明オーバーレイがイベントを奪わないようにする */
.gg-motif-modal {
  pointer-events: auto;
}
.gg-motif-modal:not(.is-open) {
  pointer-events: none;
}

.gg-motif-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gg-motif-modal.is-open {
  display: flex;
}

.gg-motif-modal__panel {
  width: min(1100px, 96vw);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.gg-motif-modal__head {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.gg-motif-modal__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.75);
}

.gg-motif-modal__close {
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 8px;
}

.gg-motif-modal__body {
  padding: 10px 16px 18px;
}

/* =========  ここまでMotif Modal ========= */

/* ========= ここから誕生石 list (gg-bs) ========= */

/* Birthstone insert modal */
.gg-bs-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
}
.gg-bs-modal.is-open {
  display: block;
}

.gg-bs-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.gg-bs-modal__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 24px));
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 16px;
}

.gg-bs-modal__close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(0, 0, 0, 0.03);
  cursor: pointer;
}

.gg-bs-modal__head {
  margin-bottom: 12px;
}
.gg-bs-modal__title {
  font-weight: 600;
  font-size: 16px;
}
.gg-bs-modal__sub {
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.75;
}

.gg-bs-modal__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 560px) {
  .gg-bs-modal__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gg-bs-btn {
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 12px;
  padding: 12px 10px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

.gg-bs-btn:hover {
  background: rgba(0, 0, 0, 0.03);
}

/* ===== Birthstone modal text fix ===== */

.gg-bs-modal__panel {
  color: #222; /* モーダル内の基本文字色を固定 */
}

.gg-bs-modal__title {
  color: #111;
  font-weight: 600;
}

.gg-bs-modal__sub {
  color: #666;
}

.gg-bs-btn {
  color: #222; /* ← これが重要 */
  background: #fff;
  border: 1px solid #ddd;
}

.gg-bs-btn:hover {
  background: #f5f5f5;
}

.gg-bs-modal__close {
  color: #333;
}

/* ========= ここまで誕生石 list (gg-bs) ========= */
/* ========= ここまでシンプル list (gg-simple) ========= */

/* Simple modal */
.gg-simple-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gg-simple-modal.is-open {
  display: flex;
}
.gg-simple-modal__panel {
  width: min(720px, 96vw);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow: auto;
}
.gg-simple-modal__head {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}
.gg-simple-modal__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.75);
}
.gg-simple-modal__close {
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  padding: 6px 8px;
}
.gg-simple-modal__body {
  padding: 14px 16px 18px;
}

.gg-simple-modal__panel {
  position: relative;
}

.gg-simple-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #555;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* ========= ここまでシンプル list (gg-simple) ========= */

/* ========= ここからmodal base (gg-mr20-example-modal) ========= */
.gg-example {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 12px 12px;
  margin: 10px 0;
  background: rgba(0, 0, 0, 0.02);
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* modal base */
#gg-mr20-example-modal.gg-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
#gg-mr20-example-modal.gg-modal.is-open {
  display: flex;
}

#gg-mr20-example-modal .gg-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

#gg-mr20-example-modal .gg-modal__panel {
  position: relative;
  width: min(920px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  overflow: auto;
  background: #f7f7f5;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

#gg-mr20-example-modal .gg-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
#gg-mr20-example-modal .gg-modal__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

#gg-mr20-example-modal .gg-modal__close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
}
#gg-mr20-example-modal .gg-modal__close::before {
  content: "×";
  display: block;
  font-size: 22px;
  line-height: 38px;
  text-align: center;
}

#gg-mr20-example-modal .gg-modal__body {
  padding: 16px;
}

#gg-mr20-example-modal .gg-exsec {
  margin: 0 0 18px;
}
#gg-mr20-example-modal .gg-exsec__title {
  margin: 0 0 10px;
  font-size: 15px;
}
#gg-mr20-example-modal .gg-minihelp {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.85;
}

/* patterns grid */
#gg-mr20-example-modal .gg-patterns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 720px) {
  #gg-mr20-example-modal .gg-patterns {
    grid-template-columns: 1fr;
  }
}

#gg-mr20-example-modal .gg-pattern {
  text-align: left;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.55);
  padding: 12px;
  cursor: pointer;
}
#gg-mr20-example-modal .gg-pattern:hover {
  background: rgba(255, 255, 255, 0.85);
}

#gg-mr20-example-modal .gg-pattern__ring {
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 12px;
  background: rgba(243, 241, 237, 0.75);
}
#gg-mr20-example-modal .gg-pattern__line {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  letter-spacing: 0.08em;
  font-size: 14px;
  padding: 2px 0;
}
#gg-mr20-example-modal .gg-pattern__cap {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.9;
}

/* order-form-like */
#gg-mr20-example-modal .gg-formlike {
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.55);
  padding: 12px;
}
#gg-mr20-example-modal .gg-formlike__label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  opacity: 0.9;
}
#gg-mr20-example-modal .gg-formlike__ta {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  padding: 10px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  line-height: 1.7;
  resize: vertical;
}
#gg-mr20-example-modal .gg-formlike__actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* scroll lock */
html.gg-scroll-lock,
body.gg-scroll-lock {
  overflow: hidden;
}

/* ===============================
   MR2.0 記入例モーダル（専用）
   =============================== */

/* 初期は非表示 */
#gg-mr20-example-modal {
  display: none;
}

/* open時に表示 */
#gg-mr20-example-modal.is-open {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 99999;
}

/* 背景 */
#gg-mr20-example-modal .gg-mr20-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* パネル（中央配置） */
#gg-mr20-example-modal .gg-mr20-modal__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 24px));
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 16px;
}

/* 閉じるボタン */
#gg-mr20-example-modal .gg-mr20-modal__close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #bbb;
  background: #f3f3f3;
  color: #222;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

/* テキストエリア */
#gg-mr20-example-modal #gg-mr20-example-text {
  width: 100%;
  min-height: 120px;
  height: 120px;
  box-sizing: border-box;
  padding: 12px;
  font-size: 16px;
  line-height: 1.6;
  resize: none;
  border: 1px solid #bbb;
  border-radius: 10px;
}

/* ボタン列 */
#gg-mr20-example-modal .gg-mr20-example-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

#gg-mr20-example-modal .gg-copy-example,
#gg-mr20-example-modal .gg-insert-example {
  border: 1px solid #bbb;
  background: #f3f3f3;
  color: #222;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
}
#gg-mr20-example-modal .gg-mr20-modal__note {
  margin-bottom: 12px;
  line-height: 1.7;
}

#gg-mr20-example-modal #gg-mr20-example-text {
  background: #fafafa;
}

/* ========= ここまでmodal base (gg-mr20-example-modal) ========= */
/* ===============================
   刻印の指定方法モーダル
   =============================== */

/* モーダル本体 */
.gg-engrave-help-modal .gg-simple-modal__panel {
  width: min(920px, calc(100vw - 32px));
  max-height: min(88vh, 980px);
  overflow-y: auto;
  padding: 28px 28px 32px;
}

/* タイトル */
.gg-engrave-help-modal .gg-simple-modal__title {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
}

/* コンテンツ全体 */
.gg-engrave-mode-help-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* 各ブロック（カード） */
.gg-engrave-guide-block {
  padding: 18px;
  border: 1px solid #e5dfd5;
  background: #faf8f3;
}

/* 画像 */
.gg-engrave-guide-block img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 14px;
}

/* 確認イメージだけ“内側余白”を作る */
.gg-engrave-guide-block:last-child {
  padding: 24px;
}

.gg-engrave-guide-block:last-child img {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: block;
}

/* ラベル */
.gg-engrave-guide-label {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
}

/* 補足文 */
.gg-engrave-guide-note {
  margin-top: 6px;
  padding-top: 8px;
  border-top: none;

  font-size: 13px;
  line-height: 1.6;
  color: #777;
}
/* ===============================
   シミュレーター指定とは？モーダル
   =============================== */

.gg-simulator-help-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gg-simulator-lead {
  font-size: 15px;
  line-height: 1.6;
}

.gg-simulator-image {
  padding: 12px 0 8px;
}

.gg-simulator-image img {
  width: 100%;
  height: auto;
  display: block;
}

.gg-simulator-note {
  font-size: 13px;
  color: #777;
  line-height: 1.6;
}

/* ===============================
   FPD Guide Modal
   =============================== */

.gg-fpd-help-trigger {
  margin: 14px 0 0;
}

.gg-fpd-guide-modal .gg-simple-modal__panel {
  width: min(980px, calc(100vw - 32px));
  max-height: min(88vh, 980px);
  overflow-y: auto;
  padding: 28px 28px 32px;
}

.gg-fpd-guide-modal .gg-simple-modal__title {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
}

.gg-fpd-guide-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.gg-fpd-guide-block {
  padding: 18px;
  border: 1px solid #e5dfd5;
  background: #faf8f3;
}

.gg-fpd-guide-block img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 14px;
}

.gg-fpd-guide-label {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 767px) {
  .gg-fpd-guide-modal .gg-simple-modal__panel {
    width: min(96vw, 96vw);
    padding: 22px 16px 24px;
  }

  .gg-fpd-guide-modal .gg-simple-modal__title {
    margin-bottom: 14px;
    font-size: 20px;
  }

  .gg-fpd-guide-body {
    gap: 20px;
  }

  .gg-fpd-guide-block {
    padding: 14px;
  }

  .gg-fpd-guide-label {
    font-size: 14px;
    line-height: 1.7;
  }
}

/* ===============================
   05. WooCommerce Common
   =============================== */
/* ========= ここからwoocommerce用 ========= */

.woocommerce-table--order-details td.product-name > a {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  text-decoration: none;
}

/* 注文完了ページ：FPD確認の案内文を表示（見た目だけ追加） */
.woocommerce-order-received
  .woocommerce-order-details
  td.product-name
  .fpd-hint {
  display: block;
  margin-top: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  font-size: 0.95em;
}
/* 注文完了ページ：FPDの "View Customized Product" リンクを非表示 */
.woocommerce-order-received
  .woocommerce-table--order-details
  td.product-name
  > a[href*="order="][href*="itemid="] {
  display: none !important;
}
/* 注文完了ページ：FPDの "View Customized Product" リンクをボタン風に整える */
.woocommerce-order-received
  .woocommerce-table--order-details
  td.product-name
  > a[style*="font-size: 0.9em"] {
  display: inline-block !important;
  margin-top: 8px !important;
  padding: 6px 10px !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  background: rgba(0, 0, 0, 0.03);
}
/* FPDボタンを「刻印メッセージ行」から視覚的に分離する */
.woocommerce-order-received
  .woocommerce-table--order-details
  td.product-name
  > a[style*="font-size: 0.9em"] {
  display: block !important;
  width: fit-content;
  margin-top: 10px !important;
  margin-left: 0 !important;
}

/* “デザイン確認”をラベルっぽく見せる（任意） */
.woocommerce-order-received
  .woocommerce-table--order-details
  td.product-name
  > a[style*="font-size: 0.9em"]::before {
  content: "デザイン確認（FPD）: ";
  font-weight: 600;
  margin-right: 6px;
}
/* 注文完了ページ：FPDのプレビュー(float)がメタ表示に回り込まないようにする */
.woocommerce-order-received
  .woocommerce-table--order-details
  td.product-name
  .wc-item-meta {
  clear: both;
}

/* 念のため、floatの後ろにclearfix（ブラウザ差異吸収） */
.woocommerce-order-received
  .woocommerce-table--order-details
  td.product-name::after {
  content: "";
  display: block;
  clear: both;
}

/* 注文完了/注文詳細：FPD確認ヒント */
.fpd-hint {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: rgba(247, 247, 245, 0.85);
  font-size: 13px;
  line-height: 1.7;
}

/* ========= ここまでwoocommerce用 ========= */

/* ===============================
   06. Top Page
   =============================== */

/* 表示切替だけ。デザインはいじらない */
.hero-pc {
  display: block;
  background-position: 65% 60%;
}
.hero-sp {
  display: none;
}

@media (max-width: 768px) {
  .hero-pc {
    display: none;
  }
  .hero-sp {
    display: block;
  }
}

/* ===============================
   Top Hero
   =============================== */

.hero-copy-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-copy-wrap .hero-title {
  margin: 0 0 40px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gg-ink);
}

.hero-copy-wrap .hero-question {
  margin: 0 0 32px;
  font-size: 32px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--gg-ink);
}

.hero-copy-wrap .hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

/* ===============================
   Hero CTA Button
   =============================== */

.hero-copy-wrap .hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 20px;
  border-radius: 10px;

  background: #6f858c; /* ←今のボタン色に近い */
  color: #fff;
  text-decoration: none;

  font-size: 14px;
  font-weight: 600;

  transition: all 0.2s ease;
}

/* hover */
.hero-copy-wrap .hero-cta:hover {
  background: #5e7278;
}

/* 少しだけボタンらしく */
.hero-copy-wrap .hero-cta::before {
  content: "▶";
  font-size: 12px;
  margin-right: 8px;
  opacity: 0.9;
}

/* Ring shape cards */
.ring-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.ring-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* 安心ブロック専用カード */
.support-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05); /* 弱め */
  transition: all 0.3s ease;
}

/* 少しだけホバー反応 */
.support-card:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
}

/* SP */
@media (max-width: 768px) {
  .hero-copy-wrap {
    padding: 0 20px;
    margin-top: 0;
  }

  .hero-copy-wrap .hero-title {
    margin: 0 0 20px;
    font-size: 28px;
    line-height: 1.25;
  }

  .hero-copy-wrap .hero-question {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.85;
  }

  .hero-copy-wrap .hero-cta {
    display: inline-flex;
    margin: 0 0 56px;
  }
}

/* ===============================
    Top Branch
   =============================== */
.top-branch {
  margin: 108px auto 120px;
  max-width: 900px;
  padding: 0 20px;
}

.top-branch-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.top-branch-card {
  display: block;
  padding: 32px 24px;
  border: 1px solid var(--gg-line);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.45);
  transition:
    opacity 0.2s ease,
    border-color 0.2s ease;
}

.top-branch-card:hover {
  opacity: 0.82;
  border-color: rgba(0, 0, 0, 0.22);
}

.top-branch-label {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.top-branch-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--gg-muted);
}

@media (min-width: 768px) {
  .top-branch-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .top-branch {
    margin-top: 0px;
    margin-bottom: 60px;
  }
}

/* ===============================
    Top process
   =============================== */

.top-process video {
  width: 100%;
  height: 220px; /* ←ここ重要 */
  object-fit: cover;
}

.top-process {
  position: relative;
}

.top-process-text {
  position: absolute;
  left: 24px;
  bottom: 16px;

  color: #fff;
  font-size: 14px;
  letter-spacing: 0.05em;

  background: rgba(0, 0, 0, 0.35);
  padding: 6px 10px;
}

/* ===============================
    Top example
   =============================== */

.top-examples {
  margin: 56px auto 120px;
  max-width: 700px;
  padding: 0 20px;
  text-align: center;
}

.example {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.example:last-child {
  margin-bottom: 0;
}

.example-word {
  display: block;
  font-size: 24px;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  text-align: center;
}

.example-desc {
  display: block;
  font-size: 13px;
  color: var(--gg-muted);
  letter-spacing: 0.03em;
  line-height: 1.7;
  text-align: center;
}

.top-examples-link {
  margin-top: 48px; /* 最後の言葉から少し距離を置く */
  font-size: 13px;
  opacity: 0.72; /* 透過させて背景に馴染ませる */
  transition: opacity 0.3s ease;
  text-align: center;
}

.top-examples-link:hover {
  opacity: 1; /* 意識が向いた時だけ、はっきりと見える */
}

.top-examples-link a {
  text-decoration: none;
  color: var(--gg-main);
  border-bottom: 1px solid currentColor; /* 控えめなアンダーライン */
  padding-bottom: 2px;
}

@media (max-width: 768px) {
  .top-examples {
    margin-top: 32px;
    margin-bottom: 60px;
  }
}

/* ===============================
    Top transition
   =============================== */

.top-transition {
  margin: 60px 0 20px;
  text-align: center;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
}

/* ===============================
   Top Shapes
   =============================== */

/* 外側の色面・上下余白はグループブロック側で持たせる前提 */
.top-shapes {
  margin: 0;
  padding: 0;
  background: none;
}

/* 実レイアウトは中身だけ */
.top-shapes__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.top-shapes__title {
  margin: 0 0 20px;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.top-shapes__lead {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 2;
  color: var(--gg-ink);
}

.top-shapes__text {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 2;
  color: var(--gg-muted);
}

.top-shapes__all {
  margin: 32px 0 0;
}

.top-shapes__all a {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--gg-line);
  background: #7f97a0;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.top-shapes__all a:hover {
  opacity: 0.85;
}

.top-shapes__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.top-shape-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.top-shape-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.top-shape-card__image {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f6f6f4;
}

.top-shape-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.top-shape-card__body {
  padding: 22px 20px 24px;
  text-align: center;
}

.top-shape-card__title {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.top-shape-card__desc {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--gg-muted);
}

.top-shape-card__cta {
  display: inline-block;
  padding: 10px 14px;
  background: #7f97a0;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.top-shape-card__link:hover .top-shape-card__cta {
  opacity: 0.85;
}

.top-shape-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.top-shape-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.top-shape-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.top-shape-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

@media (max-width: 920px) {
  .top-shapes__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .top-shapes__grid {
    grid-template-columns: 1fr;
  }

  .top-shapes__title {
    font-size: 28px;
  }

  .top-shapes__lead {
    font-size: 16px;
    line-height: 1.9;
  }
}

/* ===============================
   Future Section
   =============================== */

.gg-future {
  padding: 80px 20px;
}

.gg-future-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.gg-future-title {
  font-size: 24px;
  margin-bottom: 16px;
}

.gg-future-text {
  font-size: 14px;
  line-height: 1.9;
  color: #555;
  margin-top: 16px;
  margin-bottom: 40px;
}
.gg-future-text p {
  margin: 6px 0;
  line-height: 1.9;
}

.gg-future-text p:last-child {
  margin-top: 18px;
}

/* ここが今回の本体 */
.gg-future-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.gg-future-photos img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

/* SP */
@media (max-width: 768px) {
  .gg-future {
    padding: 60px 16px;
  }

  .gg-future-photos {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gg-future-photos img {
    width: 88%;
    margin: 0 auto;
  }
}

/* ===============================
   Top Support
   =============================== */
.top-support {
  margin: 140px auto 0px;
  padding: 0 20px;
}
.top-support {
  padding-bottom: 80px;
}
.top-support__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 40px 44px;
  background: #ececec;
}

.top-support__title {
  margin: 0 0 28px;
  font-size: 36px;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.top-support__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.top-support-card {
  background: #fafafa;
  border-radius: 16px;
  padding: 28px 22px 22px;

  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.top-support-card__title {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.top-support-card__text {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 2;
  color: rgba(0, 0, 0, 0.68);
}

.top-support-card__link {
  margin: 0;
}

.top-support-card__link a {
  display: inline-block;
  min-width: auto;
  padding: 0;

  background: none;
  color: rgba(0, 0, 0, 0.6);

  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;

  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);

  transition: opacity 0.2s ease;
}

.top-support-card__link a:hover {
  opacity: 0.6;
}

@media (max-width: 920px) {
  .top-support {
    margin-top: 100px;
  }

  .top-support__inner {
    padding: 36px 24px;
  }

  .top-support__title {
    font-size: 28px;
    margin-bottom: 22px;
  }

  .top-support__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ===============================
   Moment CTA Block
   =============================== */

.gg-moment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.gg-moment-card {
  background: #fff;
  border: 1px solid var(--gg-line);
  border-radius: var(--gg-radius);
  padding: 20px;
}

.gg-moment-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.gg-moment-card p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--gg-muted);
}

.gg-moment-section {
  margin-bottom: 72px;
}

.gg-moment-card p {
  margin-bottom: 14px;
}

/* CTA */
.gg-moment-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: #fff;
  color: var(--gg-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.gg-moment-cta:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.32);
  color: rgba(0, 0, 0, 0.9);
  transform: translateY(-1px);
}

/* SP */
@media (max-width: 768px) {
  .gg-moment-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   07. Footer
   =============================== */

/* Astra footer visibility */
.site-footer,
.site-above-footer-wrap,
.site-primary-footer-wrap,
.site-below-footer-wrap,
.ast-builder-footer-grid-columns,
.footer-widget-area {
  position: relative !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

.site-above-footer-wrap {
  padding: 0 !important;
  background: #eeeeee;
}

.site-primary-footer-wrap {
  padding: 0 !important;
  margin: 0 !important;
}

/* Brand footer */
.footer-brand {
  display: block !important;
  width: 100%;
  margin: 0 !important;
  padding: 46px 20px 42px !important;
  text-align: center;
}

.footer-tagline {
  display: block !important;
  margin: 0 0 0px;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: #333;
}

.footer-logo {
  display: block !important;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #3a3a3a;
  text-transform: lowercase;
}

.footer-logo {
  display: block !important;
  margin: 0;
  line-height: 1;
}

.footer-logo-img {
  display: inline-block;
  width: 170px;
  max-width: 72vw;
  height: auto;
}

/* Footer columns */
.footer-columns {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 60px !important;
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 20px !important;
  text-align: center;
}

.footer-col h4 {
  font-size: 14px;
  letter-spacing: 0.1em;
  margin-bottom: 15px;
}

.footer-col p,
.footer-col li {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 6px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col a {
  color: #333;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-col a:hover {
  opacity: 0.6;
}

/* Footer bottom */
.footer-bottom-gg {
  display: block !important;
  margin-top: 0 !important;
  padding: 28px 0 18px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.72);
}

.footer-bottom-gg__inner {
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.2fr) minmax(
      180px,
      1fr
    ) !important;
  gap: 18px 24px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-bottom-gg__company,
.footer-bottom-gg__meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-bottom-gg__companyname {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.footer-bottom-gg__address {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.7;
  opacity: 0.78;
}

.footer-bottom-gg__legal {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px 18px !important;
  min-width: 0 !important;
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
  opacity: 0.82;
}

.footer-bottom-gg__legal a {
  display: inline-block !important;
  white-space: nowrap !important;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-bottom-gg__legal a:hover {
  border-bottom-color: rgba(0, 0, 0, 0.28);
}

.footer-bottom-gg__sep {
  display: none;
}

.footer-bottom-gg__meta {
  text-align: right !important;
}

.footer-bottom-gg__copyright {
  font-size: 12px;
  line-height: 1.7;
  opacity: 0.72;
}

.footer-bottom-gg__sns a {
  font-size: 12px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

/* Narrow smartphone */
@media (max-width: 520px) {
  .footer-columns {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    padding: 40px 20px !important;
  }

  .footer-bottom-gg__inner {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    text-align: center;
  }

  .footer-bottom-gg__company,
  .footer-bottom-gg__legal,
  .footer-bottom-gg__meta {
    align-items: center !important;
    text-align: center !important;
  }

  .footer-bottom-gg__meta {
    text-align: center !important;
  }
}

/* ===============================
   08. Product Page Layout
   =============================== */
/* =========================================================
   Product Summary Typography (mr-*)
   - 垢ぬけ版：余白と強弱で整える
   - 既存の mr-lead / mr-facts / mr-delivery を維持
   ========================================================= */

/* --- mr-lead：右カラム内の“説明ブロック” --- */

.single-product .summary .mr-lead {
  margin: 0 0 18px;
  line-height: 1.98; /* ← 呼吸を増やす */
  letter-spacing: 0.03em; /* ← 少しだけ整う */
}

.single-product .summary .mr-lead p {
  margin: 0px 0px 14px 0px; /* ← 段落間の均一感を少し緩める */
}

.single-product .summary .mr-lead > p.gg-product-lead {
  margin: 10px 0 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

/* 先頭の一文だけ少し格上げ（入口主力の「芯」） */
.single-product .summary .mr-lead > p:first-of-type {
  font-weight: 600;
  font-size: 17px; /* ← 16→17程度の最小上げ */
  letter-spacing: 0.04em;
  margin: 0 0 14px;
}

/* h2/h3：右カラム内の見出しリズム（垢ぬけの本丸） */
.single-product .summary .mr-lead h2 {
  margin: 30px 0 14px 0px;
  font-size: 20px; /* Astraの既定H2が強すぎる場合の抑制 */
  line-height: 1.35;
  letter-spacing: 0.03em;
  font-weight: 600;
  color: #2f2f2f; /* 少しだけ濃く */
}

.single-product .summary .mr-lead h2:first-child {
  margin-top: 0;
}

.single-product .summary .mr-lead h3 {
  margin: 24px 0px 12px 0px;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0.03em;
  opacity: 0.92; /* ← 主張しすぎない */
}

/* --- facts（仕様・例リスト） --- */
.single-product .summary .mr-facts {
  margin: 14px 0 0;
  padding-left: 1.1em;
  font-size: 13px;
  opacity: 0.82; /* ← 補助情報として落ち着かせる */
  line-height: 1.75; /* ← 詰まり感を減らす */
}

.single-product .summary .mr-facts li {
  margin: 0 0 7px;
}

/* --- delivery（納期の別枠） --- */
.single-product .summary .mr-delivery {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 10px; /* ← 8→10：わずかに洗練 */
}

.single-product .summary .mr-delivery__title {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.single-product .summary .mr-delivery__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  opacity: 0.9;
}

/* 「追加情報」タブ開始位置が詰まって見えるのを緩和 */
.single-product .woocommerce-tabs {
  margin-top: 34px;
}

/* --- 右カラム上部の“塊化” --- */
.single-product .summary .single-product-category {
  margin-bottom: 8px;
}

.single-product .summary .product_title {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: 0.02em;
}

.single-product .summary .price {
  margin: 0 0 0 16px; /* ← 22→18：間延びを少し抑える */
  font-size: 20px;
  font-weight: 600;
}

/* PCだけ：上の詰まりをほんの少し整える */
@media (min-width: 1025px) {
  .single-product div.product div.summary {
    padding-top: 12px; /* 既存値維持 */
  }
}

/* ===== 段1（画像＋summary）レイアウト：Astra標準に戻す =====
   flex化はしない。float前提のまま“崩れない”ように復元する。
*/
@media (min-width: 922px) {
  /* 以前のCSSでfloatが壊れている可能性に備えて復元 */
  .woocommerce-page div.product div.images,
  .woocommerce-page div.product div.woocommerce-product-gallery {
    float: left !important;
    width: 48% !important;
    clear: none !important;
    margin-right: 0 !important; /* ★ここ重要：margin-right 40px を殺す */
  }

  .woocommerce-page div.product div.summary {
    float: right !important;
    width: 48% !important;
    clear: none !important;
  }
}

/* ===== 段2（ご注文内容）＝全幅 ===== */
.gg-order-section {
  width: 100%;
  clear: both;
  margin-top: 28px;
  margin-bottom: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}
.gg-order-title {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.3;
}

/* ===============================
  商品ページ下部ブロック
================================ */

.mr-safe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin: 80px 0 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mr-safe-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.mr-safe-item p {
  font-size: 14px;
  line-height: 1.9;
  color: #444;
}

/* ===============================
   SP対応（縦積み）
================================ */

@media (max-width: 768px) {
  .mr-safe-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin: 50px 0 40px;
    padding-top: 30px;
  }
}

/* sticky glitch fix */
body.single-product.woocommerce div.product {
  overflow: visible;
}

body.single-product.woocommerce
  div.product
  div.woocommerce-product-gallery.gg-sticky-on {
  position: sticky;
  top: 140px;
}

/* 商品ページ 下段の回り込み防止 */
.single-product .gg-order-section,
.single-product .fpd-product-designer-wrapper,
.single-product .woocommerce-tabs,
.single-product .related.products,
.single-product .up-sells,
.single-product .upsells {
  clear: both;
}

/* 商品ページのfloat解除保険 */
.single-product div.product::after {
  content: "";
  display: block;
  clear: both;
}

/* =========================================
   商品ページ float containment fix
========================================= */
@media (min-width: 992px) {
  /* 段1の左右カラムを product 内で確実に包含する */
  body.single-product.woocommerce div.product {
    display: flow-root;
  }

  /* flow-root が効かない環境向け保険 */
  body.single-product.woocommerce div.product::after {
    content: "";
    display: block;
    clear: both;
  }

  /* 段2以降は必ず新しい段として開始 */
  body.single-product.woocommerce div.product .woocommerce-tabs,
  body.single-product.woocommerce .related.products,
  body.single-product.woocommerce .up-sells,
  body.single-product.woocommerce .upsells,
  body.single-product.woocommerce .fpd-product-designer-wrapper,
  body.single-product.woocommerce .gg-order-section {
    clear: both;
    display: block;
    width: 100%;
  }
}

/* tabs は div.product の外にあるため、外側で段を切る */
@media (min-width: 992px) {
  body.single-product.woocommerce .woocommerce-tabs.wc-tabs-wrapper {
    clear: both;
    display: block;
    width: 100%;
  }

  body.single-product.woocommerce .related.products,
  body.single-product.woocommerce .up-sells,
  body.single-product.woocommerce .upsells {
    clear: both;
    display: block;
    width: 100%;
  }
}

@media (min-width: 992px) {
  body.single-product.woocommerce article.ast-article-single {
    overflow: visible;
  }

  body.single-product.woocommerce article.ast-article-single::after {
    content: "";
    display: block;
    clear: both;
  }
}

/* =========================================
   商品ページPC: 上段をfloatではなくflexで固定
========================================= */
@media (min-width: 992px) {
  body.single-product.woocommerce div.product {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px;
  }

  body.single-product.woocommerce div.product div.woocommerce-product-gallery,
  body.single-product.woocommerce div.product div.summary {
    float: none !important;
    clear: none !important;
    margin: 0;
  }

  body.single-product.woocommerce div.product div.woocommerce-product-gallery {
    width: calc(50% - 20px);
    max-width: calc(50% - 20px);
    position: static !important;
    top: auto !important;
  }

  body.single-product.woocommerce div.product div.summary {
    width: calc(50% - 20px);
    max-width: calc(50% - 20px);
    max-height: calc(100vh - 200px);
    overflow: auto;
    padding-right: 10px;
    padding-bottom: 160px;
  }

  body.single-product.woocommerce .woocommerce-tabs.wc-tabs-wrapper,
  body.single-product.woocommerce .related.products,
  body.single-product.woocommerce .up-sells,
  body.single-product.woocommerce .upsells,
  body.single-product.woocommerce .fpd-product-designer-wrapper,
  body.single-product.woocommerce .gg-order-section {
    width: 100%;
    flex-basis: 100%;
    clear: both;
  }
}

/* FPD下の注文ブロックを元の2カラムに戻す */
@media (min-width: 992px) {
  body.single-product.woocommerce .gg-order-section {
    width: 100%;
    flex-basis: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }

  body.single-product.woocommerce .gg-order-section > * {
    min-width: 0;
  }
}
/* FPD下2カードのレイアウト修正 */
@media (min-width: 992px) {
  body.single-product.woocommerce .gg-fpd-bottom-row {
    width: 100%;
    flex-basis: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
  }

  .gg-fpd-bottom-row > * {
    display: flex;
    flex-direction: column;
  }

  body.single-product.woocommerce .gg-fpd-current-summary,
  body.single-product.woocommerce .gg-fpd-cart-cta {
    min-width: 0;
    width: auto;
    margin: 0;
    height: 100%;
  }
}

/* 商品ページ 上余白の圧縮 */
.single-product #primary {
  margin-top: 0;
}

.single-product main.site-main {
  padding-top: 0;
}

.single-product .ast-woocommerce-container {
  padding-top: 16px;
}
/* 商品ページ SP 上余白の本修正 */
@media (max-width: 920px) {
  .single-product.ast-separate-container #primary {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  .single-product .ast-woocommerce-container {
    padding-top: 8px !important;
  }
}
.single-product .product_title {
  margin-top: 12px;
}

/* 商品画像の虫眼鏡（ズームボタン）を非表示 */
.single-product .woocommerce-product-gallery__trigger {
  display: none !important;
}

/* 商品画像のCLS防止 */
.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__image {
  aspect-ratio: 1 / 1;
}

.single-product .woocommerce-product-gallery__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===============================
   09. WAPF Basic
   =============================== */
/* === APF整理（Phase.2固定） === */

.gg-order-section .wapf-field-row {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.gg-order-section .wapf-field-row:last-child {
  border-bottom: none;
}

.gg-order-section .wapf-field-label {
  margin-bottom: 8px;
}

.gg-order-section .wapf-field-label label span {
  font-weight: 600;
  letter-spacing: 0.05em;
}

.gg-order-section .wapf-field-description {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 10px;
  color: #666;
}

.gg-order-section .wapf-field-input select,
.gg-order-section .wapf-field-input textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
}
/* === APF体裁微調整（Phase.2） === */

/* 説明文を「補助情報」へ落とす */
.gg-order-section .wapf-field-description {
  font-size: 0.875rem;
  color: #777;
  margin-top: 2px;
  margin-bottom: 12px;
  max-width: 62ch; /* PCで長文が横に伸びすぎない */
}

/* 必須*の視認性だけ少し上げる（色は大きく変えない） */
.gg-order-section .wapf-field-label abbr.required {
  font-weight: 700;
  text-decoration: none;
  opacity: 0.85;
}

/* ラジオ/チェックのタップ事故を減らす */
.gg-order-section .wapf-checkable {
  padding: 6px 0;
}
.gg-order-section .wapf-input-label {
  display: inline-flex;
  gap: 8px;
  align-items: flex-start;
}
.gg-order-section .wapf-input[type="radio"],
.gg-order-section .wapf-input[type="checkbox"] {
  margin-top: 3px;
}

/* textareaの見え方（入力領域としての“格”を上げる） */
.gg-order-section .wapf-field-input textarea {
  min-height: 120px;
  line-height: 1.7;
}

/* SPだけ、ブロック間余白を少し縮める（縦が長くなりすぎるのを抑制） */
@media (max-width: 600px) {
  .gg-order-section .wapf-field-row {
    margin-bottom: 22px;
    padding-bottom: 18px;
  }
}
/* 石留の方法を少し“従属”させる */
.gg-order-section .wapf-field-container[for="6977052edb558"] {
  margin-top: -8px;
}
/* Selectの文字欠け対策（WAPF + 変数） */
.gg-order-section .wapf-field-input select,
.gg-order-section .variations select {
  font-size: 16px; /* まず標準に固定（SPズーム回避にも効く） */
  line-height: 1.4; /* 行高を確保（下欠け対策の本丸） */
  padding-top: 10px;
  padding-bottom: 10px; /* 上下paddingを増やす */
  height: auto; /* 変な固定heightを無効化 */
  min-height: 44px; /* タップ領域と視認性を確保 */
  box-sizing: border-box; /* paddingで崩れない */
}

.gg-order-section .gg-finish-ref {
  margin-top: 12px;
}

.gg-order-section .gg-finish-ref img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.gg-order-section .gg-ref-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 6px;
}
/* FPDが2カラムの間に割り込むのを防ぐ：必須 */
.fpd-product-designer-wrapper {
  clear: both;
  display: block;
  width: 100%;
}

/* 念のため本体も100%に */
.fpd-product-designer-wrapper .fpd-container {
  width: 100%;
  max-width: 100%;
}

/* =========================================
   商品ページ（PC）
   右：内部スクロール / 左：FPD手前までsticky（FPDでOFF）
========================================= */

@media (min-width: 992px) {
  /* ---------- 右：内部スクロール（選択肢に届く） ---------- */
  body.single-product.woocommerce div.product div.summary {
    max-height: calc(100vh - 200px);
    overflow: auto;
    padding-right: 10px;
  }

  /* スクロールバーを静かに（Chrome / Edge） */
  body.single-product.woocommerce div.product div.summary::-webkit-scrollbar {
    width: 6px;
  }
  body.single-product.woocommerce
    div.product
    div.summary::-webkit-scrollbar-track {
    background: transparent;
  }
  body.single-product.woocommerce
    div.product
    div.summary::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 999px;
  }
  body.single-product.woocommerce
    div.product
    div.summary:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.28);
  }
}

@media (min-width: 992px) {
  /* 左：通常はsticky禁止（JSがONの時だけ） */
  body.single-product.woocommerce div.product div.woocommerce-product-gallery {
    position: static;
    top: auto;
    z-index: 1;
  }
  body.single-product.woocommerce div.product div.woocommerce-product-gallery {
    position: static;
  }
  /* ★FPD以降は強制的にsticky禁止（gg-sticky-onが残っても無効化） */
  body.single-product.woocommerce.gg-after-fpd
    div.product
    div.woocommerce-product-gallery,
  body.single-product.woocommerce.gg-after-fpd
    div.product
    div.woocommerce-product-gallery.gg-sticky-on {
    position: static;
    top: auto;
  }

  /* 右カラムの下余白（FPDと被らないための保険） */
  body.single-product.woocommerce div.product div.summary {
    padding-bottom: 160px;
  }

  /* FPDは前面＆段3固定 */
  .fpd-product-designer-wrapper {
    clear: both;
    position: relative;
    z-index: 5;
    margin-top: 40px; /* 24〜60で調整可 */
  }
}

@media (min-width: 992px) {
  body.single-product.woocommerce div.product div.summary .gg-scroll-hint {
    font-size: 13px; /* ←少し上げる */
    line-height: 1.4;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.55);
    margin: 8px 0 14px 0; /* ←上下に“気づきの余白” */
    padding-left: 2px;
    display: none;
  }

  body.single-product.woocommerce
    div.product
    div.summary.gg-has-more
    .gg-scroll-hint {
    display: block;
  }
}

/* =========================================
Woo variations：ラベルが改行される問題を止める 
========================================= */
/* Woo variations：ラベルが改行される問題を止める */
.variations th.label,
.variations th.label label {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

/* ラベル列が細すぎる時の保険（必要なら） */
.variations th.label {
  min-width: 6em; /* 「リングサイズ」が1行で入る程度 */
}

/* =========================================
   表面仕上げ：選択＝常時ホバー（確定DOM版）
   DOM: .wapf-swatch ... .wapf-checked > label > input + .apf-pick-box
========================================= */

/* ベース（空気を壊さない範囲） */
.wapf-swatch {
  border-radius: 10px;
  /* overflow: hidden;  ←いったん外す */
}

/* 画像ボックス */
.wapf-swatch .apf-pick-box {
  border-radius: 10px;
  overflow: hidden;
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease;
}

/* hover（PC）*/
@media (hover: hover) {
  .wapf-swatch:hover .apf-pick-box {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    transform: translateY(-2px);
  }
}

.wapf-swatch.wapf-checked .apf-pick-box {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* ラベルはそのまま（必要なら） */
.wapf-swatch-label {
  font-weight: 500;
}

/* =========================================
   Order Block Spacing (gg-order-section)
   - WAPF項目間の“詰まり”を解消（最小）
========================================= */

/* 注文ブロック全体の呼吸 */
.gg-order-section .wapf-field-row {
  margin-bottom: 26px;
  padding-bottom: 22px;
}

/* ラベルと入力の距離 */
.gg-order-section .wapf-field-label {
  margin-bottom: 10px;
}

/* 説明文（補足）を少し下げて詰まりを解消 */
.gg-order-section .wapf-field-description {
  margin-top: 6px;
  margin-bottom: 12px;
}

/* swatch系（仕上げ）と次項目の距離 */
.gg-order-section .wapf-swatch {
  margin-bottom: 10px;
}

/* 誕生石ラジオ → 次の刻印ブロックまでの距離 */
.gg-order-section .wapf-field-input {
  margin-top: 6px;
}

/* 刻印ブロック（あなたの gg-mr20-block）自体の上下余白 */
.gg-order-section .gg-mr20-block {
  margin-top: 10px;
  margin-bottom: 18px;
}

/* 受注制作（mr-delivery）を置いた後、カート前に呼吸 */
.gg-order-section .mr-delivery {
  margin-top: 18px;
  margin-bottom: 18px;
}

.gg-order-section .wapf-field-row:first-of-type {
  margin-top: 6px;
}

.gg-order-section .wapf-field-row + .wapf-field-row {
  margin-top: 8px;
}
/* ===============================
   09 WAPF Basic
   MR UI shell v1
   =============================== */

/* 注文UI全体の余白リズム */
.single-product .single_variation_wrap {
  display: grid;
  gap: 22px;
}

/* -------------------------------
   仕様島
   - 仕上げ
   - 誕生石スイッチ
   - 誕生石 section
   - cloner
   ------------------------------- */
.single-product .single_variation_wrap > .field-1d1ad54,
.single-product .single_variation_wrap > .field-3d486ff,
.single-product .single_variation_wrap > .cloner-3d486ff {
  background: #f7f6f2;
  border: 1px solid #e5e1d8;
}

.single-product .single_variation_wrap > .field-1d1ad54 {
  border-radius: 16px 16px 0 0;
  border-bottom: 0;
  padding: 18px 18px 10px;
}

.single-product .single_variation_wrap > .field-3d486ff {
  border-top: 0;
  border-bottom: 0;
  padding: 4px 18px 8px;
}

.single-product .single_variation_wrap > .cloner-3d486ff {
  border-top: 0;
  border-radius: 0 0 16px 16px;
  padding: 4px 18px 18px;
}

/* 仕上げ単体は仕様島の前段として静かに */
.single-product .single_variation_wrap > .field-7708403,
.single-product .single_variation_wrap > .field-1d1ad54 {
  margin-top: 0;
}
/* ===============================
   10. Engrave UI (MR Series)
   =============================== */
#gg-maxchars {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ===============================
   Motif Button (Product Page)
   - WAPF clonerと区別する
================================= */
.gg-motif-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #ffffff;
  color: rgba(0, 0, 0, 0.78);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 8px;
  text-decoration: none;
}

/* アイコンを付ける（見分けがつく） */
.gg-motif-open-btn::before {
  content: "✳︎";
  font-size: 12px;
  opacity: 0.8;
}

/* hover */
.gg-motif-open-btn:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.28);
}

/* focus（キーボード操作でも見える） */
.gg-motif-open-btn:focus {
  outline: 2px solid rgba(0, 0, 0, 0.22);
  outline-offset: 2px;
}

/* WAPFの＋−ボタンと見た目が混ざる場合の保険 */
.wapf-cloner .gg-motif-open-btn {
  background: #fff;
}

/* ===============================
   Engraving UI (outer/inner)
   - rule set for textarea + hint + buttons
================================= */

/* 刻印textarea本体 */
.gg-engrave-outer textarea,
.gg-engrave-inner textarea {
  width: 100%;
  min-height: 84px;
  padding: 12px 12px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.3px;
  background: #fff;
  color: rgba(0, 0, 0, 0.8);
  resize: vertical;
}

.gg-engrave-outer textarea:focus,
.gg-engrave-inner textarea:focus {
  outline: 2px solid rgba(0, 0, 0, 0.18);
  outline-offset: 2px;
  border-color: rgba(0, 0, 0, 0.22);
}

/* “この欄はこう使う”のヒント（JSで入れてもいいし、手動でもOK） */
.gg-engrave-hint {
  margin: 8px 0 10px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.55);
}

/* ボタンは前に出したものを踏襲しつつ、刻印エリア専用に安定化 */
.gg-engrave-actions .gg-motif-open-btn {
  margin: 0;
}

/* ===============================
   Engraving Base UI (MR2.0基準)
================================= */

.gg-engrave-base textarea {
  width: 100%;
  min-height: 84px;
  padding: 12px 12px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.3px;
  background: #fff;
  color: rgba(0, 0, 0, 0.8);
  resize: vertical;
}

.gg-engrave-base textarea:focus {
  outline: 2px solid rgba(0, 0, 0, 0.18);
  outline-offset: 2px;
  border-color: rgba(0, 0, 0, 0.22);
}

/* ヒント文（後で入れるなら） */
.gg-engrave-base .gg-engrave-hint {
  margin: 8px 0 10px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.55);
}

.gg-engrave-base .wapf-field-label span {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.4px;
}

/* MR2.0 刻印ヒント */
.gg-engrave-base .wapf-field-description {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.65); /* 少しだけ濃く */
}

/* Engraving actions */
.gg-engrave-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 6px;
}
.gg-engrave-linkbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #fff;
  color: rgba(0, 0, 0, 0.78);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.gg-engrave-linkbtn:hover {
  background: rgba(0, 0, 0, 0.03);
}

/* ========== MR2.0 記入例（スコープ限定） ========== */
.gg-examples {
  margin-top: 10px;
}
.gg-examples-note {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.85;
}

.gg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 14px;
}
.gg-btn:hover {
  background: rgba(255, 255, 255, 0.85);
}

/* MR2.0 刻印メタ行：目安文字数 + オーダー方法ボタンを横並び */
.gg-mr20-block #gg-maxchars {
  display: inline-block;
  margin: 8px 10px 10px 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.65);
  vertical-align: middle;
}

/* MR2.0：刻印オーダー方法（さりげないボタン風） */
.gg-mr20-block .gg-engrave-header .gg-open-example {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.02);
  font-size: 13px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.72);
  text-decoration: none;
  box-shadow: none;
}

/* hoverは控えめ */
.gg-mr20-block .gg-engrave-header .gg-open-example:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.18);
}

/* 「案内」感を少しだけ出す（任意） */
.gg-mr20-block .gg-engrave-header .gg-open-example::before {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  font-size: 11px;
  opacity: 0.75;
}

/* ボタンは“補助”の見え方に落とす（入力の邪魔をしない） */
.gg-mr20-block .gg-examples .gg-btn {
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 10px;
}

/* MR2.0 刻印：使用可能文字（補足） */
.gg-mr20-block .gg-engrave-allowed {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.6);
}

.gg-maxchars.is-waiting {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.5);
  font-weight: 400;
}

.gg-maxchars {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.8);
}

.gg-engrave-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.gg-engrave-title {
  font-weight: 600;
  font-size: 14px;
}

.gg-mr20-block .gg-engrave-header {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* ←ここ */
  gap: 10px; /* ←ここ（距離） */
  margin: 10px 0 6px;
}

.gg-mr20-block .gg-engrave-header .gg-open-example {
  margin-left: 0px; /* 好みで 0〜16px */
}

.gg-mr20-block .gg-engrave-title {
  font-weight: 600;
  font-size: 14px;
}

.gg-mr20-block #gg-maxchars {
  margin: 2px 0 6px; /* 上下圧縮 */
  font-size: 0.9em; /* 少し小さく */
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.6);
}
.gg-mr20-block #gg-maxchars.is-waiting {
  color: rgba(0, 0, 0, 0.5);
  font-weight: 400;
}

/* MR2.0R：刻印オーダー方法（さりげないボタン風） */
.gg-mr20r-block .gg-engrave-header .gg-open-example {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.02);
  font-size: 13px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.72);
  text-decoration: none;
  box-shadow: none;
}

/* hoverは控えめ */
.gg-mr20r-block .gg-engrave-header .gg-open-example:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.18);
}

/* 「案内」感を少しだけ出す（任意） */
.gg-mr20r-block .gg-engrave-header .gg-open-example::before {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  font-size: 11px;
  opacity: 0.75;
}

/* ボタンは“補助”の見え方に落とす（入力の邪魔をしない） */
.gg-mr20r-block .gg-examples .gg-btn {
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 10px;
}

/* MR2.0 刻印：使用可能文字（補足） */
.gg-mr20r-block .gg-engrave-allowed {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.6);
}

.gg-mr20r-block .gg-engrave-header {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* ←ここ */
  gap: 10px; /* ←ここ（距離） */
  margin: 10px 0 6px;
}

.gg-mr20r-block .gg-engrave-header .gg-open-example {
  margin-left: 0px; /* 好みで 0〜16px */
}

.gg-mr20r-block .gg-engrave-title {
  font-weight: 600;
  font-size: 14px;
}

.gg-mr20r-block #gg-maxchars {
  margin: 2px 0 6px; /* 上下圧縮 */
  font-size: 0.9em; /* 少し小さく */
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.6);
}
.gg-mr20r-block #gg-maxchars.is-waiting {
  color: rgba(0, 0, 0, 0.5);
  font-weight: 400;
}

/* ===============================
   gg-mr25-block
   MR2.5 刻印入力UI
   =============================== */

.gg-mr25-block {
  margin: 16px 0 24px;
}

/* 刻印入力タイトル */
.gg-mr25-block .wapf-field-label {
  margin-bottom: 6px;
}

.gg-mr25-block .wapf-field-label label span {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.82);
}

/* 説明文 */
.gg-mr25-block .wapf-field-description {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.58);
  margin-bottom: 8px;
}

/* テキスト入力欄 */
.gg-mr25-block textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px 14px;

  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 10px;

  font-size: 14px;
  line-height: 1.6;
  background: #fff;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* フォーカス */
.gg-mr25-block textarea:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

/* 刻印ガイド文 */
.gg-mr25-block .gg-engrave-guide {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.55);
}

/* SP調整 */
@media (max-width: 600px) {
  .gg-mr25-block textarea {
    min-height: 84px;
    font-size: 13px;
  }
}

/* ===============================
   gg-mr25-buttons
   MR2.5 操作ボタン群
   - 刻印のオーダー方法
   - 誕生石を挿入
   - モチーフを挿入
   =============================== */

/* ボタン行 */
.gg-mr25-block .gg-engrave-actions,
.gg-mr25-block .gg-engrave-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 10px;
}

/* タイトル行の基本 */
.gg-mr25-block .gg-engrave-title {
  font-weight: 600;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.82);
  margin-right: 2px;
}

/* 共通ボタン */
.gg-mr25-block .gg-engrave-linkbtn,
.gg-mr25-block .gg-open-example,
.gg-mr25-block .gg-birthstone-insert-btn,
.gg-mr25-block .gg-motif-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  min-height: 38px;
  padding: 8px 12px;

  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.92);
  color: rgba(0, 0, 0, 0.74);

  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;

  box-shadow: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

/* hover */
.gg-mr25-block .gg-engrave-linkbtn:hover,
.gg-mr25-block .gg-open-example:hover,
.gg-mr25-block .gg-birthstone-insert-btn:hover,
.gg-mr25-block .gg-motif-open-btn:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.22);
  color: rgba(0, 0, 0, 0.84);
}

/* focus */
.gg-mr25-block .gg-engrave-linkbtn:focus,
.gg-mr25-block .gg-open-example:focus,
.gg-mr25-block .gg-birthstone-insert-btn:focus,
.gg-mr25-block .gg-motif-open-btn:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

/* 「刻印のオーダー方法」は少し案内寄り */
.gg-mr25-block .gg-open-example::before {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);

  font-size: 11px;
  line-height: 1;
  opacity: 0.75;
}

/* 誕生石を挿入 */
.gg-mr25-block .gg-birthstone-insert-btn::before {
  content: "✦";
  font-size: 11px;
  opacity: 0.72;
}

/* モチーフ挿入 */
.gg-mr25-block .gg-motif-open-btn::before {
  content: "✳";
  font-size: 11px;
  opacity: 0.72;
}

/* WAPF/既存の余白を打ち消す保険 */
.gg-mr25-block .gg-open-example,
.gg-mr25-block .gg-motif-open-btn {
  margin: 0;
}

/* スマホ */
@media (max-width: 600px) {
  .gg-mr25-block .gg-engrave-actions,
  .gg-mr25-block .gg-engrave-header {
    gap: 8px;
  }

  .gg-mr25-block .gg-engrave-linkbtn,
  .gg-mr25-block .gg-open-example,
  .gg-mr25-block .gg-birthstone-insert-btn,
  .gg-mr25-block .gg-motif-open-btn {
    min-height: 36px;
    padding: 8px 11px;
    font-size: 12px;
  }
}

/* ===============================
   MR2.5R用
   =============================== */
.gg-engrave-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gg-engrave-header .gg-open-example {
  margin-left: auto;
  white-space: nowrap;
}

/* ===============================
   gg-engrave-actions
   ボタン行（header直下）
   =============================== */

.gg-engrave-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 10px;
}

.gg-engrave-actions .gg-motif-open-btn,
.gg-engrave-actions .gg-birthstone-insert-btn {
  margin: 0;
}

/* MR2.5内での見え方を固定 */
.gg-mr25-block .gg-engrave-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 10px 0 4px;
}

.gg-mr25-block .gg-engrave-actions {
  margin: 0 0 10px;
}

@media (max-width: 600px) {
  .gg-engrave-actions {
    gap: 8px;
  }
}

/* ===============================
   gg-engrave-mode
   刻印の指定方法（テキスト / シミュレーター）
   =============================== */

.gg-engrave-mode {
  margin: 0 0 24px;
}

.gg-engrave-mode .wapf-field-label {
  margin-bottom: 10px;
}

.gg-engrave-mode .wapf-field-label label span {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.82);
}

/* 入力欄全体 */
.gg-engrave-mode .wapf-field-input {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 各選択肢 */
.gg-engrave-mode .wapf-checkable {
  margin: 0;
}

/* ラベルをカード化 */
.gg-engrave-mode .wapf-input-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  box-sizing: border-box;

  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* hover */
.gg-engrave-mode .wapf-input-label:hover {
  border-color: rgba(0, 0, 0, 0.22);
  background: rgba(0, 0, 0, 0.015);
}

/* checked */
.gg-engrave-mode .wapf-checkable.wapf-checked .wapf-input-label {
  border-color: rgba(0, 0, 0, 0.34);
  background: rgba(0, 0, 0, 0.03);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

/* ラジオ本体 */
.gg-engrave-mode .wapf-input {
  flex: 0 0 auto;
  margin-top: 4px;
}

/* テキスト部分 */
.gg-engrave-mode .wapf-label-text,
.gg-engrave-mode .wapf-input-label span,
.gg-engrave-mode .wapf-input-label div {
  display: block;
  min-width: 0;
  flex: 1 1 auto;

  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.82);

  text-align: left;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
  writing-mode: horizontal-tb;
}

/* 補助説明 */
.gg-engrave-mode .wapf-checkable:first-child .wapf-input-label::after {
  content: "入力欄に刻印内容を記入して指定します";
  display: block;
  width: 100%;
  margin-left: 28px;
  margin-top: 4px;

  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.58);
  text-align: left;
}

.gg-engrave-mode .wapf-checkable:nth-child(2) .wapf-input-label::after {
  content: "画面で配置を確認しながら指定します";
  display: block;
  width: 100%;
  margin-left: 28px;
  margin-top: 4px;

  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.58);
  text-align: left;
}

/* フォーカス */
.gg-engrave-mode .wapf-input-label:has(.wapf-input:focus-visible) {
  border-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

/* SP */
@media (max-width: 600px) {
  .gg-engrave-mode .wapf-input-label {
    padding: 13px 14px;
    gap: 10px;
  }

  .gg-engrave-mode .wapf-label-text,
  .gg-engrave-mode .wapf-input-label span,
  .gg-engrave-mode .wapf-input-label div {
    font-size: 13px;
  }

  .gg-engrave-mode .wapf-checkable:first-child .wapf-input-label::after,
  .gg-engrave-mode .wapf-checkable:nth-child(2) .wapf-input-label::after {
    margin-left: 26px;
    font-size: 11px;
  }
}

.gg-simulator-note {
  display: block;
  margin: 10px 0 14px;
  padding-left: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: #5a5a5a;
  text-indent: 0;
  overflow: visible;
  white-space: normal;
}

/* ===============================
   Engrave Mode Help
   =============================== */

.gg-engrave-mode .wapf-field-label label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gg-open-engrave-mode-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.gg-engrave-mode-help-body p {
  margin: 0 0 14px;
  line-height: 1.9;
}

.gg-engrave-mode-help-body p:last-child {
  margin-bottom: 0;
}

/* MR2.0系とMR2.5Rのみ刻印オーダー方法を表示 */

/* 刻印オーダー方法ボタン */
.gg-open-example {
  display: none !important;
}

/* MR2.0 */
.gg-mr20-block .gg-open-example {
  display: inline-flex !important;
}

/* MR2.0R */
.gg-mr20r-block .gg-open-example {
  display: inline-flex !important;
}

/* MR2.5Rだけ許可 */
.gg-mr25r-block .gg-open-example {
  display: inline-flex !important;
}
/* ===============================
   MR2.5 / Engrave mode UI
   - 2行完成版 微調整
   =============================== */

.gg-engrave-mode .wapf-field-label {
  margin-bottom: 14px;
}

.gg-engrave-mode .wapf-field-label span {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.gg-engrave-mode .wapf-radios {
  display: grid;
  gap: 12px;
}

.gg-engrave-mode .wapf-radio.gg-mode-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gg-engrave-mode .wapf-radio.gg-mode-row > .wapf-input-label {
  flex: 0 1 250px;
  margin: 0;
  padding-left: 14px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  box-shadow: none;
}

.gg-engrave-mode .wapf-radio.gg-mode-row > .wapf-input-label:hover {
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.01);
}

.gg-engrave-mode
  .wapf-radio.gg-mode-row
  > .wapf-input-label
  input[type="radio"] {
  position: relative;
  top: 0;
  transform: translateY(-1px);
  margin: 0 10px 0 0;
  flex: 0 0 auto;
}

.gg-engrave-mode .wapf-radio.gg-mode-row > .wapf-input-label .wapf-custom {
  margin: 0;
}

.gg-engrave-mode .wapf-radio.gg-mode-row > .wapf-input-label .wapf-label-text {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.78);
  letter-spacing: 0.01em;
}

.gg-engrave-mode .wapf-radio.gg-mode-row > .gg-open-engrave-mode-help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 9px;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.03);
  color: rgba(0, 0, 0, 0.68);
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  flex: 0 0 auto;
}

.gg-engrave-mode .wapf-radio.gg-mode-row > .gg-open-engrave-mode-help:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.16);
}

.gg-engrave-mode .wapf-radio.gg-mode-row > .gg-open-engrave-mode-help::before {
  content: "?";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.16);
  font-size: 10px;
  opacity: 0.76;
}

@media (max-width: 767px) {
  .gg-engrave-mode .wapf-field-label {
    margin-bottom: 12px;
  }

  .gg-engrave-mode .wapf-radios {
    gap: 9px;
  }

  .gg-engrave-mode .wapf-radio.gg-mode-row {
    gap: 10px;
  }

  .gg-engrave-mode .wapf-radio.gg-mode-row > .wapf-input-label {
    flex: 1 1 auto;
    min-height: 38px;
    padding-left: 12px;
  }

  .gg-engrave-mode
    .wapf-radio.gg-mode-row
    > .wapf-input-label
    .wapf-label-text {
    min-height: 38px;
    font-size: 13px;
  }

  .gg-engrave-mode .wapf-radio.gg-mode-row > .gg-open-engrave-mode-help {
    min-height: 28px;
    padding: 5px 8px;
    font-size: 11px;
  }
}

/* 自由入力の説明だけ表示 */
.gg-free-note .wapf-field-label {
  margin-bottom: 6px;
}

.gg-free-note .wapf-field-input::before {
  content: "お好きな言葉を自由にご入力いただけます。";
  display: block;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: #666;
}
/* ===============================
   10 Engrave UI (MR Series)
   MR template island
   =============================== */
/* シミュレーター指定時は通常説明を非表示 */
.gg-simulator-mode .gg-engrave-help {
  display: none;
}
/* -------------------------------
   刻印島
   - gg-engrave-mode
   - gg-mr25-block
   - gg-engrave-allowed
   - mr-delivery
   ------------------------------- */
.single-product .single_variation_wrap > .gg-engrave-mode,
.single-product .single_variation_wrap > .gg-mr25-block,
.single-product .single_variation_wrap > .field-22e307e,
.single-product .single_variation_wrap > .mr-delivery {
  background: #fbfaf7;
  border-left: 1px solid #e6e1d7;
  border-right: 1px solid #e6e1d7;
}

.single-product .single_variation_wrap > .gg-engrave-mode {
  border-top: 1px solid #e6e1d7;
  border-radius: 16px 16px 0 0;
  padding: 18px 18px 10px;
  margin-top: 0;
  margin-bottom: 0;
}

.single-product .single_variation_wrap > .gg-mr25-block {
  padding: 8px 18px 12px;
  margin-top: 0;
}

.single-product .single_variation_wrap > .field-22e307e {
  padding: 6px 18px 0;
}

.single-product .single_variation_wrap > .mr-delivery {
  border-bottom: 1px solid #e6e1d7;
  border-radius: 0 0 16px 16px;
  padding: 10px 18px 18px;
}

/* WAPF標準ラベルの密度を下げる */
.gg-engrave-mode .wapf-field-label,
.guru-birthstone-switch .wapf-field-label {
  margin-bottom: 10px;
}

.gg-engrave-mode .wapf-field-label span,
.guru-birthstone-switch .wapf-field-label span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #3e3c38;
}

/* ラジオ行 */
.gg-mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
}

.gg-mode-row + .gg-mode-row {
  border-top: 1px solid #ece7de;
}

/* ラベル側を静かに */
.gg-mode-row .wapf-input-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.gg-mode-row .wapf-label-text {
  font-size: 15px;
  color: #4c4943;
}

/* -------------------------------
   help ピル
   - 信頼感は出す
   - でも主役にはしない
   ------------------------------- */
.gg-open-engrave-mode-help,
.gg-open-example,
.gg-open-birthstone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d7d1c6;
  border-radius: 999px;
  background: #f3f0ea;
  color: #4b4944;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.gg-open-engrave-mode-help:hover,
.gg-open-example:hover,
.gg-open-birthstone:hover {
  background: #ede7dd;
  border-color: #ccc4b8;
  color: #3f3c36;
}

/* 刻印ヘッダ */
.gg-engrave-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.gg-engrave-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #3e3c38;
}

/* 挿入アクション */
.gg-engrave-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.gg-motif-open-btn,
.gg-open-birthstone {
  min-height: 38px;
  padding: 0 14px;
}

/* 文字数ガイド */
#gg-maxchars,
.gg-maxchars {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.7;
  color: #6a655d;
}

/* テキストエリア本体 */
.gg-engrave-base textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px 16px;
  border: 1px solid #d9d3c7;
  border-radius: 12px;
  background: #fffdfa;
  color: #3f3c36;
  font-size: 15px;
  line-height: 1.8;
  resize: vertical;
  box-sizing: border-box;
}

.gg-engrave-base textarea:focus {
  outline: none;
  border-color: #bfb6a8;
}

/* 使用可能文字 */
.gg-engrave-allowed {
  font-size: 13px;
  line-height: 1.9;
  color: #666158;
  padding-top: 2px;
}

/* 受注制作 */
.mr-delivery__title {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #403d37;
}

.mr-delivery__text {
  font-size: 13px;
  line-height: 1.9;
  color: #68635b;
}

/* 刻印島余白調整 */

.gg-engrave-mode {
  margin-bottom: 24px;
}

.gg-mr25-block {
  margin-top: 0;
}

/* 選択カードを少し軽く */

.gg-mode-row label {
  background: #ffffff;
  border: 1px solid #e3ded4;
}

.gg-mode-row label:hover {
  background: #f7f5f0;
}

/* 誕生石スイッチ余白調整 */
.guru-birthstone-switch .wapf-field-label {
  margin-bottom: 15px;
}

.gg-maxchars {
  margin: 12px 0 18px;
}

/* ===============================
   Active Engrave Side Highlight
   - 編集中面の視覚表示
   =============================== */

.gg-engrave-outer-block,
.gg-engrave-inner-block {
  position: relative;
  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

/* 通常時は静か */
.gg-engrave-outer-block .gg-engrave-header,
.gg-engrave-inner-block .gg-engrave-header {
  transition: color 0.18s ease;
}

/* 編集中の面だけ少し持ち上げる */
.gg-engrave-outer-block.is-active,
.gg-engrave-inner-block.is-active {
  background: #f7f3ec;
  box-shadow: inset 0 0 0 1px #ddd4c7;
}

/* タイトルも少しだけ明確化 */
.gg-engrave-outer-block.is-active .gg-engrave-title,
.gg-engrave-inner-block.is-active .gg-engrave-title {
  color: #2f2d29;
}

/* textarea まわりも軽く強調 */
.gg-engrave-outer-block.is-active .gg-engrave-base textarea,
.gg-engrave-inner-block.is-active .gg-engrave-base textarea {
  border-color: #c8beaf;
  background: #fffefd;
}

/* focus時は既存より少しだけ分かりやすく */
.gg-engrave-outer-block.is-active .gg-engrave-base textarea:focus,
.gg-engrave-inner-block.is-active .gg-engrave-base textarea:focus {
  box-shadow: 0 0 0 2px rgba(191, 182, 168, 0.18);
}

/* ===============================
   Insert Position Guide
   - 挿入位置ガイド
   =============================== */

.gg-insert-guide {
  display: none;
  margin: 8px 0 10px;
  padding-left: 6px;
  font-size: 12px;
  line-height: 1.7;
  color: #6f675d;
  overflow: visible;
}

.gg-insert-guide span {
  display: block;
}

.gg-insert-guide.is-visible {
  display: block;
}

.gg-engrave-base textarea {
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.gg-engrave-base textarea.gg-insert-flash {
  border-color: #c8beaf;
  background: #fffefd;
  box-shadow: 0 0 0 2px rgba(191, 182, 168, 0.16);
}

.gg-engrave-textmode {
  margin-left: 5px;
  padding-left: 12px;
  padding-right: 12px;
}
/* ===============================
   Engrave Example Modal
   - 刻印例モーダル
   =============================== */

.gg-engrave-example-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  min-height: 38px;
  padding: 8px 12px;

  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.92);
  color: rgba(0, 0, 0, 0.74);

  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;

  box-shadow: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.gg-engrave-example-btn:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.22);
  color: rgba(0, 0, 0, 0.84);
}

.gg-engrave-example-btn:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.gg-engrave-example-btn::before {
  content: "Aa";
  font-size: 11px;
  opacity: 0.72;
}

/* modal base */
.gg-engrave-example-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.gg-engrave-example-modal.is-open {
  display: block;
}

.gg-engrave-example-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.gg-engrave-example-modal__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, calc(100vw - 24px));
  max-height: min(86vh, 920px);
  overflow: auto;

  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.gg-engrave-example-modal__close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(0, 0, 0, 0.03);
  color: #333;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.gg-engrave-example-modal__head {
  padding: 22px 22px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.gg-engrave-example-modal__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.84);
}

.gg-engrave-example-modal__lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.6);
}

.gg-engrave-example-modal__body {
  padding: 18px 22px 22px;
}

.gg-engrave-example-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.gg-engrave-example-tab {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: rgba(0, 0, 0, 0.72);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.gg-engrave-example-tab:hover {
  background: rgba(0, 0, 0, 0.03);
}

.gg-engrave-example-tab.is-active {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.24);
  color: rgba(0, 0, 0, 0.86);
  font-weight: 600;
}

.gg-engrave-example-panel {
  display: none;
}

.gg-engrave-example-panel.is-active {
  display: block;
}

.gg-engrave-example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gg-engrave-example-card {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  background: #fbfaf7;
  padding: 14px 14px 13px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.gg-engrave-example-card:hover {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.gg-engrave-example-card:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.gg-engrave-example-card__top {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.84);
  letter-spacing: 0.02em;
}

.gg-engrave-example-card__bottom {
  display: block;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.58);
}

.gg-engrave-example-card__hint {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.42);
}

@media (max-width: 767px) {
  .gg-engrave-example-modal__panel {
    width: calc(100vw - 16px);
    max-height: 88vh;
  }

  .gg-engrave-example-modal__head {
    padding: 18px 16px 12px;
  }

  .gg-engrave-example-modal__body {
    padding: 14px 16px 18px;
  }

  .gg-engrave-example-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gg-engrave-example-card__top {
    font-size: 14px;
  }

  .gg-engrave-example-card__bottom {
    font-size: 12px;
  }

  .gg-engrave-example-btn {
    min-height: 36px;
    padding: 8px 11px;
    font-size: 12px;
  }
}
.gg-engrave-example-modal__footer {
  padding: 0 16px 16px;
  display: flex;
  justify-content: center;
}

.gg-engrave-example-modal__dictionary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 18px;
  border: 1px solid #d8d2cb;
  border-radius: 999px;
  background: #fff;
  color: #4b3f34;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.gg-engrave-example-modal__dictionary-btn:hover {
  background: #f7f3ef;
  border-color: #b9ab9b;
  color: #3f3428;
}
.gg-engrave-flash {
  animation: ggEngraveFlash 0.6s ease;
}

@keyframes ggEngraveFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(190, 170, 120, 0);
    background: #fff;
  }

  30% {
    box-shadow: 0 0 0 4px rgba(190, 170, 120, 0.25);
    background: #fffdf5;
  }

  100% {
    box-shadow: 0 0 0 0 rgba(190, 170, 120, 0);
    background: #fff;
  }
}

.gg-engrave-example-view {
  display: none;
}

.gg-engrave-example-view.is-active {
  display: block;
}

.gg-engrave-example-modal__head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.gg-engrave-example-modal__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #d8d2cb;
  border-radius: 999px;
  background: #fff;
  color: #4b3f34;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.gg-engrave-dictionary-shell {
  min-height: 220px;
}

.gg-engrave-dictionary-placeholder {
  margin: 0;
  padding: 18px 4px;
  font-size: 14px;
  line-height: 1.8;
  color: #6b6258;
}

/* ===============================
   11. Birthstone Component
   =============================== */
.guru-birthstone {
  margin-top: 24px;
}

.guru-birthstone > .wapf-field-label label {
  font-weight: 600;
}

.guru-birthstone .wapf-field-description {
  font-size: 13px;
  line-height: 1.6;
  color: #666;
}

/* 常時表示ルール文 */
.guru-birthstone .guru-birthstone__rule {
  margin: 8px 0 10px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.65);
}

/* トグル */
.guru-birthstone .guru-birthstone__toggle {
  margin: 10px 0 6px;
  font-weight: 600;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.75);
  cursor: pointer;
  user-select: none;
}

.guru-birthstone .guru-birthstone__toggle::after {
  content: " ▸";
  opacity: 0.7;
}

.guru-birthstone.is-spec-open .guru-birthstone__toggle::after {
  content: " ▾";
}

/* 折りたたみ仕様 */
.guru-birthstone .guru-birthstone__spec {
  display: none;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.65);
  margin-bottom: 10px;
}

.guru-birthstone.is-spec-open .guru-birthstone__spec {
  display: block;
}

/* ===============================
   Birthstone ON/OFF
   =============================== */

/* 2択を横並び */
.guru-birthstone-switch .wapf-radios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* 各選択肢 */
.guru-birthstone-switch .wapf-radio {
  margin: 0;
}

/* ラベル全体をカード化 */
.guru-birthstone-switch .wapf-input-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

/* hover */
.guru-birthstone-switch .wapf-input-label:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.24);
}

/* 選択状態 */
.guru-birthstone-switch .wapf-radio.wapf-checked .wapf-input-label {
  background: #f3f1ed;
  border-color: #8f6f64;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* テキスト */
.guru-birthstone-switch .wapf-label-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.82);
}

/* デフォルトの丸を少し見やすく */
.guru-birthstone-switch .wapf-custom {
  flex: 0 0 auto;
}

/* ラジオ本体を少し大きく */
.guru-birthstone-switch input[type="radio"] {
  transform: scale(1.15);
}

.guru-birthstone-switch .wapf-field-label span {
  font-size: 14px;
  font-weight: 600;
}

.guru-birthstone-switch .wapf-field-label span::after {
  font-size: 12px;
  margin-left: 6px;
  color: rgba(0, 0, 0, 0.5);
}

.guru-birthstone-switch .wapf-radio.wapf-checked .wapf-input-label {
  transform: translateY(-1px);
}

/* SPでは縦積みでも可読性を優先 */
@media (max-width: 520px) {
  .guru-birthstone-switch .wapf-radios {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   12. Product Page Patches
   =============================== */
/* ===============================
   12 Product Page Patches
   MR template polish
   =============================== */

/* 誕生石のルール文 */
.guru-birthstone__rule {
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.85;
  color: #69645c;
}

/* 誕生石clonerボタン */
.wapf-cloner .wapf-add-clone,
.wapf-cloner .wapf-del-clone {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #d7d1c6;
  background: #f3f0ea;
  color: #4b4944;
  font-size: 13px;
  font-weight: 500;
}

/* SP: ラジオ行を縦積み */
@media (max-width: 767px) {
  .gg-mode-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .gg-open-engrave-mode-help,
  .gg-open-example,
  .gg-open-birthstone,
  .gg-motif-open-btn,
  .wapf-cloner .wapf-add-clone,
  .wapf-cloner .wapf-del-clone {
    width: auto;
    max-width: 100%;
  }

  .gg-engrave-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ===============================
   FPD Bottom CTA
   =============================== */
.gg-fpd-cart-cta {
  clear: both;
  margin: 18px 0 28px;
  padding: 18px 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  background: rgba(247, 247, 245, 0.92);
}

.gg-fpd-cart-cta__text {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.68);
}

.gg-fpd-cart-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  background: #fff;
  color: rgba(0, 0, 0, 0.82);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.gg-fpd-cart-cta__btn:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.24);
}

.gg-fpd-cart-cta__btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.gg-fpd-cart-cta.is-disabled .gg-fpd-cart-cta__text {
  opacity: 0.75;
}

@media (max-width: 600px) {
  .gg-fpd-cart-cta {
    padding: 16px;
  }

  .gg-fpd-cart-cta__btn {
    width: 100%;
  }
}
/* ===============================
   FPD Bottom Row
   =============================== */
.gg-fpd-bottom-row {
  clear: both;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  margin: 0px 0 28px;
  align-items: stretch;
}

/* ===============================
   FPD Current Summary
   =============================== */
.gg-fpd-current-summary {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  background: rgba(247, 247, 245, 0.92);
}

.gg-fpd-current-summary__title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.82);
}

.gg-fpd-current-summary__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.gg-fpd-current-summary__list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.gg-fpd-current-summary__list span {
  color: rgba(0, 0, 0, 0.62);
}

.gg-fpd-current-summary__list strong {
  font-weight: 600;
  color: rgba(0, 0, 0, 0.82);
  text-align: right;
}

/* ===============================
   FPD Bottom CTA
   =============================== */
.gg-fpd-cart-cta {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  background: rgba(247, 247, 245, 0.92);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gg-fpd-cart-cta__text {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.68);
}

.gg-fpd-cart-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  background: #fff;
  color: rgba(0, 0, 0, 0.82);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.gg-fpd-cart-cta__btn:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.24);
}

.gg-fpd-cart-cta__btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.gg-fpd-cart-cta.is-disabled .gg-fpd-cart-cta__text {
  opacity: 0.75;
}

@media (max-width: 920px) {
  .gg-fpd-bottom-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .gg-fpd-current-summary__list li {
    flex-direction: column;
    gap: 2px;
  }

  .gg-fpd-current-summary__list strong {
    text-align: left;
  }

  .gg-fpd-cart-cta {
    padding: 16px;
  }

  .gg-fpd-cart-cta__btn {
    width: 100%;
  }
}

/* FPD 文字入力UIを完全非表示 */
.fpd-add-text {
  display: none !important;
}

/* ===============================
   FPD 使用可能文字ガイド
=============================== */

/* FPD 文字追加モジュール：使用可能文字ガイド */
fpd-module-text.fpd-active .fpd-text-templates::after {
  content: "使用できる文字\A"
    "英字（大文字・小文字）・数字・記号のみ使用できます。\A"
    "日本語は使用できません。\A"
    "※アクセント付き文字は、刻印時に通常のアルファベットへ変換されます。（例：é → e）\A\A"
    "ABCDEFGHIJKLMNOPQRSTUVWXYZ\A" "abcdefghijklmnopqrstuvwxyz\A" "0123456789\A"
    "( ) ＆ ? ! 〜 / , ” ' . ; : － _";
  display: block;
  white-space: pre-wrap;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f7f6f3;
  font-size: 13px;
  line-height: 1.75;
  color: #333;
}

fpd-module-text.fpd-active .fpd-text-templates::after {
  font-weight: 500;
}

/* =================================
   FPD SP最適化
   - 上部ナビを2列化
   - ボタン幅/高さ安定
   - ラベル見切れ防止
   - モーダル内文字制限ガイドの読みやすさ調整
================================= */
/* =================================
   FPD SP最適化（修正版）
================================= */
@media (max-width: 920px) {
  /* ナビ全体 */
  .fpd-navigation {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  /* 各ボタン */
  .fpd-navigation .fpd-nav-item {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 78px !important;
    height: auto !important;
    padding: 10px 6px !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;

    overflow: visible !important;
    box-sizing: border-box;
  }

  /* アイコン */
  .fpd-navigation .fpd-nav-item .fpd-nav-icon {
    margin-bottom: 6px !important;
    flex: 0 0 auto;
    line-height: 1;
  }

  /* ラベル */
  .fpd-navigation .fpd-nav-item .fpd-label {
    display: block !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.2 !important;
    font-size: 12px !important;

    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  /* ナビ行コンテナ側も切らせない */
  .fpd-navigation,
  .fpd-navigation .fpd-nav-item,
  .fpd-navigation .fpd-nav-item .fpd-label {
    overflow: visible !important;
  }
}

/* =================================
   FPD SP：上部ナビ 2段表示の仕上げ
================================= */
@media (max-width: 920px) {
  /* ナビ全体を2段グリッド */
  .fpd-navigation {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(72px, auto);
    height: auto !important;
    min-height: 144px !important; /* 72px × 2段 */
    overflow: visible !important;
    align-items: stretch;
  }

  /* ナビを包む親も高さ固定を解除 */
  .fpd-main-bar,
  .fpd-topbar,
  .fpd-container .fpd-navigation {
    height: auto !important;
    min-height: 144px !important;
    overflow: visible !important;
  }

  /* 各ボタン */
  .fpd-navigation .fpd-nav-item {
    min-height: 72px !important;
    height: auto !important;
    padding: 10px 6px !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;

    box-sizing: border-box;
    overflow: visible !important;
  }

  /* アイコン */
  .fpd-navigation .fpd-nav-item .fpd-nav-icon {
    margin-bottom: 6px !important;
    line-height: 1;
    flex: 0 0 auto;
  }

  /* ラベル */
  .fpd-navigation .fpd-nav-item .fpd-label {
    display: block !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.2 !important;
    font-size: 12px !important;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
}

/* =================================
   FPD SP：ナビアイコンサイズ調整
================================= */
@media (max-width: 920px) {
  /* アイコン */
  .fpd-navigation .fpd-nav-icon {
    font-size: 18px !important;
    width: 22px;
    height: 22px;
  }

  /* アイコン画像タイプ対応 */
  .fpd-navigation .fpd-nav-icon svg,
  .fpd-navigation .fpd-nav-icon img {
    width: 20px !important;
    height: 20px !important;
  }

  /* ラベルとの間隔 */
  .fpd-navigation .fpd-nav-item .fpd-nav-icon {
    margin-bottom: 4px !important;
  }

  /* ラベル文字 */
  .fpd-navigation .fpd-nav-item .fpd-label {
    font-size: 11px !important;
    line-height: 1.2;
  }
}

/* ==============================
FPD SP ナビ最終調整
============================== */

@media (max-width: 920px) {
  .fpd-navigation {
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    padding: 4px 0;
  }

  .fpd-nav-item {
    padding: 4px 2px;
    gap: 2px;
  }

  .fpd-nav-icon {
    font-size: 16px !important;
    width: 20px;
    height: 20px;
    margin-bottom: 1px !important;
  }

  .fpd-label {
    font-size: 11px;
    line-height: 1.15;
    word-break: break-word;
    text-align: center;
  }
}

/* ===============================
   FPD Pan Button Visibility
   =============================== */

.fpd-stage-pan {
  border: 1px solid #d8d2c7;
  background: #faf8f4;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.fpd-stage-pan:hover {
  background: #f0ece5;
  border-color: #c9c1b3;
}

.fpd-stage-pan.fpd-active {
  background: #e9e3d7;
  border-color: #bfb6a8;
}

/* ほんの少し大きくして視認性UP */
.fpd-stage-pan span {
  transform: scale(1.1);
}

/* ===============================
   FPD Zoom Hint
   =============================== */

.gg-fpd-zoom-hint {
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);

  background: rgba(47, 45, 41, 0.92);
  color: #fff;

  font-size: 12px;
  line-height: 1.5;
  padding: 8px 12px;

  border-radius: 4px;
  white-space: normal;
  text-align: center;
  min-width: 220px;
  max-width: 260px;
  z-index: 30;

  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.gg-fpd-zoom-hint.is-hide {
  opacity: 0;
}

/* ===============================
   FPD Pan Button Hint
   =============================== */

.fpd-stage-pan {
  position: relative;
}

.gg-fpd-pan-hint {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);

  background: rgba(47, 45, 41, 0.94);
  color: #fff;

  font-size: 12px;
  line-height: 1.45;
  text-align: center;

  padding: 8px 10px;
  border-radius: 4px;

  min-width: 180px;
  max-width: 220px;
  white-space: normal;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;

  z-index: 40;
}

.gg-fpd-pan-hint.is-visible {
  opacity: 1;
}

/* ===============================
   FPD Word Entry（調整版）
   =============================== */

/* ===============================
   FPD Word Entry（最終版）
   - 2ブロック分岐UI
   =============================== */

.gg-fpd-word-entry {
  width: 100%;
  max-width: none;
  margin: 8px 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

/* ===============================
   レイアウト（2ブロック）
   =============================== */

.gg-fpd-word-entry__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===============================
   各ブロック
   =============================== */

.gg-fpd-word-entry__group {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 18px;

  padding: 16px 18px;
  background: #faf8f3;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
}

/* ===============================
   テキスト
   =============================== */

.gg-fpd-word-entry__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #444;
  white-space: nowrap;
}

/* 不要なので消す */
.gg-fpd-word-entry__note {
  display: none;
}

/* ===============================
   ボタン
   =============================== */

.gg-fpd-word-entry__btn {
  justify-self: end;
  min-width: 200px;

  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: #fff;
  color: #222;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.gg-fpd-word-entry__btn:hover {
  background: #f3f1ed;
}

/* ===============================
   SP対応
   =============================== */

@media (max-width: 767px) {
  .gg-fpd-word-entry__body {
    grid-template-columns: 1fr;
  }

  .gg-fpd-word-entry__group {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .gg-fpd-word-entry__text {
    white-space: normal;
  }

  .gg-fpd-word-entry__btn {
    width: 100%;
    min-width: 0;
  }
}

/* ===============================
   Words Modal（既存維持）
   =============================== */

#gg-words-modal.is-browse-mode .gg-word-card {
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
}

#gg-words-modal.is-browse-mode .gg-word-card__top,
#gg-words-modal.is-browse-mode .gg-word-card__bottom {
  user-select: text;
  -webkit-user-select: text;
}
/* ===============================
   13. Words Dictionary (Fixed Page)
   =============================== */

#gg-words-dictionary {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px 104px;
}

/* 固定ページタイトル非表示 */
.page-id-3996 .entry-title,
.page-id-3994 .entry-title,
.page-id-3984 .entry-title,
.page-id-3990 .entry-title,
.page-id-3986 .entry-title,
.page-id-3992 .entry-title,
.page-id-3988 .entry-title {
  display: none;
}

.gg-dictionary-wrap {
  display: grid;
  gap: 20px;
}

.gg-dictionary-page-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: #2f2720;
}

.gg-dictionary-theme-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 2px;
}

.gg-dictionary-theme-tabs {
  display: flex;
  align-items: flex-end;
  gap: 34px;
  flex-wrap: wrap;
  width: 100%;
  border-bottom: 1px solid #ddd8d2;
  padding-bottom: 10px;
}

.gg-theme-tab {
  position: relative;
  appearance: none;
  border: none;
  background: transparent;
  padding: 0 0 6px;
  color: #3f3428;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  opacity: 0.4;
  transition:
    opacity 0.2s ease,
    color 0.2s ease;
  text-decoration: none;
}

.gg-theme-tab:hover {
  opacity: 0.75;
}

.gg-theme-tab.is-active {
  opacity: 1;
  color: #4a3b2c;
}

.gg-theme-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -11px;
  width: 100%;
  height: 2px;
  background: #5f4d3d;
}

.gg-dictionary-subtheme-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0px;
}

.gg-dictionary-lang-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: -4px;
}

.gg-dictionary-lang-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gg-lang-filter {
  appearance: none;
  border: 1px solid #d6d1cb;
  background: #fff;
  color: #3f3428;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.gg-lang-filter:hover {
  border-color: #8a7763;
}

.gg-lang-filter.is-active {
  background: #7f97a0;
  border-color: #7f97a0;
  color: #fff;
}

.gg-dictionary-subtheme-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gg-subtheme-chip {
  appearance: none;
  border: 1px solid #d6d1cb;
  background: #fff;
  color: #3f3428;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.gg-subtheme-chip:hover {
  border-color: #8a7763;
}

.gg-subtheme-chip.is-active {
  background: #5f4d3d;
  border-color: #5f4d3d;
  color: #fff;
}

.gg-theme-section {
  display: grid;
  gap: 24px;
}

.gg-theme-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: #4f453d;
  max-width: 720px;
}

.gg-word-preview {
  position: sticky;
  top: 0;
  z-index: 5;
  margin-bottom: 10px;
  background: #f7f7f5;
  padding-bottom: 8px;
}

.gg-word-preview__inner {
  padding: 10px 14px;
  border: 1px solid #ddd8d2;
  border-radius: 12px;
  min-height: 110px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.gg-word-preview__label {
  margin-bottom: 6px;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.5);
}

.gg-word-preview__word {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: #5f4d3d;
  letter-spacing: 0.04em;
}

.gg-word-preview__ja {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 600;
  color: #3b3128;
}

.gg-word-preview__text {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.9;
  color: #4f453d;
}

.gg-word-preview__hint {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.7;
  opacity: 0.5;
  color: rgba(0, 0, 0, 0.5);
}

.gg-word-card {
  padding: 13px 20px 13px;
  border: 1px solid #ddd8d2;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.gg-word-card:hover {
  border-color: #cdbfae;
  background: #faf8f4;
  transform: translateY(-1px);
}

.gg-word-card:focus {
  outline: none;
  border-color: #8a7763;
  box-shadow: 0 0 0 3px rgba(95, 77, 61, 0.08);
}

.gg-word-card.is-active {
  border-color: #5f4d3d;
  background: #f8f5f2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.gg-word-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 2px;
}

.gg-word-card {
  padding: 22px 20px 20px;
  border: 1px solid #ddd8d2;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.gg-word-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.gg-word-main {
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: #5f4d3d;
}

.gg-word-lang {
  font-size: 13px;
  line-height: 1.4;
  color: #6e655d;
}

.gg-word-ja {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 600;
  color: #3b3128;
}

.gg-word-text {
  font-size: 14px;
  line-height: 1.9;
  color: #4f453d;
}

.gg-dictionary-empty {
  padding: 28px 24px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  line-height: 1.9;
  color: #444;
}

.entry-content p.gg-theme-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: #4f453d;
  max-width: 720px;
}

.gg-theme-section {
  display: grid;
  gap: 14px;
}

@media (max-width: 960px) {
  .gg-dictionary-theme-tabs {
    gap: 24px;
  }

  .gg-theme-tab {
    font-size: 24px;
  }

  .gg-word-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #gg-words-dictionary {
    padding: 36px 16px 72px;
  }

  .gg-dictionary-wrap {
    gap: 18px;
  }

  .gg-dictionary-page-title {
    font-size: 20px;
  }

  .gg-dictionary-theme-tabs {
    gap: 18px;
    border-bottom: none;
  }

  .gg-theme-tab {
    font-size: 18px;
    padding-bottom: 4px;
  }

  .gg-theme-tab.is-active::after {
    bottom: -9px;
    height: 3px;
  }

  .gg-theme-lead {
    font-size: 15px;
  }

  .gg-word-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-top: 2px;
  }

  .gg-word-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }

  .gg-word-main {
    font-size: 22px;
    line-height: 1.4;
    letter-spacing: 0.08em;
    color: #5f4d3d;
  }

  .gg-word-lang {
    font-size: 13px;
    line-height: 1.4;
    color: #6e655d;
  }

  .gg-word-ja {
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 600;
    color: #3b3128;
  }

  .gg-word-grid {
    grid-template-columns: 1fr;
  }

  .gg-word-card {
    padding: 18px 16px;
  }

  .gg-word-main {
    font-size: 20px;
  }

  .gg-dictionary-lang-filters {
    gap: 8px;
  }

  .gg-lang-filter {
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  .gg-word-preview {
    margin-bottom: 10px;
    padding-bottom: 6px;
  }

  .gg-word-preview__inner {
    padding: 10px 12px;
  }

  .gg-word-preview__word {
    font-size: 14px;
  }

  .gg-word-preview__ja {
    font-size: 12px;
  }

  .gg-word-preview__text {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.7;
  }

  .gg-word-preview__hint {
    display: block;
  }
}

/* ===============================
   14. Engrave Recommend Page
   =============================== */
/* 固定ページタイトル非表示 */

.page-id-4045 .entry-title {
  display: none;
}

#gg-engrave-recommend {
  margin: 10px 0 80px;
}

.gg-engrave-recommend-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.gg-engrave-recommend-head {
  margin-bottom: 28px;
}

.gg-engrave-recommend-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.gg-engrave-recommend-title {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.4;
}

.gg-engrave-recommend-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
}

.gg-engrave-picked-word {
  margin: 0 0 32px;
  padding: 18px 20px;
  border: 1px solid #ddd;
}

.gg-engrave-picked-word.is-compact {
  margin: 0 0 28px;
  padding: 20px 22px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: transparent;
}

.gg-engrave-picked-word__sub {
  font-size: 14px;
  opacity: 0.7;
}

.gg-engrave-picked-word__label {
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.gg-engrave-picked-word__value {
  font-size: 28px;
  line-height: 1.4;
}

.gg-engrave-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gg-engrave-product-card {
  padding: 24px 20px;
  border: 1px solid #ddd;
}

.gg-engrave-product-card__title {
  margin: 0 0 12px;
  font-size: 22px;
}

.gg-engrave-product-card__text {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.9;
}

.gg-engrave-product-card__link {
  display: inline-block;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

@media (max-width: 767px) {
  .gg-engrave-recommend-title {
    font-size: 24px;
  }

  .gg-engrave-picked-word__value {
    font-size: 22px;
  }

  .gg-engrave-product-grid {
    grid-template-columns: 1fr;
  }
}

.gg-engrave-picked-word__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.gg-engrave-picked-word__lang {
  font-size: 13px;
  line-height: 1.5;
  color: #6e655d;
}

.gg-engrave-picked-word__ja {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 600;
  color: #3b3128;
}

.gg-engrave-picked-word__text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.9;
  color: #4f453d;
}

.gg-engrave-recommend-judge {
  margin: 0 0 36px;
  padding: 20px 22px;
  border: 1px solid #ddd8d2;
  background: #fff;
}

.gg-engrave-recommend-judge__row + .gg-engrave-recommend-judge__row {
  margin-top: 16px;
}

.gg-engrave-recommend-judge__label {
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: #6e655d;
}

.gg-engrave-recommend-judge__value {
  font-size: 15px;
  line-height: 1.9;
  color: #3b3128;
}

.gg-engrave-recommend-judge__guide {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid #ece6de;
  font-size: 14px;
  line-height: 1.9;
  color: #4f453d;
}

.gg-engrave-product-section {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.gg-engrave-product-section__group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gg-engrave-product-section__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.5;
}

.gg-engrave-product-grid.is-primary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gg-engrave-product-card {
  display: flex;
  flex-direction: column;
  padding: 24px 20px 22px;
  border: 1px solid #ddd8d2;
  background: #fff;
  min-height: 100%;
}

.gg-engrave-product-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 12px;
}

.gg-engrave-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.gg-engrave-product-card.is-primary {
  border-color: #cfc3bb;
  background: #faf8f3;
}

.gg-engrave-product-card__title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.5;
}

.gg-engrave-product-card__desc {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.9;
  color: #4f453d;
}

.gg-engrave-product-card__reason {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.9;
  color: #5a5048;
}

.gg-engrave-product-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #fff;
  color: #3a3a3a;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.gg-engrave-product-card__link:hover {
  background: #f7f4ef;
  border-color: rgba(0, 0, 0, 0.26);
  opacity: 1;
}

@media (max-width: 960px) {
  .gg-engrave-product-grid.is-primary-grid {
    grid-template-columns: 1fr;
  }
}

.gg-engrave-recommend-head {
  margin-bottom: 24px;
}

.gg-engrave-recommend-title {
  margin-bottom: 10px;
}

.gg-engrave-recommend-lead {
  font-size: 14px;
  line-height: 1.8;
  color: #5a5048;
}

.gg-engrave-picked-word__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.gg-engrave-picked-word__value {
  font-size: 48px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #3b3128;
}

.gg-engrave-picked-word__lang {
  font-size: 13px;
  line-height: 1.5;
  color: #6e655d;
}

.gg-engrave-picked-word__sub {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.8;
  color: #4f453d;
}

.gg-engrave-product-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.gg-engrave-product-section__group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gg-engrave-product-section__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
}

.gg-engrave-product-grid.is-primary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gg-engrave-product-card {
  display: flex;
  flex-direction: column;
  padding: 22px 18px 20px;
  border: 1px solid #ddd8d2;
  background: #fff;
  min-height: 100%;
}

.gg-engrave-product-card.is-primary {
  border-color: #cfc3bb;
  background: #faf8f3;
}

.gg-engrave-product-card__title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.4;
}

.gg-engrave-product-card__reason {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.8;
  color: #5a5048;
}

.gg-engrave-product-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #fff;
  color: #3a3a3a;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.gg-engrave-product-card__link:hover {
  background: #f7f4ef;
  border-color: rgba(0, 0, 0, 0.26);
  opacity: 1;
}

@media (max-width: 960px) {
  .gg-engrave-product-grid.is-primary-grid,
  .gg-engrave-product-grid.is-secondary-grid {
    grid-template-columns: 1fr;
  }

  .gg-engrave-picked-word__value {
    font-size: 36px;
  }
}

@media (max-width: 767px) {
  .gg-engrave-picked-word.is-compact {
    padding: 18px 16px;
  }

  .gg-engrave-picked-word__value {
    font-size: 30px;
  }

  .gg-engrave-product-card {
    padding: 20px 16px 18px;
  }

  .gg-engrave-product-card__title {
    font-size: 20px;
  }
}

/* レイアウト余白リセット（recommendページ専用） */
.page-id-4045 #primary {
  margin: 0 !important;
  padding-top: 10px;
}

/* ===============================
   14. GG Words Modal
   =============================== */

.gg-scroll-lock {
  overflow: hidden;
}

.gg-words-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none; /* 通常時は非表示 */
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gg-words-modal.is-open {
  display: flex; /* 開いた時だけ表示 */
}

.gg-words-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.gg-words-modal__panel {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  max-height: min(82vh, 760px);
  margin: 0;
  background: #fff;
  border-radius: 16px;
  padding: 20px 20px 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gg-words-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.gg-words-modal__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.gg-words-modal__close {
  appearance: none;
  border: 1px solid #d8d1c7;
  background: #fff;
  color: #5b6f78;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.gg-words-modal__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.gg-words-tab {
  appearance: none;
  border: 1px solid #d8d1c7;
  background: #fff;
  color: #5b6f78;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
}

.gg-words-tab.is-active,
.gg-words-tab:hover {
  background: #7f98a3;
  color: #fff;
  border-color: #7f98a3;
}

.gg-words-modal__body {
  overflow: auto;
  min-height: 220px;
  padding-right: 4px;
  flex: 1 1 auto;
}

.gg-words-panel {
  display: none;
}

.gg-words-panel.is-active {
  display: block;
}

.gg-words-modal .gg-words-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gg-words-modal .gg-word-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  padding: 12px 10px;
  border: 1px solid #d8d1c7;
  border-radius: 12px;
  background: #fff;
  color: #5b6f78;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.gg-words-modal .gg-word-card:hover {
  background: #f6f3ee;
  border-color: #cdbfae;
  color: #5b6f78;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.gg-words-modal .gg-word-card:active {
  background: #e8edf0;
  border-color: #9fb0b9;
  transform: translateY(0);
}

.gg-words-modal .gg-word-card__top {
  display: block;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
}

.gg-words-modal .gg-word-card__bottom {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
}

/* ===== Words Modal：理由表示（トーン調整） ===== */

.gg-words-example-preview {
  position: sticky;
  top: 0;
  z-index: 3;
  margin-bottom: 12px;
  background: #f7f7f5; /* モーダル背景と同化 */
  padding-bottom: 8px;
}

.gg-words-example-preview__inner {
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.06); /* 薄く */
  border-radius: 12px;
  background: #fafafa; /* ほぼ白 */
}

.gg-words-example-preview__label {
  margin-bottom: 4px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.45); /* 主張を落とす */
  letter-spacing: 0.03em;
}

.gg-words-example-preview__text {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.72);
}

.gg-word-card--example.is-previewing {
  border-color: rgba(0, 0, 0, 0.16);
  background: rgba(0, 0, 0, 0.015);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.gg-word-card--example.is-previewing .gg-word-card__top,
.gg-word-card--example.is-previewing .gg-word-card__bottom {
  color: #3b3128;
}

@media (hover: none), (pointer: coarse) {
  .gg-word-card--example:active {
    transform: none;
  }
}

@media (max-width: 767px) {
  .gg-words-modal .gg-words-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gg-words-modal .gg-word-card {
    min-height: 72px;
    padding: 10px 8px;
  }
}

.gg-words-modal__loading,
.gg-words-modal__empty {
  padding: 32px 8px;
  color: #6c6c6c;
  font-size: 14px;
}

@media (max-width: 767px) {
  .gg-words-modal {
    align-items: flex-start;
    padding-top: 56px;
    padding-right: 14px;
    padding-left: 14px;
    padding-bottom: 24px;
  }

  .gg-words-modal__panel {
    width: 100%;
    margin: 0;
    padding: 16px 14px 14px;
    max-height: calc(100vh - 80px);
  }

  .gg-words-modal__title {
    font-size: 24px;
  }

  .gg-words-modal .gg-words-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gg-words-modal .gg-word-card {
    min-height: 72px;
    padding: 10px 8px;
  }
}

.gg-words-modal__lead {
  margin: 4px 0 16px;
  font-size: 13px;
  color: #6e6a64;
  line-height: 1.6;
}

.gg-words-more-wrap {
  margin-top: 14px;
  text-align: center;
}

.gg-words-more-btn {
  appearance: none;
  border: 1px solid #d8d1c7;
  background: #fff;
  color: #5b6f78;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.gg-words-more-btn:hover,
.gg-words-more-btn.is-open {
  background: #7f98a3;
  color: #fff;
  border-color: #7f98a3;
}

.gg-words-example {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e7e0d7;
}

.gg-words-example__section + .gg-words-example__section {
  margin-top: 18px;
}

.gg-words-example__title {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.4;
  color: #4f5f67;
}

.gg-words-example__empty {
  padding: 8px 0 4px;
  color: #6c6c6c;
  font-size: 13px;
}

.gg-words-grid--example {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gg-word-card--example {
  min-height: 74px;
}

@media (max-width: 767px) {
  .gg-words-example {
    margin-top: 16px;
    padding-top: 14px;
  }

  .gg-words-example__title {
    font-size: 14px;
  }

  .gg-words-grid--example {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gg-words-more-btn {
    width: 100%;
  }
}

.gg-words-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.gg-words-subtab {
  appearance: none;
  border: 1px solid #d8d1c7;
  background: #fff;
  color: #5b6f78;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.gg-words-subtab.is-active,
.gg-words-subtab:hover {
  background: #7f98a3;
  color: #fff;
  border-color: #7f98a3;
}

.gg-words-subpanel {
  display: none;
}

.gg-words-subpanel.is-active {
  display: block;
}

.gg-word-card__ja {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.8;
}

.gg-words-toast {
  position: fixed;
  left: 50%;
  top: 68%;
  transform: translateX(-50%);
  z-index: 999999;
  min-width: 220px;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(35, 35, 35, 0.96);
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.gg-words-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* ===============================
   15. Content Pages
   =============================== */

/* ===============================
   Stamp Page（動画版）
=============================== */

.section-stamp {
  padding: 48px 0 72px;
}

.stamp-page {
  width: min(1100px, calc(100vw - 48px));
  margin: 0 auto;
}

.stamp-main {
  display: grid;
  grid-template-columns: minmax(420px, 520px) minmax(420px, 520px);
  gap: 44px;
  align-items: start;
}

.stamp-main__text {
  max-width: 480px;
}

.stamp-main__text h1 {
  margin: 0 0 20px;
  font-size: 42px;
  line-height: 1.3;
}

.stamp-lead {
  margin: 0 0 18px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.9;
}

.stamp-main__text p {
  margin: 0 0 18px;
  line-height: 1.9;
}

.stamp-main__text h2 {
  margin: 28px 0 12px;
  font-size: 22px;
  line-height: 1.4;
}

.stamp-main__text .mr-facts {
  margin: 0 0 12px;
  padding-left: 1.2em;
  line-height: 1.85;
}

.stamp-main__image {
  display: flex;
  flex-direction: column;
}

.stamp-video-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.stamp-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stamp-caption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.6);
}

.stamp-cta-block {
  margin-top: 44px;
  padding: 28px 24px;
  background: #f3f2ef;
  border-radius: 12px;
  text-align: center;
}

.stamp-cta-lead {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.9;
  text-align: center;
  color: rgba(0, 0, 0, 0.78);
}

.stamp-cta-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  text-align: center;
  color: rgba(0, 0, 0, 0.6);
}

.stamp-cta {
  margin-top: 18px;
  text-align: center;
}

.stamp-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  background: #6f858c;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.stamp-cta-btn:hover {
  background: #5e7278;
  opacity: 1;
}

@media (max-width: 767px) {
  .stamp-cta-block {
    margin-top: 36px;
    padding: 22px 16px;
  }

  .stamp-cta-lead {
    font-size: 15px;
    line-height: 1.85;
  }

  .stamp-cta-sub {
    font-size: 12px;
    line-height: 1.8;
  }

  .stamp-cta {
    margin-top: 16px;
  }

  .stamp-cta-btn {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .section-stamp {
    padding: 32px 0 48px;
  }

  .stamp-page {
    width: calc(100vw - 24px);
  }

  .stamp-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stamp-main__text h1 {
    font-size: 30px;
  }

  .stamp-lead {
    font-size: 16px;
  }
}
/* --- 素材ページ --- */

/* --- 素材ページ --- */

.section-material {
  padding: 48px 0 72px;
}

.material-page {
  width: min(1100px, calc(100vw - 48px));
  margin: 0 auto;
}

.material-main {
  display: grid;
  grid-template-columns: minmax(420px, 520px) minmax(420px, 520px);
  gap: 44px;
  align-items: start;
}

.material-main__text {
  max-width: 480px;
}

.material-main__text h1 {
  margin: 0 0 20px;
  font-size: 42px;
  line-height: 1.3;
}

.material-lead {
  margin: 0 0 18px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.9;
}

.material-main__text p {
  margin: 0 0 18px;
  line-height: 1.9;
}

.material-main__text h2 {
  margin: 28px 0 12px;
  font-size: 22px;
  line-height: 1.4;
}

.material-main__image {
  display: flex;
  flex-direction: column;
}

.material-video-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.material-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.material-caption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.6);
}

@media (max-width: 900px) {
  .material-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .material-main__text h1 {
    font-size: 30px;
  }

  .material-lead {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .section-material {
    padding: 32px 0 48px;
  }

  .material-page {
    width: calc(100vw - 24px);
  }

  .material-video-wrap {
    aspect-ratio: auto;
  }

  .material-video-wrap video {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* --- サイズガイド --- */

.section-size {
  padding: 48px 0 72px;
}

.size-page {
  width: min(1100px, calc(100vw - 48px));
  margin: 0 auto;
}

.size-page h1 {
  margin: 0 0 28px;
  font-size: 36px;
  line-height: 1.3;
}

.size-lead {
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 500;
}

.size-main {
  display: grid;
  grid-template-columns: minmax(380px, 500px) minmax(420px, 560px);
  gap: 44px;
  margin-top: 40px;
}

.size-main__text p {
  margin: 0 0 14px;
  line-height: 1.9;
}

.size-main__text h2 {
  margin: 28px 0 12px;
  font-size: 22px;
}

.size-main__image {
  height: 600px; /* 好きな高さに調整 */
  overflow: hidden;
}

.size-main__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 900px) {
  .section-size {
    padding: 32px 0 48px;
  }

  .size-page {
    width: calc(100vw - 24px);
  }

  .size-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .size-page h1 {
    font-size: 30px;
  }

  .size-main__image {
    height: auto;
  }

  .size-main__image img {
    height: auto;
    object-fit: contain;
  }
}

/* --- クーポンページ --- */

.gg-note-box {
  margin: 48px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);

  max-width: 400px; /* ←ここが重要 */
}

.gg-note-box h3 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.4;
}

.gg-note-box > p {
  margin: 0 0 12px;
  line-height: 1.9;
}

.gg-note-box__image {
  margin: 18px 0 0;
}

.gg-note-box__image img {
  display: block;
  width: 100%;
  max-width: 400px; /* ←ここでサイズ調整 */
  height: auto;
  margin: 0 auto; /* 中央寄せ維持 */
}

.gg-note-small {
  margin: 10px 0 0 !important;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.6);
}

/* --- 納期ページ --- */

.section-delivery {
  padding: 48px 0 72px;
}

.delivery-page {
  width: min(760px, calc(100vw - 48px));
  margin: 0 auto;
}

.delivery-page h1 {
  margin: 0 0 28px;
  font-size: 36px;
}

.delivery-lead {
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 500;
}

.delivery-page p {
  margin: 0 0 14px;
  line-height: 1.9;
}

.delivery-page p:first-of-type {
  font-size: 18px;
  font-weight: 500;
}

.delivery-page h2 {
  margin: 32px 0 12px;
  font-size: 22px;
}

.delivery-flow {
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.9;
}

.delivery-flow li {
  margin: 0 0 8px;
}

.delivery-time {
  font-size: 28px;
  font-weight: 600;
  margin: 8px 0 16px;
}

.delivery-preview {
  margin: 20px 0 12px;
}

.delivery-preview img {
  display: block;
  width: 100%;
  max-width: 520px; /* ←これ重要（大きすぎ防止） */
  height: auto;
}

.delivery-note {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.6);
}

.delivery-warning {
  margin: 12px 0 14px;
  font-size: 14px;
  line-height: 1.8;
  font-weight: 500;
}

@media (max-width: 767px) {
  .section-delivery {
    padding: 32px 0 48px;
  }

  .delivery-page {
    width: calc(100vw - 24px);
  }

  .delivery-page h1 {
    font-size: 30px;
  }
}

/* --- FAQ --- */

.section-faq {
  padding: 48px 0 72px;
}

.faq-page {
  width: min(820px, calc(100vw - 48px));
  margin: 0 auto;
}

.faq-page h1 {
  margin: 0 0 28px;
  font-size: 36px;
  line-height: 1.3;
}

.faq-lead {
  margin-bottom: 28px;
  font-size: 18px;
  font-weight: 500;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.faq-item h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.4;
}

.faq-item p {
  margin: 0;
  line-height: 1.9;
}

@media (max-width: 767px) {
  .section-faq {
    padding: 32px 0 48px;
  }

  .faq-page {
    width: calc(100vw - 24px);
  }

  .faq-page h1 {
    font-size: 30px;
  }

  .faq-item h2 {
    font-size: 20px;
  }
}

/* --- repair-support --- */
.repair-lead {
  margin: 12px 0 18px;
  font-weight: 500;
}
.section-repair-support {
  padding: 48px 0 72px;
}

.section-repair-support .container {
  width: min(760px, calc(100vw - 48px));
  margin: 0 auto;
}

.section-repair-support h1 {
  margin-bottom: 28px;
}

.section-repair-support h2 {
  margin-top: 28px;
}

.section-repair-support p {
  line-height: 1.9;
}

/* --- Contact Page --- */

.section-contact {
  padding: 48px 0 72px;
}

.contact-page {
  width: min(760px, calc(100vw - 48px));
  margin: 0 auto;
}

.contact-page h1 {
  margin: 0 0 28px;
  font-size: 36px;
  line-height: 1.3;
}

.contact-lead {
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 500;
}

.contact-page p {
  margin: 0 0 14px;
  line-height: 1.9;
}

.contact-page .wpcf7 {
  margin-top: 28px;
}

.contact-page .wpcf7 form p {
  margin: 0 0 18px;
}

.contact-page .wpcf7 label {
  display: block;
  font-weight: 500;
  line-height: 1.8;
}

.contact-page .wpcf7 input[type="text"],
.contact-page .wpcf7 input[type="email"],
.contact-page .wpcf7 textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #d8d3ca;
  background: #fff;
  font: inherit;
  box-sizing: border-box;
}

.contact-page .wpcf7 select {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  min-height: 48px;
  line-height: 1.5;
  border: 1px solid #d8d3ca;
  background: #fff;
  font: inherit;
  box-sizing: border-box;
}

.contact-page .wpcf7 textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-page .wpcf7 input[type="submit"] {
  appearance: none;
  border: 0;
  padding: 14px 28px;
  background: #7f97a0;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 767px) {
  .section-contact {
    padding: 32px 0 48px;
  }

  .contact-page {
    width: calc(100vw - 24px);
  }

  .contact-page h1 {
    font-size: 30px;
  }
}

/* --- Brand About --- */

.section-about {
  padding: 48px 0 72px;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 48px;
  width: min(1100px, calc(100vw - 48px));
  margin: 0 auto;
}

.about-image {
  flex: 1;
  aspect-ratio: 4 / 3;
  background-image: url("/wp-content/uploads/2026/03/about01c.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

/* 文字の可読性補助（左側用） */
.about-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0)
  );
}

.about-text {
  flex: 1;
}

.about-text h1 {
  margin: 0 0 24px;
  font-size: 36px;
  line-height: 1.3;
}

.about-text p {
  margin: 0 0 14px;
  line-height: 1.9;
}

@media (max-width: 767px) {
  .about-container {
    flex-direction: column;
    gap: 24px;
    width: calc(100vw - 24px);
  }

  .about-text h1 {
    font-size: 28px;
  }
}

/* --- Width Guide Page --- */

.gg-width-compare {
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 20px 72px;
  color: var(--gg-ink);
}

.gg-width-compare h2 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.gg-width-lead {
  margin: 0 0 32px;
  color: var(--gg-muted);
  line-height: 1.9;
}

.gg-width-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 32px 0 40px;
}

.gg-width-card,
.gg-width-sub .gg-width-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  overflow: hidden;
}

.gg-width-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f7f7f5;
}

.gg-width-card h3 {
  margin: 18px 18px 8px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.gg-width-card p {
  margin: 0 18px 22px;
  color: var(--gg-muted);
  font-size: 14px;
  line-height: 1.9;
}

.gg-width-sub {
  max-width: 520px;
  margin: 48px auto 0;
  text-align: center;
}

.gg-width-sub .gg-width-card {
  max-width: 420px;
  margin: 0 auto;
}

.gg-width-sub img {
  width: 100%;
}

.gg-width-note {
  margin: 16px 0 0;
  color: var(--gg-muted);
  font-size: 13px;
  line-height: 1.8;
}

.gg-width-cta {
  margin-top: 56px;
  text-align: center;
}

.gg-width-cta h3 {
  margin-bottom: 16px;
  font-size: 20px;
}

.gg-width-cta ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.gg-width-cta li {
  margin-bottom: 6px;
  color: var(--gg-muted);
}

.gg-width-cta a {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--gg-line);
  border-radius: 999px;
  text-decoration: none;
}

@media (max-width: 900px) {
  .gg-width-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gg-width-compare {
    padding: 40px 18px 56px;
  }

  .gg-width-compare h2 {
    font-size: 24px;
  }

  .gg-width-card img {
    aspect-ratio: 3 / 2;
  }

  .gg-width-sub {
    max-width: none;
  }
}

/* ===============================
   Category Width Guide
   =============================== */

.woocommerce .gg-category-width-guide {
  clear: both;
  width: 100%;
  display: block;
  box-sizing: border-box;
  margin: 32px 0 36px;
  padding: 18px 22px;
  background: #f7f7f5;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.8;
}

.woocommerce .gg-category-width-guide p {
  margin: 0 0 6px;
}

.woocommerce .gg-category-width-guide p:last-child {
  margin-bottom: 0;
}

.woocommerce .gg-category-width-guide a {
  text-decoration: underline;
}

/* ===============================  Message Page  メッセージリングとは  =============================== */

.gg-message-page {
  background: #f7f7f5;
  color: var(--gg-ink);
}

.gg-message-page__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 20px 72px;
}

.gg-message-page__hero {
  margin-bottom: 56px;
  text-align: center;
}

.gg-message-page__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
}

.gg-message-page__title {
  margin: 0 0 16px;
  font-size: 34px;
  line-height: 1.35;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--gg-ink);
}

.gg-message-page__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.72);
}

.gg-message-page__section {
  margin-top: 0;
  margin-bottom: 56px;
}

.gg-message-page__section h2 {
  margin: 0 0 18px;
  font-size: 23px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--gg-ink);
}

.gg-message-page__section h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  font-weight: 600;
  color: var(--gg-ink);
}

.gg-message-page__section p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.03em;
  color: rgba(0, 0, 0, 0.76);
}

.gg-message-page__section p:last-child {
  margin-bottom: 0;
}

/* 導入だけ少し呼吸を強める */
.gg-message-page__section--intro p:first-of-type,
.gg-message-page__section--essence p:first-of-type {
  color: rgba(0, 0, 0, 0.82);
}

/* core */
.gg-message-page__core-box {
  margin: 0 0 22px;
  padding: 24px 24px 22px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.gg-message-page__core-box p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.03em;
  color: rgba(0, 0, 0, 0.82);
}

.gg-message-page__core-box p:last-child {
  margin-bottom: 0;
}

.gg-message-page__core-strong {
  font-weight: 600;
  color: var(--gg-ink);
}

.gg-message-page__core-note {
  margin-top: 10px;
  color: rgba(0, 0, 0, 0.7);
}

.gg-message-page__core-final {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--gg-ink);
}

/* scene */
.gg-message-page__scene-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.gg-message-page__scene-item {
  padding: 20px 20px 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.gg-message-page__scene-item p {
  margin-bottom: 0;
}

/* ending */
.gg-message-page__section--ending {
  margin-bottom: 44px;
}

.gg-message-page__section--ending h2 {
  margin-bottom: 14px;
}

/* CTA */
.gg-message-page__cta {
  margin-top: 56px;
  padding-top: 8px;
  text-align: center;
}

.gg-message-page__cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.gg-message-page__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  padding: 14px 22px;
  border-radius: 999px;
  background: #8f6f64;
  border: 1px solid #8f6f64;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.gg-message-page__cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  opacity: 0.95;
}

.gg-message-page__cta-sub {
  display: inline-block;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: rgba(0, 0, 0, 0.66);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.gg-message-page__cta-sub:hover {
  color: rgba(0, 0, 0, 0.82);
  border-bottom-color: rgba(0, 0, 0, 0.3);
}

/* section rhythm */
.gg-message-page__section--history,
.gg-message-page__section--handwork {
  padding-top: 6px;
}

.gg-message-page__section--handwork {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.gg-message-page__section--core {
  padding-top: 4px;
}

/* tablet and up */
@media (min-width: 768px) {
  .gg-message-page__inner {
    padding: 72px 28px 90px;
  }

  .gg-message-page__hero {
    margin-bottom: 68px;
  }

  .gg-message-page__title {
    font-size: 40px;
  }

  .gg-message-page__lead {
    font-size: 17px;
  }

  .gg-message-page__section {
    margin-bottom: 68px;
  }

  .gg-message-page__section h2 {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .gg-message-page__section p,
  .gg-message-page__core-box p {
    font-size: 15.5px;
  }

  .gg-message-page__scene-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .gg-message-page__scene-item {
    height: 100%;
  }
}

/* SP */
@media (max-width: 767px) {
  .gg-message-page__inner {
    padding: 42px 16px 60px;
  }

  .gg-message-page__hero {
    margin-bottom: 44px;
  }

  .gg-message-page__title {
    font-size: 28px;
    line-height: 1.45;
  }

  .gg-message-page__lead {
    font-size: 15px;
    line-height: 1.85;
  }

  .gg-message-page__section {
    margin-bottom: 44px;
  }

  .gg-message-page__section h2 {
    font-size: 21px;
    line-height: 1.55;
    margin-bottom: 16px;
  }

  .gg-message-page__section h3 {
    font-size: 16px;
  }

  .gg-message-page__section p,
  .gg-message-page__core-box p {
    font-size: 14px;
    line-height: 1.95;
  }

  .gg-message-page__core-box {
    padding: 18px 16px 16px;
    border-radius: 14px;
  }

  .gg-message-page__scene-item {
    padding: 16px 16px 14px;
  }

  .gg-message-page__cta-btn {
    width: 100%;
    min-width: 0;
    padding: 14px 18px;
  }
}

/* ===============================
   Message Page 明朝補正
   既存CSSの下に追加
   =============================== */

.gg-message-page {
  font-family: "Shippori Mincho", "BIZ UDPMincho", serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.gg-message-page p {
  letter-spacing: 0.04em;
  line-height: 2.02;
}

/* 英数字・操作系は読みやすさ優先 */
.gg-message-page__eyebrow,
.gg-message-page__cta-btn,
.gg-message-page__cta-sub {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (max-width: 767px) {
  .gg-message-page p,
  .gg-message-page__core-box p {
    font-size: 15px;
    line-height: 1.95;
    letter-spacing: 0.03em;
  }

  .gg-message-page__title {
    letter-spacing: 0.03em;
  }
}
.gg-message-page h1,
.gg-message-page h2,
.gg-message-page h3 {
  font-family: "Shippori Mincho", "BIZ UDPMincho", serif;
  letter-spacing: 0.04em;
}

.gg-message-page__ending-image {
  margin: 20px auto 0;
  max-width: 100%;
  opacity: 0.92;
  text-align: center;
}

.gg-message-page__ending-image img {
  width: 100%;
  height: auto;
}

/* CTAとの間を少しだけ呼吸させる */
.gg-message-page__section--ending {
  margin-bottom: 28px;
}

.gg-message-page__cta {
  margin-top: 0;
}

@media (max-width: 767px) {
  .gg-message-page__ending-image {
    margin-top: 24px;
    max-width: 100%;
  }

  .gg-message-page__section--ending {
    margin-bottom: 28px;
  }
}

/* ===============================
   Birthstone Page
   =============================== */

.section-birthstone {
  padding: 48px 0 72px;
}

.birthstone-page {
  width: min(980px, calc(100vw - 48px));
  margin: 0 auto;
}

.birthstone-page h1 {
  margin: 0 0 28px;
  font-size: 36px;
  line-height: 1.3;
}

.birthstone-lead {
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 500;
}

.birthstone-page p {
  margin: 0 0 14px;
  line-height: 1.9;
}

.birthstone-page h2 {
  margin: 42px 0 18px;
  font-size: 24px;
  line-height: 1.4;
}

.birthstone-usage-grid,
.birthstone-position-grid,
.birthstone-setting-grid,
.birthstone-month-grid {
  display: grid;
  gap: 20px;
}

.birthstone-usage-grid {
  grid-template-columns: repeat(3, 1fr);
}

.birthstone-position-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 20px;
}

.birthstone-setting-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 20px;
}

.birthstone-usage-card,
.birthstone-position-card,
.birthstone-setting-card,
.birthstone-month-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fafafa;
}

.birthstone-usage-card {
  padding: 20px;
}

.birthstone-position-card,
.birthstone-setting-card {
  padding: 16px;
}

.birthstone-position-card img,
.birthstone-setting-card img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 12px;
}

.birthstone-position-card h3,
.birthstone-setting-card h3,
.birthstone-usage-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.birthstone-month-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 20px;
}

.birthstone-month-card {
  padding: 16px 14px 18px;
  text-align: center;
}

.birthstone-month-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}

.birthstone-month-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.birthstone-month-card span {
  font-size: 14px;
  color: #555;
}

.birthstone-cta {
  margin-top: 60px;
  text-align: center;
}

.birthstone-cta-text {
  margin-bottom: 18px;
  font-size: 16px;
}

.birthstone-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  background: #7f97a0;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 900px) {
  .birthstone-usage-grid,
  .birthstone-position-grid,
  .birthstone-setting-grid {
    grid-template-columns: 1fr;
  }

  .birthstone-month-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .section-birthstone {
    padding: 32px 0 48px;
  }

  .birthstone-page {
    width: calc(100vw - 24px);
  }

  .birthstone-page h1 {
    font-size: 30px;
  }
}
