/**
 * front.css
 * 設置パス: /assets/front.css
 * 概要: フロント共通スタイル。ヘッダー・フッター・Hero・カード・バーガーメニュー。インライン禁止のためここに集約。
 * 日付: 2026-03-15 JST
 */

/* front-colors-a.css / b / c で上書き。未読み込み時のフォールバック（テーマA） */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --fc-link: #2980b9;
  --fc-link-hover: #1e6fa0;
  --fc-hero-bg: var(--primary-color);
  --fc-tag-bg: #e8f0fa;
  --fc-banner-bg: #e8f0fa;
  --fc-banner-border: #a8c8e8;
  --fc-banner-hover-bg: #c8dff5;
  --fc-banner-img-bg: #c8dff5;
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  /* フォームコントロール統一（フロント: お問い合わせ・マイページ・申込等） */
  --fc-ctrl-font: 0.95rem;
  --fc-ctrl-line-height: 1.45;
  --fc-ctrl-pad-y: 10px;
  --fc-ctrl-pad-x: 14px;
  --fc-ctrl-radius: 8px;
  --fc-ctrl-min-h: 42px;
  --fc-ctrl-check: 1.125rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

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

a {
  color: var(--fc-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── ヘッダー・ナビゲーション ── */
.site-header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: block;
}

.logo img {
  display: block;
  max-height: 48px;
  width: auto;
  height: auto;
}

/* メモ: 管理の「ヘッダーロゴ横幅」は img の幅。上の .logo img { max-height:48px } があると縦優先で縮み幅が効かないので、ロゴ img だけここで max-height を外す。 */
.logo img.site-header-logo {
  max-height: none;
  max-width: 100%;
}

.logo .logo-svg {
  display: block;
  max-height: 48px;
  width: auto;
  height: 48px;
}

.logo-text {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--fc-link);
}

.nav-pc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.nav-pc a {
  padding: 6px 0;
}

/* サイトトップ（家アイコン） */
.nav-link-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  color: var(--fc-link);
  text-decoration: none;
  vertical-align: middle;
}

.nav-link-home:hover {
  text-decoration: none;
  opacity: 0.82;
}

.nav-link-home svg {
  display: block;
  flex-shrink: 0;
}

.nav-sp .nav-link-home {
  padding: 12px 0;
}

.header-search {
  display: none;
  width: 40px;
  height: 40px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cline x1='3' y1='12' x2='21' y2='12'/%3E%3Cline x1='3' y1='18' x2='21' y2='18'/%3E%3C/svg%3E") center no-repeat;
  cursor: pointer;
}

.nav-sp {
  background: #f5f5f5;
}

.nav-sp ul {
  list-style: none;
  margin: 0;
  padding: 16px 20px;
}

.nav-sp li {
  border-bottom: 1px solid #ddd;
}

.nav-sp a {
  display: block;
  padding: 12px 0;
}

.nav-sp[hidden] {
  display: none;
}

@media (max-width: 768px) {
  .nav-pc {
    display: none;
  }

  .header-search {
    display: inline-block;
    margin-right: -50px;
    border: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cline x1='16' y1='16' x2='21' y2='21'/%3E%3C/svg%3E") center no-repeat;
  }

  .nav-toggle {
    display: block;
  }

  #search {
    scroll-margin-top: 100px;
  }
}

/* ── メインコンテンツ ── */
.site-main {
  min-height: 60vh;
}

#top {
  scroll-margin-top: 80px;
}

/* ── ヒーロー ── */
.hero-wrap {
  position: relative;
  width: 100%;
}

.hero-track {
  position: relative;
  width: 100%;
}

/* 管理で最小高さ（px）未指定時は従来どおり 16:9 枠 */
.hero-wrap:not([style*='--hero-min-height']) .hero-slide {
  aspect-ratio: 16/9;
  max-height: 70vh;
}

.hero-wrap[style*='--hero-min-height'] .hero-slide {
  aspect-ratio: unset;
  max-height: none;
  min-height: var(--hero-min-height);
}

.hero-wrap--carousel .hero-track {
  min-height: inherit;
}

.hero-wrap--carousel .hero-slide {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  z-index: 0;
}

.hero-wrap--carousel .hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero {
  width: 100%;
  background: var(--fc-hero-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  text-align: center;
}

.hero-body {
  margin: 12px 0 0;
  max-width: 720px;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: normal;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  text-align: center;
  line-height: 1.6;
}

.hero-body p {
  margin: 0.35em 0;
}

.hero-body a {
  color: #fff;
  text-decoration: underline;
}

.hero-body a:hover {
  opacity: 0.9;
}

.hero-body iframe {
  max-width: 100%;
  border: 0;
}

.hero-carousel-ui {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px 20px;
  background: rgba(44, 62, 80, 0.35);
}

.hero-carousel-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #2c3e50;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.hero-carousel-btn:hover {
  background: #fff;
}

.hero-carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.hero-carousel-dot.is-active {
  background: #fff;
  border-color: #fff;
}

.hero .cta {
  margin-top: 24px;
  text-align: center;
}

.hero .cta a {
  display: inline-block;
  padding: 12px 24px;
  background: var(--fc-link);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
}

.hero .cta a:hover {
  background: var(--fc-link-hover);
  text-decoration: none;
}

/* ── セクション・カード・タグ ── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
}

.section-ttl {
  margin: 0 0 24px;
  font-size: 1.5rem;
  border-bottom: 2px solid var(--fc-link);
  padding-bottom: 8px;
}

/* ── トップ: わたしについて ── */
.about-message {
  padding-top: 12px;
}

.about-message-card {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 20px;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(41, 128, 185, 0.12), transparent 60%),
    radial-gradient(110% 140% at 100% 100%, rgba(46, 204, 113, 0.1), transparent 62%),
    #fff;
  border: 1px solid rgba(41, 128, 185, 0.2);
  box-shadow: 0 18px 45px rgba(18, 32, 44, 0.12);
}

.about-message-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  font-weight: 700;
  color: var(--fc-link);
}

.about-message-card h2 {
  margin: 10px 0 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: 0.04em;
  color: var(--primary-color);
}

.about-message-lead {
  margin: 12px 0 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  color: #1f6b4c;
}

.about-message-body {
  margin-top: 20px;
}

.about-message-body p {
  margin: 0 0 1.2em;
  line-height: 2;
  letter-spacing: 0.02em;
}

.about-message-body p:last-child {
  margin-bottom: 0;
}

/* 一覧見出し + 右側コントロール（ストア並べ替え等） */
.section-ttl-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  margin: 0 0 32px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
}

.section-ttl-row .section-ttl {
  margin: 0;
  border-bottom: none;
  padding-bottom: 0;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: var(--primary-color);
  flex: 1 1 auto;
}

