/* ============================================
   CSS Variables - 配色変更用
   ============================================ */
:root {
  /* Primary Colors */
  --color-bg-deep: #20130A;
  --color-bg-dark: #3a261d;
  --color-bg-medium: #62483D;
  --color-bg-light: #DFDAD3;

  /* Text Colors */
  --color-text-primary: #101115;
  --color-text-secondary: #303135;
  --color-text-muted: #e2e1e1;

  /* Accent Colors */
  --color-accent: #d4c4a8;
  --color-accent-hover: #e8dcc4;
  --color-attention: #802020;
  --color-accent-green: #304D3E;

  /* Border Colors */
  --color-border: rgba(245, 240, 232, 0.2);
  --color-border-light: rgba(245, 240, 232, 0.1);
  --color-border-dark: rgba(72, 64, 48, 0.3);

  /* Typography */
  --font-ritch: 'Cormorant Garamond', serif;
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Inter', 'Noto Sans JP', sans-serif;

  /* Spacing */
  --header-height: 80px;
  --section-padding: 50px;
  --container-width: 1280px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.8s ease;
}

/* ============================================
   Anchor Offset (fixed header compensation)
   ============================================ */
[id] {
  scroll-margin-top: 140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif);
  background-color: var(--color-bg-deep);
  color: var(--color-text-primary);
  line-height: 1.8;
  font-size: 15px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

ul {
  list-style: none;
}

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

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.4;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.1em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: 0.05em;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
  margin-bottom: 1em;
}

.text-center {
  text-align: center;
}

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 30px 20px;
}
.section {
  padding: var(--section-padding) 0;
}

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: background-color var(--transition-medium);
  animation: headerSlideIn 0.8s ease forwards;
}

@keyframes headerSlideIn {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.header.scrolled {
  background-color: var(--color-bg-deep);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

.logo {
  opacity: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}
.header.scrolled .logo {
  opacity: 1;
}
.logo a svg {
  height: 30px;
}
.nav-desktop {
  display: flex;
  gap: 40px;
}

.nav-desktop a {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  position: relative;
  font-family: var(--font-ritch);
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width var(--transition-medium);
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: 100%;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--color-accent);
}

.sns-wrap {
 display: flex;
 justify-content: flex-end;
 gap: 0;
 flex: 1;
}
.sns-wrap a {
  color: var(--color-text-muted);
  font-size: 0.87rem;
  font-family: var(--font-ritch);
}
.sns-wrap a:first-of-type {
  /*margin-right: 16px;
  padding-right: 16px;
  border-right: 1px solid var(--color-text-muted);*/
}
.sns-wrap a:hover {
  color: rgba(245, 240, 232, 0.7);
}
/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-bg-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
  z-index: 999;
}

.nav-mobile.active {
  opacity: 1;
  visibility: visible;
}

.nav-mobile a {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  padding: 15px 0;
  color: var(--color-text-muted);
  transform: translateX(-20px);
  opacity: 0;
  transition: all var(--transition-medium);
}

.nav-mobile.active a {
  transform: translateX(0);
  opacity: 1;
}

.nav-mobile.active a:nth-child(1) { transition-delay: 0.1s; }
.nav-mobile.active a:nth-child(2) { transition-delay: 0.2s; }
.nav-mobile.active a:nth-child(3) { transition-delay: 0.3s; }
.nav-mobile.active a:nth-child(4) { transition-delay: 0.4s; }
.nav-mobile.active a:nth-child(5) { transition-delay: 0.5s; }
.nav-mobile.active a:nth-child(6) { transition-delay: 0.6s; }

.nav-mobile a:hover {
  color: var(--color-text-primary);
}

.nav-mobile-sns {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(226, 225, 225, 0.15);
  transform: translateX(-20px);
  opacity: 0;
  transition: all var(--transition-medium);
  transition-delay: 0.55s;
}

.nav-mobile.active .nav-mobile-sns {
  opacity: 1;
  transform: translateX(0);
}

