:root {
  --page-max: 960px;
  --line: #e5e7eb;
  --brand: #0c6233;
  --sticky-offset: 72px;
  --calendar-open: #1a7f47;
  --calendar-closed: #999;
  --calendar-holiday: #d32f2f;
}

/* Google Fonts - Noto Sans JPを読み込み（サイト全体で使用） */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap");

html {
  overflow-x: hidden;
}

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", sans-serif;
  background: #f7f7f7;
  margin: 0;
  padding-bottom: 150px;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  color: #000000;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

h2,
h3 {
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 12px;
}

.content-wrapper {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.shop-info-section {
  padding: 0;
  text-align: center;
  background-color: #f7f7f7;
}

.shop-logo-container {
  margin-bottom: 0;
  padding: 0;
}

.shop-logo-image {
  width: 100%;
  max-width: 960px;
  height: auto;
  border-radius: 0;
  margin-bottom: 0;
}

.slideshow-bg {
  background-color: #000;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 20px 0;
}

.slideshow-container {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.slideshow-slide {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0;
}

.slideshow-dots {
  display: none;
}

.fade {
  animation: fade 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.promo-banner-container {
  margin: 0 auto 30px;
  max-width: 1200px;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 8px;
}

.promo-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0;
}

.square-buttons-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 0 20px;
}

.square-button {
  display: block;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
  cursor: pointer;
  padding: 0;
  border: none;
  background: none;
}

.square-button:hover {
  transform: translateY(-5px);
}

.square-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0;
}

.toggle-image-section {
  margin: 0 auto 40px;
  max-width: 1200px;
  padding: 0 20px;
}

.toggle-dynamic-image {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 0;
}

.product-intro {
  text-align: center;
  padding: 10px 20px;
}

.product-intro h2 {
  font-size: 32px;
  font-family: "Helvetica Neue", "Helvetica", Arial, sans-serif;
  font-weight: 700;
  color: #000000;
  margin: 15px 0;
  line-height: 1.3;
}

.product-intro img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

.product-description {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", sans-serif;
  font-size: 1.125rem; /* 18px（17pxから増加） */
  font-weight: 450;
  line-height: 2.2; /* 2.0から増加 */
  color: #2c2c2c;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 0 1rem;
  margin: 1.5rem auto;
  max-width: 900px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.product-features {
  text-align: center;
  margin: 10px 0 20px;
}

.feature-badge {
  display: inline-block;
  background-color: #e41717;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.product-photo-wrapper {
  text-align: center;
  margin: 20px auto;
  max-width: 960px;
}

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

.promo-double {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  max-width: 1200px;
  flex-wrap: nowrap;
}

.promo-double .promo-banner-image {
  display: block;
  max-width: 100%;
}

.promo-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 30px auto;
  align-items: center;
  width: 100%;
  max-width: 960px;
  padding: 0 20px;
  box-sizing: border-box;
}

.promo-button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
}

.promo-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  margin-bottom: 0;
}

.promo-button-2,
.promo-button-3 {
  aspect-ratio: 4 / 1;
}

.promo-button:hover {
  opacity: 0.9;
}

.horizontal-button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: nowrap;
  flex-direction: row;
}

.horizontal-button-group a {
  display: block;
  flex: 1 1 auto;
  max-width: 300px;
  min-width: 200px;
}

.horizontal-button-group img {
  width: 100%;
  aspect-ratio: 3 / 1.2;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.horizontal-button-group img:hover {
  transform: scale(1.05);
}

.square-grid-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin: 40px auto;
  max-width: 1200px;
}

.square-grid-container-4 {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  gap: 12px;
  justify-content: center;
  margin: 30px auto;
}

.square-button-link {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  width: 100%;
}

.square-button-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.square-button-link:hover img {
  transform: scale(1.05);
}

.breadcrumb-image-wrapper {
  text-align: center;
  margin: 30px auto;
  max-width: 960px;
}

.ui-breadcrumb-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.card-section {
  margin-top: 40px;
  position: relative;
  padding-bottom: 40px;
}

.card-scroll-wrapper {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #f7f7f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.cards-host .card-scroll-wrapper {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: auto;
  background: #f7f7f7;
}

.card-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  margin: 30px auto 0;
  max-width: 1100px;
  padding: 0 20px 0 20px;
  scroll-behavior: smooth;
  position: relative;
}

.card-container-wrapper {
  position: relative;
}

.scroll-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #333;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.scroll-nav-btn:hover {
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(-50%) scale(1.05);
}

.scroll-nav-btn.prev {
  left: 0;
}

.scroll-nav-btn.next {
  right: 0;
}

.scroll-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.scroll-nav-btn:disabled:hover {
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cards-host .card-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  scroll-behavior: smooth;
  margin: 30px auto 0;
  max-width: 1100px;
  padding: 0 20px 0 20px;
  box-sizing: border-box;
}

.cards-host .card-container::before {
  display: none;
}

.card-container::after {
  content: "";
  display: block;
  min-width: 20px;
  height: 1px;
  flex-shrink: 0;
}