.store-list-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.store-list-sort-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fcfcfc;
  padding: 4px 4px 4px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.store-list-sort-form:hover {
  border-color: var(--fc-link);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.store-list-sort-select {
  min-width: 10em;
  border: none;
  background: transparent;
  padding: 6px 32px 6px 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: transform 0.2s ease;
}

.store-list-sort-select:active {
  transform: translateY(1px);
}

/* ストア詳細: 購入ブロック */
.store-detail-purchase {
  margin: 20px 0 24px;
  padding: 16px 18px;
  border: 1px solid #ddd;
  border-radius: var(--fc-ctrl-radius);
  background: #fafafa;
}

.store-detail-purchase-meta {
  margin: 0 0 16px;
}

.store-detail-purchase-row {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 6px 12px;
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.store-detail-purchase-row dt {
  margin: 0;
  color: #555;
  font-weight: 600;
}

.store-detail-purchase-row dd {
  margin: 0;
}

.store-detail-purchase-row--full {
  grid-template-columns: 1fr;
}

.store-detail-purchase-row--full dt {
  margin-bottom: 6px;
}

.store-var-stock-list {
  margin: 0;
  padding-left: 1.2em;
}

.store-var-stock-list li {
  margin: 4px 0;
}

.store-var-sku {
  font-weight: 600;
  margin-right: 8px;
}

.store-var-st {
  color: #333;
  margin-right: 8px;
}

.store-var-price {
  color: var(--fc-link);
  font-size: 0.9rem;
}

.store-detail-purchase-note {
  margin: 0;
  color: #888;
}

.store-detail-purchase-form {
  margin: 0;
}

.store-detail-purchase-qty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
}

.store-detail-purchase-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
}

.store-detail-var-select {
  min-width: 14em;
}

.store-detail-stock-live {
  margin: 0;
  width: 100%;
  font-size: 0.9rem;
  color: #555;
}

.store-detail-qty-input {
  width: 5em;
  max-width: 100%;
  padding: var(--fc-ctrl-pad-y) var(--fc-ctrl-pad-x);
  font-size: var(--fc-ctrl-font);
  border: 1px solid #ccc;
  border-radius: var(--fc-ctrl-radius);
  box-sizing: border-box;
}

.store-detail-purchase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-detail-btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: var(--fc-ctrl-radius);
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid #bbb;
  background: #fff;
  color: var(--text-color);
  text-decoration: none;
}

.store-detail-btn--cart {
  background: var(--fc-link);
  border-color: var(--fc-link);
  color: #fff;
}

.store-detail-btn--buy {
  background: #2c3e50;
  border-color: #2c3e50;
  color: #fff;
}

.store-detail-btn--fav {
  background: #fff;
}

.store-detail-purchase-hint {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: #777;
}

.store-detail-purchase-fav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #ddd;
}

.store-detail-wishlist-link {
  font-size: 0.95rem;
  color: var(--fc-link);
}

.store-detail-purchase-login-note {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

.store-wishlist-lead {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: #555;
}

.store-wishlist-flash {
  margin: 0 0 16px;
  padding: 10px 14px;
  background: #e3f2fd;
  border: 1px solid #90caf9;
  border-radius: var(--fc-ctrl-radius);
  color: #0d47a1;
}

.store-stock-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
}

.store-stock-badge--out {
  background: #ffebee;
  color: #b71c1c;
}

.store-stock-badge--one {
  background: #fff3e0;
  color: #e65100;
}

.store-stock-badge--few {
  background: #fff8e1;
  color: #f57f17;
}

.store-stock-badge--ok {
  background: #e8f5e9;
  color: #2e7d32;
}

.section-ttl-row--store .store-list-wishlist-link {
  font-size: 0.95rem;
  white-space: nowrap;
  color: var(--fc-link);
  align-self: center;
}

.store-cart-flash {
  margin: 0 0 16px;
  padding: 10px 14px;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: var(--fc-ctrl-radius);
  color: #1b5e20;
}

/* カート本文: ストア一覧と同じカード／リスト + 数量変更フォーム */
.card--store-cart {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-store-cart-link {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  color: inherit;
  text-decoration: none;
}

.card-store-cart-link:hover {
  text-decoration: none;
}

.card-store-cart-link:hover .card-ttl {
  color: var(--fc-link);
}

.store-cart-line-actions {
  flex-shrink: 0;
  padding: 10px 12px;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.store-cart-card-tags {
  padding: 0 12px 12px;
  margin: 0;
}

.article-card--store-cart {
  display: flex;
  flex-direction: column;
}

.article-card--store-cart>.article-list-row {
  flex: 1 1 auto;
}

.store-cart-line-actions--in-list {
  padding: 8px 12px 12px;
  border-top: 1px solid #eee;
  background: #fafafa;
  flex-shrink: 0;
}

.store-cart-qty-form {
  margin: 0;
}

.store-cart-qty-form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.store-cart-qty-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.store-cart-qty-input {
  width: 4.25rem;
  padding: var(--fc-ctrl-pad-y, 8px) var(--fc-ctrl-pad-x, 10px);
  font-size: var(--fc-ctrl-font, 0.95rem);
  line-height: var(--fc-ctrl-line-height, 1.4);
  min-height: var(--fc-ctrl-min-h, 38px);
  border: 1px solid #ccc;
  border-radius: var(--fc-ctrl-radius, 6px);
  box-sizing: border-box;
}

.btn.store-cart-qty-submit {
  margin: 0;
  padding: var(--fc-ctrl-pad-y, 8px) var(--fc-ctrl-pad-x, 14px);
  font-size: var(--fc-ctrl-font, 0.95rem);
  min-height: var(--fc-ctrl-min-h, 38px);
  font-weight: bold;
  border-radius: var(--fc-ctrl-radius, 6px);
  border: 2px solid var(--secondary-color);
  background: #fff;
  color: var(--secondary-color);
  cursor: pointer;
}

.btn.store-cart-qty-submit:hover {
  background: #f0f6fc;
  color: var(--fc-link);
  border-color: var(--fc-link);
}

.store-cart-stock-cap {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: #2e7d32;
}

.store-cart-stock-cap--none {
  color: #b71c1c;
}

.store-cart-qty-hint {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: #666;
}

.card--store-cart .store-cart-var,
.card--store-cart .store-cart-subtotal,
.article-card--store-cart .store-cart-var,
.article-card--store-cart .store-cart-subtotal {
  display: block;
  margin: 0.35em 0 0;
  font-size: 0.9rem;
  color: #444;
}

.card--store-cart .store-cart-subtotal,
.article-card--store-cart .store-cart-subtotal {
  font-weight: 600;
  color: #222;
  margin-top: 10px;
}

.store-cart-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e8e8e8;
}

.store-cart-continue {
  margin: 12px 0 0;
}

.store-cart-continue a {
  color: var(--fc-link);
  font-weight: 600;
}

.store-cart-checkout-note {
  margin: 16px 0;
  padding: 12px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--fc-ctrl-radius);
  font-size: 0.95rem;
}

/* ストア: 購入手続き（checkout.php） */
.store-checkout .store-checkout-section {
  margin: 0 0 28px;
}

.store-checkout-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 0 0 12px;
}

.store-checkout-ship-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.store-checkout-edit-link--sub {
  font-weight: normal;
  font-size: 0.9rem;
}

.store-checkout-h2 {
  margin: 0;
  font-size: 1.15rem;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 6px;
  flex: 1 1 auto;
  min-width: 0;
}

.store-checkout-items-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.store-checkout-edit-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fc-link);
  white-space: nowrap;
}

.store-checkout-edit-link:hover {
  text-decoration: underline;
}

.store-checkout-display-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.store-checkout-display-btn {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: var(--fc-ctrl-radius, 6px);
  color: var(--secondary-color);
  text-decoration: none;
  background: #fff;
}

