@charset "UTF-8";

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  /* Colors */
  --color-primary: #ffffff;
  --color-text-main: #333333;
  --color-text-light: #666666;
  --color-bg-body: #f9f9f9;
  --color-bg-white: #ffffff;
  --color-border: #e0e0e0;
  --color-accent: #222222;
  --color-hover: #555555;
  --color-link: #0056b3;

  /* Typography */
  --font-family-base: 'Noto Sans JP', sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 32px;
  --spacing-lg: 64px;
  --spacing-xl: 96px;

  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;

  /* Transitions */
  --transition-fast: 0.2s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-main);
  background-color: var(--color-bg-body);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-hover);
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ==========================================================================
   Layout (Container)
   ========================================================================== */
.l-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
  width: 100%;
}

.l-main {
  flex: 1;
  padding: var(--spacing-md) 0 var(--spacing-lg);
}

.l-two-columns {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

@media (min-width: 768px) {
  .l-two-columns {
    flex-direction: row;
  }
  .l-two-columns__main {
    flex: 1;
  }
  .l-two-columns__aside {
    width: 300px;
    flex-shrink: 0;
  }
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Header */
.c-header {
  background-color: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.c-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.c-header__logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.c-global-nav {
  display: none;
}

@media (min-width: 768px) {
  .c-global-nav {
    display: block;
  }
  .c-global-nav__list {
    display: flex;
    gap: var(--spacing-md);
  }
  .c-global-nav__link {
    font-weight: 500;
  }
  .c-header__hamburger {
    display: none;
  }
}

/* Header Category Dropdown */
.c-global-nav__item--has-dropdown {
  position: relative;
}

.c-global-nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: var(--spacing-xs) 0;
  z-index: 200;
}

.c-global-nav__item--has-dropdown:hover .c-global-nav__dropdown {
  @media (min-width: 768px) {
    display: block;
    animation: ecsite-dropdown-fade 0.2s ease;
  }
}

@keyframes ecsite-dropdown-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.c-global-nav__dropdown-item {
  list-style: none;
}

.c-global-nav__dropdown-link {
  display: block;
  padding: 10px var(--spacing-sm);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-main);
  transition: background-color var(--transition-fast);
  white-space: nowrap;
}

.c-global-nav__dropdown-link:hover {
  background-color: var(--color-bg-body);
  color: var(--color-text-main);
}

/* Header Search */
.c-header-search {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: var(--spacing-md);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow: hidden;
  background-color: #fff;
  height: 36px;
  max-width: 240px;
}

/* Related Products in Blog */
.c-related-products {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: #f9f9f9;
  border-radius: var(--border-radius-md);
}

.c-related-products__title {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: var(--spacing-md);
  text-align: center;
  color: var(--color-text-main);
}

.c-related-products .c-product-card {
  background: #fff;
  border: 1px solid var(--color-border);
}

.c-related-products .c-product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.c-related-products .c-product-card__excerpt {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 0.8125rem;
  color: #666;
  line-height: 1.5;
  flex: 1;
}

.c-related-products .c-product-card__cta-wrapper {
  text-align: center;
  margin-top: auto;
  padding: 0;
}

.c-header-search__input {
  border: none;
  padding: 0 var(--spacing-sm);
  font-size: 0.875rem;
  width: 100%;
  height: 100%;
  outline: none;
}

.c-header-search__btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  transition: color var(--transition-fast);
}

.c-header-search__btn:hover {
  color: var(--color-accent);
}

.c-header-search__btn .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.c-header-search--mobile {
  display: none;
}

@media (max-width: 767px) {
  .c-header-search--pc {
    display: none;
  }
  .c-header-search--mobile {
    display: flex;
    max-width: 100%;
    margin-top: var(--spacing-sm);
  }
}

/* Footer */
.c-footer {
  background-color: var(--color-accent);
  color: var(--color-bg-white);
  padding: var(--spacing-lg) 0 var(--spacing-md);
  margin-top: auto;
}

.c-footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

@media (min-width: 768px) {
  .c-footer__nav-list {
    flex-direction: row;
    justify-content: center;
    gap: var(--spacing-md);
  }
}

.c-footer__copyright {
  text-align: center;
  font-size: 0.875rem;
  color: #aaaaaa;
}