/* カード内の車種名（Aクラス (W176)など）- 非常に強く */
.card > p:nth-of-type(1) {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 10px 0;
  line-height: 1.4;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 16px;
  box-sizing: border-box;
  width: 100%;
  max-width: 340px;
  min-width: 280px;
  flex-shrink: 0;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.guide-card {
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
}

.guide-image-container {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.guide-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin-bottom: 0;
}

.guide-text-container {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}

.guide-maker {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.guide-car {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  line-height: 1.8;
  word-break: keep-all;
  display: block;
}

.guide-type {
  font-size: 14px;
  color: #666;
  white-space: pre-line;
}

.guide-pdf-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.guide-pdf-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-top: 12px;
  margin-bottom: 4px;
}

.btn-pdf {
  display: block;
  background: #1c2347;
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease;
}

.btn-pdf:hover {
  background: #0f1836;
}

.btn-pdf-standard {
  background: #606060;
}

.btn-pdf-standard:hover {
  background: #4a4a4a;
}

.btn-pdf-highgrade {
  background: #333333;
}

.btn-pdf-highgrade:hover {
  background: #1a1a1a;
}

.btn-pdf-topgrade {
  background: #443919;
}

.btn-pdf-topgrade:hover {
  background: #2d2512;
}

.card[data-grade="high-grade"] {
  background-color: #ededed;
}

.card[data-grade="top-grade"] {
  background-color: #d9d9d9;
}

.card img {
  display: block;
  margin: 20px auto;
  width: 100%;
  height: auto;
  max-width: 320px;
}

.label-banner {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  border-radius: 6px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sonicplus {
  font-family: "Helvetica Neue", "Helvetica", Arial, sans-serif;
  font-size: 1.5em;
  font-weight: 700;
  margin: 0;
}

.type-box {
  display: inline-flex;
  background-color: #555;
  color: #fff;
  font-family: "Helvetica Neue", "Helvetica", Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  height: 25px;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  line-height: 1;
  transform: translateY(-1px);
}

.model {
  font-family: "Helvetica Neue", "Helvetica", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.6em;
  color: #000;
  margin: 0;
  letter-spacing: 0.02em;
}

.price-info {
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
  color: #1a1a1a;
}

.total-price {
  background: #f2f2f2;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.total-price .label {
  font-size: 13px;
  color: #333;
}

.total-price .number {
  font-size: 22px;
  font-weight: 700;
  color: #000;
}

.price-info .yen {
  font-size: 0.9em;
  vertical-align: baseline;
}

.button-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.btn-reserve {
  flex: 1;
  background: #276746;
  color: white;
  font-size: 15px;
  padding: 10px 0;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
}

.btn-reserve:hover {
  background: #1f5538;
}

.btn-pdf-primary {
  background: #1c2347;
  color: white;
}

.btn-pdf-primary:hover {
  background: #0f1836;
}

.btn-sub {
  flex: 1;
  background: #1c2d5a;
  color: white;
  font-size: 14px;
  padding: 10px 0;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
}

.btn-sub:hover {
  background: #101f3f;
}

.btn-small {
  display: inline-block;
  background: #888;
  color: #fff;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  margin: 6px 6px 0 0;
}

.btn-large {
  display: inline-block;
  background: #2c3526;
  color: #f4f2dc;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  margin: 4px 4px 0 0;
}

.btn-time {
  display: inline-block;
  background: #f2f2f2;
  color: #000;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 4px;
  margin-top: 4px;
}

.btn-standard {
  background: #606060;
  color: white;
}

.btn-highgrade,
.btn-high-grade {
  background: #333333;
  color: white;
}

.btn-topgrade,
.btn-top-grade {
  background: #443919;
  color: white;
}

.btn-front-rear {
  background-color: #1c2347;
  color: #fff;
}

.btn-front-only,
.btn-front {
  background-color: #013514;
  color: #fff;
}

.btn-rear-only,
.btn-rear {
  background-color: #340056;
  color: #fff;
}

.display-toggle-buttons,
.spec-filter-buttons {
  text-align: center;
  margin: 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  max-width: 1100px;
}

.cards-host .display-toggle-buttons,
.cards-host .spec-filter-buttons {
  margin-left: auto;
  margin-right: auto;
}

.toggle-button,
.spec-btn {
  background-color: #eee;
  color: #333;
  border: 1px solid #ccc;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.toggle-button:hover,
.spec-btn:hover {
  background-color: #ddd;
}

.toggle-button.active,
.spec-btn.active {
  background-color: #1c2d5a;
  color: white;
  border-color: #1c2d5a;
}

.scroll-buttons {
  display: none !important;
}

.cards-host .scroll-buttons {
  display: none !important;
}

.scroll-button {
  display: none !important;
}

.scroll-button:hover {
  background-color: #276746;
}

.scroll-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.fixed-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #333333;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
}

.footer-content-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 20px;
}

.shop-name {
  text-align: center;
  font-size: 21px;
  color: #ffffff;
  margin: 10px 0;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 5px;
}

.btn-rectangle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  color: #ffffff;
  font-weight: normal;
  min-width: 120px;
  box-sizing: border-box;
  border: 2px solid lightgrey;
}

