/*
Theme Name: seiho
Description: Kadence child theme for seiho
Author: seiho
Template: kadence
Version: 1.0.0
*/

.site-header .main-navigation .menu-item > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
}

.site-header .main-navigation .menu-item-description {
  font-size: 13px;
  letter-spacing: 0.14em;
  margin-top: 4px;
  white-space: nowrap;
}

.kadence-posts-list .entry-list-item {
  border-bottom: 1px solid #c7c7c7 !important;
}

.kadence-posts-list .entry-list-item:last-child {
  border-bottom: none;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 80px 60px;
}

.woocommerce ul.products li.product {
  text-align: center;
}

.woocommerce ul.products li.product a {
  display: block;
}

.woocommerce ul.products li.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f2f2f2;
  padding: 0;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.woocommerce ul.products li.product a:hover img {
  transform: translateY(-2px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: #111;
}

.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .star-rating {
  display: none !important;
}
.woocommerce.single-product div.product {
  display: flex;
  flex-direction: column;
}

.woocommerce.single-product div.product div.images {
  width: 100% !important;
  float: none !important;
  margin: 0 auto 28px !important;
  max-width: 660px;
}

.woocommerce.single-product div.product div.images img {
  width: 100%;
  height: auto;
  padding: 0;
  box-sizing: border-box;
  object-fit: contain;
}

.woocommerce.single-product div.product .summary {
  width: 100% !important;
  float: none !important;
  margin: 0 auto;
  padding: 0 0 10px 0;
}

.woocommerce.single-product .product_title {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.35;
  margin: 0 0 12px 0;
}

.woocommerce.single-product .summary .price,
.woocommerce.single-product .summary .woocommerce-product-rating,
.woocommerce.single-product .summary .cart {
  display: none !important;
}

@media (max-width: 768px) {
  .woocommerce.single-product div.product div.images {
    max-width: 100%;
  }

  .woocommerce.single-product div.product div.images img {
    padding: 0;
  }

  .woocommerce.single-product div.product .summary {
    max-width: 100%;
  }

  .woocommerce.single-product .product_title {
    font-size: 22px;
  }
}

.woocommerce div.product div.images .flex-control-thumbs {
  display: flex !important;
  justify-content: center;
  gap: 10px;
  margin-top: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.woocommerce div.product div.images .flex-control-thumbs li {
  width: 48px !important;
  height: auto !important;
  margin: 0 !important;
}

.woocommerce div.product div.images .flex-control-thumbs img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  padding: 0;
  box-sizing: border-box;
  opacity: 1 !important;
  visibility: visible !important;
}

.woocommerce div.product .woocommerce-tabs .panel > h2 {
  display: none;
}
.woocommerce div.product div.images .flex-control-thumbs {
  margin-top: 0;
}
.sa-value.sa-main-title,
.sa-field.sa-en-title {
  font-size: 1.2rem;
}

.sa-status-sold {
  margin: 12px 0;
}

.sa-status-sold .sa-value {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 0.05em;
  background: #630000;
  color: #fff;
  border-radius: 10px;
}

.sa-pd-contact {
  margin-top: 18px;
}

.sa-btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 5px;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #907d00;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
}

a.sa-btn-contact:hover {
  color: #fff !important;
}

/* Prev / Back / Next */
.sa-pd-nav {
  margin-top: 16px;
}

.sa-pd-nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.sa-pd-nav a,
.sa-pd-nav span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.16);
  color: #111;
  background: #fff;
  font-weight: 500;
}

.sa-pd-nav a:hover {
  border-color: rgba(0, 0, 0, 0.32);
}

.sa-pd-nav .is-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.woocommerce
  ul.products.woo-archive-action-on-hover
  li.product:hover
  .entry-content-wrap,
.woocommerce
  ul.products.woo-archive-action-on-hover
  li.product:focus-within
  .entry-content-wrap {
  transform: none !important;
}
.woocommerce ul.products li.product .entry-content-wrap {
  padding: 0 !important;
}

/* =========================
   Contact Form (Seiho Arts)
   Scope: .contact-main
   ========================= */
.contact-main {
  padding: 1.5rem;
}

.contact-main .contact-card {
  max-width: 820px;
  margin: 36px auto 0;
  padding: 0;
}

.contact-main .contact-form {
  display: block;
}

.contact-main .form-row {
  margin: 0 0 22px;
}

.contact-main .form-label {
  display: block;
  font-size: 18px;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
  color: #111;
}

.contact-main .form-label .req {
  color: #b91c1c;
  margin-left: 6px;
}

.contact-main .form-note {
  color: #b91c1c;
  font-weight: 600;
  margin-left: 10px;
  font-size: 14px;
}

.contact-main .form-field {
  width: 100%;
}