.c-footer__nav-link {
  display: block;
  padding: 8px 0;
  transition: color var(--transition-fast);
}

.c-footer__nav-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Product Buy Button Container */
.p-product__buy-btn {
  margin: 24px 0;
  min-height: 50px;
}

/* Button */
.c-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--color-accent);
  color: var(--color-bg-white);
  border-radius: var(--border-radius-sm);
  text-align: center;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  text-decoration: none;
}

.c-btn:hover {
  background-color: var(--color-hover);
  color: var(--color-bg-white);
}

.c-btn--ghost {
  background-color: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.c-btn--ghost:hover {
  background-color: var(--color-accent);
  color: var(--color-bg-white);
}

.c-btn--cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  background: linear-gradient(135deg, #ff8c00, #ff5722);
  color: #fff !important;
  border-radius: var(--border-radius-md);
  text-align: center;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(255, 87, 34, 0.3);
}

.c-btn--cta:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 87, 34, 0.4);
  color: #fff !important;
}

/* Product Card */
.c-product-card {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.c-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.c-product-card__image-wrapper {
  position: relative;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  background-color: #f0f0f0;
}

.c-product-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-product-card__body {
  padding: var(--spacing-sm);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.c-product-card__title {
  font-size: 1rem;
  margin: 0 0 var(--spacing-xs) 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.c-product-card__price {
  font-weight: bold;
  font-size: 1.125rem;
  margin-top: auto;
  color: var(--color-accent);
}

/* Product Card Badge */
.c-product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: bold;
  color: #fff;
  border-radius: 4px;
}

.c-product-card__badge--popular {
  background-color: #ff5722; /* Orange */
}

.c-product-card__badge--recommend {
  background-color: #007bff; /* Blue */
}

.c-product-card__badge--new {
  background-color: #28a745; /* Green */
}

/* Article Card */
.c-article-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.c-article-card__date {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.c-article-card__title {
  font-size: 1.125rem;
  margin: 0;
}

.c-article-card__image {
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-xs);
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16/9;
  display: block;
}

/* Pagination */
.p-pagination {
  margin-top: var(--spacing-lg);
  text-align: center;
}

/* Section Title */
.c-section-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-xs);
}

.c-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--color-accent);
}