.store-checkout-display-btn:hover {
  background: #f5f5f5;
}

.store-checkout-display-btn.is-active {
  background: var(--secondary-color);
  color: #fff;
  border-color: var(--secondary-color);
}

.store-checkout-address-form {
  margin: 0 0 12px;
}

.store-checkout-address-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.store-checkout-address-picker-label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--secondary-color, #333);
}

.store-checkout-address-select {
  min-width: min(100%, 22rem);
  max-width: 100%;
  padding: var(--fc-ctrl-pad-y, 8px) var(--fc-ctrl-pad-x, 12px);
  font-size: var(--fc-ctrl-font, 1rem);
  border: 1px solid #ccc;
  border-radius: var(--fc-ctrl-radius, 6px);
  background: #fff;
  box-sizing: border-box;
}

.store-checkout-address-box {
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  font-size: 0.95rem;
  line-height: 1.6;
}

.store-checkout-line {
  margin: 0 0 6px;
}

.store-checkout-line:last-child {
  margin-bottom: 0;
}

.store-checkout-empty {
  margin: 0;
  color: #b71c1c;
}

.store-checkout-table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
  -webkit-overflow-scrolling: touch;
}

.store-checkout-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.store-checkout-table th,
.store-checkout-table td {
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.store-checkout-table thead th {
  background: #f5f5f5;
  font-weight: 600;
}

.store-checkout-col-num {
  text-align: right;
  white-space: nowrap;
}

.store-checkout-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin: 0 0 16px;
}

.store-checkout-thumb-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.store-checkout-thumb-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.store-checkout-thumb-link:hover {
  opacity: 0.95;
}

.store-checkout-thumb-img {
  aspect-ratio: 1 / 1;
  background: #e8e8e8;
  overflow: hidden;
}

.store-checkout-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-checkout-thumb-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
  font-size: 0.85rem;
  color: #999;
}

.store-checkout-thumb-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  font-size: 0.9rem;
}

.store-checkout-thumb-ttl {
  font-weight: 600;
  line-height: 1.35;
}

.store-checkout-thumb-meta {
  font-size: 0.85rem;
  color: #555;
}

.store-checkout-thumb-price {
  font-weight: 600;
  color: #222;
  margin-top: 4px;
}

.store-checkout-totals {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  max-width: 420px;
  margin-left: auto;
}

.store-checkout-total-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.store-checkout-total-row:last-child {
  margin-bottom: 0;
}

.store-checkout-total-row dt {
  margin: 0;
  font-weight: 600;
}

.store-checkout-total-row dd {
  margin: 0;
  text-align: right;
}

.store-checkout-total-row--grand {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid #eee;
  font-size: 1.05rem;
}

.store-checkout-note {
  margin: 24px 0 0;
  padding: 12px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--fc-ctrl-radius);
  font-size: 0.95rem;
}

.store-checkout-note--sub {
  margin-top: 12px;
}

.store-checkout-cta {
  margin: 24px 0 0;
}

.store-checkout-pay-btn {
  display: inline-block;
  text-decoration: none;
}

/* 購入手続き: 2カラム・右は「サイト内で検索」のみ（ストアカートなし） */
.store-checkout-grid--with-search {
  align-items: start;
}

.store-checkout-grid--with-search .profile-main {
  min-width: 0;
}

