/*
Theme Name: まあいい屋 Blocksy Child
Theme URI: https://maiiya.store/
Description: Blocksy child theme for まあいい屋. 昭和レトロな中古釣具EC向けトップページ・WooCommerceデザイン。
Author: まあいい屋
Template: blocksy
Version: 1.0.0
Text Domain: maiiya-blocksy-child
*/

:root {
  --maiiya-red: #b33221;
  --maiiya-navy: #20354a;
  --maiiya-paper: #f5f0e6;
  --maiiya-cream: #fff8e8;
  --maiiya-ink: #2f2a24;
}

body {
  background: #f7f4ee;
}

/* =========================
   まあいい屋 フロントページ
========================= */
.maiiya-front-page {
  background: #f7f4ee;
}

.maiiya-front-inner {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding: 0 24px;
}

.maiiya-hero {
  padding: 48px 0 20px;
}

.maiiya-hero-picture,
.maiiya-hero-picture img {
  display: block;
  width: 100%;
}

.maiiya-hero-picture img {
  height: auto;
  box-shadow: 0 1px 0 rgba(32, 53, 74, 0.12);
}

.maiiya-hero-actions {
  margin-top: 24px;
  text-align: left;
}

.maiiya-btn,
.wp-block-button.maiiya-cta .wp-block-button__link {
  display: inline-block;
  background: var(--maiiya-red);
  color: var(--maiiya-cream) !important;
  border: 2px solid var(--maiiya-navy);
  border-radius: 4px;
  padding: 14px 36px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none !important;
  box-shadow: 4px 4px 0 var(--maiiya-navy);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.maiiya-btn:hover,
.wp-block-button.maiiya-cta .wp-block-button__link:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--maiiya-navy);
}

.maiiya-section {
  padding: 34px 0;
}

.maiiya-section-title,
.wp-block-heading.maiiya-section-title {
  text-align: center;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3;
  font-weight: 900;
  color: var(--maiiya-navy);
  margin: 0 0 30px;
  letter-spacing: 0.08em;
}

.maiiya-section-title::after,
.wp-block-heading.maiiya-section-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  background: var(--maiiya-red);
  margin: 12px auto 0;
}

.maiiya-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.maiiya-category-card,
.wp-block-button.maiiya-category-btn .wp-block-button__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  background: var(--maiiya-cream);
  color: var(--maiiya-navy) !important;
  border: 2px solid var(--maiiya-navy);
  border-radius: 4px;
  padding: 18px 16px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 4px 4px 0 var(--maiiya-red);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.maiiya-category-card:hover,
.wp-block-button.maiiya-category-btn .wp-block-button__link:hover {
  background: var(--maiiya-red);
  color: var(--maiiya-cream) !important;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--maiiya-navy);
}

.maiiya-note-box {
  background: var(--maiiya-cream);
  border: 2px solid rgba(32, 53, 74, 0.18);
  border-left: 8px solid var(--maiiya-red);
  padding: 26px 28px;
  color: var(--maiiya-ink);
}

.maiiya-note-box p {
  margin: 0;
  line-height: 2;
  font-weight: 700;
}

.maiiya-products .woocommerce ul.products li.product,
.woocommerce ul.products li.product {
  background: #fff;
  border: 1px solid rgba(32, 53, 74, 0.12);
  padding: 14px;
  box-shadow: 0 2px 0 rgba(32, 53, 74, 0.08);
}

.maiiya-products .woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--maiiya-navy);
  font-weight: 800;
}

.maiiya-products .woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price {
  color: var(--maiiya-red);
  font-weight: 900;
}

.maiiya-products .woocommerce a.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--maiiya-navy) !important;
  color: var(--maiiya-cream) !important;
  border-radius: 4px !important;
  font-weight: 800 !important;
}

/* =========================
   既存ブロック用：PC/SPヒーロー出し分け
========================= */
.hero-sp {
  display: none;
}

.hero-pc img,
.hero-sp img {
  width: 100%;
  height: auto;
  display: block;
}

.home .entry-header {
  display: none;
}

.home .entry-content {
  margin-top: 0;
}

.home .wp-block-image.hero-pc,
.home .wp-block-image.hero-sp {
  margin-top: 0;
  margin-bottom: 24px;
}

.ct-container-full {
  padding-top: 0;
}

.maiiya-cta {
  text-align: center;
  margin-top: 24px;
  margin-bottom: 56px;
}

/* =========================
   レスポンシブ
========================= */
@media (max-width: 999px) {
  .maiiya-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .maiiya-front-inner {
    padding: 0 18px;
  }

  .maiiya-hero {
    padding: 32px 0 16px;
  }

  .maiiya-hero-actions {
    text-align: center;
  }

  .hero-pc {
    display: none !important;
  }

  .hero-sp {
    display: block !important;
  }

  .maiiya-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .maiiya-category-card {
    min-height: 64px;
    font-size: 15px;
    padding: 16px 10px;
  }

  .maiiya-btn,
  .wp-block-button.maiiya-cta .wp-block-button__link {
    width: 100%;
    max-width: 260px;
    padding: 14px 18px;
  }
}
