:root {
  --primary-light: #882d37;
  --primary-medium: #6f2b38;
  --primary-dark: #4f2639;
  --accent: #b8923d;
  --pearl: #f4f1f8;
  /* グラデーション定義 */
  --primary-gradient: linear-gradient(135deg, #882d37 0%, #6f2b38 50%, #4f2639 100%);
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Noto Serif JP', serif;
  -webkit-font-smoothing: antialiased;
  color: #1f1a2e;
  /* AOSアニメーション等による横方向のはみ出し（横スクロール）を防止 */
  overflow-x: hidden;
}

[x-cloak] {
  display: none !important;
}

/* Ken Burns Effect for Hero */
@keyframes kenburns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}
.ken-burns {
  animation: kenburns 10s ease-out forwards;
}

/* Base Layout */
section {
  padding: 100px 0;
  overflow: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* Subhero Base */
.subhero {
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
}
.subhero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(79, 38, 57, 0.5); /* Using primary-dark with opacity */
}
.subhero > div {
  position: relative;
  z-index: 1;
  text-align: center;
}

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

.about-subhero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-image: url('../img/about-subhero-bg.jpg');
  color: #ffffff;
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 80px;
}
.about-subhero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(31, 26, 46, 0.5) 0%, rgba(31, 26, 46, 0.2) 100%);
  z-index: 1;
}
.about-subhero .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
}
.about-subhero__card {
  background-color: #ffffff;
  color: #1f1a2e;
  padding: 3.5rem;
  max-width: 560px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.about-subhero__label {
  font-family: 'Playfair Display', serif;
  color: #b8923d;
  letter-spacing: 0.2em;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: block;
}
.about-subhero__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 2rem;
  line-height: 1.4;
  margin-bottom: 2rem;
}
.about-subhero__text {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  line-height: 2;
  color: #4a4a4a;
}
@media (max-width: 768px) {
  .about-subhero {
    height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }
  .about-subhero__card {
    padding: 2.5rem 1.5rem;
    margin: 0 1rem;
  }
  .about-subhero__title {
    font-size: 1.6rem;
  }
}

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

.section-question {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../img/about-question-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #ffffff;
  overflow: hidden;
}

.section-question::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(31, 26, 46, 0.6);
}

.question-container {
  position: relative;
  z-index: 10;
  text-align: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.question-text {
  font-family: 'Playfair Display', 'Noto Serif JP', serif;
  line-height: 1.6;
}

.question-main {
  font-size: clamp(1.75rem, 5vw, 3rem);
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
}

.question-sub {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  opacity: 0.85;
  font-style: italic;
  margin-bottom: 3rem;
}

.question-divider {
  width: 200px;
  height: 1px;
  background: linear-gradient(to right, transparent, #b8923d, transparent);
  margin: 0 auto 3rem;
}

.question-desc {
  font-size: 1rem;
  letter-spacing: 0.2em;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .section-question {
    height: 70vh;
    background-attachment: scroll;
  }
  .question-divider {
    width: 120px;
  }
}

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

.loop-section {
  background-color: var(--white);
}
.loop-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}
@media (min-width: 768px) {
  .loop-item {
    flex-direction: row;
  }
  .loop-item.reverse {
    flex-direction: row-reverse;
  }
}
.loop-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}
@media (min-width: 768px) {
  .loop-image-wrapper {
    width: 50%;
    height: 500px;
  }
}
.loop-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.loop-image-wrapper:hover img {
  transform: scale(1.05);
}
.loop-content {
  width: 100%;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .loop-content {
    width: 50%;
    padding: 0 4rem;
  }
}
.loop-number {
  font-family: 'Playfair Display', serif;
  color: var(--accent);
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1.5rem;
  display: block;
}
.loop-title-ja {
  font-size: 1.75rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: var(--dark);
}
.loop-title-en {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  display: block;
}
.loop-text {
  font-size: 1rem;
  line-height: 2;
  color: var(--dark);
  opacity: 0.9;
  margin-bottom: 1.5rem;
  text-align: justify;
}
.loop-text-en {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--dark);
  opacity: 0.6;
}
.loop-divider {
  width: 40px;
  height: 1px;
  background-color: var(--accent);
  margin: 2rem 0;
}

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

