html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fdfdfd;
  color: #334155;
  font-family: 'Noto Sans JP', sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

.hgm-header-logo {
  display: block;
  width: clamp(13.75rem, 20vw, 17.5rem);
  max-width: 62vw;
  height: auto;
}

.hgm-footer-logo {
  display: block;
  width: clamp(10rem, 14vw, 11.875rem);
  max-width: 70vw;
  height: auto;
  margin-bottom: 1.5rem;
}

.hgm-mobile-menu[data-open="false"] {
  max-height: 0;
  opacity: 0;
}

.hgm-mobile-menu[data-open="true"] {
  max-height: 28rem;
  opacity: 1;
}

[data-mobile-menu-button] span {
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

[data-mobile-menu-button][aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

[data-mobile-menu-button][aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

[data-mobile-menu-button][aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hgm-prose p {
  margin-bottom: 1.15rem;
}

.hgm-prose h2 {
  margin: 2.75rem 0 1rem;
  color: #1b2d45;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.35rem;
  line-height: 1.6;
}

.hgm-prose ul {
  margin: 1rem 0 1rem 1.25rem;
  list-style: disc;
}

.hgm-prose li {
  margin-bottom: 0.5rem;
  line-height: 1.9;
}

.hgm-prose a {
  color: #a67c52;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hgm-contact-form .ff-el-group,
.hgm-contact-form .fluentform_wrapper_3 .ff-el-group {
  margin-bottom: 2.5rem;
}

.hgm-contact-form .ff-el-input--label,
.hgm-contact-form .fluentform_wrapper_3 .ff-el-input--label {
  margin-bottom: 0.85rem;
}

.hgm-contact-form .ff-el-input--label label,
.hgm-contact-form .fluentform_wrapper_3 .ff-el-input--label label {
  color: #94a3b8;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hgm-contact-form .ff-el-input--label label::first-letter {
  letter-spacing: 0.18em;
}

.hgm-contact-form .ff-el-form-control,
.hgm-contact-form .fluentform_wrapper_3 input[type='text'].ff-el-form-control,
.hgm-contact-form .fluentform_wrapper_3 input[type='email'].ff-el-form-control,
.hgm-contact-form .fluentform_wrapper_3 textarea.ff-el-form-control {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #cbd5e1 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #334155;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.875rem;
  box-shadow: none !important;
  outline: none !important;
}

.hgm-contact-form .ff-el-form-control::placeholder,
.hgm-contact-form .fluentform_wrapper_3 .ff-el-form-control::placeholder {
  color: #b8c4d2;
  opacity: 1;
}

.hgm-contact-form textarea.ff-el-form-control,
.hgm-contact-form .fluentform_wrapper_3 textarea.ff-el-form-control {
  min-height: 9rem;
  resize: vertical;
}

.hgm-contact-form select.ff-el-form-control {
  color: #334155;
}

.hgm-contact-form .hgm-conditional-hidden {
  display: none !important;
}

.hgm-contact-form .hgm-choice-group .ff-el-input--content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.hgm-contact-form .hgm-nested-choice-panel {
  display: block;
  grid-column: 1 / -1;
  margin: -0.45rem 0 0.75rem 1rem;
  padding: 1.1rem 1rem 0.1rem;
  border-left: 1px solid #d8c8b6;
  background: #f9f7f4;
}

.hgm-contact-form .hgm-nested-choice-panel.hgm-conditional-hidden {
  display: none !important;
}

.hgm-contact-form .hgm-nested-choice-panel .ff-el-group {
  margin-bottom: 1.25rem;
}

.hgm-contact-form .hgm-nested-choice-panel .ff-el-group:last-child {
  margin-bottom: 1rem;
}

.hgm-contact-form .hgm-nested-choice-panel .hgm-subscription-field .ff-el-input--content {
  grid-template-columns: 1fr;
}

.hgm-contact-form .hgm-choice-group .ff-el-form-check {
  margin: 0;
}

.hgm-contact-form .hgm-choice-group .ff-el-form-check-label {
  position: relative;
  display: flex;
  min-height: 3rem;
  align-items: center;
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.55rem;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  border-left: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #334155;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.875rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: keep-all;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hgm-contact-form .hgm-choice-group .ff-el-form-check-label::before,
.hgm-contact-form .hgm-choice-group .ff-el-form-check-label::after {
  content: '';
  position: absolute;
  top: 50%;
  border-radius: 999px;
  transform: translateY(-50%);
}

.hgm-contact-form .hgm-choice-group .ff-el-form-check-label::before {
  left: 1rem;
  width: 0.85rem;
  height: 0.85rem;
  border: 1.5px solid #b89a78;
  background: #fff;
}

.hgm-contact-form .hgm-choice-group .ff-el-form-check-label::after {
  left: 1.2125rem;
  width: 0.425rem;
  height: 0.425rem;
  background: transparent;
}

.hgm-contact-form .hgm-choice-group input[type='radio'] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.hgm-contact-form .hgm-choice-group .ff-el-form-check-label:hover,
.hgm-contact-form .hgm-choice-group input[type='radio']:focus + span,
.hgm-contact-form .hgm-choice-group input[type='radio']:focus-visible + span {
  color: #1b2d45;
}

.hgm-contact-form .hgm-choice-group .ff-el-form-check-label:hover {
  background: #faf8f5;
}

.hgm-contact-form .hgm-choice-group .ff-el-form-check-label:hover::before {
  border-color: #a67c52;
}

.hgm-contact-form .hgm-choice-group .ff-el-form-check-label:focus-within::before {
  box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.15);
}

.hgm-contact-form .hgm-choice-group .ff-el-form-check.hgm-radio-selected .ff-el-form-check-label,
.hgm-contact-form .hgm-choice-group .ff-el-form-check-label:has(input[type='radio']:checked) {
  border-left-color: #a67c52;
  border-bottom-color: #d8c8b6;
  background: transparent;
  color: #1b2d45;
  font-weight: 500;
  box-shadow: none;
}

.hgm-option-gallery-thumb {
  opacity: 0.55;
}

.hgm-option-gallery-thumb[data-active='true'] {
  border-color: #a67c52;
  opacity: 1;
  box-shadow: 0 0 0 1px #a67c52;
}

/* ===== Diagnostic recommended plan highlight ===== */
.hgm-plan-recommended {
  box-shadow: 0 0 0 2px #a67c52, 0 12px 30px rgba(166, 124, 82, 0.18) !important;
  position: relative;
}

.hgm-plan-rec-badge {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.3rem 0.8rem;
  background: #a67c52;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  border-radius: 2px;
}

.hgm-plan-row-recommended {
  position: relative;
  margin: 0 -0.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e2ba61;
  background: rgba(226, 186, 97, 0.14);
  border-radius: 4px;
}

.hgm-plan-row-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  color: #e2ba61;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hgm-plan-row-label::before {
  content: '';
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 999px;
  background: #b07d62;
}

.bg-\[\#FFFFFF\] .hgm-plan-row-recommended,
.bg-white .hgm-plan-row-recommended {
  border-color: #a67c52;
  background: rgba(166, 124, 82, 0.10);
}

.bg-\[\#FFFFFF\] .hgm-plan-row-label,
.bg-white .hgm-plan-row-label {
  color: #a67c52;
}

.hgm-option-cart-cta {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid #e5dcd0;
  background: #e5dcd0;
  color: #1b2d45;
  padding: 0.75rem 1.4rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hgm-option-cart-cta:hover,
.hgm-option-cart-cta:focus {
  border-color: #1b2d45;
  background: #1b2d45;
  color: #fff;
}

.hgm-option-cart-cta svg {
  flex: 0 0 auto;
}

[data-modal='option-member-confirm'] {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

[data-modal='option-member-confirm'] > div {
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title {
  color: #1b2d45;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
}

.wp-block-woocommerce-empty-cart-block .with-empty-cart-icon::before {
  background-color: #68829e;
}

.hgm-empty-cart-blocks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.45rem;
  margin: 1.25rem 0 2.25rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.86rem;
  line-height: 1;
}

.hgm-empty-cart-blocks__circle {
  color: #68829e;
}

.hgm-empty-cart-blocks__triangle {
  color: #d4a373;
}

.hgm-empty-cart-blocks__square {
  color: #8ba090;
}

.wp-block-woocommerce-empty-cart-block .wp-block-separator.is-style-dots {
  border: 0;
  color: transparent;
  height: auto;
  margin: 1.2rem auto 2.25rem;
  overflow: visible;
}

.wp-block-woocommerce-empty-cart-block .wp-block-separator.is-style-dots::before {
  background: linear-gradient(90deg, #68829e 0 31%, #d4a373 31% 64%, #8ba090 64% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  content: '● ▲ ■';
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.86rem;
  letter-spacing: 1.15rem;
  line-height: 1;
}

.hgm-empty-cart-continue {
  margin-top: 2rem;
  text-align: center;
}

.hgm-cart-continue-shopping {
  margin: 2rem 0 0;
  text-align: left;
}

.wp-block-woocommerce-cart .wp-block-woocommerce-cart-items-block .hgm-cart-continue-shopping {
  grid-column: auto;
  margin-top: 1.5rem;
}

.hgm-cart-remove-status {
  border: 1px solid #e5dcd0;
  background: #f9f7f4;
  color: #1b2d45;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.7;
}

.hgm-cart-remove-status[data-status="success"] {
  border-color: #c8d8cb;
  background: #f3f8f4;
  color: #48634e;
}

.hgm-cart-remove-status[data-status="attention"] {
  border-color: #e2c596;
  background: #fff8ea;
  color: #745222;
}

.wp-block-woocommerce-cart .hgm-cart-item-removing {
  opacity: 0.56;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.wp-block-woocommerce-cart .hgm-cart-item-removing .wc-block-cart-item__remove-link {
  cursor: progress;
}

.hgm-empty-cart-continue-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5dcd0;
  background: #e5dcd0;
  color: #1b2d45;
  padding: 0.85rem 1.75rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.woocommerce .hgm-empty-cart-continue-link {
  color: #1b2d45;
}

.hgm-prose .hgm-empty-cart-continue-link {
  color: #1b2d45;
  text-decoration: none;
}

.hgm-prose .hgm-cart-continue-shopping {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .wp-block-woocommerce-cart .wp-block-woocommerce-cart-items-block .hgm-cart-continue-shopping {
    margin-bottom: 2rem;
  }
}

.hgm-empty-cart-continue-link:hover,
.hgm-empty-cart-continue-link:focus {
  border-color: #1b2d45;
  background: #1b2d45;
  color: #fff;
}

.woocommerce .hgm-empty-cart-continue-link:hover,
.woocommerce .hgm-empty-cart-continue-link:focus {
  color: #fff;
}

.hgm-prose .hgm-empty-cart-continue-link:hover,
.hgm-prose .hgm-empty-cart-continue-link:focus {
  color: #fff;
}

.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wp-block-woocommerce-cart a.wc-block-cart__submit-button,
.wp-block-woocommerce-cart .wc-block-components-button:not(.is-link) {
  background-color: #1b2d45;
  color: #fff;
}

.wp-block-woocommerce-cart .wc-block-cart__submit-button:hover,
.wp-block-woocommerce-cart a.wc-block-cart__submit-button:hover,
.wp-block-woocommerce-cart .wc-block-components-button:not(.is-link):hover {
  background-color: #d4a373;
  color: #fff;
}

.woocommerce {
  color: #334155;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.875rem;
}

.woocommerce h1,
.woocommerce h2,
.woocommerce h3 {
  color: #1b2d45;
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
}

.woocommerce a {
  color: #a67c52;
}

.woocommerce table.shop_table {
  border-color: #e7dfd6;
  border-radius: 0;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: #eee7df;
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce a.checkout-button {
  border-radius: 0 !important;
  background: #1b2d45 !important;
  color: #fff !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce a.checkout-button:hover {
  background: #a67c52 !important;
  color: #fff !important;
}

.woocommerce .quantity .qty {
  border: 1px solid #d8c8b6;
  border-radius: 0;
  min-height: 2.5rem;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: #a67c52;
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: #a67c52;
}

.woocommerce-checkout .wp-block-woocommerce-checkout {
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
}

.woocommerce-checkout .wc-block-components-sidebar-layout {
  gap: clamp(2rem, 5vw, 4rem);
  align-items: flex-start;
}

.woocommerce-checkout .wc-block-checkout__main {
  max-width: 620px;
}

.woocommerce-checkout .wc-block-checkout__sidebar {
  border: 1px solid #e5dcd0;
  border-radius: 6px;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 18px 42px rgba(44, 62, 80, 0.06);
}

.woocommerce-checkout .wc-block-components-express-payment {
  border: 1px solid #d9dee5;
  border-radius: 6px;
  background: #fff;
  padding: 1.45rem 1rem 1rem;
  margin-bottom: 1.8rem;
}

.woocommerce-checkout .wc-block-components-express-payment__title-container,
.woocommerce-checkout .wc-block-components-checkout-step__heading-container {
  margin-bottom: 0.8rem;
}

.woocommerce-checkout .wc-block-components-express-payment__title,
.woocommerce-checkout .wc-block-components-title.wc-block-components-checkout-step__title {
  color: #1b2d45;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
}

.woocommerce-checkout .wc-block-components-express-payment__title {
  color: #2c3e50;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
}

.woocommerce-checkout .wc-block-components-express-payment__event-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
}

.woocommerce-checkout .wc-block-components-express-payment__event-buttons li {
  margin: 0 !important;
}

.woocommerce-checkout .wc-block-components-checkout-step {
  margin-bottom: 1.8rem;
}

.woocommerce-checkout #contact,
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-address-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  overflow: hidden;
  border: 1px solid #d9dee5;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(44, 62, 80, 0.04);
}

.woocommerce-checkout #contact {
  max-width: 360px;
}

.wp-block-woocommerce-checkout .wc-block-components-address-form .hgm-checkout-field {
  flex: 1 1 50%;
  margin-top: 0 !important;
}

.wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__country {
  display: none !important;
  order: 0;
}

.wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__last_name {
  order: 10;
}

.wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__first_name {
  order: 20;
}

.wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__postcode {
  order: 30;
}

.wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__state {
  order: 40;
}

.wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__city {
  order: 50;
}

.wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__address_1 {
  order: 60;
}

.wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__address_2,
.wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__address_2-toggle {
  order: 70;
}

.wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__phone {
  order: 80;
}

.wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__postcode,
.wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__state,
.wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__city,
.wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__address_1,
.wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__address_2,
.wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__phone {
  flex-basis: 100%;
}

.wp-block-woocommerce-checkout .wc-block-components-address-form .hgm-checkout-country-field {
  display: none !important;
}

.woocommerce-checkout #contact .wc-block-components-text-input,
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-text-input,
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-address-form .wc-blocks-components-select,
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__address_2-toggle {
  position: relative;
  margin: 0 !important;
  border-right: 1px solid #e4e8ee;
  border-bottom: 1px solid #e4e8ee;
  background: #fff;
}

.woocommerce-checkout #contact .wc-block-components-text-input {
  width: 100%;
  border-right: 0;
  border-bottom: 0;
}

.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__first_name,
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__phone,
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__postcode,
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__state,
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__city,
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__address_1,
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__address_2 {
  border-right: 0;
}

.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__phone {
  border-bottom: 0;
}

.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__address_2-toggle {
  flex: 1 1 100%;
  min-height: 52px;
  padding: 1rem 1.1rem;
  color: #64748b;
  font-size: 0.82rem;
  text-decoration: none;
  cursor: pointer;
}

.wp-block-woocommerce-checkout .wc-block-components-address-form input,
.wp-block-woocommerce-checkout .wc-block-components-address-form select,
.wp-block-woocommerce-checkout .wc-block-components-address-form .wc-blocks-components-select__select,
.woocommerce-checkout #contact input {
  border: 0 !important;
  border-radius: 0;
  min-height: 3.45rem;
  background: transparent !important;
  color: #1f2937;
  font-size: 0.98rem;
  box-shadow: none !important;
}

.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-address-form select,
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-address-form .wc-blocks-components-select__select {
  padding-top: 1.2rem;
  padding-bottom: 0.35rem;
}

.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__state {
  background: #fbfaf8;
}

.wp-block-woocommerce-checkout .wc-block-components-address-form label,
.wp-block-woocommerce-checkout .wc-block-components-address-form .wc-blocks-components-select__label,
.woocommerce-checkout #contact label {
  color: #58708c;
  font-size: 0.72rem;
  font-weight: 500;
}

.woocommerce-checkout .hgm-postcode-status {
  width: 100%;
  margin: -0.35rem 1rem 0.85rem;
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1.6;
}

.woocommerce-checkout .hgm-postcode-status[data-status='loading'] {
  color: #58708c;
}

.woocommerce-checkout .hgm-postcode-status[data-status='success'] {
  color: #4f6f56;
}

.woocommerce-checkout .hgm-postcode-status[data-status='error'] {
  color: #b45309;
}

.woocommerce-checkout .hgm-checkout-error-summary {
  margin: 0 0 1.25rem;
  border: 1px solid #f0b8a8;
  border-left: 4px solid #c2410c;
  border-radius: 4px;
  background: #fff7f5;
  color: #7c2d12;
  padding: 1rem 1.1rem;
}

.woocommerce-checkout .hgm-checkout-error-summary[hidden] {
  display: none !important;
}

.woocommerce-checkout .hgm-checkout-error-summary__title {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.woocommerce-checkout .hgm-checkout-error-summary__body {
  margin: 0;
  color: #9a3412;
  font-size: 0.78rem;
  line-height: 1.7;
}

.woocommerce-checkout .hgm-checkout-field--error {
  background: #fff7f5 !important;
  box-shadow: inset 3px 0 0 #c2410c;
}

.woocommerce-checkout .hgm-checkout-field--attention {
  animation: hgmCheckoutErrorPulse 1.8s ease;
}

.woocommerce-checkout .hgm-checkout-field--error label,
.woocommerce-checkout .hgm-checkout-field--error .wc-blocks-components-select__label {
  color: #9a3412;
}

.woocommerce-checkout .hgm-checkout-field--error input,
.woocommerce-checkout .hgm-checkout-field--error select,
.woocommerce-checkout .hgm-checkout-field--error textarea,
.woocommerce-checkout .hgm-checkout-field--error .wc-blocks-components-select__select {
  outline: 2px solid rgba(194, 65, 12, 0.35);
  outline-offset: -2px;
}

.woocommerce-checkout .hgm-checkout-error-note {
  width: 100%;
  margin: -0.25rem 1rem 0.85rem;
  color: #9a3412;
  font-size: 0.74rem;
  line-height: 1.6;
}

@keyframes hgmCheckoutErrorPulse {
  0% {
    box-shadow: inset 3px 0 0 #c2410c, 0 0 0 0 rgba(194, 65, 12, 0.32);
  }

  70% {
    box-shadow: inset 3px 0 0 #c2410c, 0 0 0 8px rgba(194, 65, 12, 0);
  }

  100% {
    box-shadow: inset 3px 0 0 #c2410c, 0 0 0 0 rgba(194, 65, 12, 0);
  }
}

.woocommerce-checkout .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button {
  min-height: 54px;
  border-radius: 4px;
  background: #2c3e50;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.woocommerce-checkout .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button:hover,
.woocommerce-checkout .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button:focus {
  background: #a67c52;
  color: #fff;
}

.woocommerce-checkout .wc-block-components-checkout-step__content {
  padding-left: 0;
}

.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control,
.woocommerce-checkout .wc-block-checkout__order-notes .wc-block-components-checkbox label {
  border-color: #d9dee5;
  border-radius: 6px;
  background: #fff;
}

@media (max-width: 640px) {
  .wp-block-woocommerce-checkout .wc-block-components-address-form .hgm-checkout-field {
    flex-basis: 100%;
  }

  .woocommerce-checkout #contact,
  .woocommerce-checkout .wc-block-checkout__main {
    max-width: none;
  }

  .woocommerce-checkout .wc-block-components-express-payment__event-buttons {
    grid-template-columns: 1fr;
  }

  .woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-text-input,
  .woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-address-form .wc-blocks-components-select {
    border-right: 0;
  }
}

@media (min-width: 1024px) {
  .woocommerce-checkout .wc-block-components-sidebar-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.88fr) minmax(520px, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }

  .woocommerce-checkout .wc-block-checkout__main {
    width: 100%;
    max-width: none;
    grid-column: 2;
    grid-row: 1;
  }

  .woocommerce-checkout .wc-block-checkout__form {
    display: block;
  }

  .woocommerce-checkout .wc-block-checkout__form > div:first-child,
  .woocommerce-checkout .wc-block-checkout__contact-fields {
    margin-bottom: 1.8rem;
  }

  .woocommerce-checkout .wp-block-woocommerce-checkout-shipping-method-block,
  .woocommerce-checkout .wp-block-woocommerce-checkout-pickup-options-block {
    display: none;
  }

  .woocommerce-checkout #billing-fields {
    margin-bottom: 1.8rem;
  }

  .woocommerce-checkout #payment-method,
  .woocommerce-checkout #order-notes,
  .woocommerce-checkout .wc-block-checkout__terms,
  .woocommerce-checkout .wc-block-checkout__actions {
    margin-bottom: 1.55rem;
  }

  .woocommerce-checkout .wc-block-checkout__sidebar {
    width: 100%;
    max-width: none;
    grid-column: 1;
    grid-row: 1;
    margin-top: 0;
    position: sticky;
    top: 7rem;
  }
}

.hgm-contact-form .hgm-choice-group .ff-el-form-check.hgm-radio-selected .ff-el-form-check-label::before,
.hgm-contact-form .hgm-choice-group .ff-el-form-check-label:has(input[type='radio']:checked)::before {
  border-color: #a67c52;
}

.hgm-contact-form .hgm-choice-group .ff-el-form-check.hgm-radio-selected .ff-el-form-check-label::after,
.hgm-contact-form .hgm-choice-group .ff-el-form-check-label:has(input[type='radio']:checked)::after {
  background: #a67c52;
}

.hgm-contact-form .hgm-choice-group .ff-el-form-check-label:focus-within {
  border-left-color: #a67c52;
  border-bottom-color: #a67c52;
  box-shadow: none;
}

.hgm-contact-form .ff-el-form-control:focus,
.hgm-contact-form .fluentform_wrapper_3 input[type='text'].ff-el-form-control:focus,
.hgm-contact-form .fluentform_wrapper_3 input[type='email'].ff-el-form-control:focus,
.hgm-contact-form .fluentform_wrapper_3 textarea.ff-el-form-control:focus {
  border-color: #a67c52 !important;
  border-bottom-color: #a67c52 !important;
  box-shadow: none !important;
  outline: none !important;
}

.hgm-contact-form .ff_submit_btn_wrapper {
  margin-top: 0.5rem;
}

.hgm-contact-form .ff-btn-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 56px !important;
  padding: 0 3rem !important;
  border: 1px solid #2c3e50 !important;
  border-radius: 0 !important;
  background: #2c3e50 !important;
  color: #fff !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
  line-height: 1 !important;
  text-align: center !important;
  text-transform: uppercase !important;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hgm-contact-form .ff-btn-submit:hover,
.hgm-contact-form .ff-btn-submit:focus {
  border-color: #a67c52 !important;
  background: #a67c52 !important;
}

.hgm-contact-form .ff-el-is-error .ff-el-form-control {
  border-bottom-color: #b91c1c;
}

.hgm-contact-form .error,
.hgm-contact-form .ff-el-is-error .text-danger {
  margin-top: 0.5rem;
  color: #b91c1c;
  font-size: 0.75rem;
}

.hgm-contact-form .ff-message-success {
  padding: 1.5rem;
  border: 1px solid #e5dcd0;
  background: #f9f7f4;
  color: #334155;
  font-size: 0.875rem;
  line-height: 1.8;
}

.hgm-contact-submit-status {
  margin: 1.5rem 0 0;
  border: 1px solid #f0b8a8;
  border-left: 4px solid #c2410c;
  background: #fff7f5;
  color: #9a3412;
  padding: 0.9rem 1rem;
  font-size: 0.78rem;
  line-height: 1.7;
}

.hgm-contact-submit-status[data-status='loading'] {
  border-color: #dbe4ee;
  border-left-color: #58708c;
  background: #f8fafc;
  color: #334155;
}

.hgm-contact-submit-status[data-status='success'] {
  border-color: #d9e6d6;
  border-left-color: #4f6f56;
  background: #f7faf6;
  color: #334155;
}

.hgm-contact-submit-status[hidden] {
  display: none !important;
}

.hgm-contact-form-hidden {
  display: none;
}

.hgm-hero-copy {
  isolation: isolate;
}

.hgm-hero-seal {
  position: absolute;
  z-index: -1;
  top: calc(1.85rem - 30px);
  left: min(19vw, 16.4rem);
  width: clamp(13.25rem, 18vw, 15rem);
  max-width: none;
  opacity: 0.78;
  mix-blend-mode: multiply;
  pointer-events: none;
  transform: rotate(15deg);
  transform-origin: center;
  user-select: none;
}

.hgm-hero-title,
.hgm-hero-lead,
.hgm-hero-news-link {
  position: relative;
  z-index: 1;
}

.hgm-quote-toy {
  display: block;
  width: clamp(5.75rem, 10vw, 7.75rem);
  margin: -0.25rem auto 0;
  opacity: 0.88;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0.45rem 0.9rem rgba(166, 124, 82, 0.08));
}

.hgm-gallery-hero-toy {
  display: block;
  width: clamp(13rem, 28vw, 21rem);
  margin: 1.4rem auto 0;
  opacity: 0.86;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0.55rem 1rem rgba(44, 62, 80, 0.06));
}

.hgm-roadmap-card {
  flex: 1 1 auto;
  min-width: 0;
  box-shadow: 0 0.45rem 1.4rem rgba(44, 62, 80, 0.055);
}

.hgm-roadmap-card--has-photo {
  position: relative;
}

.hgm-roadmap-card--goal {
  box-shadow: 0 0.85rem 1.8rem rgba(74, 74, 74, 0.12);
}

.hgm-roadmap-photo {
  width: clamp(4.35rem, 6vw, 5.5rem);
  aspect-ratio: 1;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #edf1eb;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0.55rem 1.4rem rgba(74, 74, 74, 0.08);
}

.hgm-roadmap-photo img {
  width: 100%;
  height: 100%;
  padding: 0.35rem;
  object-fit: contain;
}

.hgm-roadmap-photo--mobile {
  width: min(6.25rem, 36vw);
  margin: 0 0 0.85rem;
}

@media (max-width: 767px) {
  .hgm-roadmap-card--has-photo {
    padding-top: 5.85rem;
  }

  .hgm-roadmap-photo--mobile {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: min(5.25rem, 24vw);
    margin: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 0.45rem 0.65rem rgba(44, 62, 80, 0.12));
  }

  .hgm-roadmap-photo--mobile img {
    padding: 0;
  }

  .hgm-roadmap-card--goal .hgm-roadmap-photo--mobile {
    top: 1.55rem;
  }
}

.hgm-roadmap-photo--desktop {
  flex: 0 0 auto;
  width: clamp(3.3rem, 5vw, 4.55rem);
}

.hgm-roadmap-photo--desktop .hgm-roadmap-photo {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  filter: drop-shadow(0 0.55rem 0.7rem rgba(44, 62, 80, 0.13));
}

.hgm-roadmap-photo--desktop .hgm-roadmap-photo img {
  padding: 0;
}

.hgm-roadmap-step:nth-child(odd) .hgm-roadmap-photo--desktop .hgm-roadmap-photo {
  transform: rotate(-7deg) translateY(-0.2rem);
}

.hgm-roadmap-step:nth-child(even) .hgm-roadmap-photo--desktop .hgm-roadmap-photo {
  transform: rotate(6deg) translateY(0.1rem);
}

.hgm-roadmap-step:nth-child(6) .hgm-roadmap-photo--desktop {
  width: clamp(3.7rem, 5.5vw, 5rem);
}

.hgm-roadmap-step:nth-child(6) .hgm-roadmap-photo--desktop .hgm-roadmap-photo {
  transform: rotate(-5deg) translateY(-0.15rem);
}

@media (min-width: 768px) {
  .hgm-roadmap-photo--mobile {
    display: none;
  }
}

.hgm-gallery-options-card-gap {
  margin-top: 5rem;
}

@media (min-width: 768px) {
  .hgm-gallery-options-card-gap {
    margin-top: 6rem;
  }
}

.hgm-footer-toy-stage {
  position: relative;
  z-index: 2;
  height: 5.25rem;
  max-width: 80rem;
  margin: -1.5rem auto -4.35rem;
  padding: 0 1.5rem;
  pointer-events: none;
}

.hgm-footer-toy {
  position: absolute;
  right: clamp(1.25rem, 6vw, 5rem);
  bottom: -1.15rem;
  width: clamp(5.75rem, 10vw, 8.5rem);
  max-width: none;
  opacity: 0;
  transform: translate(2rem, 2rem) rotate(2deg);
  transform-origin: 55% 90%;
  user-select: none;
  filter: drop-shadow(0 0.7rem 1.1rem rgba(27, 45, 69, 0.12));
}

.hgm-footer-toy.is-visible {
  opacity: 1;
  transform: translate(0, 0.85rem) rotate(2deg);
}

@media (prefers-reduced-motion: no-preference) {
  .hgm-footer-toy.is-visible {
    animation:
      hgm-footer-toy-enter 0.75s cubic-bezier(0.22, 1, 0.36, 1) both,
      hgm-footer-toy-sway 5.5s ease-in-out 0.75s infinite;
  }
}

@keyframes hgm-footer-toy-enter {
  from {
    opacity: 0;
    transform: translate(2rem, 2rem) rotate(2deg);
  }

  to {
    opacity: 1;
    transform: translate(0, 0.85rem) rotate(2deg);
  }
}

@keyframes hgm-footer-toy-sway {
  0%, 100% {
    transform: translate(0, 0.85rem) rotate(2deg);
  }

  50% {
    transform: translate(-0.15rem, 0.55rem) rotate(-1.4deg);
  }
}

.hgm-contact-confirm {
  padding: 2rem;
  border: 1px solid #e5dcd0;
  background: #f9f7f4;
}

.hgm-contact-confirm.hidden {
  display: none;
}

.hgm-contact-confirm .hgm-confirm-eyebrow {
  margin-bottom: 0.75rem;
  color: #a67c52;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.hgm-contact-confirm h2 {
  margin: 0 0 1.5rem;
  color: #1b2d45;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  line-height: 1.6;
}

.hgm-contact-confirm dl {
  margin: 0;
}

.hgm-confirm-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 1.15rem 0;
  border-top: 1px solid #e5dcd0;
}

.hgm-confirm-row dt {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hgm-confirm-row dd {
  margin: 0;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.hgm-confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hgm-confirm-back,
.hgm-confirm-submit {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid #1b2d45;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hgm-confirm-back {
  background: transparent;
  color: #1b2d45;
}

.hgm-confirm-submit {
  background: #1b2d45;
  color: #fff;
}

.hgm-confirm-back:hover,
.hgm-confirm-back:focus {
  border-color: #a67c52;
  color: #a67c52;
}

.hgm-confirm-submit:hover,
.hgm-confirm-submit:focus {
  border-color: #a67c52;
  background: #a67c52;
}

@media (min-width: 640px) {
  .hgm-contact-form .hgm-choice-group .ff-el-input--content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hgm-contact-form .hgm-inquiry-type .ff-el-input--content {
    grid-template-columns: 1fr;
  }

  .hgm-contact-form .hgm-nested-choice-panel {
    margin-left: 1.75rem;
    padding: 1.5rem 1.5rem 0.25rem;
  }

  .hgm-contact-form .hgm-nested-choice-panel .hgm-subscription-field .ff-el-input--content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hgm-contact-form .ff-btn-submit {
    width: 216px !important;
  }

  .hgm-confirm-row {
    grid-template-columns: minmax(9rem, 0.32fr) 1fr;
    gap: 1.5rem;
  }

  .hgm-confirm-actions {
    flex-direction: row;
  }

  .hgm-confirm-back,
  .hgm-confirm-submit {
    width: auto;
  }
}

.arch-cta {
  aspect-ratio: 3 / 4;
  border-radius: 100px 100px 16px 16px;
}

@media (min-width: 640px) {
  .arch-cta {
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 768px) {
  .arch-cta {
    aspect-ratio: 16 / 9;
  }
}

/* Programs page deployment fallback while PHP template cache refreshes. */
.animate-fadeIn.pb-24 > section.mb-32.space-y-32 > .relative.group:first-child > .absolute.inset-0 {
  background-color: #e5dcd0 !important;
}

.animate-fadeIn.pb-24 > section.mb-32.space-y-32 > .relative.group:nth-child(2) > .flex > .relative.z-20 {
  border: 1px solid #f3f4f6 !important;
  background-color: #fff !important;
  color: #2c3e50 !important;
}

.animate-fadeIn.pb-24 > section.mb-32.space-y-32 > .relative.group:nth-child(2) > .absolute.inset-0 {
  background-color: rgba(104, 130, 158, 0.3) !important;
}

.animate-fadeIn.pb-24 > section.mb-32.space-y-32 > .relative.group:nth-child(2) > .flex > .relative.z-20 h3,
.animate-fadeIn.pb-24 > section.mb-32.space-y-32 > .relative.group:nth-child(2) > .flex > .relative.z-20 ul {
  color: #2c3e50 !important;
}

.animate-fadeIn.pb-24 > section.mb-32.space-y-32 > .relative.group:nth-child(2) > .flex > .relative.z-20 p {
  color: #6b7280 !important;
}

.animate-fadeIn.pb-24 > section.mb-32.space-y-32 > .relative.group:nth-child(2) > .flex > .relative.z-20 ul {
  border-top-color: #f3f4f6 !important;
}

.animate-fadeIn.pb-24 > section.mb-32.space-y-32 > .relative.group:nth-child(2) > .flex > .relative.z-20 .absolute span:nth-child(2) {
  background-color: #8ba090 !important;
  color: #fff !important;
}

#plans .grid > div:first-child button[data-modal-open] {
  border: 1px solid #a67c52 !important;
  background-color: #fff !important;
  color: #a67c52 !important;
}

#plans .grid > div:first-child button[data-modal-open]:hover {
  background-color: #a67c52 !important;
  color: #fff !important;
}

#plans .grid > div:first-child button[data-modal-open] span {
  color: inherit !important;
}

#plans .grid > div:nth-child(2) button[data-modal-open] {
  background-color: #e2ba61 !important;
  color: #2c3e50 !important;
}

