:root {
  --primary-color: #009e8a;
  --accent-color: #ee8aab;
  --dark-color: #0a2540;
  --text-main: #2d3748;
}

/* Base Styles */
body {
  font-family: 'Noto Sans JP', sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--text-main);
}

h1,
h2,
h3,
.font-serif {
  font-family: 'Playfair Display', serif;
}

/* Component: Header Navigation Mask */
.header-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, transparent 100%);
  z-index: -1;
  transition: all 0.5s ease;
}

.header-scrolled .header-mask {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Component: Subhero (Improved Contrast) */
.subhero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.subhero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.2) 100%
  );
  z-index: 1;
}

.subhero .container,
.subhero .max-w-7xl {
  position: relative;
  z-index: 10;
}

.subhero h1,
.subhero h2 {
  color: var(--dark-color);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
}

/* Material Symbols Adjustments */
.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;
}

/* Utilities */
.text-primary {
  color: var(--primary-color);
}
.bg-primary {
  background-color: var(--primary-color);
}
.text-accent {
  color: var(--accent-color);
}
.bg-accent {
  background-color: var(--accent-color);
}
.text-dark {
  color: var(--dark-color);
}

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

/* New Custom Classes for Subhero Enhancements */
.subhero-logo-wrapper img {
  filter: brightness(1) contrast(1.1);
}

/* 安全な追加: サブヒーロー用ロゴ調整 */
.subhero-brand-logo {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
  transition: transform 0.3s ease;
}
.subhero-brand-logo:hover {
  transform: scale(1.02);
}

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

.subhero-cases {
  background-image: url('../img/cases-subhero-bg.jpg');
}

/* From ./parts/cases-global.html */

.global-stats {
  background-color: var(--dark-color);
  color: white;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--primary-color);
}

/* From ./parts/cases-testimonials.html */

.testimonial-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.testimonial-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* From ./parts/cases-applications.html */

.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr); /* PC 2列 */
  }
}
.case-card {
  transition: transform 0.3s ease;
  overflow: hidden;
}
.case-card:hover {
  transform: translateY(-5px);
}
.case-image {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* From ./parts/certifications-subhero.html */

.subhero-cert {
  background-image: url('../img/certifications-subhero-bg.jpg');
}

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

.cert-card {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid #edf2f7;
}
.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 158, 138, 0.08);
  border-color: var(--primary-color);
}
.cert-icon-box {
  width: 80px;
  height: 80px;
  background: #f7fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

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

.subhero-contact {
  background-image: url('../img/contact-subhero-bg.jpg');
}

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

.contact-section {
  background-color: #f9fafb;
  position: relative;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  tracking: 0.1em;
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  background-color: #ffffff;
  transition: all 0.3s ease;
  font-family: 'Noto Sans JP', sans-serif;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #009e8a;
  box-shadow: 0 0 0 3px rgba(0, 158, 138, 0.1);
}

.btn-submit {
  background-color: #009e8a;
  color: #ffffff;
  font-weight: 700;
  padding: 1.25rem 2.5rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 158, 138, 0.3);
}

.btn-submit:hover {
  background-color: #ee8aab;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(238, 138, 170, 0.3);
}

.dialect-box {
  border-left: 4px solid #ee8aab;
  background-color: #ffffff;
  padding: 2rem;
  margin-top: 4rem;
}

.dialect-title {
  font-family: 'Playfair Display', serif;
  color: #009e8a;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

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

.index-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: #ffffff;
  overflow: hidden;
}

.index-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.index-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

.index-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 60%, transparent 100%);
  z-index: 2;
}

.index-hero__content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.index-hero__product-container {
  position: absolute;
  right: 0;
  top: 5rem;
  z-index: 15;
  width: 28%;
  max-width: 320px;
  pointer-events: none;
}

.index-hero__product-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 158, 138, 0.15));
  border-radius: 2rem;
}

.index-hero__accent-line {
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.index-hero__title {
  line-height: 1.1;
  letter-spacing: 0.05em;
  color: var(--dark-color);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.index-hero__description {
  color: #1f2937;
  font-weight: 500;
}

.index-hero__scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--primary-color);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.index-hero__scroll-line {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, var(--primary-color), transparent);
  animation: hero-scroll 2.5s ease-in-out infinite;
}

@keyframes hero-scroll {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@media (max-width: 768px) {
  .index-hero {
    padding-top: 100px;
    min-height: 100svh;
  }
  .index-hero__overlay {
    background: rgba(255, 255, 255, 0.4);
  }
  .index-hero__content {
    text-align: center;
    padding: 0 1.5rem;
  }
  .index-hero__title {
    font-size: 2.25rem;
  }
  .index-hero__product-container {
    position: relative;
    right: auto;
    top: auto;
    width: 70%;
    margin: 2rem auto 0;
  }
}

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

.index-intro {
  position: relative;
  overflow: hidden;
}
.index-intro .section-label {
  color: var(--accent-color);
  letter-spacing: 0.2em;
  font-weight: 700;
  font-size: 0.875rem;
}
.index-intro .accent-line {
  width: 60px;
  height: 2px;
  background-color: var(--accent-color);
  margin-bottom: 2rem;
}
.index-intro .content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 768px) {
  .index-intro .content-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}