.engines-section {
  background-color: var(--pearl);
  position: relative;
  overflow: hidden;
}

.engines-bg-image {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  filter: grayscale(100%);
  pointer-events: none;
}

.engine-card-dmc {
  background: white;
  border: 1px solid rgba(184, 146, 61, 0.2);
  transition:
    transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s ease;
  position: relative;
}

.engine-card-dmc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-gradient);
}

.engine-card-dmc:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(31, 26, 46, 0.05);
}

.engine-tag {
  font-family: 'Playfair Display', serif;
  color: var(--accent);
  letter-spacing: 0.2em;
}

.engine-title {
  font-family: 'Playfair Display', serif;
  color: var(--primary-dark);
}

.engine-role {
  color: var(--primary-medium);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

.formula-box {
  border-top: 1px solid rgba(184, 146, 61, 0.3);
  margin-top: 4rem;
  padding-top: 2rem;
}

.formula-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

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

.principles-section {
  background-color: var(--pearl);
  font-family: 'Noto Serif JP', serif;
}
.principle-card {
  position: relative;
  overflow: hidden;
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  color: #ffffff; /* Explicitly set to white */
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.principle-card:hover {
  transform: translateY(-10px);
}
.principle-card::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Increased gradient opacity for better text readability */
  background: linear-gradient(to bottom, rgba(31, 26, 46, 0.3) 0%, rgba(31, 26, 46, 0.9) 100%);
  z-index: 1;
}
.principle-card .content {
  position: relative;
  z-index: 2;
}
.principle-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.9;
}
.principle-title-en {
  font-family: 'Playfair Display', serif;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 8px;
  display: block;
}

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

.company-subhero {
  position: relative;
  padding: 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-color: var(--pearl);
  overflow: hidden;
}
.company-subhero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  z-index: 1;
}
.company-subhero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.company-subhero__content {
  position: relative;
  z-index: 2;
  margin-left: auto;
  width: 55%;
  padding: 80px 60px;
  background-color: #ffffff;
}
.company-subhero__title {
  font-size: 2.25rem;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  color: var(--primary-dark);
  font-weight: 500;
}
.company-subhero__message-ja {
  font-size: 1rem;
  line-height: 2.2;
  margin-bottom: 2.5rem;
  color: #333;
  text-align: justify;
}
@media (max-width: 1024px) {
  .company-subhero {
    flex-direction: column;
  }
  .company-subhero__bg {
    position: relative;
    width: 100%;
    height: 45vh;
  }
  .company-subhero__content {
    width: 100%;
    padding: 60px 24px;
  }
  .company-subhero__title {
    font-size: 1.8rem;
  }
}

/* From ./parts/company-banner.html */

.company-banner-section {
  padding: 0; /* ワイドバナーのため余白なし */
  overflow: hidden;
}

