/* リセット＆基本スタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'HondaGlobalFontJP-Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: #333333;
  line-height: 1.5;
  background-color: #ffffff;
}

body #contents {
  line-height: normal;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* コンテナ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

/* ヒーローセクション */
.hero-section {
  display: flex;
  flex-direction: column;
}

.header-bar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

.header-bar .container {
  padding: 12px 16px;
}

@media (min-width: 768px) {
  .header-bar .container {
    padding: 12px 32px;
  }
}

.logo-link {
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .logo {
    height: 48px;
  }
}

/* ナビゲーション */
.nav-bar {
  background-color: #F5F5F5;
  padding: 16px 0;
}

.nav-desktop {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .nav-desktop {
    gap: 64px;
  }
}

.nav-button {
  color: #666666;
  font-size: 16px;
  font-weight: bold;
  transition: color 0.2s;
  position: relative;
  display: inline-block;
}

.nav-button::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #CC0000;
  left: 0;
  bottom: -4px;
  transition: width 0.3s;
}

.nav-button:hover {
  color: #CC0000;
}

.nav-button:hover::after {
  width: 100%;
}

.nav-mobile {
  display: block;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .nav-mobile {
    display: none;
  }
}

.menu-toggle {
  width: 100%;
  color: #666666;
  padding: 12px 0;
  text-align: center;
  font-weight: bold;
  border-bottom: 1px solid #666666;
  transition: color 0.2s;
}

.menu-toggle:hover {
  color: #CC0000;
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
}

.nav-mobile-menu.active {
  display: flex;
}

.nav-mobile-menu .nav-button {
  color: #666666;
  padding: 12px 0;
  text-align: left;
  font-weight: bold;
  transition: color 0.2s;
}

.nav-mobile-menu .nav-button:hover {
  color: #CC0000;
}

.nav-mobile-menu .nav-button::after {
  display: none;
}

/* ヒーローコンテンツ */
.hero-content {
  max-width: 1280px;
  margin: 32px auto 0;
  padding: 0;
  width: 100%;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

@media (min-width: 768px) {
  .hero-grid {
    flex-direction: row;
    gap: 16px;
  }
}

.hero-image-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  order: 1;
}

@media (min-width: 768px) {
  .hero-image-wrapper {
    width: 60%;
    order: 2;
  }
}

.hero-image {
  width: 100%;
  height: auto;
  max-width: 1000px;
  object-fit: contain;
}

.hero-text-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  order: 2;
}

@media (min-width: 768px) {
  .hero-text-wrapper {
    width: 40%;
    order: 1;
  }
}

.hero-title {
  font-size: 24px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 12px;
  text-align: center;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 32px;
    margin-bottom: 16px;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 46px;
  }
}

.hero-description {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 16px;
  }
}

.hero-badge {
  margin-top: 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-image {
  height: 38px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .badge-image {
    height: 51px;
  }
}

/* セクション共通 */
.section-header {
  text-align: center;
  margin-bottom: 16px;
}

.section-title {
  font-size: 18px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 24px;
  }
}

.section-subtitle {
  font-size: 16px;
  color: #333333;
  max-width: 768px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .section-subtitle {
    font-size: 18px;
  }
}

/* 製品の特長 */
.features-section {
  padding: 64px 0;
  background-color: #ffffff;
}

.features-first {
  margin-top: 64px;
  padding-top: 64px;
}

.features-rest {
  margin-top: 32px;
  padding-top: 32px;
}

.feature-item {
  display: flex;
  flex-direction: column-reverse;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .feature-item {
    align-items: flex-start;
  }
}

.feature-item-normal {
  margin-top: 32px;
}

@media (min-width: 768px) {
  .feature-item-normal {
    flex-direction: row;
  }
}

.feature-item-reverse {
  margin-top: 32px;
}

@media (min-width: 768px) {
  .feature-item-reverse {
    flex-direction: row-reverse;
  }
}

.feature-item-large-gap {
  margin-top: 96px;
}

.feature-image-wrapper {
  width: 100%;
  position: relative;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .feature-image-wrapper {
    width: 50%;
  }
}