.nav-mobile .nav-mobile-sns a,
.nav-mobile.active .nav-mobile-sns a {
  font-size: 0.78rem;
  font-family: var(--font-ritch);
  letter-spacing: 0.05em;
  padding: 0;
  opacity: 1;
  transform: none;
  transition: color var(--transition-fast);
  transition-delay: 0s;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  height: 95vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Hero Slideshow */
.hero-slideshow {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-bg-dark);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  animation-duration: 15s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  /* animation: slideshow 8s infinite; */
}

.hero-slide.slide-1 {
  background-image: url('../images/bg.jpg');
  /* animation-delay: 0s; */  
  animation-name: animate1;
  width: 106vw;
  height: 100%;
  top: 0;
}

.hero-slide.slide-2 {
  background-image: url('../images/bg-7.jpg');
  filter: blur(1px), brightness(90%), grayscale(0.3);
  /* animation-delay: 6s; */
  animation-name: animate2;
  width: 100%;
  height: 108vh;
  left: 0;
}

.hero-slide.slide-3 {
  background-image: url('../images/bg-9.jpg');
  filter: blur(1px), brightness(90%), grayscale(0.3);
  /* animation-delay: 8s; */
  animation-name: animate3;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

@keyframes slideshow {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  5% {
    opacity: 1;
  }
  33.33% {
    opacity: 1;
    transform: scale(1.05);
  }
  38.33% {
    opacity: 0;
    transform: scale(1.05);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes animate1 {
  0% {
      transform: translateX(-0.5vw);
      opacity: 1;
    }
  30% {
      opacity: 1;
  }
  36% {
      transform: translateX(-5vw);
      opacity: 0;
  }
  96% {
      transform: translateX(0);
      opacity: 0;
  }
  100% {
      transform: translateX(-0.5vw);
      opacity: 1;
  }
}

@keyframes animate2 {
  0% {
      transform: translateY(0);
      opacity: 0;
  }
  30% {
      top: 0;
      opacity: 0;
  }
  36% {
      opacity: 1;
  }
  63% {
      opacity: 1;
  }
  70% {
      transform: translateY(-8vh);
      opacity: 0;
  }
  100% {
      transform: translateY(-8vh);
      opacity: 0;
    }
}

@keyframes animate3 {
  0% {
      transform: scale(1);
      opacity: 0;
  }
  63% {
      transform: scale(1);
      opacity: 0;
  }
  70% {
      opacity: 1;
  }
  96% {
      opacity: 1;
      transform: scale(1.08);
  }
  100% {
      opacity: 0;
      transform: scale(1.08);
  }
}

/* Overlay for slideshow */
.hero-slideshow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(45, 37, 32, 0.3) 0%,
    rgba(45, 37, 32, 0.5) 50%,
    rgba(45, 37, 32, 0.8) 100%
  );
  z-index: 1;
}

/* Hero Background (for sub pages) */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-bg-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg.bg-services {
  background-image: url('../images/bg-4.jpg');
  filter: blur(1px);
}
.hero-bg.bg-products {
  background-image: url('../images/bg-2.jpg');
}
.hero-bg.bg-company {
  background-image: url('../images/bg-3.jpg');
}
.hero-bg.bg-contact {
  background-image: url('../images/bg-6.jpg');
  filter: brightness(75%);
}
.hero-bg.bg-prototyping {
  background-image: url('../images/bg-5.jpg');
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(45, 37, 32, 0.3) 0%,
    rgba(45, 37, 32, 0.5) 50%,
    rgba(45, 37, 32, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

.hero-title {
  font-size: clamp(1.6rem, 7vw, 2.5rem);
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  display: flex;
  justify-content: center;
}
.hero-title svg {
  height: 48px;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-description {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 800px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.6s forwards;
}

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

/* ============================================
   Page Hero (Sub Pages)
   ============================================ */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.page-hero .hero-bg {
  background-position: center center;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-family: var(--font-ritch);
  letter-spacing: 0.3rem;
  margin-bottom: 10px;
  color: var(--color-text-muted);
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLeft 0.8s ease forwards;
}

.page-title-jp {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLeft 0.8s ease 0.2s forwards;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   Toppage Section
   ============================================ */
.top-container .feature-text {
  max-width: var(--container-width);
}
.container-2col {
  display: flex;
  height: 65vh;
  background-color: var(--color-bg-dark);
}
.container-2col.rev {
  flex-direction: row-reverse;
}
.container-2col > div {
  flex: 1;
}
.container-2col > div.image {
  background-color: var(--color-bg-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;  
}
.top-aboutus .container-2col > div.image {
  background-image: url('/images/bg-3.jpg');
}
.top-services .container-2col > div.image {
  background-image: url('/images/bg-4.jpg');
  filter: blur(1px) grayscale(0.4);
}
.container-2col div.content {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 8px;
}
.container-2col div.content h2,
.container-2col div.content p {
  color: var(--color-bg-light);
  text-align: center;
}
.container-2col div.content a {
  color: var(--color-accent);
  padding: 6px 24px;
  border-bottom: 1px solid var(--color-accent);
}
.container-2col div.content a:hover {
  color: var(--color-accent-hover);
}

.feature-section {
  background-color: var(--color-bg-light);
  z-index: 1;
}
.feature-section .feature-text {
  max-width: 800px;
  margin: 0 auto;
}
.feature-elements {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 60px;
}
.feature-elements .element a {
  display: inline-block;
  width: 320px;
  text-align: center;
  padding: 24px 0;
  background-color: transparent;
  border: 1px solid var(--color-bg-dark);
  color: var(--color-bg-dark);
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.feature-elements .element a:hover {
  background-color: var(--color-bg-medium);
  color: var(--color-text-muted);
}

.feature-product-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 0 16px;
}
.feature-product-link a {
  display: block;
  border: 1px solid var(--color-bg-medium);
  color: var(--color-bg-medium);
  padding: 16px 32px; 
}
.feature-product-link a:hover {
  background-color: var(--color-bg-medium);
  color: var(--color-bg-light);
}
.top-contact {
  background-color: var(--color-bg-light);
  text-align: center;
}
.top-contact .top-contact-title {
  color: var(--color-accent-green);
}
.top-contact .message {
  margin-top: 40px;
}
.top-contact a {
  color: var(--color-bg-medium);
  padding: 6px 24px;
  border-bottom: 1px solid var(--color-bg-medium);
}
.body-link {
  color: var(--color-bg-medium);
}
.body-link.underline {
  text-decoration: underline;
}
.body-link:hover {
  color: var(--color-bg-medium);
  text-decoration: underline;
}
.section-header {
  text-align: center;
  margin-bottom: 20px;
}

.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
  color: var(--color-accent-green);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background-color: var(--color-bg-medium);
}

/* ============================================
   Content Section
   ============================================ */
.content-section {
  background-color: var(--color-bg-light);
}
.content-section.other {
  padding-top: 120px;
}
.product-subtitle {
  font-size: 1.5rem;
  color: var(--color-bg-medium);
  margin: 0 auto;
  text-align: center;
}
.content-section .section-top-text {
  text-align: center;
  margin: 8px 0 2.7rem 0;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}
.content-block {
  max-width: 800px;
  margin: 0 auto 80px;
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
}

.content-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.content-block:last-child {
  margin-bottom: 0;
}
.content-block .service-en {
  margin: 0 0 4px 0;
  font-size: 0.8rem;
  color: var(--color-bg-medium);
}
.content-block h3 {
  margin-bottom: 30px;
  color: var(--color-accent-green);
  position: relative;
}
.content-block h3:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 30px;
  height: 1px;
  background-color: var(--color-accent-green);
}
.content-block p {
  color: var(--color-text-secondary);
  line-height: 1.7rem;
}

.content-block .image-wrap {
  padding: 30px;
  display: flex;
  justify-content: center;
  background-image: url(../images/bg-2.jpg);
  background-color: #333;
  background-blend-mode: overlay;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
.content-block .image-wrap img {
  width: 100%;
  max-width: 700px;
  box-shadow: 0 0px 6px rgba(0, 0, 0, 0.2);
}
.container-404 {
  background-image: url(../images/bg-8.jpg);
  background-color: #111;
  background-blend-mode: overlay;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  height: calc(100vh - 240px);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 16px;
}
.container-404 h2 {
  color: var(--color-accent);
}
.container-404 p {
  color: var(--color-bg-light);
}
.products-wrap {
  display: grid;
  max-width: 1060px;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 1rem;
  row-gap: 1.7rem;
}
.product p.service-ja {
  color: var(--color-text-secondary);
  margin: 0;
}
.product p.service-en {
  font-size: 0.7rem;
  color: var(--color-bg-medium);
  margin: 0;
  line-height: 1;
}
.segment-separator {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border-dark);
}
.price-info .price-wrapper {
  background-color: var(--color-bg-dark);
  border: 1px solid var(--color-bg-deep);
  padding: 1.5rem 0.5rem;
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.price-info .price-wrapper .price {
  font-size: 1.16rem; 
  margin: 0;
  color: var(--color-accent);
  text-align: center;
  display: flex;
  margin: 0 auto;
  gap: 1.2rem;
}
.price-info .price-wrapper .price span:not(:last-of-type) {
  border-right: 1px solid var(--color-accent);
  padding-right: 1.2rem;
}
.price-info .price-wrapper .note {
  font-size: 0.78rem; 
  margin: 0;
  color: var(--color-text-muted);
  opacity: 0.8;
  text-align: center;
}
.price-info p.attention {
  margin: 8px 0 0 0;
  line-height: 1.7;
  font-size: 0.75rem;
}
.product-contact {
  text-align: center;
  margin-top: 3rem;
}
.product-contact a {
  display: inline-block;
  padding: 15px 60px;
  background-color: transparent;
  border: 1px solid var(--color-bg-dark);
  color: var(--color-bg-dark);
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.product-contact a:hover {
  background-color: var(--color-bg-medium);
  color: var(--color-text-muted);
}
/* ============================================
   Company Info
   ============================================ */
.company-table {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 1px solid var(--color-border-dark);
}


.company-table th,
.company-table td {
  padding: 24px 16px;
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 30%;
  color: var(--color-text-primary);
  font-weight: normal;
  font-size: 0.9rem;
}

.company-table td {
  color: var(--color-text-secondary);
}
.map-section {
  background-color: var(--color-bg-light);
  z-index: 1;
}
.map {
  widtH: 100%;
  border: 0;
  height: 60vh;
  min-height: 420px;
  filter: grayscale(0.6);
  opacity: 0.9;
  margin: 0;
  padding: 0;
}
.stations {
  text-align: center;
  margin-top: 16px;
  font-size: 0.8rem;
}
/* ============================================
   Contact Section
   ============================================ */
.contact-section {
  text-align: center;
}

.contact-intro {
  max-width: 600px;
  margin: 0 auto 60px;
  color: var(--color-text-secondary);
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 30px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--color-text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border-dark);
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-bg-medium);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}
.form-group .agree-wrap {
  text-align: left;
}

.form-group .agree-wrap label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  border: 1px solid var(--color-border-dark);
  padding: 12px 16px;
}
.form-group .agree-wrap input {
  width: auto;
  
}
.form-group .agree-wrap p {
  margin: 0;
  font-size: 0.87rem;
}
.form-group .agree {
  opacity: 0.8;
}
.submit-btn {
  display: inline-block;
  padding: 15px 60px;
  background-color: transparent;
  border: 1px solid var(--color-bg-dark);
  color: var(--color-bg-dark);
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.submit-btn:hover {
  background-color: var(--color-bg-medium);
  color: var(--color-text-muted);
}

.response-message {
  display: none;
  margin-top: 30px;
  padding: 20px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  border-radius: 4px;
  white-space: pre-line;
}

.response-message.success {
  background-color: rgba(48, 77, 62, 0.1);
  border: 1px solid var(--color-accent-green);
  color: var(--color-accent-green);
}

.response-message.error {
  background-color: rgba(128, 32, 32, 0.1);
  border: 1px solid var(--color-attention);
  color: var(--color-attention);
}
/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
  background-color: var(--color-bg-light);
}

.faq-list {
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(98, 72, 61, 0.2);
  padding: 28px 0;
}

.faq-item:first-of-type {
  border-top: 1px solid rgba(98, 72, 61, 0.2);
}

.faq-q {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-bg-medium);
  margin-bottom: 14px;
  line-height: 1.6;
  padding-left: 1.6em;
  position: relative;
}

.faq-q::before {
  content: 'Q.';
  font-family: var(--font-ritch);
  font-size: 1.2rem;
  color: var(--color-bg-medium);
  position: absolute;
  left: 0;
}

.faq-a {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.9;
  padding-left: 1.6em;
  position: relative;
}

.faq-a::before {
  content: 'A.';
  font-family: var(--font-ritch);
  font-size: 1rem;
  color: var(--color-text-secondary);
  opacity: 0.5;
  position: absolute;
  left: 0;
}

/* ============================================
   Policy Page
   ============================================ */
.policy-document dt {
  font-size: 1.2rem;
  margin-top: 40px;
}
.policy-document dd {
  margin-left: 24px;
}
.policy-document dd a {
  color: var(--color-bg-medium);
  text-decoration: underline;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: var(--color-bg-dark);
  border-top: 1px solid var(--color-border-light);
  padding: 24px 0;
}

.footer-inner {
  padding: 0 20px;
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--color-accent);
}
.footer .company-info {
  margin-top: 8px;
}
.footer .company-info p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  opacity: 0.8;
}