.store-checkout-submit-wrap {
  margin: 20px 0 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.store-checkout-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 22rem;
  min-height: 3rem;
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--secondary-color, #2c5282);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  transition: filter 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.store-checkout-submit:hover {
  filter: brightness(1.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.store-checkout-submit:focus {
  outline: 2px solid var(--secondary-color, #2c5282);
  outline-offset: 3px;
}

.store-checkout-submit:focus:not(:focus-visible) {
  outline: none;
}

.store-checkout-submit:focus-visible {
  outline: 2px solid var(--secondary-color, #2c5282);
  outline-offset: 3px;
}

.store-checkout-section--payment {
  margin-top: 8px;
}

/* ストア: 決済 payment.php */
.store-payment .store-payment-cod-note {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
}

.store-payment-form {
  margin: 0;
}

.store-payment-options {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-payment-option {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
}

.store-payment-option-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
}

.store-payment-option-label input {
  margin: 4px 0 0;
  flex-shrink: 0;
}

.store-payment-option-text {
  flex: 1;
}

.store-payment-option-sub {
  margin: 8px 0 0 28px;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.5;
}

.store-payment-submit-wrap {
  margin: 0 0 12px;
}

.store-payment-footnote {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.55;
}

.store-payment-back {
  margin: 10px 0 0;
  font-size: 0.95rem;
}

.store-payment-thanks-lead {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.65;
}

.store-payment-thanks-dl {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  max-width: 420px;
}

.store-payment-thanks-dl>div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.store-payment-thanks-dl>div:last-child {
  margin-bottom: 0;
}

.store-payment-thanks-dl dt {
  margin: 0;
  font-weight: 600;
  color: #333;
}

.store-payment-thanks-dl dd {
  margin: 0;
  text-align: right;
}

.store-payment-thanks-grand {
  margin-top: 12px !important;
  padding-top: 12px;
  border-top: 1px solid #ddd;
  font-size: 1.05rem;
}

.store-payment-thanks-grand dt,
.store-payment-thanks-grand dd {
  font-weight: 700;
}

.store-payment-thanks-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 520px) {
  .section-ttl-row--store .store-list-sort-form {
    width: 100%;
    justify-content: flex-start;
  }

  .section-ttl-row--store .store-list-sort-select {
    flex: 1 1 auto;
    min-width: 0;
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.card-grid.card-grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.card-grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.card-grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {

  .card-grid.card-grid-cols-3,
  .card-grid.card-grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {

  .card-grid.card-grid-cols-2,
  .card-grid.card-grid-cols-3,
  .card-grid.card-grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* トップ: ピックアップ（リスト表示） */
.pickup-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.pickup-list li {
  border-bottom: 1px solid #eee;
}

.pickup-list li:last-child {
  border-bottom: none;
}

.pickup-list a {
  display: block;
  padding: 10px 10px;
  color: inherit;
  text-decoration: none;
}

.pickup-list a:hover {
  background: #f8f9fa;
}

.pickup-list-title {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.pickup-list-desc {
  display: block;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.45;
}

.pickup-list a.pickup-list-with-thumb {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.pickup-list-with-thumb-inner {
  flex: 1;
  min-width: 0;
}

/* コミュニティ一覧: サムネ 16:9 */
.community-list-thumb-frame {
  position: relative;
  flex-shrink: 0;
  width: clamp(140px, 38vw, 220px);
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eee;
  background: #f0f0f0;
}

.community-list-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.community-detail-cover {
  position: relative;
  margin: 0 0 20px;
}

.community-detail-cover img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #eee;
}

.community-detail-cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 8px;
}

.community-detail-cover-title {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.community-detail-cover-desc {
  margin: 0;
  max-width: 90%;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.community-room-row {
  display: block;
  padding: 0;
}

/* ルーム一覧は .pickup-list a の padding を受けない */
.pickup-list.community-room-grid a.community-room-link {
  padding: 0;
}

.community-room-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.community-room-link:hover {
  text-decoration: none;
}

.community-room-text {
  display: block;
  margin-top: 10px;
}

.community-room-thumb {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #eee;
}

.community-room-media {
  position: relative;
  display: block;
}

.community-room-media.is-noimg {
  min-height: 160px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #f4f4f4;
}

.community-room-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 24px);
  text-align: center;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.community-room-overlay-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.community-room-overlay-desc {
  display: block;
  font-size: 0.9rem;
  line-height: 1.35;
}

.community-room-media:not(.is-noimg)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  z-index: 1;
}

.community-room-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.community-room-grid>li {
  border-bottom: 1px solid #eee;
}

.community-room-grid>li:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .community-room-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    border: none;
    background: transparent;
  }

  .community-room-grid>li {
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
  }
}

.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.card a {
  display: block;
  color: inherit;
}

.card a:hover {
  text-decoration: none;
}

/* 購入検討: ストア一覧と同カード＋削除フォーム */
.card--store-wishlist {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card--store-wishlist .card-wishlist-main-link {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
}

.card-wishlist-remove-form {
  margin: 0;
  padding: 10px 12px;
  border-top: 1px solid #eee;
  background: #fafafa;
  flex-shrink: 0;
}

.article-card--store-wishlist {
  display: flex;
  flex-direction: column;
}

.article-list-wishlist-remove-form {
  margin: 0;
  padding: 8px 12px 12px;
  border-top: 1px solid #eee;
  background: #fafafa;
}

/* 購入検討「お気に入りから削除」— サイドのリセットボタン・フォーム系トークンに合わせる */
.btn.store-wishlist-remove-submit {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: var(--fc-ctrl-pad-y) var(--fc-ctrl-pad-x);
  font-size: var(--fc-ctrl-font);
  line-height: var(--fc-ctrl-line-height);
  min-height: var(--fc-ctrl-min-h);
  font-weight: bold;
  text-align: center;
  border-radius: var(--fc-ctrl-radius);
  border: 2px solid var(--secondary-color);
  background: #fff;
  color: var(--secondary-color);
  cursor: pointer;
}

.btn.store-wishlist-remove-submit:hover {
  background: #f0f6fc;
  color: var(--fc-link);
  border-color: var(--fc-link);
}

.article-list-wishlist-remove-form .store-wishlist-remove-submit {
  max-width: 320px;
}

.card-img {
  aspect-ratio: 1/1;
  background: #e8e8e8;
  overflow: hidden;
  border: 1px solid #ddd;
}

.card-img.ratio-1-1 {
  aspect-ratio: 1 / 1;
}

.card-img.ratio-6-4 {
  aspect-ratio: 4 / 3;
}

.card-img.ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-img-placeholder {
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e8e8;
  color: #999;
  font-size: 0.9rem;
  border: 1px solid #ddd;
}

.card-img.ratio-6-4 .card-img-placeholder,
.card-img.ratio-16-9 .card-img-placeholder {
  aspect-ratio: unset;
  width: 100%;
  height: 100%;
  border: none;
}

/* ブログ一覧カード */
.card-img.card-img--blog {
  display: flex;
}

.card-img.card-img--blog .card-img-placeholder {
  aspect-ratio: unset;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border: none;
  border-bottom: 1px solid #ddd;
}

.card-body {
  padding: 10px;
}

.card-ttl {
  margin: 0 0 8px;
  font-size: 1rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag {
  font-size: 0.85rem;
  padding: 4px 10px;
  background: var(--fc-tag-bg);
  color: var(--fc-link);
  border-radius: 4px;
}

/* ── カテゴリバナー（トップページ） ── */
.category-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.category-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: var(--fc-banner-bg);
  color: var(--fc-link);
  border: 2px solid var(--fc-banner-border);
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.category-banner:hover {
  background: var(--fc-banner-hover-bg);
  border-color: var(--fc-link);
  text-decoration: none;
  color: var(--fc-link-hover);
}

.category-banner-img {
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.category-banner-img-wrap {
  display: block;
  aspect-ratio: 16/10;
  width: 100%;
  overflow: hidden;
  background: var(--fc-banner-img-bg);
}

.category-banner-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.category-banner-text {
  padding: 12px 16px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-banner-img:hover .category-banner-img-wrap img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .category-banner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── フッター・ページトップ ── */
.site-footer {
  background: var(--fc-link);
  color: #fff;
  padding: 40px 20px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.footer-ttl {
  margin: 0 0 12px;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col a {
  color: #fff;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-modules {
  display: flex;
  justify-content: center;
}

.footer-module-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

@media (min-width: 769px) {
  .footer-module-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
  }
}

.footer-copy {
  text-align: center;
  margin: 32px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
}

.pagetop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.pagetop img {
  width: 48px;
  height: 48px;
  display: block;
}

.pagetop:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* ── パンくず ── */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px 0;
  font-size: 0.9rem;
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: #999;
}

.breadcrumb a {
  color: var(--fc-link);
}

/* ── サイドバー ── */
.profile-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-side .side-block {
  display: block;
}

.profile-side .side-logo img,
.profile-side .side-banner img {
  display: block;
  max-width: 100%;
  height: auto;
}

.profile-side .side-common-banner {
  margin-top: 4px;
}

.profile-side .side-common-banner-link {
  display: block;
  line-height: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  background: #f6f6f6;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.profile-side .side-common-banner-link:hover {
  border-color: var(--fc-link);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.profile-side .side-common-banner-link:focus-visible {
  outline: 2px solid var(--fc-link);
  outline-offset: 2px;
}

.profile-side .side-contact {
  font-size: 0.9rem;
  line-height: 1.6;
}

.profile-side .side-contact p {
  margin: 0 0 8px;
}

.profile-side .side-contact p:last-child {
  margin-bottom: 0;
}

.side-filter {
  padding: 12px;
  border: 1px solid #e0e0e0;
  background: #fff;
  border-radius: 6px;
}

.side-filter-ttl {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--secondary-color);
  font-size: 1rem;
  font-weight: bold;
}

.side-filter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-filter-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.side-filter-label {
  font-size: 0.9rem;
  font-weight: bold;
}

.side-filter-input,
.side-filter-select {
  width: 100%;
  padding: 8px 10px;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.side-filter-input::placeholder {
  color: #999;
}

.side-filter-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.side-filter-btn {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: bold;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.side-filter-btn-submit {
  background: var(--secondary-color);
  color: #fff;
}

.side-filter-btn-submit:hover {
  background: var(--fc-link);
}

.side-filter-btn-reset {
  background: #fff;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.side-filter-btn-reset:hover {
  background: #f0f6fc;
}

/* ストア: サイドカート要約（includes/side_ec.php） */
.side-ec {
  padding: 12px;
  border: 1px solid #e0e0e0;
  background: #fff;
  border-radius: 6px;
}

.side-ec-ttl {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--secondary-color);
  font-size: 1rem;
  font-weight: bold;
}

.side-ec-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-ec-row {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 6px 10px;
  align-items: baseline;
  font-size: 0.9rem;
}

.side-ec-row dt {
  margin: 0;
  font-weight: bold;
  color: #333;
}

.side-ec-row dd {
  margin: 0;
  text-align: right;
}

.side-ec-note {
  font-size: 0.85rem;
  color: #666;
  text-align: left !important;
  grid-column: 1 / -1;
}

.side-ec-btn-stack {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-ec-btn {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: bold;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  box-sizing: border-box;
  background: var(--secondary-color);
  color: #fff;
  border: 1px solid var(--secondary-color);
  cursor: pointer;
  line-height: 1.35;
}

.side-ec-btn:hover {
  background: var(--fc-link);
  border-color: var(--fc-link);
  color: #fff;
}

.side-ec-btn--outline {
  background: #fff;
  color: var(--secondary-color);
  border-color: #d0d0d0;
}

.side-ec-btn--outline:hover {
  background: #f5f5f5;
  color: var(--secondary-color);
  border-color: #c0c0c0;
}

/* ── 製品（product） ── */
.product-lead {
  margin-bottom: 16px;
}

.product-body {
  margin: 24px 0;
}

.product-body-text {
  line-height: 1.8;
}

.product-body-text p {
  margin: 0 0 1em;
}

.product-body-text p:last-child {
  margin-bottom: 0;
}

.product-body-text h2 {
  margin: 1.2em 0 0.5em;
  font-size: 1.25rem;
}

.product-body-text h3 {
  margin: 1em 0 0.4em;
  font-size: 1.1rem;
}

.product-body-text h4 {
  margin: 0.8em 0 0.3em;
  font-size: 1rem;
}

.product-body-text h5 {
  margin: 0.8em 0 0.3em;
  font-size: 1rem;
  border-bottom: 2px solid var(--fc-link);
  margin-bottom: 10px;
}

.product-body-text ul,
.product-body-text ol {
  margin: 0.5em 0 1em;
  padding-left: 1.5em;
}

.product-body-text li {
  margin: 0.2em 0;
}

.product-body-text dl {
  display: grid;
  grid-template-columns: 8em 1fr;
  column-gap: 12px;
  row-gap: 4px;
  margin: 0.5em 0 1em;
}

.product-body-text dt {
  margin: 0;
  font-weight: bold;
}

.product-body-text dd {
  margin: 0;
}

.product-body-text blockquote {
  margin: 1em 0;
  padding-left: 1em;
  border-left: 4px solid #ddd;
  color: #555;
}

.product-body-text .product-table-scroll {
  overflow-x: auto;
  margin: 1em 0;
  -webkit-overflow-scrolling: touch;
}

.product-body-text .product-table-scroll table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.product-body-text th,
.product-body-text td {
  padding: 8px 12px;
  border: 1px solid #ddd;
  text-align: left;
}

.product-body-text th {
  background: #f5f5f5;
  font-weight: bold;
}

.product-body-text img {
  display: block;
  max-width: 100%;
  height: auto;
}

.product-body-text iframe {
  max-width: 100%;
  border: 0;
}

.product-body-text a {
  color: var(--fc-link);
  text-decoration: underline;
}

.product-body-text a:hover {
  text-decoration: none;
}

.product-body-image {
  max-width: var(--body-img-max-width, none);
}

.product-body-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* ブログ詳細：1カラム・上から 16:9 サムネ → タイトル → 詳細 → 日付 → カテゴリ → 本文 */
.blog-detail {
  margin-bottom: 40px;
  max-width: 100%;
}

.blog-detail-thumb {
  margin: 0 0 24px;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  aspect-ratio: 16 / 9;
  background: #e8e8e8;
}

.blog-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-detail-noimg {
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
}

.blog-detail-ttl {
  margin-top: 0;
}

.blog-detail-lead {
  margin-top: 0;
}

.blog-detail-meta {
  margin: 0 0 12px;
}

.blog-detail-cats {
  margin-bottom: 20px;
}

.blog-detail-body {
  margin-top: 8px;
}

.product-detail-grid {
  margin-bottom: 40px;
}

/* 詳細ヘッダー: 1カラム（画像上・タイトル下）。2カラムは .grid-2col のまま */
.product-detail-grid.product-detail-grid--stack {
  grid-template-columns: 1fr;
}

.product-detail-grid.product-detail-grid--stack .product-detail-gallery {
  order: -1;
  position: static;
  top: auto;
}

/* サムネイルなし: ヘッダーはテキストブロックのみ */
.product-detail-grid.product-detail-grid--no-thumb {
  display: block;
}

.product-detail-grid.product-detail-grid--no-thumb .product-detail-info {
  max-width: 100%;
}

.product-detail-gallery {
  position: sticky;
  top: 100px;
}

.product-detail-info {
  min-width: 0;
}

.product-detail-ttl {
  margin: 0 0 16px;
  font-size: 1.5rem;
  border-bottom: 2px solid var(--fc-link);
  padding-bottom: 8px;
}

/* ストア: 公開範囲に応じた価格 */
.store-front-price {
  margin: 8px 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-color);
}

.store-front-price--member {
  color: var(--secondary-color);
}

.store-front-price-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  margin-right: 6px;
}

.store-front-price-note {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: #666;
}

.store-front-price--out-of-stock {
  margin: 8px 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #b71c1c;
}

.card-body .store-front-price,
.card-body .store-front-price-note,
.card-body .store-front-price--out-of-stock {
  margin-top: 6px;
}

.product-dl-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.product-dl-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  border: 1px solid transparent;
  transition: opacity 0.2s;
}

.product-dl-icon:hover {
  text-decoration: none;
  color: #fff;
  opacity: 0.9;
}

.product-dl-icon-pdf {
  background: #c5221f;
}

.product-dl-icon-pdf:hover {
  background: #a01b18;
}

.product-dl-icon-cad {
  background: #333;
}

.product-dl-icon-cad:hover {
  background: #222;
}

.product-dl-icon-svg {
  display: inline-flex;
  flex-shrink: 0;
}

.product-dl-icon-svg svg {
  display: block;
}

.product-dl-icon-label {
  line-height: 1;
}

.product-gallery-main {
  margin: 0 0 12px;
  background: #e8e8e8;
  overflow: hidden;
  aspect-ratio: 1/1;
  border: 1px solid #ddd;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery-noimg {
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
}

.product-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-gallery-thumb {
  margin: 0;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  display: block;
}

.product-gallery-thumb:hover {
  border-color: #ccc;
}

.product-gallery-thumb.is-active {
  border-color: var(--fc-link);
}

.product-gallery-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
}

.subsection-ttl {
  font-size: 1.25rem;
  margin: 24px 0 12px;
}

.product-dl .btn-dl {
  display: inline-block;
  padding: 10px 20px;
  background: #333;
  color: #fff;
  border-radius: 4px;
  margin: 4px 8px 4px 0;
}

.product-dl .btn-dl:hover {
  text-decoration: none;
  opacity: 0.9;
}

.related-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-section li {
  margin: 8px 0;
}

/* ── 導入事例（example） ── */
.example-lead {
  margin-bottom: 16px;
}

.example-product {
  margin-bottom: 8px;
  color: var(--fc-link);
  font-weight: bold;
}

/* ── お知らせ（article） ── */
.article-cat-filter-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.article-cat-select {
  padding: 8px 12px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 160px;
}

.article-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-list-row--with-thumb {
  align-items: flex-start;
  gap: 16px;
}

.article-list-thumb-card {
  width: 140px;
  max-width: 32vw;
  flex-shrink: 0;
}

.article-list-with-thumb-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.article-list-left--stack {
  flex-wrap: wrap;
  min-width: 0;
  width: 100%;
  align-items: center;
}

.article-list--thumb-rows .article-list-row {
  padding: 12px 0;
}

.article-list-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 48px;
  overflow: hidden;
  border-radius: 4px;
  background: #f0f0f0;
}

.article-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-list-tag-cloud {
  margin-top: 0;
  flex: 1;
  min-width: 0;
}

.article-list-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 100px;
  flex-wrap: wrap;
}

.article-list-date {
  font-size: 0.85rem;
  color: #666;
  white-space: nowrap;
}

.article-list-cat {
  font-size: 0.85rem;
  color: var(--fc-link);
}

.article-list-new {
  font-size: 0.75rem;
  font-weight: bold;
  color: #c62828;
  background: #ffebee;
  padding: 2px 6px;
  border-radius: 4px;
}

.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.article-list-title-only {
  grid-template-columns: 1fr;
  gap: 0;
}

.article-list-title-only .article-card {
  border-bottom: 1px solid #eee;
}

.article-list-title-only .article-card a {
  border: none;
  border-radius: 0;
  padding: 12px 0;
}

.article-list-title-only .article-ttl {
  margin: 0;
  font-size: 1rem;
  font-weight: normal;
}

.article-card {
  margin: 0;
}

.article-card a {
  display: block;
  color: inherit;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.article-list--thumb-rows .article-card a.article-list-row--with-thumb {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}

.article-card a:hover {
  text-decoration: none;
}

.aspect-1-1 {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #e8e8e8;
  border: 1px solid #ddd;
}

.aspect-1-1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card-body {
  padding: 10px;
}

.article-card-body time {
  font-size: 0.9rem;
  color: #666;
}

.article-ttl {
  margin: 8px 0 4px;
  font-size: 1rem;
}

.article-desc {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

.article-meta {
  margin: 0 0 16px;
  color: #666;
  font-size: 0.9rem;
}

.article-detail-thumb {
  margin: 0 0 24px;
  max-width: 720px;
}

.article-content {
  margin: 24px 0;
}

/* ── お問い合わせ（inquiry） ── */
.inquiry-form label {
  display: block;
  margin-top: 12px;
}

.inquiry-form input[type="text"],
.inquiry-form input[type="email"],
.inquiry-form input[type="tel"],
.inquiry-form input[type="number"],
.inquiry-form input[type="date"],
.inquiry-form input[type="url"],
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  max-width: 600px;
  padding: var(--fc-ctrl-pad-y) var(--fc-ctrl-pad-x);
  font-size: var(--fc-ctrl-font);
  line-height: var(--fc-ctrl-line-height);
  min-height: var(--fc-ctrl-min-h);
  border: 1px solid #ccc;
  border-radius: var(--fc-ctrl-radius);
  box-sizing: border-box;
  background: #fff;
}

.inquiry-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  border-color: var(--fc-link);
  outline: none;
  box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.15);
}

.inquiry-form .required {
  color: #c00;
}

.inquiry-form .btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--fc-link);
  color: #fff;
  border: none;
  border-radius: var(--fc-ctrl-radius);
  font-size: var(--fc-ctrl-font);
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  min-height: var(--fc-ctrl-min-h);
  box-sizing: border-box;
}

.inquiry-form .btn:hover {
  background: var(--fc-link-hover);
}

.product-inquiry {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.product-inquiry-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 15px 15px;
  background: linear-gradient(135deg, var(--fc-link) 0%, var(--fc-link-hover) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
  text-decoration: none;
}

.product-inquiry-banner:hover {
  opacity: 0.95;
  box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
  color: #fff;
}

.product-inquiry-banner-icon {
  font-size: 1.25rem;
}

.inquiry-thanks {
  padding: 24px;
  background: #e3f2fd;
  border-radius: 8px;
}

.inquiry-errors {
  margin: 0 0 16px;
  padding: 12px 20px;
  background: #ffebee;
  color: #c62828;
  border-radius: 4px;
  list-style: none;
}

.inquiry-intro {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8e8e8;
}

.inquiry-intro-ttl {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.inquiry-intro p {
  margin: 0 0 16px;
  line-height: 1.7;
}

.inquiry-intro-subttl {
  margin: 16px 0 8px;
  font-size: 1.05rem;
}

.inquiry-intro-note {
  margin: 0 0 0 1.2em;
  padding: 0;
  list-style: disc;
}

.inquiry-intro-note li {
  margin: 4px 0;
  line-height: 1.6;
}

.inquiry-product-info {
  margin-bottom: 20px;
  padding: 16px;
  background: #f0f8ff;
  border: 1px solid #e8f0fa;
  border-radius: 8px;
}

.inquiry-product-name {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--fc-link);
}

.inquiry-product-link {
  margin: 0;
  font-size: 0.95rem;
}

.inquiry-product-link a {
  color: var(--fc-link);
}

.inquiry-confirm {
  margin-top: 24px;
}

.inquiry-confirm-ttl {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.inquiry-confirm-note {
  margin: 0 0 20px;
  color: #666;
}

.inquiry-confirm-dl {
  margin: 0 0 24px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
}

.inquiry-confirm-dl dt {
  margin-top: 12px;
  font-weight: bold;
  font-size: 0.9rem;
  color: #666;
}

.inquiry-confirm-dl dt:first-child {
  margin-top: 0;
}

.inquiry-confirm-dl dd {
  margin: 4px 0 0;
}

.inquiry-confirm-body {
  white-space: pre-wrap;
  line-height: 1.4;
}

.inquiry-confirm-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.inquiry-confirm-actions .btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--fc-link);
  color: #fff;
  border: none;
  border-radius: var(--fc-ctrl-radius);
  font-size: var(--fc-ctrl-font);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  min-height: var(--fc-ctrl-min-h);
  box-sizing: border-box;
}

.inquiry-confirm-actions .btn:hover {
  background: var(--fc-link-hover);
  color: #fff;
}

.inquiry-confirm-actions .btn-back {
  background: #757575;
}

.inquiry-confirm-actions .btn-back:hover {
  background: #616161;
  color: #fff;
}

.inquiry-thanks-wrap {
  padding: 24px 0;
}

.inquiry-thanks-wrap .inquiry-thanks {
  margin-bottom: 20px;
}

.btn-back {
  display: inline-block;
  padding: 10px 24px;
  background: #757575;
  color: #fff;
  border-radius: var(--fc-ctrl-radius);
  font-size: var(--fc-ctrl-font);
  text-decoration: none;
  min-height: var(--fc-ctrl-min-h);
  box-sizing: border-box;
}

.btn-back:hover {
  background: #616161;
  color: #fff;
}

/* コミュニティ参加申込（プロフィール入力は .site-mypage .detail-form とマイページ共通） */
.site-mypage .detail-form .community-apply-uid-val {
  color: #602a2a;
  display: block;
  margin-top: 20px;
  font-size: 1.2rem;
  line-height: 1.5;
  font-weight: 700;
}

.community-apply-back {
  margin-top: 24px;
}

.inquiry-product-info .community-apply-fee-ttl {
  margin-top: 16px;
}

.community-apply-cta {
  text-align: center;
}

/* コミュニティ詳細など site-mypage 外でも LP と同系の primary ボタンに揃える */
.community-apply-cta .btn {
  display: inline-block;
  padding: 10px 24px;
  margin-top: 4px;
  background: var(--fc-link);
  color: #fff;
  border: none;
  border-radius: var(--fc-ctrl-radius);
  font-size: var(--fc-ctrl-font);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  min-height: var(--fc-ctrl-min-h);
  box-sizing: border-box;
}

.community-apply-cta .btn:hover {
  background: var(--fc-link-hover);
  color: #fff;
}

.community-apply-cta .btn.btn-reg {
  background: var(--fc-link);
}

.community-apply-cta .btn.btn-reg:hover {
  background: var(--fc-link-hover);
  color: #fff;
}

.inquiry-product-info+.community-apply-cta {
  margin-top: 16px;
}

.community-apply-cta--detail-login {
  margin-top: 20px;
}

.community-apply-cta--detail-after-rooms {
  margin-top: 1.25rem;
}

/* コミュニティ詳細：画像直下に1行あけたステータス表示 */
.community-detail-status {
  margin-top: 1.5rem;
}

.community-detail-status-line {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
}

.community-detail-status-label {
  font-weight: 600;
}

.community-detail-status-note {
  margin: 8px 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.community-detail-speech-block {
  margin-top: 12px;
  color: #c62828;
}

.community-detail-speech-block ul {
  margin: 4px 0 0 1.2em;
  padding: 0;
}

.community-detail-speech-block-note {
  margin: 10px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #b71c1c;
}

.community-room-block-hint {
  margin: 10px 0 0;
  padding: 10px 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  border-radius: 6px;
  background: rgba(198, 40, 40, 0.08);
  border: 1px solid rgba(198, 40, 40, 0.22);
  color: #333;
}

.community-room-link--blocked {
  cursor: not-allowed;
}

/* ブロック中ルーム：全面に 50% の白を重ねる（テキストは前面） */
.community-room-link--blocked .community-room-media::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  z-index: 2;
  pointer-events: none;
}

.community-room-link--blocked .community-room-overlay-text {
  z-index: 3;
}

.community-room-overlay-blocked-msg {
  color: #c62828 !important;
  font-weight: 600;
}

.community-detail-apply-err {
  margin-top: 1rem;
}

.community-detail-member-notice {
  margin-bottom: 1rem;
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.community-detail-member-notice-ttl {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.community-detail-member-notice-body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.community-detail-reject-reason {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(180, 83, 9, 0.08);
  border: 1px solid rgba(180, 83, 9, 0.25);
}

.community-detail-reject-reason-ttl {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #92400e;
}

.community-detail-reject-reason-body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

/* コミュニティ: オフイベント・お知らせ（承認済みメンバー向け一覧） */
.community-detail-contents-blocks {
  margin-top: 1.25rem;
}

.community-detail-content-block {
  margin-bottom: 1.25rem;
}

.community-detail-content-ttl {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.community-detail-content-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.community-detail-content-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8e8e8;
}

.community-detail-content-list a {
  font-weight: 600;
}

.community-detail-content-date {
  font-size: 0.88rem;
  color: #666;
}

/* コミュニティ記事詳細（本文は article/detail と同系の .product-body-text） */
.article-meta .community-content-hide-at {
  margin-left: 12px;
  font-size: 0.9rem;
  color: #666;
}

.community-content-back {
  margin: 32px 0 0;
  font-size: 0.95rem;
}

.mypage-community-announce {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(34, 139, 87, 0.1);
  border: 1px solid rgba(34, 139, 87, 0.28);
  font-size: 0.95rem;
  line-height: 1.55;
}

.mypage-community-list li {
  margin-bottom: 12px;
}

.mypage-community-reject-msg {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(180, 83, 9, 0.08);
  border: 1px solid rgba(180, 83, 9, 0.22);
  font-size: 0.9rem;
  line-height: 1.5;
}

.mypage-community-reject-label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: #92400e;
}

.mypage-community-reject-body {
  white-space: pre-wrap;
  word-break: break-word;
}

/* マイページ: タブ（注文履歴｜プロフィール｜配送住所） */
.mypage-tabs {
  margin: 0 0 24px;
  border-bottom: 1px solid #ddd;
}

.mypage-tabs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mypage-tabs-list li {
  margin: 0;
}

.mypage-tab {
  display: inline-block;
  padding: 10px 18px;
  margin-bottom: -1px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #444;
  text-decoration: none;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  transition: background 0.15s, color 0.15s;
}

.mypage-tab:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #111;
  text-decoration: none;
}

.mypage-tab.is-active {
  background: #fff;
  color: #111;
  border-color: #ddd;
  border-bottom-color: #fff;
  pointer-events: none;
}

.mypage-orders-lead {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.55;
}

.mypage-orders-table-wrap {
  overflow-x: auto;
  margin: 0 0 24px;
  -webkit-overflow-scrolling: touch;
}

.mypage-orders-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.mypage-orders-table th,
.mypage-orders-table td {
  padding: 10px 12px;
  border: 1px solid #e5e5e5;
  text-align: left;
  vertical-align: top;
}

.mypage-orders-table thead th {
  background: #f6f7f9;
  font-weight: 600;
  white-space: nowrap;
}

.mypage-orders-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.mypage-orders-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mypage-orders-track {
  word-break: break-all;
}

.mypage-order-detail-back {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.mypage-order-detail-dl {
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fafafa;
}

.mypage-order-detail-dl dt {
  margin: 12px 0 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
}

.mypage-order-detail-dl dt:first-child {
  margin-top: 0;
}

.mypage-order-detail-dl dd {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.mypage-order-detail-address {
  margin: 0 0 24px;
  line-height: 1.65;
}

.mypage-order-receipt-form {
  margin: 0 0 28px;
  padding: 16px 18px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f9fafb;
}

.mypage-order-receipt-note {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: #555;
  line-height: 1.55;
}

.mypage-order-receipt-form .btn-reg {
  min-width: 12em;
}

/* コミュニティ申込・確認画面の戻る／送信を中央寄せ */
.community-apply-confirm-actions {
  justify-content: center;
}

/* ── 会員マイページ（お問い合わせ・サイド検索と同系の入力・ボタン） ── */
.site-mypage .detail-form .form-p {
  margin: 0 0 16px;
}

.site-mypage .detail-form .form-p label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.site-mypage .form-hint-postal {
  margin: 6px 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #555;
}

/* パスワード表示切替（ts_admin/login.php の .login-password-wrap と同系） */
.site-mypage .detail-form .login-password-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 600px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: var(--fc-ctrl-radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.site-mypage .detail-form .login-password-wrap:focus-within {
  border-color: var(--fc-link);
  box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.15);
}

.site-mypage .detail-form .login-password-wrap input[type="password"],
.site-mypage .detail-form .login-password-wrap input[type="text"] {
  flex: 1;
  border: none;
  border-radius: 0;
  min-width: 0;
  max-width: none;
}

.site-mypage .detail-form .login-password-wrap input:focus {
  box-shadow: none;
  outline: none;
}

.site-mypage .login-password-toggle {
  flex-shrink: 0;
  padding: 12px 16px;
  font-size: 0.85rem;
  background: #f5f5f5;
  color: #555;
  border: none;
  border-left: 1px solid #ccc;
  cursor: pointer;
  transition: background 0.2s;
}

.site-mypage .login-password-toggle:hover {
  background: #eee;
  color: #333;
}

.site-mypage .detail-form input[type="text"],
.site-mypage .detail-form input[type="email"],
.site-mypage .detail-form input[type="password"],
.site-mypage .detail-form input[type="tel"],
.site-mypage .detail-form input[type="number"],
.site-mypage .detail-form input[type="date"],
.site-mypage .detail-form input[type="url"],
.site-mypage .detail-form input[type="search"],
.site-mypage .detail-form select,
.site-mypage .detail-form textarea {
  width: 100%;
  max-width: 600px;
  padding: var(--fc-ctrl-pad-y) var(--fc-ctrl-pad-x);
  font-size: var(--fc-ctrl-font);
  line-height: var(--fc-ctrl-line-height);
  min-height: var(--fc-ctrl-min-h);
  border: 1px solid #ccc;
  border-radius: var(--fc-ctrl-radius);
  box-sizing: border-box;
  background: #fff;
}

.site-mypage .detail-form input[type="checkbox"],
.site-mypage .detail-form input[type="radio"] {
  width: var(--fc-ctrl-check);
  height: var(--fc-ctrl-check);
  min-width: var(--fc-ctrl-check);
  min-height: var(--fc-ctrl-check);
  max-width: none;
  margin: 0 8px 0 0;
  vertical-align: middle;
}

/* iPhone/Safari の date 入力の表示崩れ対策 */
.site-mypage .detail-form input[type="date"] {
  font-weight: 400;
  letter-spacing: normal;
  font-variant-numeric: tabular-nums;
}

.site-mypage .detail-form input[type="date"]::-webkit-datetime-edit {
  padding: 0;
}

.site-mypage .detail-form input[type="date"]::-webkit-datetime-edit-year-field,
.site-mypage .detail-form input[type="date"]::-webkit-datetime-edit-month-field,
.site-mypage .detail-form input[type="date"]::-webkit-datetime-edit-day-field {
  padding: 0;
}

.site-mypage .detail-form input:focus,
.site-mypage .detail-form select:focus,
.site-mypage .detail-form textarea:focus {
  border-color: var(--fc-link);
  outline: none;
  box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.15);
}

.site-mypage .btn {
  display: inline-block;
  padding: 10px 24px;
  margin-top: 4px;
  background: var(--fc-link);
  color: #fff;
  border: none;
  border-radius: var(--fc-ctrl-radius);
  font-size: var(--fc-ctrl-font);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  min-height: var(--fc-ctrl-min-h);
  box-sizing: border-box;
}

.site-mypage .btn:hover {
  background: var(--fc-link-hover);
  color: #fff;
}

.site-mypage .btn-edit {
  background: #5a6268;
}

.site-mypage .btn-edit:hover {
  background: #444950;
  color: #fff;
}

.site-mypage .btn-reg {
  background: var(--fc-link);
}

.site-mypage .btn-reg:hover {
  background: var(--fc-link-hover);
  color: #fff;
}

.site-mypage .btn-del {
  background: #c62828;
}

.site-mypage .btn-del:hover {
  background: #b71c1c;
  color: #fff;
}

.mypage-address-lead {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #444;
  margin: 0 0 16px;
}

.mypage-address-more {
  margin: 8px 0 0;
  font-size: 0.95rem;
}

.mypage-address-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mypage-address-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  background: #fafafa;
}

.mypage-address-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 10px;
}

.mypage-address-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 4px;
}

