:root {
  --primary-color: #1a6fff;
  --bg-color: #f9fafb;
  --text-main: #111827;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

/* Material Symbols */
.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 300,
    'GRAD' 0,
    'opsz' 24;
  vertical-align: middle;
}

/* Alpine.js cloak */
[x-cloak] {
  display: none !important;
}

/* Subhero Base */
.subhero {
  position: relative;
  height: 40vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

.subhero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.subhero > div {
  position: relative;
  z-index: 1;
}

/* Custom Swiper Bullet */
.swiper-pagination-bullet-active {
  background: var(--primary-color) !important;
}

/* Section Spacing */
section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) {
  section {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}
/* hero / subhero は内部で高さを制御するため padding をリセット */
section.p-0,
section.subhero {
  padding-top: 0;
  padding-bottom: 0;
}

/* Extracted from Templates */
/* From ./parts/about-subhero.html */

.subhero-about {
  /* common-ref-subhero.html の構造を維持しつつ、背景画像とスタイルを適用 */
  background-image: url('../img/about-subhero-bg.jpg');
}

.subhero-about .subhero-content {
  position: relative;
  z-index: 10;
}

.subhero-about h1 {
  font-family: 'Noto Sans JP', sans-serif;
}

/* From ./parts/about-content.html */

.about-content {
  background-color: #f9fafb;
}
.about-content .section-title {
  font-family: 'Noto Sans JP', sans-serif;
  position: relative;
  padding-bottom: 1.5rem;
}
.about-content .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: #1a6fff;
}
.about-content .experience-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: #1a6fff;
  color: white;
  font-weight: bold;
  border-radius: 9999px;
  margin-bottom: 2rem;
}
.about-content .card-hover {
  transition:
    transform 0.3s ease,
    shadow 0.3s ease;
}
.about-content .card-hover:hover {
  transform: translateY(-5px);
}
.about-content .staff-image {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(20%);
}

/* From ./parts/index-cta.html */

.cta-banner {
  position: relative;
  z-index: 20;
}

.cta-container {
  background-color: #ffffff;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 2.5rem 4rem;
  }
}

.cta-text-group {
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .cta-text-group {
    margin-bottom: 0;
  }
}

.cta-heading {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.025em;
  margin-bottom: 0.25rem;
}

.cta-subtext {
  font-size: 0.875rem;
  color: #4b5563;
}

.cta-button {
  background-color: #1a6fff;
  color: #ffffff;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(26, 111, 255, 0.2);
}

.cta-button:hover {
  background-color: #1559cc;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(26, 111, 255, 0.3);
}

.cta-button .material-symbols-outlined {
  font-size: 1.25rem;
}

/* From ./parts/index-hero.html */

.hero-swiper {
  width: 100%;
  height: 100vh;
  position: relative;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.1);
  transition: transform 6s ease-out;
}

.swiper-slide-active .hero-slide-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.8) 0%, rgba(17, 24, 39, 0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}

.hero-title {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease-out 0.5s;
}

.hero-desc {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease-out 0.8s;
}

.swiper-slide-active .hero-title,
.swiper-slide-active .hero-desc {
  opacity: 1;
  transform: translateY(0);
}

/* Pagination Custom */
.hero-swiper .swiper-pagination-bullets {
  bottom: 40px !important;
  text-align: right !important;
  padding-right: 5%;
}

/* From ./parts/index-intro.html */

.index-intro {
  background-color: #f9fafb;
  overflow: hidden;
}
.index-intro .text-stroke {
  -webkit-text-stroke: 1px rgba(26, 111, 255, 0.1);
  text-stroke: 1px rgba(26, 111, 255, 0.1);
  color: transparent;
}
.index-intro .intro-visual {
  position: relative;
}
.index-intro .intro-visual::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 1px solid #1a6fff;
  z-index: -1;
}
.index-intro .accent-line {
  width: 60px;
  height: 2px;
  background-color: #1a6fff;
  display: block;
  margin-bottom: 2rem;
}