/* Breadcrumb */
.c-breadcrumb {
  display: flex;
  gap: var(--spacing-xs);
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.c-breadcrumb__item::after {
  content: '>';
  margin-left: var(--spacing-xs);
}

.c-breadcrumb__item:last-child::after {
  display: none;
}

/* Swiper Customize */
.p-new-products-slider {
  padding: 0 50px var(--spacing-md);
  margin-bottom: var(--spacing-md);
  max-width: 100%;
}

.p-new-products-slider .swiper-slide {
  height: auto;
  display: flex;
  justify-content: center;
}

.p-new-products-slider .c-product-card {
  width: 100%;
  max-width: 350px; /* カードが大きくなりすぎないように制限 */
}

.p-new-products-slider .swiper-button-next,
.p-new-products-slider .swiper-button-prev {
  color: var(--color-accent);
  width: 30px;
  height: 30px;
}

.p-new-products-slider .swiper-button-next::after,
.p-new-products-slider .swiper-button-prev::after {
  font-size: 20px;
}

.p-new-products-slider .swiper-pagination-bullet-active {
  background: var(--color-accent);
}

/* Article Row (Horizontal List) */
.p-latest-articles {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.c-article-row {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--spacing-md);
}

.c-article-row:last-child {
  border-bottom: none;
}

.c-article-row__link {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

@media (min-width: 768px) {
  .c-article-row__link {
    flex-direction: row;
    gap: var(--spacing-md);
    align-items: flex-start;
  }
}

/* ==========================================================================
   Page Specific Components
   ========================================================================== */

/* Hero Section */
.p-hero {
  background-color: #eee;
  padding: var(--spacing-xl) 0;
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.p-hero__title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.p-hero__text {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-light);
}

/* Page Header */
.p-page-header {
  margin-bottom: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

@media (min-width: 768px) {
  .p-page-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.p-page-header__title {
  font-size: 2rem;
  margin: 0;
  line-height: 1.4;
}

/* Sort Container */
.p-sort-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.p-sort-container__label {
  font-size: 0.875rem;
}

.p-sort-container__select {
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background-color: #fff;
}

/* Category Card (Front Page) */
.p-category-card {
  display: block;
  position: relative;
  background: #ddd;
  height: 150px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: opacity var(--transition-fast);
}

.p-category-card:hover {
  opacity: 0.9;
}

.p-category-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.p-category-card__name {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: bold;
  font-size: 1.25rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  width: 100%;
  text-align: center;
  padding: 0 10px;
}

/* Subcategory Navigation */
.p-subcategory-nav {
  margin-bottom: var(--spacing-md);
}

.p-subcategory-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

/* Share Buttons */
.p-share-buttons {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.p-share-buttons__title {
  font-weight: bold;
  margin-bottom: var(--spacing-xs);
}

.p-share-buttons__list {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.p-share-btn {
  display: inline-block;
  padding: 8px 16px;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity var(--transition-fast);
}

.p-share-btn:hover {
  opacity: 0.8;
}

.p-share-btn--twitter { background: #1DA1F2; }
.p-share-btn--facebook { background: #4267B2; }
.p-share-btn--line { background: #00B900; }

/* Article Layout */
.p-entry-article {
  max-width: 800px;
  margin: 0 auto;
}

.p-entry-article__header {
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.p-entry-article__date {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xs);
}

.p-entry-article__thumbnail {
  margin-bottom: var(--spacing-md);
}

.p-entry-article__thumbnail img {
  width: 100%;
  border-radius: var(--border-radius-md);
  height: auto;
}

.p-entry-content {
  line-height: 1.8;
  font-size: 1.0625rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .c-article-row__image-wrapper {
    width: 280px;
  }
}

.c-article-row__image {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16/9;
  display: block;
}

.c-article-row__content {
  flex: 1;
}

.c-article-row__title {
  font-size: 1.25rem;
  margin: 0 0 var(--spacing-xs) 0;
  line-height: 1.4;
}

.c-article-row__excerpt {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-sm);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.c-article-row__date {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* Utilities */
.u-mt-0 { margin-top: 0 !important; }
.u-mb-0 { margin-bottom: 0 !important; }
.u-text-center { text-align: center !important; }

/* Grid Layouts */
.l-grid-3 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--spacing-sm);
}

@media (min-width: 600px) {
  .l-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .l-grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--spacing-md); }
}

.l-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
}

@media (min-width: 768px) {
  .l-grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .l-grid-4 { grid-template-columns: repeat(4, 1fr); gap: var(--spacing-md); }
}

/* =========================================================
   Shopify Buy Button CSS Override
   WordPress側のデザインにShopifyボタンを馴染ませる
========================================================= */

/* 商品ラッパー周りの余白・枠線をなくしてスッキリさせる */
.shopify-buy__product {
    margin-bottom: var(--spacing-md) !important;
}

/* 商品画像の角丸化 */
.shopify-buy__product__image {
    border-radius: var(--border-radius-md) !important;
}

/* 商品タイトルのフォント・色 */
.shopify-buy__product__title {
    font-family: var(--font-family-base) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--color-text-main) !important;
    margin-top: var(--spacing-sm) !important;
}

/* 価格のフォント・色 */
.shopify-buy__product__price {
    font-family: var(--font-family-base) !important;
    font-size: 1.125rem !important;
    font-weight: bold !important;
    color: var(--color-accent) !important;
}

/* 購入ボタン（Add to Cart）のデザイン */
.shopify-buy__btn {
    font-family: var(--font-family-base) !important;
    background-color: var(--color-accent) !important;
    color: var(--color-bg-white) !important;
    border-radius: var(--border-radius-sm) !important;
    padding: 12px 24px !important;
    font-weight: bold !important;
    transition: opacity var(--transition-fast) !important;
}

.shopify-buy__btn:hover {
    opacity: 0.8 !important;
}
/* =========================================================
   Block Editor Adjustments
========================================================= */

/* グループブロックとして c-product-card を使用する場合の調整 */
.wp-block-group.c-product-card {
    padding: 0; /* 画像を端まで広げるため */
}

.wp-block-group.c-product-card .wp-block-image {
    margin-top: 0;
    margin-bottom: 0;
}

/* ボタンブロックに c-btn クラスを付与した場合のスタイル */
.wp-block-button.c-btn .wp-block-button__link {
    background-color: var(--color-accent);
    color: var(--color-bg-white);
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transition: background-color var(--transition-fast);
}

.wp-block-button.c-btn .wp-block-button__link:hover {
    background-color: var(--color-hover);
}
/* =========================================================
   Blog Dynamic Fields Styles (ACF Styles)
   記事タイプ別動的フィールドの「表示スタイル」用クラス
========================================================= */

/* 共通の余白調整 */
.ecsite-blog-dynamic-field {
    margin-bottom: 2rem;
}

/* 
 * 【スタイルの追加・カスタマイズ方法】
 * 投稿画面の「表示スタイル」で選択した値が .is-style-◯◯ というクラス名になります。
 * 新しいスタイルを追加した場合は、以下に同様の形式で定義を追加してください。
 */

/* head1: 大見出し (背景色あり/強) */
.ecsite-blog-dynamic-field.is-style-head1 {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 1rem 1.5rem;
    background-color: var(--color-accent);
    color: var(--color-bg-white);
    border-radius: var(--border-radius-sm);
    margin-top: 3rem;
}

/* head2: 中見出し (下線あり) */
.ecsite-blog-dynamic-field.is-style-head2 {
    font-size: 1.35rem;
    font-weight: bold;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
    margin-top: 2.5rem;
}

/* head3: 小見出し (左線あり) */
.ecsite-blog-dynamic-field.is-style-head3 {
    font-size: 1.2rem;
    font-weight: bold;
    padding-left: 1rem;
    border-left: 4px solid var(--color-accent);
    margin-top: 2rem;
}

/* context: 標準本文 */
.ecsite-blog-dynamic-field.is-style-context {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-main);
}

/* product_name: 商品名 (太字強調) */
.ecsite-blog-dynamic-field.is-style-product_name {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 1rem;
}

/* product_desc: 商品説明 (小さめテキスト) */
.ecsite-blog-dynamic-field.is-style-product_desc {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    background: #fdfdfd;
    padding: 1.25rem;
    border: 1px dashed var(--color-border);
    border-radius: var(--border-radius-md);
}

/* product_image: 商品画像 (角丸/影付き) */
.ecsite-blog-dynamic-field.is-style-product_image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* note: 注釈/注意書き (薄塗り潰し) */
.ecsite-blog-dynamic-field.is-style-note {
    font-size: 0.875rem;
    padding: 1rem;
    background-color: #fff9e6; /* 薄い黄色系 */
    border-left: 4px solid #ffcc00;
    color: #665500;
}

/* box: 囲みボックス（重要ポイント）*/
.ecsite-blog-dynamic-field.is-style-box {
    background: #f8fbff;
    border: 1px solid #d6e4ff;
    padding: 1.2rem;
    border-radius: var(--border-radius-md);
    margin: 1.5rem 0;
}

/* merit: メリット（良い点） */
.ecsite-blog-dynamic-field.is-style-merit {
    background: #e8f7ee;
    border-left: 4px solid #28a745;
    padding: 1rem;
    margin: 1rem 0;
}

/* demerit: デメリット（注意点） */
.ecsite-blog-dynamic-field.is-style-demerit {
    background: #fff0f0;
    border-left: 4px solid #dc3545;
    padding: 1rem;
    margin: 1rem 0;
}

/* marker: 強調（マーカー） */
.ecsite-blog-dynamic-field.is-style-marker {
    background: linear-gradient(transparent 60%, #fff3a3 60%);
    font-weight: bold;
}

/* balloon: 吹き出し（会話風） */
.ecsite-blog-dynamic-field.is-style-balloon {
    position: relative;
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.ecsite-blog-dynamic-field.is-style-balloon::after {
    content: "";
    position: absolute;
    left: 20px;
    bottom: -10px;
    border: 10px solid transparent;
    border-top-color: #f1f5f9;
}

/* compare_box: 比較ボックス */
.ecsite-blog-dynamic-field.is-style-compare_box {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    margin: 1.5rem 0;
    background: #ffffff;
}

/* product_card: compact product card inside simple article fields */
.ecsite-blog-dynamic-field.is-style-product_card {
    margin: 1.5rem 0 2rem;
}

.ecsite-blog-dynamic-field.is-style-product_card .c-product-card {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.ecsite-blog-dynamic-field.is-style-product_card .c-product-card__image-wrapper {
    padding-top: 68%;
}

.ecsite-blog-dynamic-field.is-style-product_card .c-product-card__body {
    padding: 0.875rem;
}

.ecsite-blog-dynamic-field.is-style-product_card .c-product-card__title {
    font-size: 1rem;
    line-height: 1.5;
}

.ecsite-blog-dynamic-field.is-style-product_card .c-product-card__price {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.ecsite-blog-dynamic-field.is-style-product_card .c-btn--cta {
    min-height: 42px;
    padding: 0.65rem 0.875rem;
    font-size: 0.9rem;
}

/* =========================================================
   Product Card (link + product_card style)
   linkフィールドから自動生成される商品カードUI
========================================================= */
.ecsite-product-card {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background: var(--color-bg-white);
    max-width: 320px;
    margin: 2rem auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.ecsite-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.ecsite-product-card__image img {
    width: 100%;
    height: auto;
    display: block;
}

.ecsite-product-card__body {
    padding: 1rem;
}

.ecsite-product-card__title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.ecsite-product-card__price {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.ecsite-product-card__button {
    display: block;
    background: #f57c00;
    color: #fff;
    text-align: center;
    padding: 0.75rem;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 500;
    transition: background-color var(--transition-fast);
}

.ecsite-product-card__button:hover {
    background: #e06800;
    color: #fff;
}

/* =========================================================
   Article CV Sections
========================================================= */
.c-article-cv-products {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md);
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
}

.c-article-cv-products--intro {
    margin-top: var(--spacing-md);
}

.c-article-cv-products--footer {
    margin-top: var(--spacing-xl);
}

.c-article-cv-products__title {
    margin: 0 0 var(--spacing-md);
    font-size: 1.5rem;
    line-height: 1.4;
    text-align: center;
    color: var(--color-text-main);
}

.c-article-cv-products .c-product-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.c-article-cv-products .c-product-card__cta-wrapper {
    margin-top: var(--spacing-sm);
}

.c-article-cv-products .c-btn--cta {
    width: 100%;
    min-height: 48px;
}

@media (min-width: 1024px) {
    .c-article-cv-products__grid,
    .c-related-products__grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: var(--spacing-sm);
    }
}

.c-article-cv-button-wrapper {
    margin: var(--spacing-lg) 0;
    text-align: center;
}

.c-article-cv-button {
    width: min(100%, 520px);
    min-height: 48px;
    font-size: 1.0625rem;
}

.c-article-cv-button-wrapper--middle {
    padding: var(--spacing-sm) 0;
}

.c-article-cv-button-wrapper--before-related {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

/* =========================================================
   Front Page
========================================================= */
.p-front-page {
    padding-top: 0;
}

.p-front-section {
    margin-bottom: var(--spacing-xl);
}

.p-front-section__button {
    margin-top: var(--spacing-md);
    text-align: center;
}

.p-front-hero {
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.p-front-hero__inner {
    max-width: 880px;
}

.p-front-hero__title {
    margin: 0 0 var(--spacing-sm);
    font-size: 2.25rem;
    line-height: 1.35;
    color: var(--color-text-main);
}

.p-front-hero__text {
    margin: 0 auto var(--spacing-md);
    max-width: 640px;
    color: var(--color-text-light);
    font-size: 1.0625rem;
}

.p-front-hero__button,
.p-front-cta__button {
    min-width: 280px;
    min-height: 52px;
}

.p-front-category-grid,
.p-front-product-grid {
    align-items: stretch;
}

.p-front-product-grid .c-product-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.p-front-product-grid .c-product-card__cta-wrapper {
    margin-top: var(--spacing-sm);
}

.p-front-product-grid .c-btn--cta {
    width: 100%;
}

.p-front-article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .p-front-article-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.p-front-article-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.p-front-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.p-front-article-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.p-front-article-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
}

.p-front-empty {
    margin: 0;
    padding: var(--spacing-md);
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    color: var(--color-text-light);
    text-align: center;
}

.p-front-cta {
    background: #ffffff;
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-lg) 0;
}

.p-front-cta__inner {
    max-width: 760px;
    text-align: center;
}

.p-front-cta__title {
    margin: 0 0 var(--spacing-xs);
    font-size: 1.75rem;
    line-height: 1.4;
}

.p-front-cta__text {
    margin: 0 auto var(--spacing-md);
    color: var(--color-text-light);
}

/* =========================================================
   Product Category SEO Content
========================================================= */
.welit-category-content,
.welit-category-related {
    margin: var(--spacing-lg) 0;
}

.welit-category-content--intro {
    margin-top: 0;
}

.welit-category-content__title,
.welit-category-related__title {
    margin: 0 0 var(--spacing-sm);
    font-size: 1.5rem;
    line-height: 1.4;
}

.welit-category-content__body {
    color: var(--color-text);
    line-height: 1.9;
}

.welit-category-content__body p {
    margin: 0 0 1em;
}

.welit-category-content__body p:last-child {
    margin-bottom: 0;
}

.welit-category-related__list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.welit-category-related__link {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    color: var(--color-text);
    text-decoration: none;
}

.welit-category-related__link:hover .welit-category-related__text {
    text-decoration: underline;
}

.welit-category-related__thumb {
    display: block;
    width: 96px;
    aspect-ratio: 4 / 3;
    background: #f7f7f7;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.welit-category-related__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welit-category-related__text {
    font-weight: 700;
    line-height: 1.6;
}

/* =========================================================
   Trust Sections and Contact Form
========================================================= */
.c-trust-section {
    max-width: 960px;
    margin: var(--spacing-xl) auto 0;
    padding: var(--spacing-lg);
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
}

.c-trust-section__header {
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.c-trust-section__eyebrow {
    margin: 0 0 var(--spacing-xs);
    color: var(--color-text-light);
    font-size: 0.875rem;
    font-weight: 700;
}

.c-trust-section__title {
    margin: 0;
    font-size: 1.75rem;
    line-height: 1.4;
}

.c-trust-operator {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.c-trust-operator__links {
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-trust-operator__button {
    width: min(100%, 360px);
    min-height: 48px;
    font-size: 1rem;
}

.c-faq-list {
    display: grid;
    gap: var(--spacing-xs);
}

.c-faq-list__item {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
}

.c-faq-list__question {
    position: relative;
    cursor: pointer;
    padding: 14px 44px 14px 16px;
    font-weight: 700;
    list-style: none;
}

.c-faq-list__question::-webkit-details-marker {
    display: none;
}

.c-faq-list__question::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: var(--color-text-light);
    font-size: 1.25rem;
    line-height: 1;
}

.c-faq-list__item[open] .c-faq-list__question::after {
    content: "-";
}

.c-faq-list__answer {
    padding: 0 16px 16px;
    color: var(--color-text-light);
    line-height: 1.8;
}

.c-faq-list__answer p {
    margin: 0 0 1em;
}

.c-faq-list__answer p:last-child {
    margin-bottom: 0;
}

.p-contact-page {
    max-width: 760px;
}

.c-contact-form-wrapper {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
}

.c-contact-form {
    display: grid;
    gap: var(--spacing-sm);
}

.c-contact-form__field {
    display: grid;
    gap: 8px;
}

.c-contact-form__label {
    font-weight: 700;
}

.c-contact-form__label span {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: #f57c00;
    color: #ffffff;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    line-height: 1.4;
}

.c-contact-form__input,
.c-contact-form__textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font: inherit;
    background: #ffffff;
}

.c-contact-form__textarea {
    resize: vertical;
    min-height: 180px;
}

.c-contact-form__submit {
    justify-self: start;
    min-width: 180px;
}

.c-contact-form__notice {
    margin-bottom: var(--spacing-sm);
    padding: 14px 16px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    line-height: 1.6;
}

.c-contact-form__notice--success {
    background: #e8f7ee;
    color: #176f35;
    border: 1px solid #bde5ca;
}

.c-contact-form__notice--error {
    background: #fff0f0;
    color: #a12626;
    border: 1px solid #f2c4c4;
}
