.price { font-weight: 700; color: var(--ink-900); }
.carousel { position: relative; overflow: hidden; max-width: 100%; }
.carousel-track { display: flex; gap: 16px; padding: 20px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track { -ms-overflow-style: none; scrollbar-width: none; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: var(--white); color: var(--ink-900); border: 1px solid var(--line); border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; z-index: 5; }
.carousel-btn.prev { left: -12px; }
.carousel-btn.next { right: -12px; }

/* 見えるカード数（デスクトップ2、タブレット2、モバイル1） */
.carousel .showcase-card { flex: 0 0 calc(50% - 8px); min-width: calc(50% - 8px); }
@media (max-width: 768px) {
  .carousel .showcase-card { flex: 0 0 calc(50% - 8px); min-width: calc(50% - 8px); }
  .showcase-media { height: auto !important; min-height: auto; padding: 0; display: block !important; margin: 0; }
  .showcase-media img { width: 100%; height: auto !important; object-fit: contain; object-position: center; position: relative !important; transform: none !important; }
  .showcase-media .main-image { position: relative !important; inset: auto; display: block; }
  .showcase-media .hover-image { display: none !important; }
  .thumbnail { width: 60px; height: 60px; padding: 4px; }
  .showcase-image-container { gap: 8px; margin-bottom: 0 !important; }
  .showcase-card .title { font-size: 1rem; }
  .showcase-card .body { margin-top: 0 !important; padding-top: 0 !important; }
}

/* タブレット〜狭めデスクトップでもナビが切れないように、1024px以下でハンバーガー切替 */
@media (max-width: 1024px) {
  .primary-nav .nav-list { 
    display: none;
    position: fixed; 
    top: 56px;
    left: 0;
    right: 0;
    width: 100%; 
    max-height: calc(100vh - 56px);
    max-height: calc(100dvh - 56px);
    background: rgba(255,255,255,0.98); 
    backdrop-filter: blur(8px); 
    display: none; 
    flex-direction: column; 
    padding: 8px 16px; 
    gap: 2px;
    border-bottom: 1px solid var(--line); 
    z-index: 999;
  }
  .primary-nav .nav-list li { margin: 0; }
  .nav-toggle { display: inline-block !important; }
  .primary-nav.open .nav-list { display: flex !important; }
  .primary-nav a { width: 100%; text-align: left; padding: 10px 16px !important; font-size: 0.9rem !important; min-height: 44px; display: flex; align-items: center; }
  .nav-contact { background: var(--brand-blue-800); color: var(--white); border-radius: 4px; }
  .nav-line { background: var(--accent-green-dark); color: var(--white); border-radius: 4px; justify-content: center !important; gap: 8px; text-align: center !important; }
}
@media (max-width: 480px) {
  .brand { min-width: auto; }
  .brand-title { position: static; font-size: 0.85rem; margin-left: 4px; }
  .carousel .showcase-card { flex: 0 0 calc(100% - 32px); min-width: calc(100% - 32px); margin: 0 16px; }
  .showcase-media { height: auto !important; min-height: auto; padding: 0; display: block !important; margin: 0; }
  .showcase-media img { width: 100%; height: auto !important; object-fit: contain; object-position: center; position: relative !important; transform: none !important; }
  .showcase-media .main-image { position: relative !important; inset: auto; display: block; }
  .showcase-media .hover-image { display: none !important; }
  .thumbnail { width: 50px; height: 50px; padding: 4px; }
  .showcase-image-container { gap: 6px; margin-bottom: 0 !important; }
  .showcase-card .title { font-size: 0.95rem; }
  .showcase-card .desc { font-size: 0.85rem; }
  .showcase-card .body { margin-top: 0 !important; padding-top: 0 !important; }
}
:root {
  --brand-blue-50: #f1f7fb;
  --brand-blue-100: #e3f0f9;
  --brand-blue-200: #cfe4f3;
  --brand-blue-400: #6fa8dc;
  --brand-blue-600: #2e7fbf;
  --brand-blue-700: #1f5c8a;
  --brand-blue-800: #174b71;
  --brand-blue-900: #12395a;
  --ink-900: #0a1b2a;
  --ink-800: #152a3e;
  --ink-700: #243a52;
  --ink-600: #3b5772;
  --ink-500: #4b6a86;
  --ink-300: #8da7bd;
  --ink-100: #d9e3ec;
  --white: #ffffff;
  --gray-100: #f7f7f9;
  --gray-200: #eff1f5;
  --gray-300: #e6e8ee;
  --line: #e0e6ee;
  --accent-red: #d34245;
  --accent-green: #06c755;
  --accent-green-dark: #059a45;
  --accent-green-darker: #047a38;
  --accent-wechat: #1aad19;
  --accent-wechat-dark: #158114;
  --cta-orange: #ff7a00;
  --cta-orange-dark: #e66a00;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
html, body { height: 100%; max-width: 100vw; overflow-x: hidden; }
body {
  margin: 0;
  padding-top: 80px;
  font-family: 'Noto Sans JP', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.8;
}

img { max-width: 100%; height: auto; display: block; object-fit: cover; }
a { color: var(--brand-blue-700); text-decoration: none; }

.container { width: min(1100px, 95%); margin: 0 auto; padding: 0 10px; }
.section { padding: 72px 0; scroll-margin-top: 88px; overflow-x: hidden; }
.section-title { font-size: clamp(1.5rem, 2.4vw, 2.25rem); line-height: 1.2; letter-spacing: 0.02em; }
[id] { scroll-margin-top: 88px; }
.no-wrap { white-space: nowrap !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* スマホ専用改行（768px以下で表示） */
.sp-only { display: none; }
@media (max-width: 768px) {
  .sp-only { display: inline; }
}

/* セクション内の箇条書きの黒点を削除 */
.section ul { list-style: none; padding-left: 0; }

/* ヘッダー */
.site-header {
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  z-index: 1000;
  width: 100%;
  max-width: 100vw;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 12px; 
  padding: 12px 0; 
  height: 80px; 
  max-width: 100%;
}
.brand { position: relative; display: flex; align-items: flex-start; min-width: 200px; }
.brand-link { display: flex; align-items: center; }
.brand-title { position: absolute; top: 12px; left: 85px; font-weight: 900; letter-spacing: 0.02em; font-size: clamp(0.9rem, 1.8vw, 1.1rem); color: var(--brand-blue-600); white-space: nowrap; }
.brand-logo { height: 80px; width: auto; object-fit: contain; }
.primary-nav .nav-list { display: flex; gap: 12px; align-items: center; list-style: none; margin: 0; padding: 0; }
.primary-nav a { font-size: 0.9rem; display: block; padding: 8px 10px; border-radius: 4px; white-space: nowrap; }
.primary-nav a:not(.nav-contact):not(.nav-line):hover, .primary-nav a:not(.nav-contact):not(.nav-line):focus-visible { background: var(--gray-200); }
.primary-nav .nav-contact:hover, .primary-nav .nav-contact:focus-visible { background: var(--brand-blue-900); }
.primary-nav .nav-line:hover, .primary-nav .nav-line:focus-visible { background: var(--accent-green-darker); }
.nav-contact { color: var(--white); background: var(--brand-blue-800); }
.nav-contact:hover, .nav-contact:focus-visible { background: var(--brand-blue-900); }
.nav-line { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-green-dark); color: var(--white); min-width: 100px; justify-content: center; text-align: center; }
.nav-line:hover, .nav-line:focus-visible { background: var(--accent-green-darker); }
.nav-line svg { width: 16px; height: 16px; flex-shrink: 0; transform: translateY(2px); }

.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: var(--ink-900); margin: 5px 0; }

/* Hero */
.hero { position: relative; color: var(--white); overflow-x: hidden; max-width: 100vw; }
.hero-bg { position: absolute; inset: 0; background-image: url('img/background.jpeg'); background-size: cover; background-position: center 100%; filter: saturate(110%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: min(600px, 85vh); max-width: 100%; padding-top: 0; }
.hero-copy { padding: 32px 0 64px; }
.hero-image { display: flex; justify-content: center; align-items: center; }
.hero-image img { max-width: 110%; max-height: 650px; object-fit: contain; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.15)); transform: scale(1.05); }
.hero-badge-wrapper { display: inline-block; }
.hero-badge { background: #79B3CE; color: var(--white); padding: 8px 16px; border-radius: 16px; font-size: clamp(0.875rem, 1.8vw, 1rem); font-weight: 500; display: inline-block; }
.hero-title { font-weight: 900; font-size: clamp(1.6rem, 4.5vw, 3rem); text-shadow: none; word-break: keep-all; overflow-wrap: anywhere; white-space: normal !important; margin-top: 20px; }
.hero { overflow-x: clip; }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border: 1px solid var(--brand-blue-700); background: transparent; color: var(--brand-blue-700); border-radius: 4px; font-weight: 600; cursor: pointer; min-height: 44px; }
.btn i { font-size: 1rem; }
.btn-primary { background: var(--brand-blue-700); color: var(--white); border-color: var(--brand-blue-700); }
.btn-primary:hover { background: var(--brand-blue-800); border-color: var(--brand-blue-800); }
.btn-secondary { background: var(--brand-blue-600); color: var(--white); border-color: var(--brand-blue-600); }
.btn-secondary:hover { background: var(--brand-blue-700); border-color: var(--brand-blue-700); }
.btn-orange { background: var(--cta-orange); color: #fff; border-color: var(--cta-orange); }
.btn-orange:hover { background: var(--cta-orange-dark); border-color: var(--cta-orange-dark); }
.hero .btn-orange { padding: 12px 90px; font-size: 1.2rem; font-weight: 700; min-width: 300px; }
.btn-outline { background: transparent; color: var(--brand-blue-700); border-color: var(--brand-blue-700); }
.btn-outline:hover { background: var(--brand-blue-700); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink-700); border-color: var(--line); }
.btn-ghost:hover { background: var(--gray-200); }
.btn.full { width: 100%; }
.cta-fill { /* MVボタン塗りつぶし */ box-shadow: none; }

