* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー */
.header {
  background: #ffd52a;
  color: #111;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  min-height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  font-size: 20px;
  font-weight: bold;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  height: 100%;
  list-style: none;
  gap: 0;
}

.nav li {
  flex: 0 1 auto;
  text-align: center;
}

.header .nav {
  flex: 1;
  min-width: 0;
  align-self: stretch;
}

.nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #111;
  cursor: default;
  padding: 8px 10px;
  font-size: 13px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.nav a:hover {
  background-color: #111;
  color: #ffd52a;
}

/* ヒーロー */
.hero {
  background: #ffd52a;
  color: #111;
  padding: 100px 20px;
  text-align: center;
}

.hero-content h1 {
  display: inline-block;
  max-width: 100%;
  font-size: 48px;
  color: #111;
  padding: 10px 18px;
  border: 7px solid transparent;
  background: linear-gradient(#ffd52a, #ffd52a) padding-box,
    repeating-linear-gradient(135deg, #111 0 8px, #ffd52a 8px 16px) border-box;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 20px;
  line-height: 1.8;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background: white;
  color: #667eea;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:link,
.cta-button:visited {
  color: #667eea;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* 製品セクション */
.products {
  padding: 80px 20px;
  background: white;
}

.products h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 60px;
  color: #333;
  text-decoration: underline;
  text-decoration-color: #ffd52a;
  text-decoration-thickness: 5px;
  text-underline-offset: 10px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.product-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: #f0f0f0;
}

.product-card h3 {
  padding: 20px 20px 10px;
  font-size: 22px;
  color: #333;
}

.product-card p {
  padding: 0 20px 20px;
  color: #666;
  font-size: 14px;
}

.products .product-link {
  display: block;
  padding: 20px;
  background: #ffd52a;
  color: #111;
  text-decoration: none;
  text-align: center;
  font-weight: bold;
  transition: background 0.3s;
}

.products .product-link:hover {
  background: #111;
  color: #ffd52a;
}

/* 動画セクション */
.videos {
  padding: 80px 20px;
  background: #f9f9f9;
}

.videos h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 60px;
  color: #333;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.video-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #ddd;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-card:hover .video-overlay {
  opacity: 1;
}

.video-play-btn {
  background: white;
  border: none;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.video-play-btn:hover {
  transform: scale(1.1);
}

.play-icon {
  font-size: 28px;
  color: #667eea;
}

.video-title {
  padding: 15px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  background: white;
}

/* 特徴セクション */
.features {
  padding: 80px 20px;
  background: white;
}

.features h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 60px;
  color: #333;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.feature-item {
  text-align: center;
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.feature-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #333;
}

.feature-item p {
  color: #666;
  font-size: 14px;
}

/* フッター */
.footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
}

/* モーダル */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: #000;
  margin: 5% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  transition: opacity 0.3s;
}

.modal-close:hover {
  opacity: 0.7;
}

#modal-video {
  border-radius: 5px;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 32px;
  }

  .nav ul {
    gap: 0;
  }

  .products h2,
  .videos h2,
  .features h2 {
    font-size: 28px;
  }

  .product-grid,
  .video-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* 製品詳細ページ */
.product-detail {
  padding: 60px 20px;
  background: white;
}

.product-detail h1 {
  font-size: 40px;
  margin-bottom: 40px;
  color: #333;
  text-align: center;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.product-detail-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-gallery .product-gallery-thumbnails {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.product-gallery-thumbnail {
  flex: 1;
  min-width: 0;
  padding: 4px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.product-gallery-thumbnail.is-active {
  border-color: #667eea;
}

.product-gallery-thumbnail:focus-visible {
  outline: 2px solid #333;
  outline-offset: 2px;
}

.product-gallery-thumbnail img {
  display: block;
  width: 100%;
  height: 72px;
  border-radius: 3px;
  box-shadow: none;
  object-fit: cover;
}

.product-detail-info h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #333;
}

.price {
  font-size: 24px;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 20px;
}

.description {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.8;
}

.product-highlight {
  background: linear-gradient(transparent 55%, #ffd52a 55%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.product-detail-info .specs p {
  line-height: 1.8;
}

.specs h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
}

.specs ul {
  list-style: none;
  margin-bottom: 30px;
}

.specs li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  color: #666;
}

.specs li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

/* 製品特徴セクション */
.product-features {
  padding: 80px 20px;
  background: #f9f9f9;
}

.product-features h2 {
  text-align: center;
  margin-bottom: 24px;
}

.product-features-intro {
  margin: 0 auto 56px;
  max-width: 800px;
  color: #555;
  line-height: 1.8;
  text-align: center;
}

.product-photo-section-intro {
  margin: 48px auto;
  text-align: center;
}

.product-photo-section-intro h2 {
  margin-bottom: 24px;
}

.product-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}