#plans .grid > div:nth-child(2) button[data-modal-open]:hover {
  background-color: #fff !important;
}

.hgm-options-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #68829e;
  background-color: #fff;
  color: #68829e;
  padding: 0.75rem 2rem;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.hgm-options-cta:hover,
.hgm-options-cta:focus {
  border-color: #1b2d45;
  background-color: #1b2d45;
  color: #fff;
}

.hgm-options-cta span {
  color: inherit !important;
}

.hgm-options-cta-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  justify-content: center;
  padding-top: 1.7rem;
}

/* レンタル=紺塗りプライマリ／販売=アウトライン（2026-07-24 販売ボタン追加） */
.hgm-options-cta-wrap .hgm-options-cta { min-width: 13.5rem; }
.hgm-options-cta--primary {
  background-color: #1b2d45;
  border-color: #1b2d45;
  color: #fff;
}
.hgm-options-cta--primary:hover,
.hgm-options-cta--primary:focus {
  background-color: #fff;
  border-color: #1b2d45;
  color: #1b2d45;
}

.hgm-options-pony {
  position: absolute;
  z-index: 2;
  top: -1.55rem;
  right: -3.2rem;
  width: clamp(4.8rem, 6vw, 5.75rem);
  max-width: none;
  pointer-events: none;
  transform: scaleX(-1) rotate(2deg);
  transform-origin: 26% 90%;
  transition: transform 180ms ease;
  user-select: none;
  filter: drop-shadow(0 0.45rem 0.75rem rgba(166, 124, 82, 0.12));
}