.feature-image {
  width: 80%;
  height: auto;
  object-fit: contain;
}

.feature-text {
  width: 100%;
  background-color: #ffffff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}

@media (min-width: 768px) {
  .feature-text {
    width: 50%;
    padding: 0 32px;
    padding-top: 0;
  }
}

.feature-title {
  font-size: 24px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .feature-title {
    font-size: 28px;
  }
}

@media (min-width: 1024px) {
  .feature-title {
    font-size: 32px;
  }
}

.feature-description {
  font-size: 14px;
  color: #666666;
  line-height: 2;
}

@media (min-width: 768px) {
  .feature-description {
    font-size: 16px;
  }
}

/* ギャラリー */
.gallery-section {
  padding: 32px 0 16px;
  background-color: #ffffff;
}

@media (min-width: 768px) {
  .gallery-section {
    padding: 48px 0 24px;
  }
}

.gallery-wrapper {
  position: relative;
  margin: 0 -16px;
}

@media (min-width: 768px) {
  .gallery-wrapper {
    margin: 0 -32px;
  }
}

.gallery-nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 2px solid #F5F5F5;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  color: #333333;
}

@media (min-width: 768px) {
  .gallery-nav {
    display: flex;
  }
}

.gallery-nav:hover {
  background-color: #F5F5F5;
  border-color: #333333;
}

.gallery-nav-left {
  left: 0;
}

.gallery-nav-right {
  right: 0;
}

.gallery-nav.hidden {
  display: none;
}