.product-photo-card {
  display: flex;
  flex-direction: column;
  width: 91%;
  margin: 0;
  justify-self: center;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-photo-card[hidden] {
  display: none;
}

.product-photo-card:first-child {
  align-self: start;
  height: fit-content;
}

.product-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.product-photo-card figcaption {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px 10px;
}

.product-photo-card-spec {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 10px 14px 10px 20px;
  border-radius: 999px;
  background: #fff9dc;
  color: #333;
}

.product-photo-card-jis-icon {
  display: flex;
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  flex: 0 0 50px;
  flex-shrink: 0;
  aspect-ratio: 1;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5a900;
  border-radius: 10px;
  background: linear-gradient(145deg, #fff4bd, #f3cf55);
  color: #705100;
  line-height: 1;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), 0 2px 4px rgba(122, 82, 0, 0.16);
}

.product-photo-card-jis-icon--jc {
  border-color: #168b85;
  background: linear-gradient(145deg, #c8f3ec, #5fc7b8);
  color: #075e59;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), 0 2px 4px rgba(7, 94, 89, 0.2);
}

.product-photo-card-jis-icon--plain {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  flex: 0 0 auto;
  aspect-ratio: auto;
  flex-direction: row;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(145deg, #fff6d8, #f3cf55);
  color: #745300;
  box-shadow: none;
}

.product-photo-card-jis-icon--s-first {
  background: linear-gradient(145deg, #fff6d8, #f3cf55);
  color: #745300;
}

.product-photo-card-jis-icon--s-second {
  background: linear-gradient(145deg, #ffdbb0, #f59e0b);
  color: #7c2d12;
}

.product-photo-card-jis-icon--c {
  background: linear-gradient(145deg, #dbeafe, #93c5fd);
  color: #1e3a8a;
}

.product-photo-card-jis-icon--a {
  background: linear-gradient(145deg, #fce7f3, #f9a8d4);
  color: #9d174d;
}

.product-photo-card-jis-icon--medium {
  background: linear-gradient(145deg, #ede9fe, #c4b5fd);
  color: #5b21b6;
}

.product-photo-card-content--s-class {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin-bottom: 12px;
}

.product-photo-card-content-copy {
  min-width: 0;
}

.product-photo-card-content--s-class .product-photo-card-jis-icon {
  margin-top: 2px;
}

.product-photo-card-s-class-description {
  text-align: left;
}

.product-photo-card-jis-icon span {
  white-space: nowrap;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.product-photo-card-jis-icon strong {
  margin-top: 2px;
  font-size: 17px;
  font-weight: 800;
}

.product-photo-card-jis-icon--plain strong {
  margin-top: 0;
  white-space: nowrap;
}

.product-photo-card-spec-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  fill: none;
  padding: 3px;
  overflow: visible;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe987, #efb900 58%, #c98500);
  box-shadow: 0 0 0 3px rgba(238, 183, 0, 0.16), 0 3px 7px rgba(122, 82, 0, 0.28);
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.product-photo-card-spec-icon-rays {
  stroke: #fff8cc;
  stroke-width: 1.5;
}

.product-photo-card-spec-icon-center {
  fill: #fff;
  stroke: none;
}

.product-photo-card-spec-copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 6px;
  line-height: 1.4;
  text-align: center;
}

.product-photo-card-spec-label {
  font-size: 13px;
}

.product-photo-card-spec-value {
  color: #b87900;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.product-photo-card-spec-note {
  font-size: 11px;
}

.product-photo-card h3 {
  margin-bottom: 8px;
  color: #333;
  font-size: 18px;
  line-height: 1.3;
}

.product-photo-card-title span {
  display: block;
}

.product-photo-card-title {
  margin-bottom: 2px;
}

.product-photo-card-title span:first-child {
  font-size: 0.8em;
}

.product-photo-card p {
  color: #666;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.product-photo-card-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding: 8px 0 0;
  list-style: none;
}

.product-photo-card-badges li {
  display: grid;
  min-width: 0;
  align-items: center;
  justify-items: center;
  min-height: 64px;
  padding: 10px 6px;
  border: 1px solid;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.product-photo-card-badge--patent {
  border-color: #d3a523 !important;
  background: #fff6d8 !important;
  color: #745300 !important;
}

.product-photo-card-badge--fire {
  border-color: #d77a5b !important;
  background: #fff0e9 !important;
  color: #8d321d !important;
}

.product-photo-card-badge--led {
  border-color: #5896ce !important;
  background: #eaf5ff !important;
  color: #17517f !important;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}

.features-list > .feature-item-large {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.features-list > .feature-item-large p {
  color: #111;
}

.feature-item-large {
  width: 100%;
  margin: 0 auto;
}

.feature-description {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  padding-left: 0;
  margin: 0;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
  line-height: 1.4;
  margin-left: 0;
  gap: 8px;
}

.feature-copy-small {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
}

.feature-copy-large {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-copy-body {
  font-size: 18px;
  line-height: 1.8;
  color: #111;
}

.feature-item-large + .feature-item-large {
  margin-top: 24px;
}

.feature-title-box {
  display: block;
  width: calc(100% + 20px);
  max-width: calc(100% + 20px);
  box-sizing: border-box;
  padding: 12px 28px;
  border: none;
  background-color: rgba(255, 213, 42, 0.8);
  margin: 0 -10px 56px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  white-space: normal;
  min-height: 0;
  text-align: center;
}

.feature-number {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-shrink: 0;
  min-width: 100px;
  color: inherit;
  font-size: 3.6rem;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-weight: 900;
  line-height: 0.9;
  padding-right: 0;
  margin-top: 16px;
  transform: translateY(0);
}

.feature-number::after {
  content: "";
  position: absolute;
  left: 15%;
  bottom: -8px;
  width: 70%;
  height: 5px;
  background-color: #f5d62c;
  transform: skewX(-18deg);
}

@media (max-width: 600px) {
  .product-photo-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
