:root {
  --navy: #106fa0;      /* 日建連サイトに寄せた水色系ブルー（見出し・文字用） */
  --navy-dark: #0b4d70; /* 背景用の少し濃いめの水色（白文字の可読性を確保） */
  --sky-blue: #3fb6e0;  /* アクセント用の明るい水色 */
  --corp-green: #1f8a4c;      /* コーポレートグリーン */
  --corp-green-dark: #166b3a; /* 濃いめのグリーン（ホバー・文字用） */
  --corp-green-light: #eaf7ef; /* 薄いグリーン背景 */
  --safety-orange: #e8641c;
  --safety-orange-dark: #c8500f;
  --bg: #f4f6f8;
  --card-bg: #ffffff;
  --border: #dfe4ea;
  --text: #23303f;
  --text-muted: #6b7788;
  --radius: 6px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a { color: inherit; }

/* ===== Header ===== */
.site-header {
  background: #ffffff;
  color: var(--navy);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.site-header .brand {
  display: block;
  line-height: 0;
}

.site-header .logo {
  height: 44px;
  width: auto;
  display: block;
}

/* 「〇〇が推奨する商品を、つくし工房が取り扱っている」ことを示すバッジ */
.vendor-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--navy-dark);
  background: #e4f6fc;
  border: 1px solid var(--sky-blue);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.header-contact {
  text-align: right;
}

.header-top-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--corp-green-dark);
  text-decoration: none;
  background: var(--corp-green-light);
  border: 1px solid var(--corp-green);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 6px;
}

.header-top-link:hover {
  background: #d9f0e1;
}

.header-top-link-arrow {
  font-size: 13px;
  line-height: 1;
}

.header-contact-numbers {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.hc-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.hc-label {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--safety-orange);
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: .03em;
}

.hc-label-fax { background: var(--navy); }

.hc-item a {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-dark);
  text-decoration: none;
}
.hc-item a:hover { text-decoration: underline; }

.hc-number {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-dark);
}

.hc-badge {
  font-size: 10.5px;
  color: var(--safety-orange-dark);
  background: #fff3ea;
  border: 1px solid #f0cba6;
  padding: 1px 7px;
  border-radius: 999px;
}

.header-contact-hours {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.hc-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--navy-dark);
  background: #e9f7fc;
  border: 1px solid var(--sky-blue);
  border-radius: 3px;
  padding: 0px 5px;
  margin: 0 4px 0 8px;
}
.hc-tag:first-of-type { margin-left: 0; }

@media (max-width: 700px) {
  .header-contact { text-align: left; }
  .header-contact-numbers { justify-content: flex-start; }
  .hc-item a, .hc-number { font-size: 16px; }
}

.site-header .tel {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== Topスライダー（リニューアル告知・ピックアップ商品） ===== */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--navy-dark);
  aspect-ratio: 21 / 7;
}

.hero-slider-track {
  display: flex;
  height: 100%;
  transition: transform .5s ease;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 60px 14px 20px;
  background: linear-gradient(to top, rgba(11,77,112,0.88), rgba(11,77,112,0.15) 80%, transparent);
  color: #fff;
}

.hero-slide-badge {
  display: inline-block;
  background: var(--safety-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.hero-slide-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.hero-slide-price {
  margin: 2px 0 0;
  font-size: 13px;
  color: #ffd9b8;
}

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15,48,87,0.55);
  color: #fff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}

.hero-slider-arrow:hover { background: var(--safety-orange); }
.hero-slider-arrow.prev { left: 12px; }
.hero-slider-arrow.next { right: 12px; }

.hero-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.hero-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width .15s ease, background .15s ease;
}

.hero-slider-dot.active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}

@media (max-width: 700px) {
  .hero-slider { aspect-ratio: 4 / 3; }
  .hero-slide-caption { padding: 10px 46px 10px 14px; }
  .hero-slide-title { font-size: 13px; }
}

/* ===== Page intro ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 40px 24px 32px;
}

.page-hero .breadcrumb {
  font-size: 12px;
  color: #a9c3dc;
  margin-bottom: 10px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: 26px;
  border-left: 5px solid var(--safety-orange);
  padding-left: 12px;
}

.page-hero p {
  max-width: 760px;
  font-size: 14px;
  color: #dbe6f0;
  margin: 0 0 14px;
}

.page-hero .hero-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--safety-orange);
  margin: 0 0 10px;
}

.page-hero .hero-links a {
  display: inline-block;
  margin-right: 18px;
  font-size: 13px;
  color: #ffd9b8;
  text-decoration: none;
}
.page-hero .hero-links a:hover { text-decoration: underline; }

/* ===== Category nav ===== */
.category-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  overflow-x: auto;
}

.category-nav a {
  white-space: nowrap;
  font-size: 13px;
  text-decoration: none;
  color: var(--navy-dark);
  background: #e9f7fc;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #cdeaf5;
  transition: background .15s ease;
}