.btn-call,
.btn-mail {
  background-color: #004d40;
}

.btn-storeinfo {
  background-color: #1a237e;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background: #fff;
  margin: 15% auto;
  padding: 30px 40px;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  position: relative;
}

.modal-content h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #333;
}

.phone-number {
  font-size: 2.2rem;
  font-weight: bold;
  color: #1310ba;
  margin: 0;
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: #666;
}

.close:hover {
  color: #000;
}

.accordion-block {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 40px;
  margin-bottom: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.accordion-front-img {
  position: absolute;
  left: 50%;
  top: 50px;
  transform: translateX(-50%);
  width: 340px;
  max-width: 80%;
  z-index: 10;
  opacity: 0.95;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#makerAccordion.maker-accordion {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.maker-accordion details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  margin: 12px 0 20px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  scroll-margin-top: var(--sticky-offset);
  -webkit-tap-highlight-color: transparent;
}

.maker-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(#fff, #fbfbfc);
  font-weight: 800;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.maker-accordion summary:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.maker-accordion summary::-webkit-details-marker {
  display: none;
}

.maker-accordion .sum-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.maker-accordion .sum-badge {
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 8px;
  flex-shrink: 0;
}

.maker-accordion .maker-name-pc {
  font-size: 18px;
  font-weight: 800;
}

.maker-accordion .maker-name-sp {
  display: none;
}

.maker-accordion .maker-icon {
  height: 36px;
  width: auto;
  object-fit: contain;
  margin-left: auto;
  margin-right: 16px;
  transform: translateY(10px);
  transition: transform 0.25s ease;
}

.maker-accordion details[open] .maker-icon {
  transform: translateY(10px) scaleX(-1);
}

.maker-accordion .chev {
  transition: transform 0.25s ease;
  color: #0f1836;
  flex-shrink: 0;
}

.maker-accordion details[open] .chev {
  transform: rotate(180deg);
}

.maker-accordion .body {
  padding: 0;
  background: #fafafa;
}

.carfull-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff, #f7f8fa);
  border: 1px solid #eef1f5;
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.carfull-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 280px;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 8px 10px;
  cursor: pointer;
}

.carfull-search input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
  background: transparent;
  cursor: pointer;
  pointer-events: none;
  user-select: none;
}

.carfull-search .btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.carfull-search .btn-clear {
  border: none;
  background: transparent;
  font-size: 16px;
  padding: 0 6px;
  cursor: pointer;
}

.carfull-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  max-height: 280px;
  overflow: auto;
  z-index: 50;
  display: none;
}

.carfull-suggest ul {
  list-style: none;
  margin: 6px;
  padding: 0;
}

.carfull-suggest li {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  white-space: normal;
  overflow: hidden;
  line-height: 1.5;
}

.carfull-suggest li:hover,
.carfull-suggest li.active {
  background: #f2f6f3;
}

.carfull-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.carfull-group-header {
  width: 100%;
  background: #333333;
  color: #ffffff;
  padding: 8px 16px;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  border-radius: 6px;
  margin-top: 12px;
  margin-bottom: 4px;
  cursor: default;
  user-select: none;
}

.carfull-group-header:first-of-type {
  margin-top: 4px;
}