/* From ./parts/index-services.html */

.index-services {
  background-color: #f9fafb;
  position: relative;
}
.index-services .service-card {
  background: #ffffff;
  transition:
    transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    shadow 0.4s ease;
}
.index-services .service-card:hover {
  transform: translateY(-8px);
}
.index-services .icon-box {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(26, 111, 255, 0.05);
  border-radius: 12px;
  color: #1a6fff;
  margin-bottom: 1.5rem;
}
.index-services .service-number {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 4rem;
  color: rgba(26, 111, 255, 0.03);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

/* From ./parts/inventory.html */

.inventory-section {
  background-color: #ffffff;
  position: relative;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}
@media (min-width: 768px) {
  .inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .inventory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.inventory-card {
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 0.5rem;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s ease;
}

.inventory-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.05),
    0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.inventory-image-container {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #f9fafb;
}

.inventory-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  transition: transform 0.6s ease;
}

.inventory-card:hover .inventory-image-container img {
  transform: scale(1.05);
}

.price-tag {
  font-family: 'Noto Sans JP', sans-serif;
  color: #1a6fff;
  font-size: 1.25rem;
  font-weight: 700;
}

.price-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-right: 0.5rem;
}

.badge-sale {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: #f59e0b;
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  z-index: 10;
}

.loading-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: #1a6fff;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* From ./parts/news-list.html */

.news-section {
  background-color: #f9fafb;
  min-height: 60vh;
}

.news-card {
  display: block;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.news-card:hover {
  background-color: #fcfcfc;
  padding-left: 1.5rem;
}

.news-card:hover .news-arrow {
  transform: translateX(5px);
  color: #1a6fff;
}

.category-tag {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border: 1px solid #1a6fff;
  color: #1a6fff;
  font-weight: 700;
  text-transform: uppercase;
}

.news-date {
  font-family: 'Noto Sans JP', sans-serif;
  color: #9ca3af;
}

.news-title {
  font-weight: 500;
  line-height: 1.6;
  color: #111827;
}

.news-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 0;
}

.loader-dot {
  width: 8px;
  height: 8px;
  background: #1a6fff;
  border-radius: 50%;
  margin: 0 4px;
  animation: dot-pulse 1.5s infinite ease-in-out;
}

.loader-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.loader-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dot-pulse {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* From ./parts/services-list.html */

.services-list-section {
  background-color: #f9fafb;
}
.service-card {
  transition:
    transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s ease;
}
.service-card:hover {
  transform: translateY(-8px);
}
.service-icon-box {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(26, 111, 255, 0.05);
  border-radius: 16px;
  margin-bottom: 24px;
  color: #1a6fff;
}
.service-number {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 3rem;
  color: rgba(26, 111, 255, 0.08);
  position: absolute;
  top: 20px;
  right: 32px;
  font-weight: 700;
  line-height: 1;
}

/* From ./parts/contact-form.html */

.contact-section {
  background-color: #ffffff;
}

.contact-form {
  background-color: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
}
@media (min-width: 768px) {
  .contact-form {
    padding: 3rem;
  }
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  margin-bottom: 1.75rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.required-mark {
  display: inline-block;
  background-color: #1a6fff;
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

.form-input {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  color: #111827;
  font-family: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.form-input::placeholder {
  color: #9ca3af;
}
.form-input:focus {
  outline: none;
  border-color: #1a6fff;
  box-shadow: 0 0 0 3px rgba(26, 111, 255, 0.15);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231A6FFF' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-note {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #1a6fff;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 1.125rem 3rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  box-shadow: 0 10px 20px -10px rgba(26, 111, 255, 0.6);
  transition: all 0.3s ease;
}
.form-submit:hover {
  background-color: #1559cc;
  transform: translateY(-2px);
  box-shadow: 0 16px 24px -10px rgba(26, 111, 255, 0.7);
}

