/* ===========================
   CarPort Pro - メインスタイル
   =========================== */

/* ── リセット & 変数 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #e6b800;
  --primary-dark: #c8a000;
  --primary-light: #fef9e7;
  --accent: #e6b800;
  --accent-dark: #c8a000;
  --dark: #1a1200;
  --dark2: #2d1f00;
  --gray: #6b6452;
  --gray-light: #fafaf5;
  --white: #ffffff;
  --gold: #e6b800;
  --gold-light: #fef9e7;
  --gold-gradient: linear-gradient(135deg, #ffe066 0%, #e6b800 50%, #c8a000 100%);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(180,140,0,0.10);
  --shadow-md: 0 8px 32px rgba(180,140,0,0.15);
  --shadow-lg: 0 16px 48px rgba(180,140,0,0.20);
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── ボタン ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: 10px; }
.btn-block { width: 100%; justify-content: center; }
.btn-primary {
  background: var(--gold-gradient);
  color: #3d2800;
  box-shadow: 0 4px 16px rgba(212,160,23,0.4);
  border-color: transparent;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #e6b800 0%, #c8a000 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212,160,23,0.5);
  color: #fff;
}
.btn-outline {
  background: rgba(255,255,255,0.85);
  color: #3d2800;
  border-color: rgba(212,160,23,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.95);
  border-color: var(--gold);
  color: #1a1200;
}
.btn-outline-sm {
  background: transparent;
  color: var(--primary-dark);
  border-color: var(--primary-dark);
  padding: 8px 18px;
  font-size: 0.85rem;
}
.btn-outline-sm:hover { background: var(--primary-dark); color: var(--white); }
.btn-white {
  background: var(--white);
  color: #3d2800;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  border-color: transparent;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}
.btn-outline-white {
  background: transparent;
  color: #3d2800;
  border-color: rgba(50,35,0,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.3); border-color: #3d2800; }

/* ── ヘッダー ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  transition: all var(--transition);
}
.header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.12); }
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.logo-icon {
  width: 44px; height: 44px;
  background: var(--gold-gradient);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #3d2800;
  font-size: 1.2rem;
}
.logo-text { display: flex; flex-direction: column; }
.logo-main {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  display: flex;
  flex-direction: column;
}
.logo-main-line1 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  opacity: 0.8;
}
.logo-main-line2 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.logo-sub {
  font-size: 0.7rem;
  color: var(--gray);
  letter-spacing: 0.05em;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-list a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark);
  position: relative;
  transition: color var(--transition);
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-list a:hover { color: var(--gold); }
.nav-list a:hover::after { width: 100%; }
.nav-cta {
  background: var(--gold-gradient) !important;
  color: #3d2800 !important;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(212,160,23,0.35);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: linear-gradient(135deg, #c8a000, #e6b800) !important; color: #fff !important; opacity: 1; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── ヒーロー ── */
.hero {
  position: relative;
  min-height: 28vh;
  display: flex;
  align-items: center;
  padding: 90px 24px 40px;
  overflow: hidden;
}