.carfull-btn {
  border: 1px solid #d9dee6;
  background: #fff;
  color: #0f172a;
  border-radius: 9999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.carfull-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carfull-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.carfull-btn span {
  color: #930012 !important;
}

.carfull-btn.active span {
  color: #fffbc7 !important;
}

.cards-host {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cards-host .carfull-toolbar {
  margin-left: 12px;
  margin-right: 12px;
}

.card-section {
  position: relative;
}

.collapse-accordion-btn {
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 20px auto 0;
  padding: 8px 20px;
  background: #e8e8e8;
  color: #666;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.collapse-accordion-btn:hover {
  background: #d5d5d5;
  border-color: #b8b8b8;
  color: #333;
  transform: translateY(-1px);
}

.collapse-accordion-btn:active {
  transform: translateY(0);
}

.collapse-accordion-btn svg {
  flex-shrink: 0;
}

.close-accordion-btn {
  display: none !important;
}

.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

.card-scroll-wrapper:has(#cardContainer:not(:has(> :nth-child(4))))
  .display-toggle-buttons {
  display: none !important;
}

@media screen and (min-width: 768px) {
  .promo-double {
    flex-direction: row;
    gap: 20px;
  }

  .promo-double .promo-banner-image {
    width: 48.9%;
  }

  .promo-buttons-container {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
    padding: 0;
  }

  .promo-button {
    width: calc(50% - 7.5px);
    max-width: none;
  }

  .square-grid-container {
    grid-template-columns: repeat(7, 1fr);
  }

  .square-grid-container-4 {
    grid-template-columns: repeat(4, 160px);
  }

  .square-button-link {
    max-width: 160px;
  }

  .product-intro h2 {
    font-size: 32px;
  }

  .cards-host .card-scroll-wrapper {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .cards-host .card-container {
    display: flex !important;
    gap: 20px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding: 0 20px !important;
    scroll-behavior: smooth !important;
    margin: 30px auto 0 !important;
    max-width: 1100px !important;
    padding: 0 20px 0 20px !important;
    box-sizing: border-box !important;
  }

  .cards-host .card-container::before {
    display: none !important;
  }

  .card-section
    .card-scroll-wrapper:has(#cardContainer > :nth-child(3)):not(
      :has(#cardContainer > :nth-child(4))
    ) {
    width: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: visible !important;
  }

  .card-section
    .card-scroll-wrapper:has(#cardContainer > :nth-child(3)):not(
      :has(#cardContainer > :nth-child(4))
    )
    #cardContainer {
    display: flex !important;
    justify-content: center !important;
    gap: 20px !important;
    max-width: 960px !important;
    margin: 0 auto !important;
    overflow: visible !important;
  }

  .card-section
    .card-scroll-wrapper:has(#cardContainer > :nth-child(3)):not(
      :has(#cardContainer > :nth-child(4))
    )
    .scroll-buttons,
  .card-section
    .card-scroll-wrapper:has(#cardContainer > :nth-child(3)):not(
      :has(#cardContainer > :nth-child(4))
    )
    .display-toggle-buttons {
    display: none !important;
  }

  .card-section
    .card-scroll-wrapper:has(#cardContainer > :nth-child(3)):not(
      :has(#cardContainer > :nth-child(4))
    )
    #cardContainer
    > .card {
    flex: 0 0 320px !important;
    max-width: 320px !important;
  }
}

@media screen and (max-width: 767px) {
  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  .carfull-filter {
    display: none !important;
  }

  .card-scroll-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .cards-host .card-scroll-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .cards-host .card-container {
    padding: 0 16px 10px 16px !important;
    gap: 16px !important;
    scroll-padding: 0 16px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-scroll-snap-type: x mandatory !important;
    width: 100vw !important;
    max-width: 100vw !important;
    -webkit-overflow-scrolling: touch !important;
    overflow-x: auto !important;
    margin: 30px 0 0 0 !important;
  }

  .cards-host .card-container::after {
    content: "" !important;
    display: block !important;
    min-width: 16px !important;
    height: 1px !important;
    flex-shrink: 0 !important;
  }

  .cards-host .card-container::before {
    display: none !important;
  }

  .card-scroll-wrapper::after {
    display: none;
  }

  .accordion-block {
    width: 100%;
    margin-left: 0;
  }

  #makerAccordion.maker-accordion {
    width: 100%;
    padding: 0 8px;
  }

  .accordion-front-img {
    opacity: 0 !important;
  }

  .maker-accordion summary {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 8px;
  }

  .maker-accordion .sum-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .maker-accordion .sum-badge {
    font-size: 10px;
    padding: 3px 7px;
  }

  .maker-accordion .maker-name-pc {
    display: none;
  }

  .maker-accordion .maker-name-sp {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    width: 100%;
  }

  .maker-accordion .maker-icon {
    height: 36px !important;
    margin-left: auto;
    margin-right: 8px;
  }

  .shop-info-section {
    padding: 0;
  }

  .shop-logo-container {
    margin: 0;
    padding: 0;
  }

  .shop-logo-image {
    margin: 0;
    padding: 0;
  }

  .slideshow-container {
    margin-bottom: 20px;
  }

  .promo-banner-container {
    margin-bottom: 20px;
  }

  .square-buttons-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
  }

  .square-button {
    max-width: calc(50% - 10px);
  }

  .toggle-image-section {
    margin-bottom: 30px;
  }

  .promo-double {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .promo-double .promo-banner-image {
    width: 90%;
  }

  .breadcrumb-image-wrapper {
    margin: 20px auto;
    padding: 0 10px;
  }

  .ui-breadcrumb-img {
    max-width: 100%;
  }

  .square-grid-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-intro h2 {
    font-size: 24px;
  }

  .scroll-button {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .card-container {
    padding: 0 16px 10px 16px;
    gap: 16px;
    scroll-padding: 0 16px;
    scroll-snap-type: x mandatory;
    -webkit-scroll-snap-type: x mandatory;
    width: 100vw;
    max-width: 100vw;

    -webkit-overflow-scrolling: touch;
  }

  .card-container::after {
    content: "";
    display: block;
    min-width: calc(100vw - 260px - 32px);
    height: 1px;
    flex-shrink: 0;
  }

  .card {
    max-width: 260px;
    min-width: 260px;
    flex-shrink: 0;
    scroll-snap-align: start;
    -webkit-scroll-snap-align: start;
    scroll-snap-stop: normal;
    -webkit-scroll-snap-stop: normal;
  }

  .card img {
    max-width: 240px;
  }

  .display-toggle-buttons,
  .scroll-buttons {
    padding: 0 16px;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .cards-host .display-toggle-buttons,
  .cards-host .scroll-buttons,
  .cards-host .spec-filter-buttons {
    padding: 0 16px !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: calc(100% - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    box-sizing: border-box !important;
  }

  .shop-name {
    font-size: 18px;
  }

  .btn-rectangle {
    padding: 8px 16px;
    min-width: 110px;
  }

  .modal-content {
    width: 94%;
    padding: 24px 20px;
  }

  /* スマホ用 product-description 最適化 */
  .product-description {
    font-size: 1rem; /* 16px（15pxから増加） */
    font-weight: 450;
    line-height: 2.1; /* 1.9から増加 */
    letter-spacing: 0.04em;
    padding: 0 0.75rem;
    margin: 1.25rem auto;
  }
}
.card-section {
  margin-top: 40px;
  position: relative;
  padding-bottom: 70px;
}

.sp-maker-guide {
  display: block;
  margin-bottom: 20px;
}

@media (min-width: 769px) {
  .sp-maker-guide {
    display: none;
  }
}

.sp-maker-guide-photo img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .scroll-nav-btn {
    display: none;
  }

  .collapse-accordion-btn {
    margin: 15px 20px 0;
    padding: 7px 16px;
    font-size: 12px;
  }

  .sp-maker-guide {
    margin-bottom: 6px !important;
  }

  .accordion-block {
    margin-top: 6px !important;
    padding-top: 0 !important;
  }

  .horizontal-button-group {
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
  }

  .horizontal-button-group a {
    flex: none !important;
    max-width: 280px !important;
    width: 100% !important;
  }
}

.works-preview-section {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 3rem;
  padding: 3rem 0;
  background: linear-gradient(to bottom, #f9f9f9, #fff);
}

.works-preview-header {
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: var(--page-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}

.works-preview-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.05em;
}

.works-preview-title-image {
  width: 100%;
  max-width: 960px;
  height: auto;
  display: block;
  margin: 0 auto 0.5rem;
  padding: 0;
  box-sizing: border-box;
}

.works-preview-subtitle {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

.works-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
  max-width: var(--page-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.work-preview-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: default;
}

.work-preview-image {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  background: #f0f0f0;
}

.work-preview-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-preview-card {
  position: relative;
}

.work-expand-icon {
  display: none;
}

.work-expand-icon:hover {
  display: none;
}

.work-preview-badge {
  display: none;
}

.work-preview-badge.badge-sd {
  display: none;
}

.work-preview-info {
  padding: 1rem;
}

.work-preview-car {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.work-preview-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.work-preview-code {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: linear-gradient(135deg, #4a4a4a, #2c2c2c);
  color: #fff;
  font-family: "Helvetica Neue", "Helvetica", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.work-preview-date {
  display: none;
}

.work-preview-lp-section {
  padding: 0.75rem 1rem 0;
  background: #fafafa;
}

.work-preview-lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #1a5f3a, #0d4027);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(26, 95, 58, 0.3);
}

.work-preview-lp-btn:hover {
  background: linear-gradient(135deg, #0d4027, #082818);
  box-shadow: 0 4px 8px rgba(26, 95, 58, 0.4);
  transform: translateY(-2px);
}

.work-preview-lp-btn svg {
  flex-shrink: 0;
}

.lp-btn-text {
  line-height: 1.4;
}

/* PC画面では改行を無効化 */
.lp-btn-text br {
  display: none;
}

.work-preview-pdf-section {
  padding: 0.75rem 1rem;
  background: #fafafa;
}

.work-preview-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #1a5f3a, #0d4027);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(26, 95, 58, 0.3);
}

.work-preview-pdf-btn:hover {
  background: linear-gradient(135deg, #0d4027, #082818);
  box-shadow: 0 4px 8px rgba(26, 95, 58, 0.4);
  transform: translateY(-2px);
}

.work-preview-pdf-btn svg {
  flex-shrink: 0;
}

.pdf-mobile-br {
  display: none;
}

@media (max-width: 768px) {
  .pdf-mobile-br {
    display: inline;
  }

  /* スマホでLPボタンのテキスト内改行を有効化 */
  .lp-btn-text br {
    display: inline;
  }

  /* スマホでLPボタンを縦並びにして右側テキストを中央揃え */
  .work-preview-lp-btn {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.3rem;
  }

  /* スマホでPDFボタンを縦並びにして右側テキストを中央揃え */
  .work-preview-pdf-btn {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.3rem;
  }
}

.works-preview-cta {
  text-align: center;
  max-width: var(--page-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}

.works-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #1a5f3a, #0d4027);
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(26, 95, 58, 0.3);
}

.works-view-all-btn .mobile-br {
  display: none;
}

.works-view-all-btn:hover {
  background: linear-gradient(135deg, #0d4027, #061a12);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 95, 58, 0.4);
}

.works-view-all-btn svg {
  transition: transform 0.3s ease;
}

.works-view-all-btn:hover svg {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .works-preview-section {
    margin: 2rem auto;
    padding: 1.5rem 0;
  }

  .works-preview-title {
    font-size: 1.6rem;
  }

  .works-preview-title-image {
    max-width: 100%;
  }

  .works-preview-subtitle {
    font-size: 0.9rem;
  }

  .works-preview-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    padding: 0 16px;
  }

  .work-expand-icon {
    width: 24px;
    height: 24px;
    font-size: 20px;
    bottom: 10px;
    right: 10px;
  }

  .works-view-all-btn {
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
    max-width: 100%;
    width: calc(100% - 2rem);
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
  }

  .works-view-all-btn .mobile-br {
    display: inline;
  }
}

@media (max-width: 480px) {
  .works-preview-section {
    margin: 1.5rem auto;
    padding: 1rem 0;
  }

  .works-preview-title {
    font-size: 1.4rem;
  }

  .works-preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    padding: 0 16px;
  }

  .work-preview-info {
    padding: 0.8rem;
  }

  .work-preview-car {
    font-size: 0.85rem;
  }

  .work-preview-date {
    font-size: 0.75rem;
  }

  .work-preview-code {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }

  .work-preview-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
  }

  .works-view-all-btn {
    width: calc(100% - 1rem);
    max-width: 100%;
    justify-content: center;
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    box-sizing: border-box;
  }
}

.news-section {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 3rem;
  padding: 2rem 0;
  background: linear-gradient(to bottom, #f9f9f9, #fff);
}

.news-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

.news-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  padding: 1.25rem 1.5rem;
  letter-spacing: 0.15em;
  text-align: center;
  background-color: #ffffff;
  border-radius: 8px 8px 0 0;
  border-bottom: 2px solid #e8e8e8;
}

.news-scroll-area {
  background-color: #ffffff;
  border-radius: 0 0 8px 8px;
  overflow-y: auto;
  max-height: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.news-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e8e8e8;
  transition: background-color 0.2s ease;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background-color: #f5f5f5;
}

.news-date {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
  min-width: 90px;
  letter-spacing: 0.05em;
}

.news-item-title {
  font-size: 1.05rem;
  color: #1a1a1a;
  font-weight: 700;
  line-height: 1.6;
  margin: 0.5rem 0;
}

.news-text {
  flex: 1;
  font-size: 0.95rem;
  color: #2c2c2c;
  font-weight: 425;
  line-height: 1.8;
  letter-spacing: 0.03em;
  margin: 0;
}

.news-scroll-area::-webkit-scrollbar {
  width: 8px;
}

.news-scroll-area::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 0 8px 8px 0;
}

.news-scroll-area::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 4px;
}

.news-scroll-area::-webkit-scrollbar-thumb:hover {
  background: #666;
}

.banner-links-section {
  width: 100%;
  max-width: var(--page-max);
  margin: 2rem auto 1rem;
  padding: 0 16px;
  box-sizing: border-box;
}

.banner-links-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.banner-link {
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.banner-link:hover {
  transform: translateY(-4px);
}

.banner-link img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .news-section {
    padding: 1.5rem 0;
    margin: 0 auto 2rem;
  }

  .news-title {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
  }

  .news-scroll-area {
    max-height: 240px;
  }

  .news-item {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
  }

  .news-date {
    font-size: 0.8rem;
    min-width: auto;
  }

  .news-text {
    font-size: 0.9rem;
    line-height: 1.75;
    letter-spacing: 0.03em;
  }

  .banner-links-section {
    margin: 1.5rem auto 0.5rem;
  }

  .banner-links-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .news-section {
    padding: 1.25rem 0;
  }

  .news-title {
    font-size: 1.2rem;
  }

  .news-scroll-area {
    max-height: 220px;
  }

  .news-item {
    padding: 0.875rem;
  }

  .news-text {
    font-size: 0.85rem;
    line-height: 1.7;
    letter-spacing: 0.02em;
  }

  .banner-links-section {
    margin: 1rem auto 0.5rem;
  }
}

.legal-links-section {
  background: transparent;
  padding: 1rem 0;
  margin: 0;
}

.legal-links-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.legal-links-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.legal-link {
  font-size: 0.8rem;
  color: #666;
  text-decoration: underline;
  font-weight: 400;
  transition: color 0.2s ease;
  letter-spacing: 0.02em;
}

.legal-link:hover {
  color: #333;
}

@media (max-width: 768px) {
  .legal-links-section {
    padding: 0.875rem 0;
  }

  .legal-links-nav {
    gap: 1.5rem;
  }

  .legal-link {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .legal-links-section {
    padding: 0.75rem 0;
  }

  .legal-links-nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .legal-link {
    font-size: 0.7rem;
  }
}

.work-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-modal.active {
  display: block;
  opacity: 1;
}

.work-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.work-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.work-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  background-color: #f9f9f9;
}

.work-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.work-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: all 0.3s ease;
  border-radius: 6px;
  min-width: 44px;
  min-height: 44px;
}

.work-modal-close:hover {
  background-color: #f0f0f0;
  color: #333;
}

.work-modal-body {
  overflow-y: auto;
  padding: 1.5rem;
}

.work-modal-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  background-color: #000;
  padding: 1rem;
  border-radius: 8px;
}

.work-modal-image {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background-color: #1a1a1a;
}

.work-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-modal-info {
  background-color: white;
}

.work-modal-section {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.work-modal-section:last-child {
  margin-bottom: 0;
}

.work-modal-section h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1rem 0;
}

.work-modal-section p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444;
  margin: 0;
}

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

.work-modal-section li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.6;
}

.work-modal-section li:last-child {
  border-bottom: none;
}

.work-modal-section li strong {
  color: #1a1a1a;
  font-weight: 700;
  margin-right: 0.5rem;
}

.modal-product-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.modal-product-code {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #4a4a4a, #2c2c2c);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 8px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.modal-date {
  font-size: 0.95rem;
  color: #999;
  text-align: right;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
  .work-modal-content {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    top: 0;
    left: 0;
    transform: none;
  }

  .work-modal-header {
    padding: 1rem;
  }

  .work-modal-title {
    font-size: 1rem;
  }

  .work-modal-body {
    padding: 1rem;
  }

  .work-modal-images {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .work-modal-section {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .work-modal-section h4 {
    font-size: 0.95rem;
  }

  .work-modal-section p {
    font-size: 0.9rem;
  }

  .work-modal-section li {
    font-size: 0.85rem;
    padding: 0.6rem 0;
  }
}

.work-modal.active .work-modal-content {
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 768px) {
  @keyframes modalSlideIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 768px) {
  .card-scroll-wrapper .scroll-buttons,
  .scroll-buttons {
    display: none !important;
    visibility: hidden !important;
  }

  .card-scroll-wrapper .scroll-button,
  .scroll-button,
  .prev-button,
  .next-button {
    display: none !important;
    visibility: hidden !important;
  }
}

/* ========================
   営業日カレンダー
   ======================== */

.business-calendar-section {
  max-width: var(--page-max);
  margin: 40px auto 40px;
  padding: 0 20px;
  box-sizing: border-box;
}

.calendar-header {
  text-align: center;
  margin-bottom: 20px;
}

.calendar-legend-top {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 15px;
  background: #fafafa;
  border-radius: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.calendar-legend-top .legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #555;
}

.calendar-legend-top .hours-item {
  font-weight: 600;
  color: #1a1a1a;
  margin-left: 10px;
  padding-left: 20px;
  border-left: 2px solid #ddd;
}

.calendar-three-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 0;
}

.calendar-month-wrapper,
.calendar-map-wrapper {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.calendar-month-header-with-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

.calendar-inline-nav-btn {
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #333;
  flex-shrink: 0;
}

.calendar-inline-nav-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.calendar-inline-nav-btn:active {
  transform: scale(0.95);
}

.calendar-inline-nav-spacer {
  width: 32px;
  flex-shrink: 0;
}

/* PC表示: モバイル用次月ボタンを非表示 */
.mobile-next-btn {
  display: none;
}

.calendar-month-header,
.calendar-map-header {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
  letter-spacing: 0.02em;
  flex: 1;
}

.calendar-map-wrapper .calendar-map-header {
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

.calendar-map-wrapper {
  display: flex;
  flex-direction: column;
}

.calendar-map-container {
  flex: 1;
  min-height: 280px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.calendar-map-info {
  text-align: center;
  padding-top: 8px;
}

.map-address {
  font-size: 0.8rem;
  color: #555;
  line-height: 1.6;
  margin: 0 0 10px 0;
}

.map-link {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.map-link:hover {
  color: #0a4d28;
  text-decoration: underline;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day-header {
  text-align: center;
  font-size: 0.6rem;
  font-weight: 600;
  color: #666;
  padding: 6px 0;
  letter-spacing: 0.05em;
}

.calendar-day-header.sunday {
  color: #d32f2f;
}

.calendar-day-header.saturday {
  color: #1976d2;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  border-radius: 5px;
  position: relative;
  transition: all 0.2s ease;
  background: #f8f9fa;
  color: #666;
}

.calendar-day.other-month {
  opacity: 0.3;
}

.calendar-day.today {
  font-weight: 700;
  box-shadow: 0 0 0 2px var(--brand) inset;
}

.calendar-day.open {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f2 100%);
  color: var(--calendar-open);
  font-weight: 600;
}

.calendar-day.open:hover {
  background: linear-gradient(135deg, #c8e6c9 0%, #e8f5e9 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(26, 127, 71, 0.15);
}

.calendar-day.closed {
  background: #f5f5f5;
  color: #bbb;
  position: relative;
}

.calendar-day.closed::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: #ddd;
  transform: translateY(-50%);
}

.calendar-day.special-closed {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #e65100;
  font-weight: 600;
}

.calendar-day.sunday {
  color: #d32f2f;
}

.calendar-day.saturday {
  color: #1976d2;
}

.calendar-day.holiday-text {
  color: #d32f2f !important;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #555;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
}

.legend-dot.open {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 1px solid var(--calendar-open);
}

.legend-dot.closed {
  background: #f5f5f5;
  border: 1px solid #ddd;
  position: relative;
}

.legend-dot.closed::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: #999;
  transform: translateY(-50%);
}

.legend-dot.special-closed {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border: 1px solid #e65100;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .business-calendar-section {
    margin: 30px auto 30px;
  }

  .calendar-header {
    margin-bottom: 15px;
  }

  .calendar-legend-top {
    gap: 15px;
    padding: 12px;
  }

  .calendar-legend-top .legend-item {
    font-size: 0.75rem;
    gap: 6px;
  }

  .calendar-legend-top .hours-item {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    width: 100%;
    justify-content: center;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 5px;
  }

  .calendar-three-columns {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* スマホでは2つ目のカレンダーを非表示 */
  .calendar-three-columns .calendar-month-wrapper:nth-child(2) {
    display: none;
  }

  /* スマホ表示: PC用スペーサーを非表示、モバイル用次月ボタンを表示 */
  .calendar-month-wrapper:first-child .calendar-inline-nav-spacer {
    display: none;
  }

  .mobile-next-btn {
    display: flex !important;
  }

  .calendar-month-wrapper,
  .calendar-map-wrapper {
    padding: 15px;
  }

  .calendar-month-header-with-nav {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .calendar-inline-nav-btn {
    width: 32px;
    height: 32px;
  }

  .calendar-month-header,
  .calendar-map-header {
    font-size: 1rem;
  }

  .calendar-map-wrapper .calendar-map-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .calendar-map-container {
    min-height: 280px;
  }

  .calendar-grid {
    gap: 4px;
  }

  .calendar-day {
    font-size: 0.8rem;
    border-radius: 5px;
  }

  .calendar-day-header {
    font-size: 0.65rem;
    padding: 8px 0;
  }

  .legend-dot {
    width: 12px;
    height: 12px;
  }

  .map-address {
    font-size: 0.75rem;
  }

  .map-link {
    font-size: 0.75rem;
  }
}

/* 製品詳細ページ用のフォント強度調整 */

/* 価格表示（56,100円、16,500円など） */
.price-display,
.product-price,
.installation-fee {
  font-weight: 600 !important;
  color: #1a1a1a !important;
}

/* 製品特徴バッジ（2WAY、ACエレメント、純正カプラーなど） */
.feature-badge,
.product-feature,
.spec-badge {
  font-weight: 600 !important;
}

/* 注記テキスト（＊本製品はフロント専用です...など） */
.product-note,
.specification-note,
.note-text,
p[style*="background"],
.product-info p {
  font-weight: 400 !important;
  font-size: 0.85rem !important;
  line-height: 1.7 !important;
}

/* カード内の注記テキスト（グレー背景のテキスト）の視認性向上 */
.card p[style*="background"],
.card div[style*="background"] {
  font-weight: 300 !important;
  font-size: 0.65rem !important;
  line-height: 1.6 !important;
  color: #2c2c2c !important;
}

/* Copyright表記のスマホ用改行 */
.sp-copyright-br {
  display: none;
}

@media (max-width: 768px) {
  .sp-copyright-br {
    display: inline;
  }
}
/* ========================================
   ページ内ナビゲーションボタン（4つ版・ブランドカラー・間隔調整版）
   ======================================== */

.page-navigation-section {
  width: 100%;
  max-width: var(--page-max);
  margin: 0.25rem auto 1rem;
  padding: 0 16px;
  box-sizing: border-box;
  background: transparent;
  border-top: none;
}

.page-navigation-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  background: #ffffff;
  border: 2px solid #0c6233;
  border-radius: 8px;
  text-decoration: none;
  color: #0c6233;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(12, 98, 51, 0.15);
  cursor: pointer;
}

.nav-btn span {
  text-align: center;
  line-height: 1.3;
  font-size: 14px;
  color: #0c6233;
}

/* ホバー時 - 全ボタン共通 */
.nav-btn:hover {
  background: linear-gradient(135deg, #0c6233 0%, #0a5029 100%);
  border-color: #0c6233;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(12, 98, 51, 0.3);
  transform: translateY(-4px);
}

.nav-btn:hover span {
  color: #ffffff;
}

.nav-btn:active {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(12, 98, 51, 0.3);
}

/* タブレット対応（2列×2行） */
@media (max-width: 1024px) {
  .page-navigation-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

/* スマホ対応（1列・中央揃え） */
@media (max-width: 768px) {
  .page-navigation-section {
    margin: 0.5rem auto 1rem;
    padding: 0 16px;
  }

  .page-navigation-buttons {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .nav-btn {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    font-size: 14px;
  }

  .nav-btn span {
    text-align: center;
    font-size: 15px;
  }
}

/* スマホ対応（小さめ） */
@media (max-width: 480px) {
  .page-navigation-section {
    padding: 0 12px;
  }

  .page-navigation-buttons {
    gap: 10px;
  }

  .nav-btn {
    padding: 12px 16px;
    font-size: 14px;
  }

  .nav-btn span {
    font-size: 14px;
  }
}

/* スムーススクロール */
html {
  scroll-behavior: smooth;
}

/* アクセシビリティ：フォーカス時 */
.nav-btn:focus {
  outline: 3px solid #0c6233;
  outline-offset: 2px;
}

.nav-btn:focus:not(:focus-visible) {
  outline: none;
}

/* プリント時は非表示 */
@media print {
  .page-navigation-section {
    display: none;
  }
}