.footer-content {
  display: flex;
  flex-direction: column;
}
.footer-content a {
  color: var(--color-text-muted);
  opacity: 0.8;
}
.footer-content a:not(.subtitle) {
  font-size: 0.78rem;
}
.footer-content a.subtitle {
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.footer-content a:hover {
  text-decoration: underline;
  opacity: 0.7;
}

.copyright {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: 8px;
  opacity: 0.7;
}

/* ============================================
   Scroll Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all var(--transition-slow);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all var(--transition-slow);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --section-padding: 60px;
  }

  .header-inner {
    padding: 0 20px;
  }
  .logo a svg {
    height: 26px;
  }
  .nav-desktop {
    display: none;
  }

  .sns-wrap {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: 100vh;
  }

  .hero-title {
    font-size: 2.3rem;
  }
  .feature-elements {
    flex-direction: column;
    gap: 16px;
  }
  .feature-elements .element {
    padding: 16px 20px;
  }
  .section {
    padding: 20px 0;
  }
  .page-title {
    margin-bottom: 0;
  }

  .page-hero {
    height: 40vh;
    min-height: 300px;
  }

  .page-hero-content {
    padding: 0 20px;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 10px 0;
  }

  .company-table th {
    padding-bottom: 5px;
  }

  .company-table td {
    padding-top: 0;
    padding-bottom: 20px;
  }

  .container-2col {
    display: flex;
    flex-direction: column !important;
  }
  .footer-inner {
    display: block;
  }
  a.product:hover img {
    opacity: 0.8;
    background-color: var(--color-bg-dark);
  }
  .products-wrap {
    max-width: auto;
    grid-template-columns: 1fr;
    column-gap: 1rem;
    row-gap: 1.7rem;
  }  
  .segment-separator {
    margin-top: 1.7rem;
    padding-top: 1.7rem;
  }
  .price-info .price-wrapper .price {
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    font-size: 1rem;
  }
  .price-info .price-wrapper .price span {
    border: 0 !important;
    padding: 0;
  }
  .price-info .price-wrapper .note {
    font-size: 0.75rem;
    margin: 0; 
  }
  .product-subtitle {
    font-size: 1.12rem;
  }
  .section-top-text {
    text-align: left !important;
  }
  .content-block {
    margin-bottom: 45px;
  }
  .footer-content {
    display: none;
  }
}

/* ============================================
   Page Transition
   ============================================ */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-deep);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.page-transition.is-active {
  opacity: 1;
  pointer-events: all;
}

body.is-loading {
  overflow: hidden;
}

/* Page content wrapper for transitions */
.page-content-wrapper {
  transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Page content slide out animation */
body.is-transitioning .page-content-wrapper {
  transform: translateY(-50px);
  opacity: 0;
}

/* Main content sections fade in on load */
.hero, .page-hero, .section, .footer {
  animation: contentFadeIn 0.8s ease 0.2s backwards;
}

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

/* ============================================
   Utility Classes
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