/* スライドショー背景 */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }
/* 各スライドの疑似カーポート画像（グラデで代用） */
.hero-slide:nth-child(1) { background: linear-gradient(120deg, #fffde7 0%, #fff9c4 30%, #e6b800 70%, #e6b800 100%); }
.hero-slide:nth-child(2) { background: linear-gradient(120deg, #fff8e1 0%, #ffe082 40%, #e6b800 70%, #c8a000 100%); }
.hero-slide:nth-child(3) { background: linear-gradient(120deg, #ffffff 0%, #fef9e7 40%, #e6b800 65%, #e6b800 100%); }
.hero-slide:nth-child(4) { background: linear-gradient(120deg, #fefefe 0%, #fff3cd 40%, #e6b800 70%, #c8a000 100%); }

.hero-slide-indicators {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(180,130,0,0.35);
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid rgba(180,130,0,0.5);
}
.hero-dot.active {
  background: var(--gold);
  transform: scale(1.3);
  border-color: var(--gold);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fffde7 0%, #fff9c4 40%, #e6b800 80%, #e6b800 100%);
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.08) 100%);
  z-index: 1;
}
.hero-shapes { display: none; }
.shape { display: none; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
  animation: fadeInUp 0.9s cubic-bezier(0.25, 0.1, 0.25, 1) both;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 24px;
  animation: fadeInUp 0.9s cubic-bezier(0.25, 0.1, 0.25, 1) 0.12s both;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 4px 20px rgba(0,0,0,0.4);
}
.hero-title .highlight {
  background: linear-gradient(180deg, #fff5a0 0%, #ffd700 45%, #c8960a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: none;
  font-weight: 900;
  -webkit-font-smoothing: antialiased;
}
.hero-sub {
  display: none;
}
.hero-btns {
  display: none;
}
  animation: fadeInUp 0.9s cubic-bezier(0.25, 0.1, 0.25, 1) 0.24s both;
  line-height: 1.8;
}
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeInUp 0.9s cubic-bezier(0.25, 0.1, 0.25, 1) 0.36s both;
}
.hero-stats {
  display: flex;
  gap: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  width: fit-content;
  animation: fadeInUp 0.9s cubic-bezier(0.25, 0.1, 0.25, 1) 0.48s both;
}
.stat-item { text-align: center; padding: 0 20px; }
.stat-num {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffe066;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-num small { font-size: 0.85rem; }
.stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.85);
}
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.2);
  align-self: stretch;
}
.hero-scroll {
  position: absolute;
  bottom: 8px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  animation: fadeIn 1s ease 1s both;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ── お知らせバー ── */
.news-bar {
  background: linear-gradient(90deg, #c8a000 0%, #e6b800 50%, #e6b800 100%);
  padding: 10px 0;
  overflow: hidden;
}
.news-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.news-label {
  flex-shrink: 0;
  background: rgba(255,255,255,0.3);
  color: #3d2800;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.news-ticker {
  display: flex;
  gap: 60px;
  color: #3d2800;
  font-size: 0.85rem;
  font-weight: 600;
  animation: ticker 20s linear infinite;
  white-space: nowrap;
}
@keyframes ticker { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }

/* ── セクション共通 ── */
.section { padding: 96px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #7a5500;
  background: var(--gold-light);
  border: 1px solid rgba(212,160,23,0.3);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1rem;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
}

/* ── 当店について ── */
.about { background: var(--gray-light); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-img-wrap { position: relative; padding-bottom: 28px; }
.about-img-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* 施工現場フェードスライダー */
.about-fade-slider {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  background: #e2e8f0;
}
.about-fade-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.about-fade-slide.active { opacity: 1; }

.about-img-placeholder {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  gap: 16px;
}
.about-img-placeholder i { font-size: 5rem; opacity: 0.8; }
.about-img-placeholder p { font-size: 1.1rem; font-weight: 500; opacity: 0.9; }
.about-badge-1 {
  position: absolute;
  bottom: 20px; right: 20px;
  background: var(--accent);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.4;
  box-shadow: var(--shadow);
}
/* オーナー動画カード */
.about-owner-wrap {
  position: absolute;
  bottom: -28px; left: -24px;
  width: 210px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
  background: #000;
}
.about-owner-video {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.about-owner-label {
  background: rgba(10, 10, 10, 0.85);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.owner-company {
  font-size: 0.6rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: normal;
  line-height: 1.4;
}
.owner-name {
  font-size: 0.75rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.about-img-placeholder2 {
  background: linear-gradient(135deg, #10b981, #059669);
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  gap: 8px;
}
.about-img-placeholder2 i { font-size: 2.5rem; opacity: 0.8; }
.about-img-placeholder2 p { font-size: 0.75rem; font-weight: 500; opacity: 0.9; }
.about-content h3 {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 20px;
  color: var(--dark);
}
.about-content p {
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.8;
}
.about-points {
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.point-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.point-item i { color: #10b981; font-size: 1.1rem; }

/* ── 商品 ── */
.products { background: var(--white); }
.product-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.tab-btn {
  padding: 10px 24px;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  background: var(--white);
  color: var(--gray);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Noto Sans JP', sans-serif;
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid #f3f4f6;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-img { position: relative; }
.product-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.product-img-placeholder {
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
}
.product-img-placeholder i { font-size: 4rem; opacity: 0.8; }
.product-img-placeholder.blue { background: linear-gradient(135deg, #1a56db, #3b82f6); }
.product-img-placeholder.indigo { background: linear-gradient(135deg, #4338ca, #6366f1); }
.product-img-placeholder.green { background: linear-gradient(135deg, #059669, #10b981); }
.product-img-placeholder.teal { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.product-img-placeholder.orange { background: linear-gradient(135deg, #ea580c, #f97316); }
.product-img-placeholder.yellow { background: linear-gradient(135deg, #d97706, #f59e0b); }
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}
.product-badge.popular { background: var(--accent); color: var(--white); }
.product-badge.new { background: #ef4444; color: var(--white); }
.product-badge.eco { background: #10b981; color: var(--white); }
.product-info { padding: 24px; }
.product-info h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.product-desc { color: var(--gray); font-size: 0.88rem; margin-bottom: 14px; line-height: 1.7; }
.product-specs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.product-specs span {
  font-size: 0.78rem;
  color: var(--gray);
  background: var(--gray-light);
  padding: 4px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.product-price { margin-bottom: 16px; }
.price-from { display: block; font-size: 0.75rem; color: var(--gray); margin-bottom: 4px; }
.price-num { font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); }
.price-num small { font-size: 1rem; }
.products-cta {
  text-align: center;
  margin-top: 48px;
  padding: 40px;
  background: linear-gradient(135deg, #c9960a 0%, #e8b020 30%, #f5ce50 55%, #e8b020 80%, #b8880a 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 24px rgba(180,130,0,0.25);
}
.products-cta > p { font-size: 1.05rem; color: #1a0f00; font-weight: 800; margin-bottom: 20px; }

/* CTAタブUI */
.cta-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.cta-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 22px;
  border-radius: 50px;
  border: 2px solid #d1d5db;
  background: #fff;
  color: #555;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease,
              border-color 0.35s ease, box-shadow 0.35s ease,
              transform 0.25s ease;
  text-decoration: none;
}
.cta-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(30,64,175,0.06);
}
.cta-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30,64,175,0.25);
}
/* シミュレータータブ：ゴールドホバー */
.cta-tab-link {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff;
}
.cta-tab-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(202,157,36,0.4);
  transform: translateY(-2px);
}
.cta-tab-content {
  animation: fadeIn 0.25s ease;
}
.cta-tab-content.hidden { display: none; }
.cta-tab-desc {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 16px !important;
}

/* 電話ボタン */
.btn-tel {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 14px rgba(22,163,74,0.3);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}
.btn-tel:hover { opacity: 0.9; transform: translateY(-2px); }

/* LINEボタン */
.btn-line {
  background: #06c755;
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 14px rgba(6,199,85,0.35);
}
.btn-line:hover { opacity: 0.9; transform: translateY(-2px); }
.btn-line i { font-size: 1.3rem; }
/* CTAタブ：アイコンサイズ統一 */
.cta-tab i { font-size: 1rem; width: 1rem; text-align: center; }

/* ── CTA 電話ボックス ── */
.cta-tel-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 32px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 2px solid #e5e7eb;
  max-width: 400px;
  margin: 0 auto;
  animation: fadeIn 0.3s ease;
}
.cta-tel-number {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 2rem;
  font-weight: 900;
  color: #16a34a;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: opacity 0.2s;
}
.cta-tel-number:hover { opacity: 0.75; }
.cta-tel-note {
  font-size: 0.78rem;
  color: var(--gray);
}

/* ── CTA LINEボックス ── */
.cta-line-box {
  animation: fadeIn 0.3s ease;
}
/* PC：QR+テキスト横並び */
.cta-line-pc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px 32px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 2px solid #e5e7eb;
  max-width: 440px;
  margin: 0 auto;
}
.cta-line-qr {
  width: 130px;
  height: 130px;
  border-radius: 12px;
  border: 3px solid #06c755;
  flex-shrink: 0;
}
.cta-line-pc-text {
  text-align: left;
}
.cta-line-pc-text .cta-tab-desc {
  text-align: left;
  margin-bottom: 8px !important;
  line-height: 1.7;
}
.cta-line-handle {
  display: inline-block;
  background: #06c755;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}
/* スマホ：ボタンのみ表示 */
.cta-line-sp { display: none; }

/* ── 選ばれる理由 ── */
.features { background: linear-gradient(135deg, #1a1200 0%, #2d1f00 60%, #3d2800 100%); }
.features .section-tag { background: rgba(245,197,24,0.15); color: #e6b800; border-color: rgba(245,197,24,0.3); }
.features .section-title { color: var(--white); }
.features .section-desc { color: rgba(255,255,255,0.6); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
/* 4・5枚目を2列中央寄せ */
.features-grid .feature-card:nth-child(4) {
  grid-column: 1 / 2;
  margin-left: auto;
  width: 100%;
}
.features-grid .feature-card:nth-child(5) {
  grid-column: 2 / 3;
  width: 100%;
}
/* 4・5番目を中央寄せするためのラッパー効果 */
.features-grid .feature-card:nth-child(4),
.features-grid .feature-card:nth-child(5) {
  margin: 0 auto;
}
/* 4・5番目だけ2列で中央に寄せる */
.features-row2 {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 0;
}
.features-row2 .feature-card {
  flex: 0 0 calc(33.333% - 12px);
  max-width: calc(33.333% - 12px);
}
.feature-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}
.feature-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  color: var(--white);
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.5;
}
.feature-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* ── 施工の流れ ── */
.flow { background: var(--gray-light); }
.flow-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.flow-step {
  flex: 1;
  min-width: 140px;
  max-width: 200px;
  text-align: center;
  padding: 24px 16px;
  position: relative;
}
.step-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.step-icon {
  width: 64px; height: 64px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4rem;
  color: var(--primary-dark);
  box-shadow: var(--shadow);
  border: 2px solid rgba(212,160,23,0.25);
}
.flow-step h4 { font-size: 0.95rem; font-weight: 800; margin-bottom: 8px; }
.flow-step p { font-size: 0.8rem; color: var(--gray); line-height: 1.6; }
.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 52px;
  color: var(--primary-dark);
  font-size: 1.2rem;
  opacity: 0.6;
}

/* ── 施工実績 ── */
.works { background: var(--white); }
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.work-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid #f3f4f6;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* フェードスライダー */
.work-img-slider {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #e2e8f0;
}
.work-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.work-slide.active { opacity: 1; }

.work-img-placeholder {
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  gap: 12px;
  font-size: 0.9rem;
}
.work-img-placeholder i { font-size: 3.5rem; opacity: 0.7; }
.work-info { padding: 20px; }
.work-tag {
  display: inline-block;
  background: var(--gold-light);
  color: var(--primary-dark);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.work-info h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.work-info p { font-size: 0.85rem; color: var(--gray); margin-bottom: 6px; }

/* ── お客様の声 ── */
.testimonials { background: var(--gray-light); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.testimonial-stars { color: var(--accent); font-size: 1.2rem; margin-bottom: 16px; }
.testimonial-card p { color: var(--gray); line-height: 1.8; margin-bottom: 20px; font-size: 0.9rem; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.author-avatar {
  width: 44px; height: 44px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3d2800;
  font-weight: 800;
  font-size: 1rem;
}
.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.78rem; color: var(--gray); }

/* ── FAQ ── */
.faq { background: var(--white); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  transition: background var(--transition);
}
.faq-question:hover { background: var(--gray-light); }
.faq-icon { flex-shrink: 0; color: var(--primary-dark); transition: transform var(--transition); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer p {
  padding: 0 24px 20px;
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.8;
}
.faq-item.open .faq-answer { max-height: 200px; }

/* ── CTAバナー ── */
.cta-banner {
  background: linear-gradient(135deg, #c8a000 0%, #e6b800 50%, #e6b800 100%);
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.cta-content { text-align: center; position: relative; }
.cta-content h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #3d2800;
  margin-bottom: 16px;
}
.cta-content p {
  color: rgba(50,35,0,0.75);
  margin-bottom: 36px;
  font-size: 1rem;
  line-height: 1.8;
}
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── お問い合わせ ── */
.contact { background: var(--gray-light); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-item i {
  width: 48px; height: 48px;
  background: var(--gold-gradient);
  color: #3d2800;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item div { display: flex; flex-direction: column; gap: 4px; }
.contact-item strong { font-size: 0.95rem; font-weight: 700; }
.contact-item span { font-size: 0.85rem; color: var(--gray); }
.tel-num { font-size: 1.4rem; font-weight: 800; color: var(--primary-dark); }
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}
.required {
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  color: var(--dark);
  transition: border-color var(--transition);
  outline: none;
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,160,23,0.15); }
.form-group textarea { resize: vertical; }

/* ── フッター ── */
.footer { background: var(--dark); color: rgba(255,255,255,0.8); }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 64px;
}
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 20px; line-height: 1.8; }
.footer-brand .logo-main { color: var(--white); }
.footer-brand .logo-main-line1 { color: rgba(255,255,255,0.75); }
.footer-brand .logo-main-line2 { color: var(--white); }
.footer-brand .logo-sub { color: rgba(255,255,255,0.5); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 { color: var(--white); font-size: 0.88rem; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.05em; }
.footer-col li { margin-bottom: 10px; }
.footer-col a, .footer-col span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ── トップへ戻るボタン ── */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  background: var(--gold-gradient);
  color: #3d2800;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover { background: linear-gradient(135deg, #e6b800, #c8a000); transform: translateY(-2px); }

/* ── アニメーション ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
/* グリッド内の各アイテムに順番に遅延をかける */
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }
.reveal-delay-5 { transition-delay: 0.60s; }

/* ── カラードット 共通 ── */
.color-dot {
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
/* ハーフ&ハーフ（2色） */
.color-dot-half::before,
.color-dot-half::after {
  content: '';
  position: absolute;
  inset: 0;
}
.color-dot-half::before { background: var(--c1); clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); }
.color-dot-half::after  { background: var(--c2); clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%); }
/* 薄色に枠線 */
.color-dot-bordered { border: 1px solid #ccc; }

/* ── カード内カラードット（sm = 14px） ── */
.color-dot-sm { width: 14px; height: 14px; }
.card-colors {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 4px;
}
.card-colors-label {
  font-size: 0.72rem;
  color: var(--gray);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.card-color-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
/* ホバーでツールチップ代わりの拡大 */
.card-color-dots .color-dot-sm:hover {
  transform: scale(1.45);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  z-index: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* ── モーダル内カラーUI（lg = 22px） ── */
.color-dot-lg { width: 22px; height: 22px; }
.modal-colors {
  margin: 18px 0 4px;
}
.modal-colors h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.modal-colors h4 i { color: var(--primary); }
.modal-color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.modal-color-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: default;
  transition: background 0.15s, border-color 0.15s;
  background: #f8f8f8;
}
.modal-color-item:hover {
  background: #f0f4ff;
  border-color: var(--primary-light);
}
.modal-color-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════
   モーダル タブUI
   ══════════════════════════════════════════════ */
.modal-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 20px;
  margin-top: 0;
}
.modal-tab {
  flex: 1;
  padding: 12px 10px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color 0.18s, border-color 0.18s;
}
.modal-tab:hover { color: #2563eb; }
.modal-tab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  background: #eff6ff;
  border-radius: 6px 6px 0 0;
}
.modal-tab i { font-size: 0.9rem; }
.modal-tab-panel { animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* 動画パネル */
.modal-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}
.modal-video-iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.modal-video-label {
  font-size: 0.82rem;
  color: var(--gray);
  text-align: center;
  margin-top: 4px;
}

/* ══════════════════════════════════════════════
   価格シミュレーター
   ══════════════════════════════════════════════ */
.modal-simulator {
  margin-top: 0;
}

/* 各行 */
.sim-body { display: flex; flex-direction: column; gap: 14px; }
.sim-row  { display: flex; flex-direction: column; gap: 8px; }
.sim-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #444;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sim-label-sub { font-weight: 400; color: #999; font-size: 0.78rem; }

/* カラーグリッド */
.sim-color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.sim-color-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 20px;
  border: 2px solid #e5e7eb;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color .18s, background .18s;
  background: #fff;
  white-space: nowrap;
}
.sim-color-item:hover  { border-color: #2563eb; background: #eff6ff; }
.sim-color-item.active { border-color: #2563eb; background: #dbeafe; font-weight: 700; }

/* カラードット小サイズ */
.color-dot-sm {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* サイズセレクト */
.sim-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sim-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 100px;
}
.sim-select-label {
  font-size: 0.72rem;
  color: #888;
  font-weight: 600;
}
.sim-select-wrap select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1.5px solid #d1d5db;
  font-size: 0.84rem;
  color: #1a1a2e;
  background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  transition: border-color .18s;
}
.sim-select-wrap select:focus { outline: none; border-color: #2563eb; }

/* オプション */
.sim-options { display: flex; flex-direction: column; gap: 7px; }

/* 屋根材選択ボタン */
.sim-roof-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.sim-roof-item {
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1.5px solid #e5e7eb;
  background: #fafafa;
  font-size: 0.84rem;
  transition: border-color .18s, background .18s;
  user-select: none;
}
.sim-roof-item:hover  { border-color: #d4a017; background: #fffbeb; }
.sim-roof-item.active { border-color: #d4a017; background: #fef3c7; font-weight: 700; }

.sim-option-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1.5px solid #e5e7eb;
  background: #fafafa;
  transition: border-color .18s, background .18s;
  font-size: 0.84rem;
  user-select: none;
}
.sim-option-item:hover { border-color: #2563eb; background: #eff6ff; }
.sim-option-item input[type=checkbox] { display: none; }
.sim-option-check {
  width: 16px;
  height: 16px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  flex-shrink: 0;
  transition: all .15s;
  position: relative;
}
.sim-option-item input:checked ~ .sim-option-check {
  background: #2563eb;
  border-color: #2563eb;
}
.sim-option-item input:checked ~ .sim-option-check::after {
  content: '';
  position: absolute;
  top: 1px; left: 4px;
  width: 5px; height: 8px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}
.sim-option-name  { flex: 1; color: #333; }
.sim-option-price { font-size: 0.78rem; color: #2563eb; font-weight: 700; }

/* 金額ブレイクダウン */
.sim-result {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
  border-radius: 12px;
  padding: 14px 16px;
  border: 1.5px solid #bfdbfe;
}
.sim-breakdown { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.sim-breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.83rem;
  color: #555;
}
.sim-breakdown-row span:last-child { font-weight: 600; color: #333; }
.sim-discount span { color: #dc2626 !important; }
.sim-total-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  border: 2px solid #2563eb;
  margin-bottom: 8px;
}
.sim-total-label { font-size: 0.82rem; font-weight: 700; color: #1a1a2e; }
.sim-total-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: -.02em;
}
.sim-note {
  font-size: 0.72rem;
  color: #888;
  text-align: right;
  margin: 0;
}

/* レスポンシブ */
@media (max-width: 600px) {
  .sim-selects { flex-direction: column; }
  .sim-color-grid { gap: 5px; }
  .sim-color-item { font-size: 0.73rem; padding: 4px 7px; }
}

/* ── トースト通知 ── */
.toast {
  position: fixed;
  bottom: 90px; right: 32px;
  background: var(--dark);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 9999;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success i { color: #10b981; }

/* ── モーダル 矢印ナビゲーション ── */
.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}
.modal-arrow:hover { background: rgba(0,0,0,0.7); transform: translateY(-50%) scale(1.1); }
.modal-arrow-left  { left: 10px; }
.modal-arrow-right { right: 10px; }
.modal-arrow.hidden { display: none; }
.modal-img-counter {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* ── モーダル サムネイルスクロールバー（最大15枚対応） ── */
#mainImage {
  width: 100%;
  height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f3f4f6;
  margin-bottom: 10px;
  position: relative;  /* 矢印・カウンターの基準 */
}
#mainImageInner {
  width: 100%; height: 100%;
}
#mainImageInner img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
#mainImageInner .image-placeholder {
  width: 100%; height: 100%;
}
#mainImage .image-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold), var(--primary-dark));
}
#thumbnailList {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 4px 0;
}

/* ── レスポンシブ ── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-img-wrap { display: block; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .features-row2 .feature-card { width: calc(33.333% - 12px); flex: 0 0 calc(33.333% - 12px); max-width: calc(33.333% - 12px); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: fixed;
    inset: 72px 0 0 0;
    background: white;
    flex-direction: column;
    padding: 32px 24px;
    z-index: 999;
  }
  .nav-list { flex-direction: column; gap: 0; align-items: flex-start; }
  .nav-list li { width: 100%; border-bottom: 1px solid #f3f4f6; }
  .nav-list a { display: block; padding: 16px 0; font-size: 1rem; }
  .hamburger { display: flex; }
  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }
  .hero { padding: 100px 24px 60px; }
  .hero-stats {
    flex-wrap: nowrap;
    padding: 10px 12px;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .stat-item { padding: 0 10px; flex: 1; min-width: 0; }
  .stat-num { font-size: 1.1rem; }
  .stat-num small { font-size: 0.7rem; }
  .stat-label { font-size: 0.6rem; white-space: nowrap; }
  .stat-divider { display: block; }
  .hero-btns { flex-direction: column; }
  .flow-steps { flex-direction: column; align-items: center; }
  .flow-arrow { transform: rotate(90deg); padding: 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .features-row2 { flex-wrap: wrap; }
  .features-row2 .feature-card { flex: 0 0 calc(50% - 12px); width: calc(50% - 12px); max-width: none; }
  .works-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .back-to-top { bottom: 20px; right: 20px; }
  /* about セクション：スマホでは縦積み・高さ調整 */
  .about-img-wrap { margin-bottom: 40px; padding-bottom: 16px; }
  .about-fade-slider { height: 240px; }
  .about-img-placeholder { height: 240px; }
  .about-owner-wrap {
    bottom: -16px; left: -12px;
    width: 160px;
  }
  .about-owner-video {
    height: 100px;
  }
  .owner-company { font-size: 0.5rem; }
  .owner-name { font-size: 0.65rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .section { padding: 64px 0; }
  .section-title { font-size: 1.7rem; }
  .features-grid { grid-template-columns: 1fr; }
  .features-row2 { flex-direction: column; }
  .features-row2 .feature-card { flex: 0 0 100%; width: 100%; max-width: none; }
  .footer-links { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .hero-stats { padding: 8px 8px; }
  .stat-item { padding: 0 6px; flex: 1; min-width: 0; }
  .stat-num { font-size: 1rem; }
  .stat-label { font-size: 0.55rem; }
}

/* ── 追加カラー（product-img-placeholder） ── */
.product-img-placeholder.purple  { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.product-img-placeholder.pink    { background: linear-gradient(135deg, #db2777, #f472b6); }
.product-img-placeholder.amber   { background: linear-gradient(135deg, #d97706, #fbbf24); }
.product-img-placeholder.red     { background: linear-gradient(135deg, #dc2626, #f87171); }
.product-img-placeholder.cyan    { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.product-img-placeholder.lime    { background: linear-gradient(135deg, #65a30d, #a3e635); }

/* ── 商品フィルター ── */
.product-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 28px;
  border-radius: 999px;
  border: 2px solid #e5e7eb;
  background: var(--white);
  color: var(--gray);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Noto Sans JP', sans-serif;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

@media (max-width: 768px) {
  .product-filters {
    flex-wrap: nowrap;
    gap: 7px;
    margin-bottom: 28px;
    padding: 0 4px;
  }
  .filter-btn {
    padding: 8px 14px;
    font-size: 0.78rem;
    white-space: nowrap;
    flex: 1;
    text-align: center;
  }
}

/* ── メーカーグループ ── */
.product-grid {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.product-group { display: block; }
.manufacturer-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--primary-light);
}
.manufacturer-header h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 4px;
}
.manufacturer-header p {
  font-size: 0.88rem;
  color: var(--gray);
}
.manufacturer-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.product-group.hidden { display: none; }

/* ── 商品詳細モーダル ── */
.product-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.product-modal.open { display: flex; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}
.modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.3s ease;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: var(--gray-light);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  color: var(--gray);
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  transition: all var(--transition);
}
.modal-close:hover { background: #e5e7eb; color: var(--dark); }
.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: calc(90vh);
  overflow: hidden;
}
.modal-gallery {
  background: var(--gray-light);
  padding: 24px 28px 28px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  overflow-y: auto;
  height: 100%;
}
.modal-info {
  padding: 32px;
  overflow-y: auto;
  height: 100%;
  box-sizing: border-box;
}
.image-placeholder {
  height: 100%;
  background: linear-gradient(135deg, var(--gold), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 5rem;
  border-radius: var(--radius);
}
.thumb-item {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}
.thumb-item:hover { transform: scale(1.05); }
.thumb-item.active { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(230,184,0,0.3); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.4rem;
}
/* .modal-info は上で定義済み */
.modal-header-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.modal-header-info h2 { font-size: 1.4rem; font-weight: 900; line-height: 1.3; }
.modal-badge {
  flex-shrink: 0;
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}
.modal-desc { color: var(--gray); font-size: 0.9rem; line-height: 1.8; margin-bottom: 20px; }
.modal-specs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.modal-spec-tag {
  background: var(--gray-light);
  color: var(--gray);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 4px;
}
.modal-price {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}
.modal-price .price-num { font-size: 1.8rem; }
.modal-features {
  margin-bottom: 24px;
}
.modal-features h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}
.modal-features ul { display: flex; flex-direction: column; gap: 8px; }
.modal-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray);
}
.modal-features li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}
.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .modal-body { grid-template-columns: 1fr; }
  .modal-gallery { border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 20px; max-height: 40vh; }
  .modal-info { padding: 20px; max-height: none; }
  .modal-tab { font-size: 0.78rem; padding: 10px 6px; }
  .manufacturer-products { grid-template-columns: 1fr; }
}

/* ── CTA スマホ切り替え ── */
@media (max-width: 768px) {
  /* 電話：番号を少し小さく */
  .cta-tel-number { font-size: 1.5rem; }
  .cta-tel-box { padding: 20px; }
  /* LINE：PC用QR非表示→ボタン表示 */
  .cta-line-pc { display: none; }
  .cta-line-sp { display: inline-flex; }
}
