/* -------------------------------------------------------------
  Reset & Base Settings
------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #ffffff;
  color: #333333;
  line-height: 1.8;
  font-size: 15px;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* 共通コンテナ */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 25px;
}

/* セクション共通 */
.section {
  padding: 120px 0;
}

.section-title-wrap {
  margin-bottom: 60px;
  text-align: center;
}

.section-sub {
  display: block;
  font-size: 12px;
  color: #e60012; /* 差し色の赤 */
  font-weight: 500;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.section-title {
  font-size: 26px;
  font-weight: 400;
  color: #1a1a1a;
  position: relative;
  padding-bottom: 15px;
}

/* -------------------------------------------------------------
  Header
------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #eaeaea;
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 25px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #1a1a1a;
}

.logo span {
  color: #e60012;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: #666666;
  position: relative;
}

.nav-link:hover {
  color: #1a1a1a;
}

.nav-link.btn-accent {
  color: #e60012;
  font-weight: 500;
}

.nav-sns {
  display: flex;
  gap: 15px;
  font-size: 16px;
  color: #888888;
}

.nav-sns a:hover {
  color: #e60012;
}

.fa-twitter:before {
  content: '𝕏';
  font-family: unset;
  font-weight: bold;
}

/* ハンバーガーボタン（デフォルト非表示） */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1100;
}

.nav-toggle .bar {
  width: 25px;
  height: 1px;
  background-color: #1a1a1a;
  transition: all 0.3s ease;
}

/* -------------------------------------------------------------
  Hero Slider
------------------------------------------------------------- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
  background-color: #f7f7f7;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  text-align: center;
  color: #1a1a1a;
  padding: 30px 40px;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  max-width: 90%;
  margin: 0 auto;
}

.slide-sub {
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: none;
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
}

.slide-content h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

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

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

.dot.active {
  background-color: #ffffff;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------------------------------------------------
  Message Section
------------------------------------------------------------- */
.message-section {
  background-color: #ffffff;
}

.message-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.message-content .lead {
  font-size: 20px;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 35px;
  line-height: 1.6;
}

.message-content .body-text {
  font-size: 15px;
  color: #555555;
  text-align: justify;
  text-justify: inter-ideograph;
}