.category-nav a:hover { background: #d3eef8; }

/* ===== Main content ===== */
main { max-width: 1180px; margin: 0 auto; padding: 8px 24px 60px; }

.category-section { padding-top: 36px; scroll-margin-top: 64px; }

.category-section h2 {
  font-size: 20px;
  color: var(--navy);
  border-bottom: 3px solid var(--safety-orange);
  display: inline-block;
  padding-bottom: 6px;
  margin: 0 0 6px;
}

.category-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 20px;
  background: #fff7ee;
  border: 1px solid #f0dcc4;
  padding: 10px 14px;
  border-radius: var(--radius);
}

.category-footnote {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 18px;
  padding: 10px 14px;
  background: #f0f2f5;
  border-radius: var(--radius);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
}

.product-card:hover {
  box-shadow: 0 6px 18px rgba(15,48,87,0.10);
  transform: translateY(-2px);
}

.product-card .product-name {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 2px;
}

.product-card .product-code {
  font-size: 12px;
  color: var(--safety-orange-dark);
  font-weight: 700;
  margin: 0 0 10px;
}

.product-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.product-images figure {
  margin: 0;
  flex: 1 1 100px;
  text-align: center;
}

.product-images img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fafafa;
  transition: opacity .15s ease;
}

.lightbox-trigger {
  display: block;
  width: 100%;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
}

.lightbox-trigger:hover img { opacity: .85; }

.product-images figcaption {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== ライトボックス（商品画像の拡大表示） ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10,20,30,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox-content {
  max-width: min(90vw, 900px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  background: #fff;
}

.lightbox-caption {
  color: #fff;
  font-size: 13px;
  text-align: center;
  margin: 0;
}

.lightbox-counter {
  color: #cfe0f0;
  font-size: 12px;
  margin: 0;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,0.24); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.24); }

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

@media (max-width: 600px) {
  .lightbox-close { top: 10px; right: 10px; width: 36px; height: 36px; font-size: 20px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; font-size: 16px; }
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-bottom: 10px;
}

.spec-table th, .spec-table td {
  border: 1px solid var(--border);
  padding: 5px 8px;
  text-align: left;
}

.spec-table th {
  background: #f4f6f8;
  width: 34%;
  font-weight: 600;
  color: var(--text-muted);
}

.product-note {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.product-buttons {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  padding: 9px 14px;
  border-radius: 999px;
  flex: 1 1 auto;
}

.btn-order { background: var(--safety-orange); color: #fff; }
.btn-order:hover { background: var(--safety-orange-dark); }

.btn-pdf, .btn-fax {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-pdf:hover, .btn-fax:hover { background: #e9f7fc; }

/* ===== Contact CTA ===== */
.contact-methods {
  margin-top: 48px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.contact-methods h3 { margin: 0 0 8px; font-size: 18px; }
.contact-methods p { font-size: 13px; color: #cfe0f0; margin: 0 0 20px; }

.contact-methods-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--navy-dark);
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 13.5px;
  flex: 1 1 220px;
  max-width: 300px;
  justify-content: center;
  transition: background .15s ease, transform .15s ease;
}

.contact-btn:hover { background: #eef8fc; transform: translateY(-1px); }

.contact-btn-icon { font-size: 18px; line-height: 1; }

.contact-btn-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.contact-btn-label small {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

.contact-btn-tel { color: var(--safety-orange-dark); }

@media (max-width: 600px) {
  .contact-btn { flex: 1 1 100%; max-width: none; }
}

/* ===== 商品検索（Google カスタム検索） ===== */
.site-search-form {
  display: flex;
  align-items: center;
  max-width: 280px;
  margin: 16px auto 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.site-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  padding: 8px 14px;
  background: transparent;
  color: var(--text);
}

.site-search-btn {
  border: none;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background .15s ease;
}

.site-search-btn:hover { background: var(--navy-dark); }

.site-search-credit {
  text-align: center;
  font-size: 10.5px;
  color: var(--text-muted);
  margin: 4px 0 0;
}

/* ===== つくし工房 本サイトへの導線バナー ===== */
.site-return-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1180px;
  margin: 20px auto 0;
  padding: 16px 24px;
  background: var(--corp-green-light);
  border: 1px solid var(--corp-green);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: background .15s ease, transform .15s ease;
}

.site-return-banner:hover {
  background: #d9f0e1;
  transform: translateY(-1px);
}

.site-return-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-return-text strong {
  font-size: 14px;
  color: var(--corp-green-dark);
}

.site-return-text span {
  font-size: 12px;
  color: var(--text-muted);
}

.site-return-arrow {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--corp-green);
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .site-return-banner { padding: 14px 18px; }
}

/* ===== Footer ===== */
.site-footer {
  background: #ffffff;
  color: #23303f;
  font-size: 12px;
  text-align: center;
  padding: 18px;
  border-top: 1px solid var(--border);
}

/* ===== トップへ戻るボタン ===== */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, background .15s ease;
  z-index: 20;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover { background: var(--navy-dark); }

@media (max-width: 600px) {
  .back-to-top { right: 14px; bottom: 16px; width: 42px; height: 42px; font-size: 18px; }
}

/* ===== Loading / error state ===== */
.state-msg {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

@media (max-width: 600px) {
  .page-hero h1 { font-size: 21px; }
  .product-grid { grid-template-columns: 1fr 1fr; }
}