.banner-container {
  width: 100%;
  height: 50vh;
  position: relative;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.banner-container:hover .banner-image {
  transform: scale(1.03);
}

/* 境界線の装飾 */
.banner-border {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0.3;
  z-index: 2;
}

.banner-border-top {
  top: 0;
}
.banner-border-bottom {
  bottom: 0;
}

/* From ./parts/company-profile.html */

.profile-section {
  background-color: var(--pearl);
  font-family: 'Noto Serif JP', serif;
}

.profile-container {
  max-width: 900px;
  margin: 0 auto;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid rgba(184, 146, 61, 0.3);
}

.profile-table tr {
  border-bottom: 1px solid rgba(184, 146, 61, 0.1);
}

.profile-table th {
  width: 30%;
  padding: 32px 24px;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
  color: var(--primary-medium);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.profile-table td {
  padding: 32px 24px;
  text-align: left;
  vertical-align: top;
  color: #1f1a2e;
  font-size: 1rem;
  line-height: 1.8;
}

.profile-label-en {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 4px;
  opacity: 0.8;
}

.profile-value-en {
  display: block;
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  margin-top: 8px;
  opacity: 0.7;
}

.profile-officer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
}

@media (max-width: 768px) {
  .profile-table th,
  .profile-table td {
    display: block;
    width: 100%;
    padding: 20px 16px;
  }
  .profile-table th {
    padding-bottom: 0;
  }
}

/* From ./parts/company-vision.html */

.vision-section {
  position: relative;
  overflow: hidden;
  background-color: var(--primary-dark);
}
.vision-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/company-vision-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}
.vision-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(136, 45, 55, 0.8) 0%, rgba(31, 26, 46, 0.9) 100%);
}
.vision-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(184, 146, 61, 0.2);
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.vision-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.07);
}
.vision-title-en {
  font-family: 'Playfair Display', serif;
  color: var(--accent);
}
/* etc block style */
.vision-card-etc {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

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

.contact-subhero {
  height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-image: url('../img/contact-subhero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  overflow: hidden;
}

.contact-subhero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(31, 26, 46, 0.45);
  z-index: 1;
}

.contact-subhero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.contact-subhero-label {
  font-family: 'Playfair Display', serif;
  color: #b8923d;
  letter-spacing: 0.3em;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.contact-subhero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 2rem;
}

.contact-subhero-text {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.9;
}

.contact-subhero-text .en {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  opacity: 0.85;
}

.contact-subhero-line {
  width: 60px;
  height: 1px;
  background-color: #b8923d;
  margin: 2.5rem auto 0;
}

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

.contact-form-section {
  background-color: #ffffff;
  font-family: 'Noto Serif JP', serif;
}
.form-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #8b1a3a;
  margin-bottom: 0.5rem;
  display: block;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  background-color: #f4f1f8;
  color: #1f1a2e;
  transition: border-color 0.3s ease;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #b8923d;
}
.contact-info-card {
  border-left: 1px solid #b8923d;
  padding-left: 2rem;
}
.btn-submit {
  background-color: #b8923d;
  color: #ffffff;
  padding: 1.25rem 3rem;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  transition: all 0.3s ease;
  display: inline-block;
  width: 100%;
  text-align: center;
}
.btn-submit:hover {
  background-color: #8b1a3a;
  box-shadow: 0 10px 20px rgba(184, 146, 61, 0.2);
}
.required-tag {
  font-size: 0.65rem;
  color: #8b1a3a;
  vertical-align: middle;
  margin-left: 0.5rem;
}

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

.contact-closing {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../img/contact-closing-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #ffffff;
  padding: 0;
}

.contact-closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(31, 26, 46, 0.65);
  z-index: 1;
}

.contact-closing__content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 900px;
  padding: 0 20px;
}

.closing-question {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: 0.15em;
  margin-bottom: 3rem;
}

.closing-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-family: 'Noto Serif JP', serif;
  margin-bottom: 4rem;
}

.closing-details p {
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  line-height: 1.8;
}

.closing-details .en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.875rem;
  opacity: 0.85;
  margin-top: -0.5rem;
}

.closing-divider {
  width: 120px;
  height: 1px;
  background-color: #b8923d;
  margin: 3rem auto;
}

.closing-project {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  letter-spacing: 0.4em;
  color: #b8923d;
  text-transform: uppercase;
}

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

.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #1f1a2e;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}
.hero-slide.active .hero-image {
  animation: kenburns 10s ease-out forwards;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(31, 26, 46, 0.4) 0%,
    rgba(31, 26, 46, 0.3) 50%,
    rgba(31, 26, 46, 0.8) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  z-index: 10;
  /* スマホ: 画面中央よりやや上に配置してバランスを取る */
  padding-bottom: 12vh;
}
@media (min-width: 768px) {
  .hero-overlay {
    padding-bottom: 0;
  }
}
.hero-content {
  max-width: 1000px;
  padding: 0 20px;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
}
.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.hero-subtitle {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(0.85rem, 2vw, 1.25rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.15em;
}
.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 1.5rem auto;
}
.hero-copy {
  font-size: 1.05rem;
  line-height: 1.8;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.hero-subcopy {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
}
.hero-btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  transition: all 0.4s ease;
  border-radius: 2px;
}
.hero-btn-primary {
  background: #8b1a3a;
  color: #fff;
  border: 1px solid #8b1a3a;
}
.hero-btn-secondary {
  background: #b8923d;
  color: #fff;
  border: 1px solid #b8923d;
}
.hero-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}
.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

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

