:root {
    --primary: #007823;
    --accent: #e6b422;
  }
  body {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    line-height: 1.7;
  }
  .text-primary {
    color: var(--primary);
  }
  .text-accent {
    color: var(--accent);
  }
  .bg-primary {
    background-color: var(--primary);
  }
  .product-detail {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    scroll-margin-top: 6rem;
    transform: translateY(-12px);
    transition:
      max-height 0.9s cubic-bezier(0.22, 1, 0.36, 1),
      margin-top 0.7s ease,
      opacity 0.45s ease,
      transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.45s ease,
      box-shadow 0.45s ease;
    border-color: transparent;
    box-shadow: none;
  }
  .product-detail.open {
    max-height: 2000px;
    margin-top: 2rem;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    border-color: rgb(229 231 235);
  }
  @media (min-width: 768px) {
    .product-detail {
      scroll-margin-top: 7rem;
    }
  }
  /* アクティブカードのハイライト */
  .category-card {
    transition: box-shadow 0.3s ease, outline 0.3s ease;
  }
  .category-card.active {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(0,120,35,0.15);
  }
  .product-button {
    background-color: #fff;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.75rem;
    cursor: pointer;
    padding: 1rem;
    text-align: left;
    transition:
      background-color 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.2s ease,
      transform 0.2s ease;
  }
  .product-button:hover {
    background-color: rgba(0, 120, 35, 0.05);
    border-color: var(--primary);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transform: scale(1.05);
  }
  .product-button__text {
    color: rgb(31 41 55);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.375;
  }
  .product-button:hover .product-button__text {
    color: var(--primary);
  }
  .product-modal__media-wrap {
    display: grid;
    gap: 0.875rem;
    position: relative;
  }
  .product-modal__media {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
  }
  .product-modal__media--multi {
    grid-template-columns: 1fr;
  }
  .product-modal__figure {
    display: grid;
    gap: 0.5rem;
  }
  .product-modal__image {
    aspect-ratio: 4 / 3;
    border-radius: 0.5rem;
    object-fit: cover;
    width: 100%;
  }
  .product-modal__image[src$="product_civil_05-santac.webp"] {
    aspect-ratio: 800 / 409;
    object-fit: contain;
  }
  .product-modal__image[src$="product_civil_02-mmatenji.webp"] {
    aspect-ratio: 1 / 1;
    object-fit: contain;
  }
  .product-modal__caption {
    color: rgb(107 114 128);
    font-size: 0.75rem;
    font-style: italic;
    line-height: 1.625;
  }
  .product-modal__controls {
    align-items: center;
    background-color: rgb(249 250 251);
    border: 1px solid rgb(229 231 235);
    border-radius: 0.75rem;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr auto 1fr;
    padding: 0.75rem;
  }
  .product-modal__arrow {
    align-items: center;
    background-color: var(--primary);
    border-radius: 0.5rem;
    color: #fff;
    display: inline-flex;
    font-size: 0.875rem;
    font-weight: 700;
    gap: 0.5rem;
    justify-content: center;
    min-height: 2.875rem;
    padding: 0.75rem 0.875rem;
    transition:
      background-color 0.2s ease,
      box-shadow 0.2s ease,
      opacity 0.2s ease;
  }
  .product-modal__arrow:hover:not(:disabled) {
    background-color: #00631d;
    box-shadow: 0 4px 10px rgb(0 0 0 / 0.14);
  }
  .product-modal__arrow:disabled {
    cursor: not-allowed;
    opacity: 0.35;
  }
  .product-modal__position {
    color: rgb(75 85 99);
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 3.25rem;
    text-align: center;
  }
  @media (min-width: 768px) {
    .product-modal__media--multi {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 420px) {
    .product-modal__controls {
      grid-template-columns: 1fr 1fr;
    }
    .product-modal__arrow {
      font-size: 0.75rem;
      gap: 0.25rem;
      min-height: 3rem;
      padding: 0.625rem;
    }
    .product-modal__position {
      grid-column: 1 / -1;
      grid-row: 1;
    }
  }
  .dot-overlay {
    background-image: radial-gradient(
      rgba(0, 0, 0, 0.4) 1.5px,
      transparent 1.5px
    );
    background-size: 5px 5px;
  }
  /* ナビゲーションホバーアニメーション */
  .nav-link {
    position: relative;
    transition: color 0.25s ease;
  }
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
  }
  .nav-link:hover::after {
    width: 100%;
  }