/* -------------------------------------------------------------
  Product Section
------------------------------------------------------------- */
.product-section {
  background-color: #fafafa; /* 微細なグレー */
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background-color: #ffffff;
  display: block;
  border: 1px solid #eeeeee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.product-img-wrap {
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

.product-info {
  padding: 25px;
}

.product-info h3 {
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.product-info h3 .en-title {
  display: block;
  font-size: 13px;
  color: #888888;
  font-weight: 400;
  margin-top: 4px;
  letter-spacing: 0.08em;
}

.product-info p {
  font-size: 13px;
  color: #666666;
  line-height: 1.6;
}

/* -------------------------------------------------------------
  Information Section
------------------------------------------------------------- */
.info-section {
  background-color: #ffffff;
}

.info-content-wrap {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.info-note-box {
  background-color: #fafafa;
  border: 1px solid #eeeeee;
  padding: 40px 30px;
  margin-bottom: 40px;
}

.info-lead {
  font-size: 16px;
  color: #1a1a1a;
  margin-bottom: 20px;
  font-weight: 400;
}

.btn-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 35px;
  background-color: #e60012;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background-color 0.3s ease;
}

.btn-note:hover {
  background-color: #cc0010; 
}

.info-sns-wrap {
  margin-top: 20px;
}

.sns-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #888888;
  margin-bottom: 15px;
}

.info-sns-links {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.info-sns-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border: 1px solid #eaeaea;
  border-radius: 50%;
  font-size: 18px;
  color: #666666;
  background-color: #ffffff;
}

.info-sns-links a:hover {
  color: #e60012;
  border-color: #e60012;
  background-color: #fafafa;
  transform: translateY(-2px);
}

/* -------------------------------------------------------------
  Works Section
------------------------------------------------------------- */
.works-section {
  background-color: #ffffff;
}

.works-featured {
  margin-bottom: 60px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.21fr 1fr;
  gap: 40px;
  align-items: center;
  background-color: #ffffff;
  padding: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.featured-img-wrap {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: #e5e5e5;
}

.featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.featured-card:hover .featured-img-wrap img {
  transform: scale(1.03);
}

.featured-info .featured-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
  margin-top: 15px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}

.works-card {
  display: block;
  position: relative;
}

.works-img-wrap {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background-color: #f7f7f7;
  margin-bottom: 18px;
}

.works-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.works-card:hover .works-img-wrap img {
  transform: scale(1.04);
}

.works-info .works-category {
  display: block;
  font-size: 11px;
  color: #888888;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.works-info h3 {
  font-size: 15px;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.5;
}

.works-card:hover h3 {
  color: #e60012;
}

/* -------------------------------------------------------------
  Company Info Section
------------------------------------------------------------- */
.company-section {
  background-color: #fafafa;
}

.company-table-wrap {
  max-width: 800px;
  margin: 0 auto;
}

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

.company-table tr {
  border-bottom: 1px solid #eaeaea;
}

.company-table th,
.company-table td {
  padding: 25px 15px;
  font-size: 14px;
}

.company-table th {
  width: 25%;
  text-align: left;
  font-weight: 500;
  color: #1a1a1a;
  vertical-align: top;
}

.company-table td {
  color: #555555;
}

.company-table td .office-item.u-mb-large {
  display: block;
  margin-bottom: 24px;
}

.company-table td .office-item:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------------
  Company History（沿革）
------------------------------------------------------------- */
.company-history-wrap {
  max-width: 800px;
  margin: 80px auto 0 auto;
  border-top: 1px solid #eaeaea;
  padding-top: 60px;
}

.history-title {
  font-size: 18px;
  font-weight: 500;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.1em;
}

.history-timeline {
  list-style: none;
  position: relative;
  padding: 0;
}

.history-timeline::before {
  content: '';
  position: absolute;
  left: 140px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background-color: #eaeaea;
}

.history-timeline li {
  position: relative;
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
}

.history-timeline li:last-child {
  margin-bottom: 0;
}

.history-timeline .year {
  width: 110px;
  font-size: 14px;
  font-weight: 500;
  color: #e60012;
  letter-spacing: 0.05em;
  padding-top: 1px;
}

.history-timeline li::after {
  content: '';
  position: absolute;
  left: 137px;
  top: 9px;
  width: 7px;
  height: 7px;
  background-color: #ffffff;
  border: 1px solid #e60012;
  border-radius: 50%;
  z-index: 2;
}

.history-timeline .desc {
  flex: 1;
  padding-left: 50px;
  font-size: 14px;
  color: #555555;
  line-height: 1.7;
}

/* -------------------------------------------------------------
  Footer
------------------------------------------------------------- */
.footer {
  background-color: #1a1a1a;
  color: #aeaeae;
  padding: 80px 0 0 0;
  font-size: 13px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer-logo {
  font-size: 22px;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-logo span {
  color: #e60012;
}

.footer-address {
  line-height: 1.8;
  margin-bottom: 25px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #888888;
  text-decoration: underline;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-map iframe {
  filter: grayscale(1) opacity(0.7);
  transition: filter 0.3s ease;
}

.footer-map iframe:hover {
  filter: grayscale(0) opacity(1);
}

.footer-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  padding: 16px 20px;
  margin-bottom: 25px;
  background-color: #ffffff;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  border: 1px solid #ffffff;
  transition: all 0.3s ease;
}

.footer-contact-btn:hover {
  background-color: transparent;
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #2c2c2c;
  padding: 30px 25px;
  text-align: center;
  font-size: 11px;
  color: #666666;
}

.footer-legal {
  margin-bottom: 15px;
  line-height: 1.7;
  color: #aeaeae;
}

.footer-legal p {
  margin-bottom: 5px;
}

.footer-legal p:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------------
  To Top Button
------------------------------------------------------------- */
.totop-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  z-index: 99;
}

.totop-btn.show {
  opacity: 1;
  visibility: visible;
}

.totop-btn:hover {
  background-color: #e60012;
  color: #ffffff;
  border-color: #e60012;
}

/* -------------------------------------------------------------
  Responsive (Tablet & Mobile)
------------------------------------------------------------- */
@media (max-width: 960px) {
  .section {
    padding: 80px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.05);
    flex-direction: column;
    justify-content: center;
    gap: 50px;
    transition: right 0.4s ease;
    padding: 40px;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 25px;
    width: 100%;
    text-align: center;
  }

  .nav-link {
    font-size: 16px;
    display: block;
  }

  .nav-toggle.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .featured-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .history-timeline::before {
    left: 8px;
  }

  .history-timeline li {
    flex-direction: column;
    padding-left: 25px;
    margin-bottom: 25px;
  }

  .history-timeline li::after {
    left: 5px;
    top: 6px;
  }

  .history-timeline .year {
    width: auto;
    margin-bottom: 4px;
  }

  .history-timeline .desc {
    padding-left: 0;
  }
}

@media (max-width: 576px) {
  .slide-content h2 {
    font-size: 20px;
  }

  .message-content .lead {
    font-size: 17px;
  }

  .company-table th {
    width: 30%;
    font-size: 13px;
  }

  .company-table td {
    font-size: 13px;
  }
}