.philosophy-section {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../img/index-philosophy-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #ffffff;
  overflow: hidden;
}
.philosophy-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(31, 26, 46, 0.6);
  z-index: 1;
}
.philosophy-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.philosophy-title {
  font-size: clamp(1.5rem, 5vw, 2.8rem);
  line-height: 1.8;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  color: #ffffff;
}
.philosophy-en {
  display: block;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  opacity: 0.9;
  margin-top: 1.5rem;
  font-style: italic;
  color: #ffffff;
}
.philosophy-line {
  width: 200px;
  height: 2px;
  background: var(--accent, #b8923d);
  margin: 2.5rem auto;
  border: none;
  box-shadow: 0 0 15px rgba(184, 146, 61, 0.4);
}
.philosophy-subtext {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  opacity: 1;
  color: #ffffff;
}
.philosophy-subtext-en {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  opacity: 0.8;
  color: #ffffff;
}
@media (max-width: 768px) {
  .philosophy-section {
    background-attachment: scroll;
  }
  .philosophy-line {
    width: 120px;
  }
}

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

.index-news {
  background-color: #ffffff;
  padding: 80px 0;
}
.news-item {
  border-bottom: 1px solid rgba(79, 38, 57, 0.1);
  padding: 1.5rem 0;
  transition: all 0.3s ease;
}
.news-item:hover {
  padding-left: 1rem;
  background-color: #f4f1f8;
}

/* From ./parts/index-service-cards.html */

.service-card {
  background: white;
  border-top: 3px solid #b8923d;
  border-radius: 4px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(79, 38, 57, 0.1);
}
.service-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}
.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-card-image img {
  transform: scale(1.1);
}
.service-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.service-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: rgba(184, 146, 61, 0.2);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.service-card-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.25rem;
  color: #4f2639;
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.4;
}
.service-card-en {
  font-size: 0.75rem;
  color: #b8923d;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(184, 146, 61, 0.3);
  padding-bottom: 0.5rem;
  display: inline-block;
}
.service-card-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #4a4a4a;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.service-card-text-en {
  font-size: 0.75rem;
  line-height: 1.6;
  color: #888;
  font-style: italic;
  margin-top: auto;
}

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

.kpi-section {
  background-color: #1f1a2e;
  color: white;
  position: relative;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .kpi-grid {
    grid-row-gap: 3rem;
    grid-column-gap: 2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.kpi-card {
  border-left: 2px solid rgba(184, 146, 61, 0.4);
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}
.kpi-card:hover {
  background: rgba(184, 146, 61, 0.05);
  border-left-color: #b8923d;
  transform: translateX(5px);
}
.kpi-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.kpi-label {
  font-size: 0.75rem;
  color: #b8923d;
  font-weight: 700;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.25rem;
}
.kpi-target {
  font-family: 'Playfair Display', serif;
  font-size: 2.75rem;
  line-height: 1;
  color: white;
}
.kpi-unit {
  font-size: 0.9rem;
  opacity: 0.8;
}
.kpi-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #b8923d;
}
.kpi-desc {
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.kpi-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #b8923d;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  margin-top: auto;
}
.kpi-link-btn:hover {
  border-bottom-color: #b8923d;
  gap: 0.75rem;
}

/* Vision Banner Link */
.vision-banner-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem;
  background: linear-gradient(90deg, rgba(184, 146, 61, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(184, 146, 61, 0.2);
  text-decoration: none;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.vision-banner-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(184, 146, 61, 0.1), transparent);
  transition: 0.5s;
}
.vision-banner-link:hover {
  border-color: rgba(184, 146, 61, 0.8);
  background: linear-gradient(90deg, rgba(184, 146, 61, 0.15) 0%, rgba(184, 146, 61, 0.05) 100%);
  transform: translateY(-5px);
}
.vision-banner-link:hover::before {
  left: 100%;
}

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

.index-grid {
  background-color: #ffffff;
}
.index-grid-message-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.index-grid-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 768px) {
  .index-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .index-grid-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

.grid-item {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  cursor: pointer;
}
.grid-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.grid-item:hover .grid-item-img {
  transform: scale(1.15);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31, 26, 46, 0.8) 0%, rgba(31, 26, 46, 0) 50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 40px;
  transition: background 0.5s ease;
}
.grid-item:hover .grid-overlay {
  background: linear-gradient(to top, rgba(111, 43, 56, 0.9) 0%, rgba(111, 43, 56, 0.2) 100%);
}