.mypage-address-line {
  margin: 0 0 6px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.mypage-address-card-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.mypage-address-inline-form {
  display: inline-block;
  margin: 0;
  vertical-align: middle;
}

.mypage-address-inline-form .btn {
  margin-top: 0;
}

.mypage-login-id {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: #555;
}

/* マイページトップ：見出し＋ログアウトボタン横並び */
.mypage-top-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.mypage-top-head .section-ttl {
  margin-bottom: 0;
  flex: 1 1 auto;
}

.mypage-top-head .mypage-order-detail-back {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.95rem;
}

.mypage-logout-btn {
  display: inline-block;
  flex-shrink: 0;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #757575;
  border: 1px solid #c0c0c0;
  border-radius: 20px;
  text-decoration: none;
  background: #fff;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.mypage-logout-btn:hover {
  background: #ffebee;
  color: #c62828;
  border-color: #e57373;
  text-decoration: none;
}


/* マイページログイン：2カラムは維持し、左カラム内のログインブロックのみ中央寄せ */
.site-mypage--login .profile-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-mypage--login .profile-main > * {
  width: min(100%, 28rem);
  max-width: 28rem;
  box-sizing: border-box;
}

.site-mypage--login .profile-main .section-ttl {
  text-align: center;
}

.site-mypage--login .profile-main > p {
  max-width: 28rem;
  text-align: center;
}

.site-mypage--login .detail-form {
  max-width: 28rem;
  width: 100%;
}

.site-mypage--login .detail-form > p {
  text-align: center;
}

.site-mypage-login-community-cta {
  margin-top: 1.5rem;
}

.site-mypage .admin-msg {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.site-mypage .admin-msg-ok {
  background: #e8f5e9;
  color: #2e7d32;
}

.site-mypage .admin-msg-err {
  background: #ffebee;
  color: #c62828;
}

/* ── 会社概要（profile） ── */
.profile-dl {
  max-width: 640px;
}

.profile-dl dt {
  margin-top: 16px;
  font-weight: bold;
  color: var(--fc-link);
}

.profile-dl dd {
  margin: 4px 0 0;
}

.profile-h2 {
  margin: 32px 0 16px;
  font-size: 1.25rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}

.profile-h2:first-of-type {
  margin-top: 0;
}

.profile-main .profile-lead {
  margin: 0 0 16px;
  font-size: 1.08rem;
  font-weight: 600;
  color: #1f6b4c;
  letter-spacing: 0.06em;
}

.profile-main > p {
  margin: 0 0 1.15em;
  line-height: 1.9;
  max-width: 640px;
}

.profile-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.profile-table {
  width: 100%;
  max-width: 640px;
  border-collapse: collapse;
  margin-top: 16px;
}

.profile-table th,
.profile-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.profile-table th {
  font-weight: bold;
  color: var(--fc-link);
  white-space: nowrap;
  width: 1%;
}

/* ── プライバシーポリシー（privacy） ── */
.legal-page .legal-lead {
  margin-bottom: 1.5rem;
  line-height: 1.85;
  color: #333;
}

.legal-page .legal-list {
  margin: 12px 0 0;
  padding-left: 1.25rem;
  line-height: 1.85;
}

.legal-page .legal-list li {
  margin: 10px 0;
}

.legal-page .legal-updated {
  margin-top: 2rem;
  color: #666;
}

/* ── ダウンロード（download） ── */
.page-ttl {
  margin: 0 0 24px;
  font-size: 1.5rem;
}

.download-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.download-list li {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.download-ttl {
  font-weight: bold;
}

.download-desc {
  color: #666;
  font-size: 0.9rem;
}

.download-cta {
  margin-top: 24px;
}

/* ── エラー（404） ── */
.error-404 {
  max-width: 600px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
}

.error-404 h1 {
  font-size: 4rem;
  margin: 0;
  color: var(--fc-link);
}

.error-404 .error-links {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.error-404 .error-links li {
  margin: 8px 0;
}