.contact-main input[type="text"],
.contact-main input[type="email"],
.contact-main input[type="tel"],
.contact-main textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  background: #fff;
  padding: 14px 14px;
  font-size: 16px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-main textarea {
  min-height: 220px;
  resize: vertical;
}

.contact-main input::placeholder,
.contact-main textarea::placeholder {
  color: #9a9a9a;
}

.contact-main input:focus,
.contact-main textarea:focus {
  border-color: #777;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.contact-main .form-actions {
  margin-top: 26px;
}

.contact-main .btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 48px;
  padding: 0 22px;
  border: none;
  border-radius: 10px;
  background-color: #907d00;
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease,
    border-color 0.15s ease;
}

.contact-main .btn-submit:hover {
  background: #111;
  border-color: #111;
}

.contact-main .btn-submit:active {
  transform: translateY(1px);
}

/* Hide honeypot */
.contact-main .hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Mobile */
@media (max-width: 768px) {
  .contact-main .contact-card {
    max-width: 100%;
    margin-top: 24px;
  }

  .contact-main .form-label {
    font-size: 16px;
  }

  .contact-main input[type="text"],
  .contact-main input[type="email"],
  .contact-main input[type="tel"],
  .contact-main textarea {
    font-size: 16px;
    padding: 12px 12px;
  }

  .contact-main .btn-submit {
    width: 100%;
    min-width: 0;
  }
}

.info-list {
  display: grid;
  grid-template-columns: 160px 1fr;
  row-gap: 24px;
}

.info-list dt {
  font-weight: 600;
  color: #555;
}

.info-list dd {
  margin: 0;
}

@media (max-width: 768px) {
  .info-list {
    grid-template-columns: 1fr;
  }

  .info-list dt {
    margin-top: 12px;
  }
}
.contact-hero {
  margin-bottom: 2rem;
}
.contact-hero-title {
  text-align: center;
}
.contact-lang-btn {
  float: right;
}

/* =========================
   Contact Thanks (JA)
   Scope: .contact-thanks
   ========================= */

.contact-thanks {
  padding-bottom: 80px;
}

.contact-thanks-hero {
  padding: 48px 0 40px;
}

.contact-thanks-hero-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 18px;
  text-align: center;
}

.contact-thanks-eyebrow {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: #666;
}

.contact-thanks-title {
  margin: 0;
  font-size: 40px;
  letter-spacing: 0.08em;
  color: #111;
}

.contact-thanks-body {
  max-width: 960px;
  margin: 0 auto;
  padding: 30px 18px 0;
}

.contact-thanks-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 28px 28px;
}

.contact-thanks-text {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.9;
  color: #222;
}

.contact-thanks-text.is-error {
  color: #b91c1c;
  font-weight: 600;
}

.contact-thanks-actions {
  margin-top: 22px;
}

.contact-thanks-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  background: #2b2b2b;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background 0.15s ease, transform 0.08s ease;
}

.contact-thanks-btn:hover {
  background: #111;
}

.contact-thanks-btn:active {
  transform: translateY(1px);
}

@media (max-width: 768px) {
  .contact-thanks-hero {
    padding: 34px 0 28px;
  }

  .contact-thanks-title {
    font-size: 26px;
  }

  .contact-thanks-card {
    padding: 20px 16px;
  }

  .contact-thanks-text {
    font-size: 16px;
  }

  .contact-thanks-btn {
    width: 100%;
  }
}

/* 已售出商品图片变灰 */
.woocommerce ul.products li.product.is-sold img {
  filter: grayscale(100%);
  opacity: 0.6;
}
.woocommerce ul.products li.product.is-sold::after {
  content: "SOLD";
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 5px 10px;
  font-size: 14px;
  z-index: 2;
  border-radius: 10px;
}
.sa-field.sa-description .sa-label{
  display: none;
}

.sa-field.sa-description{
  border-top: 1px solid #ccc;
  margin-top: 24px;
}


.pswp__item{
  background: #fff !important; 
  opacity: 1 !important; 
}

.pswp__top-bar,
.pswp__button,
.pswp__counter{
  color: #fff;
  fill: #fff;
}

/* 桌面端：右侧缩略图栏 */
@media (min-width: 1024px){
  .pswp__thumbs{
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    overflow-y: auto;
    padding: 14px;
    box-sizing: border-box;
    z-index: 10000;
    background-color: #fff;
    padding-top: 44px;
  }

  .pswp__thumbs img{
    width: 100%;
    display: block;
    margin: 0 0 12px 0;
    cursor: pointer;
    opacity: .6;
  }

  .pswp__thumbs img.is-active{
    opacity: 1;
  }

  .pswp__container{
    right: 100px;
  }
  .pswp__top-bar{
    z-index: 10001;
    background-color: rgba(0, 0, 0, 0.2);
  }
  
}

@media (max-width: 1023px){
  .pswp__thumbs{ display:none; }
  .pswp__container{ right: 0; }
}