.grid-content {
  text-align: center;
  color: #ffffff;
  padding: 20px;
  transform: translateY(10px);
  transition: transform 0.5s ease;
}
.grid-item:hover .grid-content {
  transform: translateY(0);
}

.grid-label-en {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  font-style: italic;
  margin-bottom: 0.25rem;
}
.grid-label-ja {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  opacity: 0.8;
  font-weight: 300;
}

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

.news-content-section {
  min-height: 60vh;
}
.article-body h2 {
  font-size: 1.5rem;
  border-left: 4px solid #b8923d;
  padding-left: 1rem;
  margin: 2rem 0 1rem;
}
.article-body p {
  line-height: 2;
  margin-bottom: 1.5rem;
}

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

.service-subhero {
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--white, #ffffff);
  /* スマホ版でヘッダーとの重なりを防ぎ、文字をより下に配置するための調整 */
  padding-top: 80px;
  overflow: hidden;
}

/* モバイル環境で文字位置をさらに押し下げる */
@media (max-width: 768px) {
  .service-subhero {
    height: 70vh; /* 高さを少し広げて余白を確保 */
    align-items: flex-end; /* 中央ではなく下側に配置 */
    padding-bottom: 60px; /* 最下部にはつかないように調整 */
  }
}

.service-subhero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(31, 26, 46, 0.45);
  z-index: 1;
}

.service-subhero .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.service-subhero__title {
  font-family: 'Playfair Display', 'Noto Serif JP', serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.service-subhero__subtitle {
  font-size: 0.875rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.service-subhero__accent-line {
  width: 60px;
  height: 1px;
  background-color: var(--accent, #b8923d);
  margin: 0 auto 2.5rem;
}

.service-subhero__lead {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
}

.service-subhero__lead span {
  display: block;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  opacity: 0.8;
}

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

.service-section {
  padding: 0;
}
.service-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 450px;
}
.service-item:nth-child(even) {
  flex-direction: row-reverse;
}
.service-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
@media (min-width: 768px) {
  .service-image {
    width: 50%;
    height: 500px;
  }
  .service-content {
    width: 50%;
    padding: 0 10%;
  }
}
.service-number {
  font-family: 'Playfair Display', serif;
  color: var(--accent);
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}
.service-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  color: var(--dark);
}
.service-description {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 2rem;
}
.service-list-items {
  list-style: none;
  padding: 0;
}
.service-list-items li {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}
.service-list-items li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.service-en {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

/* From ./parts/service-gallery.html */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(79, 38, 57, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  color: white;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* From ./parts/service-roadmap.html */

.roadmap-section {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.roadmap-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(31, 26, 46, 0.75);
}

.roadmap-section .roadmap-container {
  position: relative;
  z-index: 1;
}

.roadmap-section .roadmap-title {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.1em;
  color: #ffffff;
}

.roadmap-section .roadmap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .roadmap-section .roadmap-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.roadmap-section .roadmap-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-left: 1px solid var(--accent);
  padding: 2.5rem;
  transition: transform 0.3s ease;
}

.roadmap-section .roadmap-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

.roadmap-section .roadmap-phase {
  color: var(--accent);
  font-family: 'Playfair Display', serif;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: block;
}

.roadmap-section .roadmap-year {
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
  margin-bottom: 1.5rem;
  display: block;
  border-bottom: 1px solid rgba(184, 146, 61, 0.3);
  padding-bottom: 0.5rem;
  color: #ffffff;
}

.roadmap-section .roadmap-label {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  display: block;
  color: #ffffff;
}

.roadmap-section .roadmap-desc {
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.roadmap-section .roadmap-quote {
  margin-top: 5rem;
  text-align: center;
  border-top: 1px solid rgba(184, 146, 61, 0.3);
  padding-top: 3rem;
  color: #ffffff;
}