.gallery-scroll {
  overflow-x: scroll;
  padding: 0 16px 16px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

@media (min-width: 768px) {
  .gallery-scroll {
    padding: 0 32px 16px;
  }
}

.gallery-scroll::-webkit-scrollbar {
  display: none;
}

.gallery-scroll.grabbing {
  cursor: grabbing;
}

.gallery-grid {
  display: flex;
  gap: 16px;
  width: max-content;
}

.gallery-item {
  flex-shrink: 0;
  width: 70vw;
  max-width: 500px;
  aspect-ratio: 4 / 3;
  background-color: #F5F5F5;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s;
  cursor: pointer;
}

@media (min-width: 768px) {
  .gallery-item {
    width: 38vw;
  }
}

.gallery-item:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* 製品仕様 */
.specs-section {
  padding: 64px 0;
  background-color: #ffffff;
}

.specs-table-wrapper {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid #F5F5F5;
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-label {
  padding: 16px 24px;
  font-size: 14px;
  color: #666666;
  font-weight: bold;
  background-color: #F5F5F5;
  width: 33.333%;
}

@media (min-width: 768px) {
  .specs-label {
    padding: 16px 32px;
    font-size: 16px;
  }
}

.specs-value {
  padding: 16px 24px;
  font-size: 14px;
  color: #333333;
}

@media (min-width: 768px) {
  .specs-value {
    padding: 16px 32px;
    font-size: 16px;
  }
}

/* 導入事例 */
.case-studies-section {
  padding: 64px 0;
  background-color: #ffffff;
}

.case-study-card {
  background: linear-gradient(to bottom right, #F5F5F5, #ffffff);
  border-radius: 8px;
  overflow: hidden;
}

.case-study-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 768px) {
  .case-study-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.case-study-image {
  position: relative;
  background-color: #ffffff;
  min-height: 300px;
  order: 1;
}

@media (min-width: 768px) {
  .case-study-image {
    aspect-ratio: auto;
  }
}

.case-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .case-img {
    height: 100%;
    object-fit: contain;
  }
}

.case-study-content {
  padding: 24px;
  order: 2;
}

@media (min-width: 768px) {
  .case-study-content {
    padding: 32px;
  }
}

.case-study-badge {
  background-color: #CC0000;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 16px;
}

.case-study-company {
  font-size: 20px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .case-study-company {
    font-size: 24px;
  }
}

.case-study-title {
  font-size: 16px;
  font-weight: bold;
  color: #666666;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .case-study-title {
    font-size: 18px;
  }
}

.case-study-description {
  margin-bottom: 24px;
}

.quote-icon {
  color: #CC0000;
  margin-bottom: 8px;
}

.case-study-description p {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .case-study-description p {
    font-size: 16px;
  }
}

.case-study-results {
  background-color: #ffffff;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #CC0000;
}

@media (min-width: 768px) {
  .case-study-results {
    padding: 24px;
  }
}

.results-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.trending-icon {
  color: #CC0000;
}

.results-header h4 {
  font-size: 14px;
  font-weight: bold;
  color: #333333;
}

@media (min-width: 768px) {
  .results-header h4 {
    font-size: 16px;
  }
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.result-bullet {
  width: 6px;
  height: 6px;
  background-color: #CC0000;
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.result-item span {
  font-size: 14px;
  color: #666666;
}

/* CTA ボックス */
.cta-box {
  margin-top: 48px;
  text-align: center;
  background-color: #F5F5F5;
  padding: 32px;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .cta-box {
    margin-top: 64px;
    padding: 48px;
  }
}

.cta-title {
  font-size: 20px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 24px;
  }
}

.cta-description {
  font-size: 16px;
  color: #666666;
  margin-bottom: 24px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
}

.cta-badge-image {
  height: 38.4px;
}

@media (min-width: 768px) {
  .cta-badge-image {
    height: 51.2px;
  }
}

/* お知らせセクション */
.news-section {
  padding: 64px 0;
  background-color: #ffffff;
}

@media (min-width: 768px) {
  .news-section {
    padding: 96px 0;
  }
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.news-slideshow {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.slideshow-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

.slideshow-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slideshow-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slideshow-image.active {
  opacity: 1;
}

.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333333;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.slideshow-nav:hover {
  background-color: #ffffff;
}

.slideshow-nav-left {
  left: 16px;
}

.slideshow-nav-right {
  right: 16px;
}

.slideshow-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background-color: #CC0000;
  width: 32px;
  border-radius: 4px;
}

.slideshow-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (min-width: 768px) {
  .slideshow-thumbnails {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }
}

.thumbnail-item {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: all 0.2s;
  padding: 0;
}

.thumbnail-item:hover {
  opacity: 1;
}

.thumbnail-item.active {
  border-color: #CC0000;
  opacity: 1;
}

.thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-badge {
  display: inline-block;
  background-color: #CC0000;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  align-self: flex-start;
}

.news-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-text p {
  font-size: 16px;
  color: #666666;
  line-height: 1.5;
}

.news-comments {
  background-color: #ffffff;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #CC0000;
}

@media (min-width: 768px) {
  .news-comments {
    padding: 24px;
  }
}

.comments-title {
  font-size: 14px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .comments-title {
    font-size: 16px;
  }
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.comment-icon {
  color: #CC0000;
  flex-shrink: 0;
  margin-top: 2px;
}

.comment-item p {
  font-size: 14px;
  color: #666666;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .comment-item p {
    font-size: 16px;
  }
}

/* 画像モーダル */
.image-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 250ms ease-in-out;
}

.image-modal.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 50;
  padding: 8px;
  color: #ffffff;
  transition: color 0.2s;
}

@media (min-width: 768px) {
  .modal-close {
    top: 32px;
    right: 32px;
  }
}

.modal-close:hover {
  color: #CC0000;
}

.modal-nav {
  position: absolute;
  z-index: 50;
  padding: 8px;
  color: #ffffff;
  transition: color 0.2s;
}

.modal-nav:hover {
  color: #CC0000;
}

.modal-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal-nav-left {
  left: 16px;
}

@media (min-width: 768px) {
  .modal-nav-left {
    left: 32px;
  }
}

.modal-nav-right {
  right: 16px;
}

@media (min-width: 768px) {
  .modal-nav-right {
    right: 32px;
  }
}

.modal-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-counter {
  margin-top: 16px;
  color: #ffffff;
  font-size: 16px;
}

@media (min-width: 768px) {
  .modal-counter {
    font-size: 18px;
  }
}