.index-intro .image-container {
  position: relative;
  padding-bottom: 125%;
}
.index-intro .image-container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}
.index-intro .floating-badge {
  position: absolute;
  bottom: -2rem;
  right: -1rem;
  background-color: var(--primary-color);
  color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

.index-links {
  padding: 6rem 0;
  background-color: #ffffff;
}
.index-links .grid-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}
@media (min-width: 768px) {
  .index-links .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
.index-links .link-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: #ffffff;
}
.index-links .link-card:hover {
  transform: translateY(-8px);
}
.index-links .card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
  z-index: 1;
}
.index-links .link-card:hover .card-bg {
  transform: scale(1.1);
}
.index-links .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 158, 138, 0.9) 0%, rgba(0, 158, 138, 0.4) 50%, transparent 100%);
  z-index: 2;
  transition: opacity 0.3s ease;
}
.index-links .link-card:hover .card-overlay {
  opacity: 0.95;
}
.index-links .card-content {
  position: relative;
  z-index: 3;
}
.index-links .card-category {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ee8aab;
  margin-bottom: 0.5rem;
  display: block;
}
.index-links .card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
}
.index-links .card-icon {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}
.index-links .link-card:hover .card-icon {
  opacity: 1;
  transform: translateX(0);
}

/* From ./parts/products-subhero.html */

.subhero-products {
  background-image: url('../img/products-subhero-bg.jpg');
}

/* From ./parts/products-specs.html */

.specs-section {
  padding: 100px 0;
  background-color: #ffffff;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 40px;
}

@media (min-width: 768px) {
  .specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.spec-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.spec-card:hover {
  transform: translateY(-5px);
}

.spec-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.spec-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.spec-content {
  padding: 32px 0;
}

.spec-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary-color);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.spec-title {
  font-size: 1.75rem;
  color: var(--dark-color);
  margin-bottom: 16px;
  line-height: 1.2;
}

.spec-description {
  font-size: 1rem;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 24px;
}

.spec-details {
  border-top: 1px solid #edf2f7;
  padding-top: 20px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.spec-item-label {
  color: #718096;
}

.spec-item-value {
  color: var(--dark-color);
  font-weight: 500;
}

/* From ./parts/products-applications.html */

.applications-section {
  padding: 100px 0;
  background-color: #f8fafc;
}

.app-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid #e2e8f0;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.app-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.btn-cases {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px 0 rgba(0, 158, 138, 0.39);
}

.btn-cases:hover {
  background-color: #008574;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 158, 138, 0.23);
}

/* From ./parts/quality-subhero.html */

.subhero-quality {
  background-image: url('../img/quality-subhero-bg.jpg');
}

/* From ./parts/quality-ideal.html */

.quality-ideal {
  padding: 100px 0;
  background-color: #fcfcfc;
}
.ideal-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 1024px) {
  .ideal-grid {
    grid-template-columns: 1fr;
  }
}
.accent-line {
  width: 60px;
  height: 2px;
  background-color: var(--primary-color);
  margin-bottom: 24px;
}

/* From ./parts/quality-environment.html */

.environment-section {
  padding: 5rem 0;
  background-color: #ffffff;
}
.environment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .environment-grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
  }
}
.condition-card {
  padding: 2rem;
  border-radius: 1rem;
  background: #f8fafc;
  transition: transform 0.3s ease;
}
.condition-card:hover {
  transform: translateY(-5px);
}
.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* From ./parts/story-subhero.html */

.subhero-story {
  background-image: url('../img/story-subhero-bg.jpg');
}

/* From ./parts/story-overview.html */

.story-overview {
  padding: 100px 0;
  background-color: #fcfcfc;
}
.story-overview .grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.story-overview .image-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}
.story-overview .table-wrapper {
  border-top: 1px solid #e2e8f0;
}
.story-overview table {
  width: 100%;
  border-collapse: collapse;
}
.story-overview th {
  width: 30%;
  text-align: left;
  padding: 20px 0;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 500;
  color: var(--dark-color);
  font-size: 0.9rem;
}
.story-overview td {
  padding: 20px 0;
  border-bottom: 1px solid #e2e8f0;
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.6;
}
.awards-section {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px dashed #cbd5e0;
}
.award-card {
  background: white;
  padding: 24px;
  border-radius: 4px;
  transition: transform 0.3s ease;
}
.award-card:hover {
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .story-overview .grid-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* From ./parts/story-history.html */

.section-history {
  padding: 100px 0;
}
.timeline-container {
  position: relative;
}
.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 1px;
  height: 100%;
  background-color: #e2e8f0;
  transform: translateX(-50%);
}
@media (max-width: 768px) {
  .timeline-container::before {
    left: 20px;
  }
}
.timeline-item {
  position: relative;
  margin-bottom: 4rem;
}
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 12px;
  height: 12px;
  background-color: var(--primary-color);
  border-radius: 50%;
  transform: translate(-50%, 8px);
  z-index: 5;
}
@media (max-width: 768px) {
  .timeline-dot {
    left: 20px;
  }
}