.hgm-options-cta-wrap:hover .hgm-options-pony,
.hgm-options-cta-wrap:focus-within .hgm-options-pony {
  transform: scaleX(-1) translateY(0.16rem) rotate(8deg);
}

@media (min-width: 768px) {
  .hgm-options-cta-wrap {
    justify-content: flex-end;
  }
}

.hgm-checkout-btn {
  display: flex;
  width: 100%;
  min-height: 56px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  padding: 0.75rem 1rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.45;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.hgm-checkout-btn span {
  color: inherit !important;
}

.hgm-checkout-btn span + span {
  margin-top: 0.125rem;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  opacity: 0.76;
  text-transform: none;
}

.hgm-checkout-btn--kg-primary {
  border-color: #d5a06a;
  background-color: #d5a06a;
  color: #4b321c;
}

.hgm-checkout-btn--kg-primary:hover,
.hgm-checkout-btn--kg-primary:focus {
  border-color: #c58d53;
  background-color: #c58d53;
  color: #3f2916;
}

.hgm-checkout-btn--kg-secondary {
  border-color: #d5a06a;
  background-color: #fff;
  color: #704b28;
}

.hgm-checkout-btn--kg-secondary:hover,
.hgm-checkout-btn--kg-secondary:focus {
  border-color: #d5a06a;
  background-color: #f4e3d2;
  color: #4b321c;
}

.hgm-checkout-btn--el-primary {
  border-color: #68829e;
  background-color: #68829e;
  color: #fff;
}

.hgm-checkout-btn--el-primary:hover,
.hgm-checkout-btn--el-primary:focus {
  border-color: #4f6782;
  background-color: #4f6782;
  color: #fff;
}

.hgm-checkout-btn--el-secondary {
  border-color: #68829e;
  background-color: #fff;
  color: #4f6782;
}

.hgm-checkout-btn--el-secondary:hover,
.hgm-checkout-btn--el-secondary:focus {
  border-color: #4f6782;
  background-color: #eef3f7;
  color: #2c3e50;
}

/* ===== Monitor checkout cards ===== */
@media (min-width: 1180px) {
  .hgm-monitor-checkout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .hgm-monitor-checkout-card {
    height: 100%;
  }

  .hgm-monitor-checkout-card > section {
    display: flex;
    height: 100%;
    flex-direction: column;
  }

  .hgm-monitor-checkout-card [data-monitor-checkout-control] {
    margin-top: auto;
    padding-top: 1.75rem;
  }
}

/* ===== Announce bar ===== */
.hgm-announce-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.75rem;
  padding: 0 1rem;
  background: transparent;
  color: #fff;
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .hgm-announce-bar__unit {
    animation: hgm-announce-drive-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes hgm-announce-drive-in {
  from {
    transform: translateX(120%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.hgm-announce-bar__unit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 1040px);
}

.hgm-announce-bar__train {
  flex: 0 0 auto;
  height: 3.1rem;
  width: auto;
  pointer-events: none;
  z-index: 1;
  margin-right: 0.12rem;
}

.hgm-announce-bar__inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 2.7rem;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 1rem;
  padding: 0.65rem 1.6rem;
  background: #a67c52;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.82rem;
  text-align: center;
}

.hgm-announce-bar__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.hgm-announce-bar__text strong {
  font-size: 1.05em;
  font-weight: 700;
}

.hgm-announce-bar__link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.hgm-announce-bar__link:hover,
.hgm-announce-bar__link:focus {
  color: #fff;
  opacity: 0.86;
}

/* ===== Monitor floating tab ===== */
.hgm-monitor-tab {
  position: fixed;
  z-index: 40;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.hgm-monitor-tab__trigger {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: #2c3e50;
  color: #fff;
  padding: 1.1rem 0.55rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  border-radius: 6px 0 0 6px;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.08);
}

.hgm-monitor-tab__panel {
  pointer-events: auto;
  width: 320px;
  max-width: 86vw;
  background: #f9f7f4;
  border: 1px solid #e5dcd0;
  border-right: 0;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.08);
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.hgm-monitor-tab[data-open="true"] .hgm-monitor-tab__panel {
  transform: translateX(0);
}

.hgm-monitor-tab__panel-inner {
  padding: 1.5rem 1.4rem;
}

.hgm-monitor-tab__eyebrow {
  margin: 0 0 0.4rem;
  color: #a67c52;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hgm-monitor-tab__title {
  margin: 0 0 0.6rem;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  color: #1b2d45;
}

.hgm-monitor-tab__desc {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  line-height: 1.8;
  color: #2c3e50;
}

.hgm-monitor-tab__badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.hgm-monitor-tab__badge {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border: 1px solid #e5dcd0;
  background: #fff;
  padding: 0.7rem 0.6rem;
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  color: #2c3e50;
  text-align: center;
}

.hgm-monitor-tab__badge small {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a67c52;
}

.hgm-monitor-tab__cta {
  display: block;
  background: #2c3e50;
  color: #fff;
  padding: 0.85rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  transition: background-color 0.2s ease;
}

.hgm-monitor-tab__cta:hover,
.hgm-monitor-tab__cta:focus {
  background: #a67c52;
  color: #fff;
}

@media (max-width: 767px) {
  .hgm-hero-seal {
    display: block;
    z-index: 0;
    top: -0.55rem;
    left: auto;
    right: -0.35rem;
    width: clamp(7.5rem, 34vw, 9.5rem);
    opacity: 0.48;
  }

  .hgm-quote-toy {
    width: 5.5rem;
    margin-top: 0;
  }

  .hgm-gallery-hero-toy {
    width: min(17rem, 76vw);
    margin-top: 1.25rem;
  }

  .hgm-footer-toy-stage {
    display: block;
    height: 3.8rem;
    margin: -0.5rem auto -3.15rem;
    padding: 0 1rem;
  }

  .hgm-footer-toy {
    right: 0.8rem;
    bottom: -0.7rem;
    width: min(5.1rem, 22vw);
    transform: translate(1.4rem, 1.4rem) rotate(2deg);
  }

  .hgm-footer-toy.is-visible {
    transform: translate(0, 0.55rem) rotate(2deg);
  }

  @media (prefers-reduced-motion: no-preference) {
    .hgm-footer-toy.is-visible {
      animation:
        hgm-footer-toy-mobile-enter 0.75s cubic-bezier(0.22, 1, 0.36, 1) both,
        hgm-footer-toy-mobile-sway 5.5s ease-in-out 0.75s infinite;
    }
  }

  @keyframes hgm-footer-toy-mobile-enter {
    from {
      opacity: 0;
      transform: translate(1.4rem, 1.4rem) rotate(2deg);
    }

    to {
      opacity: 1;
      transform: translate(0, 0.55rem) rotate(2deg);
    }
  }

  @keyframes hgm-footer-toy-mobile-sway {
    0%, 100% {
      transform: translate(0, 0.55rem) rotate(2deg);
    }

    50% {
      transform: translate(-0.1rem, 0.35rem) rotate(-1.2deg);
    }
  }

  .hgm-options-cta-wrap {
    padding-top: 1.55rem;
  }

  .hgm-options-pony {
    top: -1.35rem;
    right: calc(50% - 8.2rem);
    width: 4.35rem;
    transform: scaleX(-1) rotate(2deg);
  }

  .hgm-options-cta-wrap:hover .hgm-options-pony,
  .hgm-options-cta-wrap:focus-within .hgm-options-pony {
    transform: scaleX(-1) translateY(0.16rem) rotate(8deg);
  }

  .hgm-announce-bar {
    padding: 0 0.35rem;
  }

  .hgm-announce-bar__unit {
    width: 100%;
  }

  .hgm-announce-bar__train {
    display: block;
    height: 2.45rem;
    margin-right: -0.05rem;
  }

  .hgm-announce-bar__inner {
    min-height: 4.1rem;
    padding: 0.7rem 0.85rem;
    gap: 0.35rem 0.75rem;
    font-size: 0.78rem;
  }

  .hgm-announce-bar__note {
    display: none;
  }

  [data-diagnostic-result-title] {
    font-size: clamp(1rem, 4.2vw, 1.35rem) !important;
    line-height: 1.35 !important;
    letter-spacing: 0;
    white-space: nowrap;
  }

  body.hgm-has-monitor-tab {
    padding-bottom: 3.5rem;
  }

  .hgm-monitor-tab {
    right: 0;
    left: 0;
    top: auto;
    bottom: 0;
    transform: none;
    width: 100%;
    opacity: 1;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .hgm-monitor-tab.hgm-monitor-tab--footer-hidden {
    opacity: 0;
    transform: translateY(100%);
  }

  .hgm-monitor-tab.hgm-monitor-tab--footer-hidden .hgm-monitor-tab__trigger,
  .hgm-monitor-tab.hgm-monitor-tab--footer-hidden .hgm-monitor-tab__panel {
    pointer-events: none;
  }

  .hgm-monitor-tab__trigger {
    position: relative;
    z-index: 2;
    transform: none;
    writing-mode: horizontal-tb;
    width: 100%;
    padding: 0.85rem;
    border-radius: 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
  }

  .hgm-monitor-tab__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    width: 100%;
    max-width: none;
    max-height: 70vh;
    overflow-y: auto;
    border: 1px solid #e5dcd0;
    border-bottom: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 3.5rem));
    transition: transform 0.35s ease, opacity 0.2s ease;
  }

  .hgm-monitor-tab[data-open="true"] .hgm-monitor-tab__panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* ---- Fable版TOP第2弾: 花の区切り・Voicesマーキー・知育効果の散らし写真（2026-07-23） ---- */
.hgm-flower-spin { animation: spin-slow 28s linear infinite; }
.hgm-flower-spin--reverse { animation-direction: reverse; animation-duration: 36s; }

.hgm-voice-marquee { overflow: hidden; }
.hgm-voice-marquee__track { display: flex; width: max-content; animation: hgm-voice-scroll 60s linear infinite; }
.hgm-voice-marquee__group { display: flex; }
.hgm-voice-card { width: 18rem; margin-right: 1.25rem; flex: 0 0 auto; }
@media (min-width: 768px) { .hgm-voice-card { width: 21rem; margin-right: 1.5rem; } }
.hgm-voice-marquee:hover .hgm-voice-marquee__track,
.hgm-voice-marquee--paused .hgm-voice-marquee__track { animation-play-state: paused; }
@keyframes hgm-voice-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Voices丸カード: 文字だけ・縁はロゴの紺/オレンジ交互（2026-07-24） ---- */
.hgm-voice-marquee { padding: 0.5rem 0 1.5rem; }
.hgm-voice-bubble {
  flex: 0 0 auto;
  width: 13rem;
  height: 13rem;
  margin-right: 1.25rem;
  border-radius: 9999px;
  background: #fff;
  border: 2px solid #134480;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.6rem;
}
@media (min-width: 768px) { .hgm-voice-bubble { width: 15rem; height: 15rem; margin-right: 1.5rem; padding: 2rem; } }
.hgm-voice-bubble--orange { border-color: #D87D19; }
.hgm-voice-bubble--drop { transform: translateY(1rem); }
.hgm-voice-bubble__quote { font-family: "Noto Serif JP", serif; font-size: 1.75rem; line-height: 1; margin-bottom: 0.6rem; color: #134480; opacity: 0.5; }
.hgm-voice-bubble--orange .hgm-voice-bubble__quote { color: #D87D19; }
.hgm-voice-bubble__text { font-size: 0.8125rem; line-height: 1.9; color: #4B5563; }

/* 子どもイラスト帯（Adobe Stock素材が置かれたら表示される） */
.hgm-voice-kids { max-width: 60rem; margin: 3.25rem auto 0; padding: 0 1.5rem; }
.hgm-voice-kids img { display: block; width: 100%; height: auto; }

/* ---- ご利用の流れ: ロゴ3色のステップカード（2026-07-24 CHUMモック反映） ---- */
.hgm-flow-grid { display: grid; grid-template-columns: 1fr; gap: 3.5rem 0; }
@media (min-width: 768px) { .hgm-flow-grid { grid-template-columns: repeat(4, 1fr); gap: 0 2.25rem; } }
.hgm-flow-card { position: relative; background: #fff; border: 2px solid #D87D19; border-radius: 1rem; padding: 1.75rem 1.75rem 2rem; }
.hgm-flow-card__numrow { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.9rem; }
.hgm-flow-card__num { font-family: "Noto Serif JP", serif; font-size: 3.4rem; line-height: 1; font-weight: 600; color: #F1BB00; }
.hgm-flow-card__step { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; color: #D87D19; text-transform: uppercase; }
.hgm-flow-card__title { font-size: 1.05rem; font-weight: 700; color: #134480; margin-bottom: 0.7rem; }
.hgm-flow-card__desc { font-size: 0.8125rem; line-height: 1.9; color: #64748B; }
.hgm-flow-card__arrow { position: absolute; left: 50%; bottom: -1.35rem; transform: translateX(-50%); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 18px solid #D87D19; }
@media (min-width: 768px) {
  .hgm-flow-card__arrow { left: auto; bottom: auto; right: -1.25rem; top: 50%; transform: translateY(-50%); border-top: 14px solid transparent; border-bottom: 14px solid transparent; border-left: 18px solid #D87D19; border-right: 0; }
}

/* ---- Gallery選定ポリシー: 紺/橙ハーフリングの大円カード（2026-07-24 CHUM指示・文字ごと円に内包） ---- */
.hgm-policy-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; justify-items: center; }
@media (min-width: 640px) { .hgm-policy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hgm-policy-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.hgm-policy-circle {
  position: relative;
  width: 100%;
  max-width: 21rem;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 13%;
}
.hgm-policy-circle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(#D87D19 0deg 180deg, #134480 180deg 360deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 8px), #000 calc(100% - 7.5px));
  mask: radial-gradient(closest-side, transparent calc(100% - 8px), #000 calc(100% - 7.5px));
}
.hgm-policy-circle__num { font-family: "Noto Serif JP", serif; font-size: 1.7rem; line-height: 1; color: #134480; margin-bottom: 0.6rem; }
.hgm-policy-circle__title { font-family: "Noto Serif JP", serif; font-size: 1.02rem; line-height: 1.45; color: #1B2D45; margin-bottom: 0.55rem; }
.hgm-policy-circle__desc { font-size: 0.78rem; line-height: 1.8; color: #57534E; }

/* ---- Gallery組み合わせカードの覗き込む子ども（deco/kid-combo-01〜03.png を置くと表示・2026-07-24） ---- */
.hgm-combo-kid { position: absolute; top: 0; left: 50%; transform: translate(-50%, -88%); width: 5.5rem; height: auto; pointer-events: none; }
@media (min-width: 768px) { .hgm-combo-kid { width: 6.5rem; } }
.hgm-combo-grid--kids { padding-top: 4.5rem; }
@media (max-width: 767px) { .hgm-combo-grid--kids .hgm-combo-card { margin-top: 4rem; } }

/* ---- レンタル/販売カードの子どもイラスト（deco/kid-rental.png・kid-sale.png を置くと表示） ---- */
.hgm-card-kid-row { display: flex; align-items: flex-end; gap: 1rem; margin-bottom: 2.5rem; flex-grow: 1; }
.hgm-card-kid-row ul { flex: 1; }
.hgm-card-kid { width: clamp(6rem, 26%, 9.5rem); height: auto; flex: 0 0 auto; margin-bottom: -4.25rem; }

/* ---- サブスク比較マトリクス: ラベル1つずつ＋言葉を横並び3列（2026-07-24 CHUM指示） ---- */
.hgm-diff-matrix { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.hgm-diff-matrix__label, .hgm-diff-matrix__cell { background: #fff; border-radius: 0.9rem; display: flex; align-items: center; }
.hgm-diff-matrix__label { justify-content: center; padding: 1rem; }
.hgm-diff-matrix__label--sub { color: #64748B; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.06em; }
.hgm-diff-matrix__label--ours { margin-top: 1.25rem; }
.hgm-diff-matrix__cell { padding: 1rem 1.25rem; }
.hgm-diff-matrix__cell--sub { color: #64748B; font-size: 0.85rem; line-height: 1.8; }
.hgm-diff-matrix__cell--ours { color: #D87D19; font-size: 1.02rem; font-weight: 700; line-height: 1.7; }
.hgm-diff-matrix__logo { width: 100%; max-width: 10rem; height: auto; display: block; }
@media (min-width: 768px) {
  .hgm-diff-matrix { grid-template-columns: 220px repeat(3, 1fr); gap: 1rem 0.9rem; }
  .hgm-diff-matrix__label--ours { margin-top: 0; }
  .hgm-diff-matrix__cell--ours { font-size: 1.05rem; }
}

/* 玩具散らし写真は2026-07-24 CHUM指示で撤去（復活時はgit履歴の hgm-skill-scatter 参照） */

@media (prefers-reduced-motion: reduce) {
  .hgm-flower-spin, .hgm-voice-marquee__track { animation: none !important; }
  .hgm-voice-marquee { overflow-x: auto; }
}

/* ---- レンタル/販売ページ: 知育効果タブ ---- */
.hgm-skill-tab { border: 2px solid #E8DCC8; border-radius: 9999px; background: #fff; color: #4A3B31; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; padding: 0.55rem 1.15rem; transition: all 0.25s ease; }
.hgm-skill-tab:hover { border-color: #B07D62; color: #B07D62; }
.hgm-skill-tab--active { background: #B07D62; border-color: #B07D62; color: #fff; }

/* レンタルページ用の青バリアント（2026-07-24 レンタル=青/販売=ベージュの色分け。販売側は既存ベージュのまま） */
.hgm-skill-tab--blue { border-color: #C9D6E5; color: #1B2D45; }
.hgm-skill-tab--blue:hover { border-color: #134480; color: #134480; }
.hgm-skill-tab--blue.hgm-skill-tab--active { background: #134480; border-color: #134480; color: #fff; }
.hgm-page-rental .eyebrow { color: #68829E; }

/* ============================================================
   2026-08-01 TOPデザイン修正（CHUM指示・モック7枚）
   ①丸太汽車 ②クマ ③帯上アーチ+ロゴマーク ④比較マトリクス矢印/黄枠
   ⑤安心ベージュ帯+下アーチ ⑥LINE子ども ⑦2円CTA
   ============================================================ */

/* ---- ① お知らせバー: 丸太汽車モード（announce-log-train.png があるときだけ --log が付く） ---- */
.hgm-announce-bar__classic { display: inline-flex; align-items: center; justify-content: center; width: 100%; }
.hgm-announce-bar__logunit { position: relative; display: none; width: 100%; }
.hgm-announce-bar__logtrain { display: block; width: 100%; height: auto; pointer-events: none; }
.hgm-announce-bar__overlay {
  position: absolute;
  /* 丸太の胴体に合わせる（画像が届いたら実寸で微調整する） */
  left: 20%; right: 7%; top: 8%; bottom: 30%;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.3rem 1rem; text-align: center; color: #fff;
  font-family: 'Noto Sans JP', sans-serif; font-size: 0.82rem;
  text-shadow: 0 1px 2px rgba(61, 34, 12, 0.35);
}
@media (min-width: 768px) {
  .hgm-announce-bar--log .hgm-announce-bar__logunit { display: block; }
  .hgm-announce-bar--log .hgm-announce-bar__classic { display: none; }
}

/* ---- 2026-08-05 CHUM指示: 丸太汽車をヘッダー直下へ寄せ、ヒーローをファーストビューに収める。
        余白の内訳＝丸太PNG内の透明余白（コンテナ幅の3.76%）＋ main の mt-24(6rem) とのマージン相殺。
        -9% は本番実機でのチューニング確定値（ヘッダー下〜丸太上端がおよそ45px）。
        overflow は hidden のままだと負マージンで上へ出た丸太がクリップされるため visible にする ---- */
@media (min-width: 768px) {
  .hgm-announce-bar--log { margin-bottom: 0.75rem; overflow: visible; }
  .hgm-announce-bar--log .hgm-announce-bar__logunit { margin-top: -9%; margin-bottom: -2.6%; }
  .hgm-hero-copy { padding-top: 3rem; }
}

/* ---- ② 引用セクションのクマ（bears-trio.png があるときだけ出力される） ---- */
.hgm-quote-bears { display: block; width: clamp(9rem, 16vw, 11rem); height: auto; margin: 0 auto 1.5rem; }

/* ---- ③ 「伸ばしたい力」帯: 上端アーチ＋ロゴマーク ---- */
.hgm-skills-band { border-radius: 50% 50% 0 0 / 3.25rem 3.25rem 0 0; padding-top: 4.75rem; }
@media (min-width: 768px) { .hgm-skills-band { border-radius: 50% 50% 0 0 / 4.5rem 4.5rem 0 0; padding-top: 5.5rem; } }
.hgm-skills-band__mark { display: block; width: 3.25rem; height: auto; margin: 0 auto 1.1rem; }
@media (min-width: 768px) { .hgm-skills-band__mark { width: 3.75rem; } }

/* ---- ④ 比較マトリクス: HAGU MIRA行=白背景+ロゴ黄枠+紺文字、行内に三角矢印 ---- */
.hgm-diff-matrix__label--ours,
.hgm-diff-matrix__cell--ours { border: 2px solid #F1BB00; color: #1B2D45; }
.hgm-diff-matrix__cell--ours { color: #1B2D45; }
.hgm-diff-matrix__label, .hgm-diff-matrix__cell { position: relative; }
/* 子要素の並び: 1=定額制ラベル 2-4=定額制セル 5=HAGUMIRAラベル 6-8=セル。行末(4,8)以外に矢印 */
.hgm-diff-matrix > :not(:nth-child(4)):not(:nth-child(8))::after {
  content: ""; position: absolute; z-index: 1;
  left: 50%; bottom: -0.68rem; transform: translateX(-50%);
  border-left: 8px solid transparent; border-right: 8px solid transparent;
  border-top: 10px solid #94A3B8;
}
.hgm-diff-matrix > .hgm-diff-matrix__label--ours::after,
.hgm-diff-matrix > .hgm-diff-matrix__cell--ours::after { border-top-color: #134480; }
@media (min-width: 768px) {
  .hgm-diff-matrix > :not(:nth-child(4)):not(:nth-child(8))::after {
    left: auto; right: -0.82rem; bottom: auto; top: 50%; transform: translateY(-50%);
    border-top: 8px solid transparent; border-bottom: 8px solid transparent;
    border-left: 10px solid #94A3B8; border-right: 0;
  }
  .hgm-diff-matrix > .hgm-diff-matrix__label--ours::after,
  .hgm-diff-matrix > .hgm-diff-matrix__cell--ours::after { border-left-color: #134480; border-top-color: transparent; }
}

/* ---- ⑤ 安心セクション: ベージュ帯＋下端アーチ ---- */
.hgm-anshin-band { background: #F2EFE9; border-radius: 0 0 50% 50% / 0 0 3.25rem 3.25rem; padding-top: 3.5rem; padding-bottom: 5rem; }
@media (min-width: 768px) { .hgm-anshin-band { border-radius: 0 0 50% 50% / 0 0 4.5rem 4.5rem; padding-top: 4.5rem; padding-bottom: 6rem; } }
/* 帯化に伴い、白カードの枠は帯の上でも沈まないよう影を少し足す */
.hgm-anshin-band .border-\[\#E8DCC8\] { box-shadow: 0 10px 26px rgba(27, 45, 69, 0.05); }

/* ---- ⑥ LINEカードの子どもイラスト（kids-line-left/right.png があるときだけ出力される） ---- */
.hgm-line-kid { position: absolute; top: 0; transform: translateY(-88%); width: clamp(6.5rem, 15vw, 9.5rem); height: auto; pointer-events: none; }
.hgm-line-kid--left { left: 1.75rem; }
.hgm-line-kid--right { right: 1.75rem; }
@media (max-width: 767px) { .hgm-line-kid { width: 5.25rem; } .hgm-line-kid--left { left: 0.9rem; } .hgm-line-kid--right { right: 0.9rem; } }

/* ---- ⑦ 2円CTA: リング円(白背景+文字)×写真円(cta.jpgカラー) ---- */
.hgm-cta-duo { display: flex; flex-direction: column; align-items: center; }
.hgm-cta-duo__ring {
  position: relative; z-index: 2;
  width: min(94vw, 26rem); aspect-ratio: 1 / 1; border-radius: 50%;
  padding: 0.55rem; /* ← リングの太さ */
  background: conic-gradient(#D87D19 0deg 180deg, #134480 180deg 360deg); /* 右=橙・左=青（ロゴ2色） */
  box-shadow: 0 22px 48px rgba(27, 45, 69, 0.14);
}
.hgm-cta-duo__panel {
  width: 100%; height: 100%; border-radius: 50%; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2.25rem 2.5rem;
}
.hgm-cta-duo__eyebrow { color: #A67C52; font-size: 10px; font-weight: 700; letter-spacing: 0.4em; text-transform: uppercase; margin-bottom: 0.7rem; }
.hgm-cta-duo__title { font-family: "Noto Serif JP", serif; color: #1B2D45; font-size: clamp(1.3rem, 4.6vw, 1.9rem); line-height: 1.4; margin-bottom: 0.75rem; }
.hgm-cta-duo__lead { color: #64748B; font-size: 0.72rem; line-height: 1.9; margin-bottom: 1.1rem; }
.hgm-cta-duo__buttons { display: flex; flex-direction: column; gap: 0.55rem; align-items: center; }
.hgm-cta-duo__btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.7rem 1.6rem; transition: all 0.3s ease; white-space: nowrap; }
.hgm-cta-duo__btn--primary { background: #D4A373; color: #fff; box-shadow: 0 8px 18px rgba(212, 163, 115, 0.35); }
.hgm-cta-duo__btn--primary:hover { background: #1B2D45; color: #fff; }
.hgm-cta-duo__btn--ghost { border: 1px solid #1B2D45; color: #1B2D45; }
.hgm-cta-duo__btn--ghost:hover { background: #1B2D45; color: #fff; }
.hgm-cta-duo__photo {
  position: relative; z-index: 1;
  width: min(84vw, 22rem); aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden;
  margin-top: -2rem;
  box-shadow: 0 22px 48px rgba(27, 45, 69, 0.16);
}
.hgm-cta-duo__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 768px) {
  .hgm-cta-duo { flex-direction: row; justify-content: center; align-items: center; }
  .hgm-cta-duo__ring { width: 29rem; }
  .hgm-cta-duo__panel { padding: 3rem 3.25rem; }
  .hgm-cta-duo__title { font-size: 2rem; }
  .hgm-cta-duo__lead { font-size: 0.8rem; margin-bottom: 1.4rem; }
  .hgm-cta-duo__buttons { flex-direction: row; gap: 0.7rem; }
  .hgm-cta-duo__btn { font-size: 11px; padding: 0.75rem 1.7rem; }
  .hgm-cta-duo__photo { width: 26rem; margin-top: 0; margin-left: -3.25rem; }
}

/* ============================================================
   2026-08-01 第2ラウンド（CHUM指示）
   A: SP比較マトリクス左右2列 ／ B: SP丸太バー ／ C: 玩具名リンク
   ============================================================ */

/* ---- A: SPは 左列=定額制・右列=HAGU MIRA の2列対比 ---- */
@media (max-width: 767px) {
  .hgm-diff-matrix { grid-template-columns: 1fr 1fr; gap: 1.35rem 0.8rem; }
  .hgm-diff-matrix > :nth-child(1) { grid-column: 1; grid-row: 1; }
  .hgm-diff-matrix > :nth-child(2) { grid-column: 1; grid-row: 2; }
  .hgm-diff-matrix > :nth-child(3) { grid-column: 1; grid-row: 3; }
  .hgm-diff-matrix > :nth-child(4) { grid-column: 1; grid-row: 4; }
  .hgm-diff-matrix > :nth-child(5) { grid-column: 2; grid-row: 1; margin-top: 0; }
  .hgm-diff-matrix > :nth-child(6) { grid-column: 2; grid-row: 2; }
  .hgm-diff-matrix > :nth-child(7) { grid-column: 2; grid-row: 3; }
  .hgm-diff-matrix > :nth-child(8) { grid-column: 2; grid-row: 4; }
  .hgm-diff-matrix__label { padding: 0.7rem 0.5rem; }
  .hgm-diff-matrix__cell { padding: 0.75rem 0.7rem; }
  .hgm-diff-matrix__cell--sub { font-size: 0.7rem; line-height: 1.7; }
  .hgm-diff-matrix__cell--ours { font-size: 0.76rem; line-height: 1.65; }
  .hgm-diff-matrix__logo { max-width: 7.5rem; }
}

/* ---- B: SPお知らせバーの丸太化（announce-log-sp.png があるときだけ --splog が付く） ---- */
@media (max-width: 767px) {
  .hgm-announce-bar--splog .hgm-announce-bar__inner {
    background: transparent url('../assets/images/announce-log-sp.png') center / cover no-repeat;
    min-height: 6.5rem;
    padding: 1.1rem 1.5rem;
    text-shadow: 0 1px 2px rgba(61, 34, 12, 0.4);
  }
}

/* ---- C: ギャラリー玩具名→レンタル該当商品へのリンク（控えめな点線下線） ---- */
.hgm-toy-link { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; padding-bottom: 1px; transition: color 0.2s ease; }
.hgm-toy-link:hover, .hgm-toy-link:focus { color: #A67C52; }

/* ---- 推し玩具9点（/featured/）— 2026-08-02 ---- */
/* ヘッダーが sticky のため、アンカー着地時に見出しが隠れないよう余白を確保。
   ギャラリー→レンタル（#item-r**）の52リンクにも効かせる */
/* ヘッダー実測97px（PC・SP共通）＋余白 */
[id^="toy-"], [id^="item-r"] { scroll-margin-top: 120px; }
.hgm-featured-card:focus-visible { outline: 2px solid #134480; outline-offset: 3px; }

/* ============================================================
   2026-08-02 CHUM指示（テーマ2.4.0）
   A: /featured/ に「組み合わせのセット」追加（アンカージャンプ・目安価格）
   B: ギャラリーのセットカード刷新（ロゴ色の枠線＋色ベタ帯＋白文字＋写真4:3）
   C: ヘッダー Contact を黄背景×紺文字／ホバーで紺背景×白文字・ナビ6項目化
   ⚠️ tailwind.css はビルド済みで border-[#D87D19] / text-[#D87D19] / text-[#F1BB00] が
      存在しないため、オレンジ・黄の枠線と文字はすべてここで持つ。
      カードは --hgm-course（塗り）と --hgm-course-ink（文字）を style 属性で受ける。
   ============================================================ */

/* ---- B-1: セットカード（ギャラリー・/featured/ 共用） ---- */
.hgm-set-card { --hgm-course: #134480; --hgm-course-ink: #134480; display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #fff; border: 2px solid var(--hgm-course); border-radius: 0.75rem; }
.hgm-set-card__media { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #F9F7F4; }
.hgm-set-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* タイトル帯: コース色ベタ＋白文字。min-height で行数差を吸収し横並び時に下端が揃う */
.hgm-set-card__band { display: flex; align-items: center; min-height: 5.25rem; padding: 1rem 1.25rem; background: var(--hgm-course); color: #fff; }
.hgm-set-card__band > * { margin: 0; font-family: "Noto Serif JP", serif; font-size: 1.02rem; font-weight: 700; line-height: 1.5; color: inherit; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18); }

.hgm-set-card__body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 1.25rem 1.25rem 1.5rem; }
.hgm-set-card__label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; color: #A8A29E; }
.hgm-set-card__toys { margin-top: 0.55rem; font-size: 0.82rem; line-height: 2; color: #57534E; }
.hgm-set-card__toys .hgm-toy-link:hover, .hgm-set-card__toys .hgm-toy-link:focus { color: var(--hgm-course-ink); }

/* ---- B-2: 目安価格ブロック（/featured/ のみ） ---- */
.hgm-set-card__price { margin-top: auto; padding-top: 1rem; border-top: 1px solid #F5F5F4; }
.hgm-set-card__price-label { font-size: 0.66rem; line-height: 1.7; letter-spacing: 0.04em; color: #A8A29E; }
.hgm-set-card__price-value { margin-top: 0.15rem; font-family: "Noto Serif JP", serif; font-size: 1.4rem; line-height: 1.2; color: #1B2D45; }
.hgm-set-card__ship { display: inline-block; margin-top: 0.5rem; padding: 0.22rem 0.65rem; border-radius: 9999px; background: #F1BB00; color: #1B2D45; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; }
.hgm-set-card__price-note { margin-top: 0.5rem; font-size: 0.66rem; line-height: 1.75; color: #A8A29E; }

@media (min-width: 768px) {
  .hgm-set-card__band { min-height: 5.75rem; }
  .hgm-set-card__band > * { font-size: 1.12rem; }
  .hgm-set-card__body { padding: 1.4rem 1.4rem 1.6rem; }
}

/* ---- B-3: コース見出し帯まわり（インラインJSホバーを廃してCSSへ） ---- */
.hgm-course-note { color: var(--hgm-course-ink, #A67C52); }
.hgm-course-btn { display: inline-flex; align-items: center; gap: 1rem; padding: 1rem 2.5rem; border: 1px solid var(--hgm-course-ink, #A67C52); color: var(--hgm-course-ink, #A67C52); font-size: 11px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; transition: background-color 0.3s ease, color 0.3s ease; }
.hgm-course-btn:hover, .hgm-course-btn:focus-visible { background-color: var(--hgm-course-ink, #A67C52); color: #fff; }
.hgm-course-link { color: #78716C; transition: color 0.2s ease; }
.hgm-course-link:hover, .hgm-course-link:focus { color: #1B2D45; }

/* ---- 誤飲防止の注意書き: text-[#A15C2B] がビルド済みCSSに無く無色だったため生CSSで（2026-08-02） ---- */
.hgm-caution { color: #A15C2B; }

/* ---- A-1: /featured/ 冒頭のジャンプボタン2つ ---- */
.hgm-featured-jump { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.hgm-featured-jump__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; padding: 1rem 1.25rem; border: 1px solid #134480; border-radius: 0.5rem; background: #fff; color: #134480; text-align: center; transition: background-color 0.25s ease, color 0.25s ease; }
.hgm-featured-jump__btn:hover, .hgm-featured-jump__btn:focus-visible { background: #134480; color: #fff; }
.hgm-featured-jump__btn--sets { border-color: #D87D19; color: #A15C2B; }
.hgm-featured-jump__btn--sets:hover, .hgm-featured-jump__btn--sets:focus-visible { background: #D87D19; color: #fff; }
.hgm-featured-jump__en { font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.75; }
.hgm-featured-jump__ja { font-family: "Noto Serif JP", serif; font-size: 0.95rem; }
@media (min-width: 640px) { .hgm-featured-jump { grid-template-columns: 1fr 1fr; gap: 1rem; } }

/* ---- A-2: アンカー着地の余白（sticky ヘッダー97px＋余白） ---- */
#featured-picks, #featured-sets { scroll-margin-top: 120px; }

/* ---- C-1: ヘッダー Contact。PC・SPで同じクラスを使い色定義を二重管理しない ---- */
.hgm-header-contact { background-color: #F1BB00; border: 1px solid #F1BB00; color: #134480; transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease; }
.hgm-header-contact:hover, .hgm-header-contact:focus-visible { background-color: #134480; border-color: #134480; color: #fff; }
.hgm-header-contact__ja { opacity: 0.75; }
.hgm-header-contact:hover .hgm-header-contact__ja, .hgm-header-contact:focus-visible .hgm-header-contact__ja { opacity: 0.85; }

/* ---- C-2: ナビ6項目化の詰まり対策（md〜lg でだけ間隔とロゴを縮める） ---- */
/* ロゴは header.php がインラインstyleで幅を持つため !important が要る */
@media (min-width: 768px) and (max-width: 1119px) {
  /* 外側（リンク群・区切り線・Contact）の space-x-10 を詰める */
  .hgm-header-nav > :not([hidden]) ~ :not([hidden]) { margin-left: 1.15rem; }
  /* 内側のリンク6本の space-x-8 を詰める（ここを縮めないと768pxで横スクロールが出る） */
  .hgm-header-nav > div > :not([hidden]) ~ :not([hidden]) { margin-left: 0.95rem; }
  .hgm-header-nav .hgm-header-contact { padding-left: 1rem; padding-right: 1rem; }
  .hgm-header-logo { width: 11.5rem !important; }
}

/* ---- 2026-08-04: 単品レンタル＋販売カートUI（tailwindビルド済みのため生CSSで追加） ---- */

/* ヘッダーのカートリンク（フラグON時のみ出力される） */
.hgm-header-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #C9D6E5;
  border-radius: 9999px;
  color: #1B2D45;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.hgm-header-cart:hover {
  background: #134480;
  border-color: #134480;
  color: #fff;
}
/* モバイルではハンバーガーの左に置く（ロゴとの間で潰れないように） */
@media (max-width: 767px) {
  .hgm-header-cart { width: 36px; height: 36px; margin-left: auto; margin-right: 0.5rem; }
}

/* レンタル中（在庫なし）の無効ボタン */
.hgm-cart-btn-disabled {
  background: #E9E4DC;
  color: #8B8378;
  cursor: default;
}

/* 期間3択（ラジオをカード型に。選択状態は :has が効く環境では枠色でも示す） */
.hgm-cart-periods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.hgm-cart-period {
  position: relative;
  display: block;
  border: 2px solid #E1E6EC;
  border-radius: 6px;
  background: #fff;
  padding: 0.6rem 0.25rem 0.7rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hgm-cart-period input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.hgm-cart-period__label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #8B8378;
  margin-bottom: 2px;
}
.hgm-cart-period__price {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1B2D45;
}
.hgm-cart-period:has(input:checked) {
  border-color: #134480;
  background: #F0F5FA;
}
.hgm-cart-period input:checked ~ .hgm-cart-period__label { color: #134480; }
.hgm-cart-period input:focus-visible ~ .hgm-cart-period__label { text-decoration: underline; }

/* カート投入ボタン */
.hgm-cart-submit {
  display: block;
  width: 100%;
  margin-top: 1rem;
  background: #1B2D45;
  color: #fff;
  padding: 0.85rem 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.25s ease;
}
.hgm-cart-submit:hover { background: #134480; }

/* ---- 2026-08-04b: カート改修（SPアイコン出し分け・お買い物カゴをAmazon風に） ---- */

/* md:hidden がビルドに無いため、SP用カートアイコンはCSSで出し分ける */
@media (min-width: 768px) {
  .hgm-header-cart--sp { display: none; }
}

/* お買い物カゴ: 商品写真を大きく（Amazonのカート風・CHUM指示 2026-08-04） */
.woocommerce-cart-form .product-thumbnail img {
  width: 96px;
  height: 96px;
  max-width: none;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #EDE7DD;
  background: #F9F7F4;
}
.woocommerce-cart-form td.product-thumbnail { padding-right: 14px; }
.woocommerce-cart-form td.product-name {
  font-weight: 600;
  color: #1B2D45;
  line-height: 1.5;
}
.woocommerce-cart-form td.product-name a { color: #1B2D45; text-decoration: none; }
.woocommerce-cart-form td.product-name a:hover { color: #134480; text-decoration: underline; }
.woocommerce-cart-form td { vertical-align: middle; }
@media (max-width: 767px) {
  .woocommerce-cart-form .product-thumbnail img { width: 72px; height: 72px; }
}

/* ---- 2026-08-04c: お買い物カゴを2カラム化（左=商品・右=合計）＋送料予告行 ---- */
@media (min-width: 900px) {
  .woocommerce-cart div.woocommerce {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 0 44px;
    align-items: start;
  }
  /* 通知やエラーは全幅に流す */
  .woocommerce-cart div.woocommerce > .woocommerce-notices-wrapper,
  .woocommerce-cart div.woocommerce > .woocommerce-error,
  .woocommerce-cart div.woocommerce > .woocommerce-message,
  .woocommerce-cart div.woocommerce > .wc-empty-cart-message,
  .woocommerce-cart div.woocommerce > .return-to-shop {
    grid-column: 1 / -1;
  }
  /* Woo標準のfloatレイアウトを打ち消す */
  .woocommerce-cart .cart-collaterals .cart_totals {
    float: none;
    width: 100%;
  }
}
.woocommerce-cart .cart_totals > h2 {
  font-size: 1.15rem;
  color: #1B2D45;
}
.hgm-cart-shipping-note td span {
  display: block;
  font-size: 11px;
  color: #8B8378;
  margin-top: 2px;
}

/* サンクスページ: 振込先案内（WooのBACS出力）の整え */
.hgm-thanks-bacs h2, .hgm-thanks-bacs h3 {
  font-size: 1rem;
  color: #1B2D45;
  margin: 0.5rem 0;
}
.hgm-thanks-bacs .wc-bacs-bank-details {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
}
.hgm-thanks-bacs .wc-bacs-bank-details li {
  padding: 0.35rem 0;
  border-bottom: 1px dashed #E5DCD0;
  font-size: 14px;
  color: #2C3E50;
}
.hgm-thanks-bacs .wc-bacs-bank-details li strong { color: #1B2D45; }

/* ---- 2026-08-04d: カートFB反映（ゴシック統一・写真拡大・BOX高さ揃え・ヘッダーアイコン配色・チェックアウト写真） ---- */

/* ヘッダーの買い物カゴ: ロゴブルーの丸×黄アイコン、ホバーで反転（2026-08-04 CHUM指示） */
.hgm-header-cart {
  background: #134480;
  border-color: #134480;
  color: #F1BB00;
}
.hgm-header-cart:hover {
  background: #F1BB00;
  border-color: #F1BB00;
  color: #134480;
}

/* お買い物カゴ: 全体をゴシック体に統一 */
.woocommerce-cart h1,
.woocommerce-cart div.woocommerce,
.woocommerce-cart div.woocommerce h2,
.woocommerce-cart .cart_totals > h2 {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
}
.woocommerce-cart h1 { font-weight: 700; letter-spacing: 0.02em; }
.woocommerce-cart .cart_totals > h2 { font-weight: 700; }

/* 商品写真をさらに大きく */
.woocommerce-cart-form .product-thumbnail img { width: 128px; height: 128px; border-radius: 12px; }
@media (max-width: 767px) {
  .woocommerce-cart-form .product-thumbnail img { width: 88px; height: 88px; }
}

/* 左右のBOXを白カード化して高さを揃える（右のボタンは下端に吸着） */
@media (min-width: 900px) {
  .woocommerce-cart div.woocommerce { align-items: stretch; }
  .woocommerce-cart .woocommerce-cart-form {
    border: 1px solid #E5DCD0;
    background: #fff;
    border-radius: 6px;
    padding: 8px 24px;
  }
  .woocommerce-cart .woocommerce-cart-form table.shop_table { border: none; margin-bottom: 0; }
  .woocommerce-cart .cart-collaterals { display: flex; }
  .woocommerce-cart .cart-collaterals .cart_totals {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid #E5DCD0;
    background: #fff;
    border-radius: 6px;
    padding: 18px 24px 24px;
  }
  .woocommerce-cart .cart_totals table.shop_table { border: none; }
  .woocommerce-cart .cart_totals .wc-proceed-to-checkout { margin-top: auto; padding-bottom: 0; }
}

/* チェックアウト「ご注文」明細の商品写真 */
.woocommerce-checkout-review-order-table .hgm-checkout-item-thumb {
  display: inline-block;
  vertical-align: middle;
  margin-right: 12px;
}
.woocommerce-checkout-review-order-table .hgm-checkout-item-thumb img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #EDE7DD;
  background: #F9F7F4;
}
.woocommerce-checkout-review-order-table .hgm-checkout-item-name { vertical-align: middle; }
.woocommerce-checkout-review-order-table td.product-name { line-height: 1.4; }

/* ---- 2026-08-04e: カート写真の拡大（Woo本体CSSに勝つ）＋ヘッダーカートを四角＋「カート」文字 ---- */

/* Woo本体の `.woocommerce table.cart img { width:32px }` に勝つため詳細度+!important */
.woocommerce-cart table.shop_table td.product-thumbnail img,
.woocommerce-cart-form .product-thumbnail img {
  width: 160px !important;
  height: 160px !important;
  max-width: none !important;
  object-fit: cover;
  border-radius: 12px;
}
.woocommerce-cart table.shop_table td.product-thumbnail { width: 180px; }
@media (max-width: 767px) {
  .woocommerce-cart table.shop_table td.product-thumbnail img,
  .woocommerce-cart-form .product-thumbnail img {
    width: 96px !important;
    height: 96px !important;
  }
}

/* ヘッダーの買い物カゴ: 丸→角丸の四角＋「カート」ラベル（2026-08-04 CHUM指示） */
.hgm-header-cart {
  width: auto;
  height: auto;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.hgm-header-cart__label { line-height: 1; }
@media (max-width: 767px) {
  .hgm-header-cart {
    width: auto;
    height: auto;
    padding: 8px 12px;
    font-size: 10px;
  }
}

/* ---- 2026-08-04f: ヘッダーカートをCONTACTボタンに揃える（角・高さ・文字サイズ・間隔） ---- */
.hgm-header-cart {
  border-radius: 0;            /* CONTACTと同じスクエア角 */
  padding: 10px 16px;
  gap: 8px;
  font-size: 10px;             /* CONTACTの「CONTACT」と同サイズ */
  letter-spacing: 0.2em;
}
.hgm-header-cart svg { width: 20px; height: 20px; }  /* アイコンは大きく */
@media (min-width: 768px) {
  .hgm-header-cart { align-self: stretch; padding: 0 18px; }  /* 高さをCONTACTに自動で揃える */
  /* CONTACTとの間隔を詰める（space-x-10 の 2.5rem に勝つ） */
  .hgm-header-nav > .hgm-header-cart { margin-left: 0.75rem !important; }
}