/* Floating QR 削除（不要指定） */

/* Problem / Solution */
.problem { padding: 80px 0; background: var(--white); text-align: center; }
.problem-title { margin-bottom: 30px; color: var(--ink-900); }
.problem-title .highlight-blue { font-weight: 700; color: var(--brand-blue-700); }

/* 吹き出し丸 */
.problem-bubbles { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 28px; margin-bottom: 40px; }
.problem-bubble-item { display: flex; flex-direction: column; align-items: center; width: 180px; opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.problem-bubble-item.fade-in { opacity: 1; transform: translateY(0); }
.problem-bubble-item:nth-child(1) { transition-delay: 0s; }
.problem-bubble-item:nth-child(2) { transition-delay: 0.15s; }
.problem-bubble-item:nth-child(3) { transition-delay: 0.3s; }
.problem-bubble-item:nth-child(4) { transition-delay: 0.45s; }
.problem-bubble { position: relative; width: 180px; height: 180px; background: #F6D330; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 18px; }
.problem-bubble p { font-size: 0.875rem; line-height: 1.6; font-weight: 600; color: var(--ink-900); white-space: pre-wrap; text-align: center; margin: 0; }

/* 矢印 */
.problem-arrow { position: relative; height: 2px; background: #F6D330; max-width: 640px; margin: 0 auto 40px; }
.arrow-line { width: 100%; height: 2px; background: #F6D330; }
.arrow-tip { position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 8px solid #F6D330; }

/* 解決文 */
.problem-solution { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 500; color: var(--ink-800); margin: 0; line-height: 1.4; }
.problem-solution .brand-highlight { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; color: var(--ink-900); }

.solution .solution-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: center; }
.asym { transform: translateY(8px); }

/* Solution cards (対応セクション) */
.solution-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.solution-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--white); border-radius: 0; }
.solution-card .media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.solution-card .media-portrait img { aspect-ratio: 3 / 4; object-fit: cover; }
.solution-card .body { padding: 14px; display: grid; gap: 8px; }
.solution-card .title { font-size: 1.05rem; }

/* Products showcase */
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.showcase-card { text-align: center; display: flex; flex-direction: column; align-items: center; position: relative; }
.showcase-image-container { display: flex; gap: 12px; align-items: flex-start; justify-content: center; width: 100%; position: relative; margin-bottom: 0; }
.showcase-media { width: 100%; height: 420px; padding: 8px; margin: 0 0 0 auto; display: grid; place-items: center center; background: transparent; border: none; overflow: visible; position: relative; flex: 0 0 auto; cursor: crosshair; max-width: 70%; }
.showcase-media img { width: 100%; height: 100%; object-fit: contain; object-position: center; transition: opacity 0.3s ease; pointer-events: none; transform: scale(1); transform-origin: center; }
.showcase-media .main-image { position: absolute; inset: 0; opacity: 1; z-index: 1; }
.showcase-media .hover-image { position: absolute; inset: 0; opacity: 0; z-index: 2; pointer-events: none; }
.zoom-preview { width: 160px; height: 160px; border: 1px solid var(--line); background-repeat: no-repeat; background-size: 350%; background-position: 50% 50%; display: none; flex-shrink: 0; border-radius: 0; position: absolute; top: 0; left: 0; background-color: var(--white); box-shadow: none; z-index: 10; }
.zoom-preview.is-active { display: block; }
.showcase-card .body { padding: 8px 4px; width: 100%; margin-top: 0; }
.showcase-card .body p { margin: 4px 0; }
.showcase-card .title { font-size: 1.25rem; margin: 8px 0 0; font-weight: 700; }
.showcase-card .desc { font-size: 0.95rem; color: var(--ink-600); }
.thumbnail-wrapper { display: flex; flex-direction: column; gap: 8px; margin-top: 0; }
.thumbnail { width: 100px; height: 100px; object-fit: contain; border: 2px solid var(--brand-blue-400); padding: 8px; border-radius: 4px; cursor: pointer; flex-shrink: 0; transition: all 0.2s ease; background: #fff; }
.thumbnail:hover { opacity: 0.8; }
.thumbnail.active { border-width: 3px; }

@media (min-width: 769px) {
  .showcase-media { flex: 0 0 64%; max-width: 64%; }
  .problem-bubble-item { width: 200px; }
  .problem-bubble { width: 200px; height: 200px; padding: 18px; }
  .problem-bubble p { font-size: 0.875rem; line-height: 1.6; }
}

/* Tech */
.tech .tech-copy { background: rgba(255,255,255,0.85); border: 1px solid var(--line); padding: 16px; display: grid; gap: 6px; }
.tech .tech-copy .section-title { margin: 0 0 8px 0; }
.tech .tech-copy p { margin: 0; }
.safety-note { font-size: 0.85rem; color: var(--ink-600); line-height: 1.6; margin-top: 4px; margin-bottom: 0; }
.tech-note { position: static; right: auto; bottom: auto; background: transparent; border: none; padding: 0; margin-top: 12px; text-align: right; }

@media (max-width: 768px) {
  .tech-note { 
    text-align: left !important; 
    margin-top: 8px !important; 
  }
  .disclaimer { 
    text-align: left !important; 
  }
}

/* Features */
.feature-details { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
.feature-detail-item { border: 1px solid var(--line); padding: 20px 24px; background: var(--white); text-align: left; }
.feature-detail-title { font-size: 1.15rem; font-weight: 700; color: var(--brand-blue-700); margin: 0 0 12px 0; }
.feature-detail-item p { margin: 0; line-height: 1.8; }

/* Quality */
.test-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.test-detail-block { border: 1px solid var(--line); padding: 20px; background: var(--white); }
.test-title { font-size: 1.15rem; font-weight: 700; color: var(--brand-blue-700); margin: 0 0 12px 0; }
.test-org { font-size: 0.9rem; color: var(--ink-600); margin: 0 0 12px 0; font-weight: 600; }
.test-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.test-list li { padding-left: 0; }
.small { font-size: 0.85rem; color: var(--ink-600); }
.disclaimer { text-align: right; }

/* Lifestyle photo section (not consecutive with other photo bg) */
.bg-photo { position: relative; isolation: isolate; }
.bg-photo .photo-bg { position: absolute; inset: 0; background-image: var(--bg); background-size: cover; background-position: center; opacity: 0.25; z-index: -1; }
.lifestyle .lifestyle-box { border: 1px solid var(--line); background: rgba(255,255,255,0.8); display: inline-block; padding: 16px 20px; }

/* 品質・エビデンスの背景はフィルターなし＆固定表示 */
.quality.bg-photo .photo-bg { opacity: 1 !important; filter: none !important; background-attachment: fixed; }


/* Proof */
.retailers-row { display: flex; gap: 16px; flex-wrap: wrap; list-style: none; padding: 0; margin: 12px 0 0; }
.retailers-row li { border: 1px solid var(--line); padding: 6px 10px; background: var(--white); font-size: 0.875rem; }

/* Compare */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
thead th { background: var(--gray-200); }

/* About */
.about-center { display: flex; justify-content: center !important; }
.about-table-wrap { width: min(820px, 100%); margin: 0 auto; }
.about .section-title { text-align: center; }
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.company-table th { width: 220px; background: var(--gray-200); color: var(--ink-700); font-weight: 700; }

/* Contact */
.contact-center { display: flex; justify-content: center !important; }
.contact-content-wrap { width: min(820px, 100%); margin: 0 auto; }
.contact .section-title { text-align: center; }
.reply-note { margin: 8px 0 18px; }
.contact-tabs { display: flex; gap: 8px; }
.tab-btn { border: 1px solid var(--brand-blue-700); padding: 10px 12px; background: var(--white); color: var(--brand-blue-700); border-radius: 4px; cursor: pointer; }
.tab-btn[aria-selected="true"] { background: var(--brand-blue-700); color: var(--white); }
.tab-panels { margin-top: 16px; }
.contact-form[hidden] { display: none; }
.contact-form .form-grid { display: grid; grid-template-columns: 1fr; gap: 12px 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.95rem; position: relative; }
.contact-form label > span:first-child { display: flex; align-items: center; }
.required-badge { display: inline-block; background: var(--accent-red); color: var(--white); font-size: 0.75rem; padding: 2px 6px; border-radius: 2px; margin-left: 6px; font-weight: 600; line-height: 1; }
.contact-form input, .contact-form textarea, .contact-form select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 2px; font-size: 1rem; width: 100%; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #999 !important; }
.contact-form select {
  color: #999 !important;
}
.contact-form select:focus {
  color: #999 !important;
}
.contact-form select:valid:not([value=""]) {
  color: var(--ink-900) !important;
}
.contact-form select option {
  color: var(--ink-900) !important;
}
.contact-form select option[disabled] {
  color: #999 !important;
}
.contact-form .full { grid-column: 1 / -1; }
.submit-btn { width: 100%; height: 52px; font-size: 1rem; }

.parallel-channels { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn.line { background: var(--accent-green-dark); border-color: var(--accent-green-dark); color: #fff; }
.btn.line:hover { background: var(--accent-green-darker); border-color: var(--accent-green-darker); }
.btn.line svg { width: 16px; height: 16px; flex-shrink: 0; transform: translateY(2px); }
.btn.wechat { background: var(--accent-wechat); border-color: var(--accent-wechat); color: #fff; }
.btn.wechat:hover { background: var(--accent-wechat-dark); border-color: var(--accent-wechat-dark); }
.btn.email { border-color: var(--ink-700); color: var(--ink-700); background: transparent; }
.btn.email:hover { background: var(--ink-700); color: var(--white); }

.contact-alternative { margin-top: 32px; text-align: center; padding: 24px; background: var(--gray-100); border-radius: 8px; }
.alternative-text { margin-bottom: 16px; color: var(--ink-700); font-size: 0.95rem; }
.contact-social { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; }
.contact-alternative .btn { min-width: 200px; font-weight: 600; }
.wechat-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wechat-qr img { width: 120px; height: 120px; object-fit: contain; border-radius: 8px; }
.wechat-label { font-size: 0.9rem; font-weight: 600; color: var(--ink-700); margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--gray-100); position: relative; z-index: 1; }
.footer-inner { display: flex; flex-direction: column; gap: 20px; padding: 48px 0; }
.footer-top { display: flex; align-items: center; justify-content: flex-start; }
.footer-logo-section { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-logo-section .brand-link { display: block; }
.footer-logo-section .brand-logo { height: 48px; width: auto; }
.footer-brand-title { font-size: 0.9rem; font-weight: 700; color: var(--ink-700); }
.footer-bottom { display: flex; justify-content: flex-start; }
.footer-links { display: flex; gap: 0; align-items: center; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-links li { padding: 0; }
.footer-links li + li::before { content: ""; }
.floating-cta { display: flex; gap: 8px; align-items: center; }
.btn.to-top { border-color: var(--ink-700); color: var(--ink-700); background: var(--white); }
.btn.to-top:hover { background: var(--ink-700); color: var(--white); border-color: var(--ink-700); }

/* 画像横並びのサイズ統一 */
.visuals, .products-grid { display: grid; }
img { object-fit: cover; }

/* レスポンシブ（3段階） */
@media (max-width: 768px) {
  html, body { 
    overflow-x: hidden !important; 
    overflow-y: scroll !important; 
    -webkit-overflow-scrolling: touch; 
    touch-action: pan-y pinch-zoom;
    height: auto !important;
    min-height: 100vh;
  }
  .header-inner { padding: 8px 0 !important; height: 56px; }
  .brand { display: flex; align-items: center; gap: 6px; }
  .brand-logo { height: 40px; width: auto; }
  .brand-title { position: static; margin-left: 0; }
  .primary-nav .nav-list { display: none; top: 56px; padding: 6px 12px; max-height: calc(100dvh - 56px); }
  .primary-nav.open .nav-list { display: flex; }
  .primary-nav a { padding: 8px 12px !important; font-size: 0.85rem !important; min-height: 40px; }
  body {
    padding-top: 56px !important;
  }
  [id] { scroll-margin-top: 60px; }
  .hero-inner { 
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding: 8px 0 16px;
  }
  .hero-copy { 
    display: contents;
  }
  .hero-badge-wrapper { 
    order: 1; 
    margin-bottom: 8px;
  }
  .hero-title { 
    order: 2; 
    text-align: left !important;
    margin-top: 0;
    margin-bottom: 0;
  }
  .hero-image { 
    order: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    margin: 8px 0 12px;
    left: auto;
    bottom: auto;
    z-index: 1;
  }
  .hero-image img {
    max-height: 260px;
    max-width: 220px;
    transform: scale(1);
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
  }
  .hero-ctas {
    order: 4;
    margin-top: 0;
    padding-bottom: 4px;
    justify-content: flex-start !important;
  }
  .hero-badge-wrapper { display: flex; justify-content: flex-start; margin-bottom: 12px; }
  .hero-badge { padding: 6px 12px; font-size: 0.875rem; }
  .hero-title { font-size: clamp(1.4rem, 6vw, 2.2rem) !important; white-space: normal !important; text-align: left !important; }
  .hero-bg { background-position: 85% top !important; }
  .hero-ctas { justify-content: flex-start !important; }
  .hero .btn-orange { 
    padding: 10px 12px !important; 
    font-size: 1rem !important; 
    min-width: auto !important; 
    width: auto !important;
  }
  .problem { padding: 56px 0; }
  .problem-bubble-item { width: 160px; }
  .problem-bubble { width: 160px; height: 160px; padding: 14px; }
  .problem-bubble p { font-size: 0.8rem; line-height: 1.5; }
  .solution .solution-grid { grid-template-columns: 1fr; }
  .solution-cards { grid-template-columns: 1fr; }
  .solution-card .body { gap: 4px; }
  .solution-card .body p { margin-top: 0; }
  .showcase-image-container { margin-bottom: 0; }
  .showcase-card .body { margin-top: 0; padding-top: 0; }
  .showcase-grid { grid-template-columns: 1fr 1fr; }
  /* カルーセルはスワイプで横スクロール（矢印も表示） */
  .carousel .carousel-btn { 
    display: grid; 
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }
  .carousel-btn.prev { left: 10px; }
  .carousel-btn.next { right: 10px; }
  .carousel .carousel-track { 
    grid-auto-flow: column; 
    grid-template-columns: unset; 
    overflow-x: auto; 
    touch-action: auto;
    overscroll-behavior-x: contain;
  }
  .two-col { grid-template-columns: 1fr; }
  .test-details { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-center { justify-content: center !important; }
  .about .section-title { text-align: left !important; }
  .contact-center { justify-content: center !important; }
  .contact .section-title { text-align: left !important; }
  .contact-form .form-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; scroll-margin-top: 60px; }
  .compare { padding-top: 0 !important; }
  .about { padding-top: 0 !important; }
  .contact { padding-top: 0 !important; }
  /* スマホ版では折り返しを許可 */
  .no-wrap { white-space: normal !important; }
  .section-title.no-wrap { white-space: normal !important; }
  .hero-title.no-wrap { white-space: normal !important; }
  .brand-title { white-space: nowrap !important; }
  .footer-inner { padding: 32px 0 !important; }
  .footer-top { flex-direction: column; gap: 16px; align-items: flex-start; }
  .footer-bottom { justify-content: center; }
  .zoom-preview { display: none !important; }
  .retailers-row { 
    display: flex; 
    flex-wrap: nowrap;
    gap: 12px; 
    justify-content: flex-start;
    overflow-x: auto;
  }
  .retailers-row li {
    width: fit-content;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .section { padding: 48px 0; }
  .section-title { font-size: clamp(1.25rem, 6vw, 1.6rem) !important; margin-bottom: 24px; }
  body { font-size: 1rem; line-height: 1.75; }
  .btn { padding: 12px 16px; min-height: 48px; font-size: 1rem; }
  
  /* Hero buttons */
  .hero-ctas { flex-direction: column; width: auto; gap: 16px; align-items: flex-start; }
  .hero-ctas .btn { width: auto; min-width: unset; }
  .hero .btn-orange { 
    padding: 10px 12px !important; 
    font-size: 1rem !important; 
    min-width: auto !important; 
    width: auto !important;
  }
  
  /* Contact buttons stacked */
  .contact-social { flex-direction: column; gap: 24px; width: 100%; }
  .contact-social .btn { width: 100%; }
  
  /* Adjust form inputs for mobile touch */
  .contact-form input, 
  .contact-form textarea, 
  .contact-form select {
    font-size: 1rem; /* Prevent zoom on iOS */
    padding: 12px;
    min-height: 48px;
  }
  
  .wechat-qr img { width: 100px; height: 100px; }
}

/* デスクトップでは全製品を同時表示（2列グリッド） */
@media (min-width: 1025px) {
  .carousel .carousel-btn { display: none; }
  .carousel { overflow: visible; }
  .carousel .carousel-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    transform: none !important;
  }
  .carousel .showcase-card { flex: none; min-width: auto; }
  .showcase-media { height: 420px; }
  .thumbnail { width: 100px; height: 100px; }
}


