@charset "utf-8";

/* ==========================================================================
   1. Fonts & Base Settings
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;500;600&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

html {
  background: #ffffff;
  font-size: 100%;
  transition: font-size 0.3s ease;
  scroll-padding-top: 100px;
    scroll-behavior: smooth;
}

body {
  letter-spacing: 0.05em;
  line-height: 1.8;
  color: #1A1A1A;
  background-color: #fff;
  font-family: 'Zen Kaku Gothic New', "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", "メイリオ", sans-serif;
  font-weight: 500;
}

#wrapper {
  overflow: visible;
}

div {
  position: relative;
}

/* --- Bootstrap Reset & Utilities --- */
.btn, .navbar-nav .nav-link, a, button {
  font-weight: inherit !important;
}

img {
  max-width: 100%;
  height: auto;
  -webkit-backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
  flex-shrink: 0;
}

a {
  color: #523a28;
  transition: all 0.3s ease;
  text-decoration: none;
}

a:hover {
  opacity: 0.7;
  text-decoration: none;
}

.rounded { border-radius: .5rem !important; }
.rounded-lg { border-radius: 1rem !important; }

.mb-4 { margin-bottom: 1.7rem; }
.mt-4 { margin-top: 1.7rem; }
.my-4 { margin-bottom: 1.7rem; margin-top: 1.7rem; }

@media (min-width: 768px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl {
    max-width: 1030px;
  }
}

/* ==========================================================================
   2. Typography
   ========================================================================== */
.gothic { font-family: 'Zen Kaku Gothic New', sans-serif; }
.mincho { font-family: 'Noto Serif JP', serif; }

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  line-height: 1.7;
  font-family: 'Noto Serif JP', serif;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

.small { font-size: 90%; }
.large { font-size: 120%; }

/* ==========================================================================
   3. Global Navigation (Header)
   ========================================================================== */
#globalNav {
  padding-top: 15px;
  padding-bottom: 15px;
  transition: all 0.5s ease;
  font-family: 'Noto Serif JP', serif;
  background-color: transparent;
}

#globalNav .container-fluid { padding-right: 15px; }
#globalNav .navbar-brand img { max-width: 150px; }

/* Menu Links */
#globalNav .nav-link {
  color: #fff !important;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.15em;
  margin: 0 10px;
  position: relative;
  padding-bottom: 5px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease, color 0.5s ease;
}

#globalNav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s ease;
}

#globalNav .nav-link:hover::after { width: 100%; }

/* Contact Button */
.btn-contact {
  background-color: #989073;
  color: #fff !important;
  font-size: 14px;
  letter-spacing: 0.1em;
  padding: 12px 30px;
  border-radius: 0;
  border: 1px solid #989073;
  transition: all 0.4s ease;
  white-space: nowrap;
  display: inline-block;
  opacity: 1 !important;
  pointer-events: auto;
}

.btn-contact:hover {
  background-color: #989073;
  opacity: 0.85 !important;
  letter-spacing: 0.2em;
  padding-left: 35px;
  padding-right: 25px;
  text-decoration: none;
  border-color: #989073;
}

/* Hamburger */
.custom-toggler span {
  background-color: #fff;
  transition: background-color 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Scrolled State */
#globalNav.is-scrolled {
  background-color: rgba(252, 250, 245, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding-top: 10px;
  padding-bottom: 10px;
}

#globalNav.is-scrolled .nav-link {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  color: #989073 !important;
}

#globalNav.is-scrolled .nav-link::after { background: #989073; }
#globalNav.is-scrolled .btn-contact { background-color: #989073; color: #fff !important; }
#globalNav.is-scrolled .btn-contact:hover { background-color: #8c8469; opacity: 0.9 !important; }
#globalNav.is-scrolled .custom-toggler span { background-color: #989073; }

/* Child Page Header Fixes */
body:not(.home) #globalNav {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding-top: 10px;
  padding-bottom: 10px;
}

body:not(.home) .custom-toggler span { background-color: #8c7b60 !important; }

@media (min-width: 992px) {
  body:not(.home) #globalNav .nav-link {
    opacity: 1; transform: translateY(0); pointer-events: auto;
    color: #3e3a39 !important;
  }
  body:not(.home) #globalNav .nav-link:hover { color: #8c7b60 !important; }
  body:not(.home) #globalNav .nav-link::after { background: #8c7b60; }
  body:not(.home) .btn-contact {
    background-color: #989073; border-color: #989073; color: #fff !important;
  }
  body:not(.home) { padding-top: 50px; }
}

@media (max-width: 991px) {
  #globalNav { padding-top: 15px; padding-bottom: 15px; }
  .navbar-brand img { width: 120px; max-width: 100%; }
  .custom-toggler {
    border: none; outline: none !important; z-index: 1050; padding: 0;
    width: 30px; height: 24px; position: relative; background: none;
  }
  .custom-toggler span {
    display: block; width: 100%; height: 2px; position: absolute;
    right: 0; transition: all 0.4s ease;
  }
  .custom-toggler span:nth-child(1) { top: 0; }
  .custom-toggler span:nth-child(2) { top: 11px; }
  .custom-toggler span:nth-child(3) { top: 22px; }

  .custom-toggler[aria-expanded="true"] span { background-color: #fff; }
  .custom-toggler[aria-expanded="true"] span:nth-child(1) { top: 11px; transform: rotate(45deg); }
  .custom-toggler[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .custom-toggler[aria-expanded="true"] span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

  .navbar-collapse {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: rgba(152, 144, 115, 0.98); z-index: 1000;
    display: flex !important; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s ease;
  }
  .navbar-collapse.show { opacity: 1; visibility: visible; }
  .navbar-nav { margin: 0 !important; width: 100%; padding: 0; }
  .navbar-nav .nav-item { margin: 15px 0; text-align: center; opacity: 0; transform: translateY(15px); transition: 0.5s ease; }
  .navbar-collapse.show .nav-item { opacity: 1; transform: translateY(0); }
  .navbar-collapse.show .nav-item:nth-child(1) { transition-delay: 0.1s; }
  .navbar-collapse.show .nav-item:nth-child(2) { transition-delay: 0.2s; }
  .navbar-collapse.show .nav-item:nth-child(3) { transition-delay: 0.3s; }
  .navbar-collapse.show .nav-item:nth-child(4) { transition-delay: 0.4s; }
  .navbar-collapse.show .nav-item:nth-child(5) { transition-delay: 0.5s; }

  #globalNav .navbar-nav .nav-link {
    opacity: 1 !important; pointer-events: auto !important; transform: none !important;
    display: inline-block; font-family: 'Zen Kaku Gothic New', sans-serif !important;
    font-size: 15px !important; font-weight: 500; letter-spacing: 0.1em; color: #fff !important;
  }
  .btn-contact {
    border-color: #fff; font-family: 'Zen Kaku Gothic New', sans-serif !important;
    font-size: 14px; padding: 10px 30px; margin-top: 10px;
  }
  .btn-contact:hover {
    letter-spacing: 0.1em; opacity: 0.8 !important; background-color: rgba(255, 255, 255, 0.1);
  }
  body:not(.home) { padding-top: 60px; }
  
  /* スマホメニュー内SNSアイコン */
  .nav-sns-icon {
    font-size: 1.5rem; color: #e0e0e0; transition: all 0.3s ease; text-decoration: none;
  }
  .nav-sns-icon:hover { color: #8c7b60; opacity: 1; }
}

/* ==========================================================================
   4. Components (Buttons, Cards, etc.)
   ========================================================================== */
/* Global Button */
.c-btn-main {
  display: inline-flex; justify-content: space-between; align-items: center;
  width: 260px; max-width: 100%; padding: 15px 25px;
  border: 1px solid #8c7b60; background-color: #fff; color: #8c7b60;
  font-family: 'Noto Serif JP', serif; font-size: 14px; letter-spacing: 0.15em;
  text-decoration: none; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 5px 15px rgba(140, 123, 96, 0.1);
}

.c-btn-main::after {
  content: "→"; font-family: sans-serif; font-weight: 300; font-size: 16px;
  border: none; background: none; width: auto; height: auto;
  transform: translateX(0); transition: transform 0.4s;
}

.c-btn-main:hover {
  background-color: #8c7b60; color: #fff; text-decoration: none;
  box-shadow: 0 10px 25px rgba(140, 123, 96, 0.3);
}

.c-btn-main:hover::after { transform: translateX(5px); color: #fff; }

@media (max-width: 991px) {
  .c-btn-main { width: 100%; justify-content: center; position: relative; }
  .c-btn-main::after { position: absolute; right: 20px; }
}

/* Philosophy Card (Unified) */
.wa-card {
  background: #fff; padding: 30px; text-align: center; border-radius: 8px;
  border-top: 2px solid #e0e0e0; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: auto; display: flex; flex-direction: column; justify-content: center; align-items: center;
}

.wa-card:hover {
  transform: translateY(-5px); box-shadow: 0 15px 30px rgba(140, 123, 96, 0.1); border-top-color: #8c7b60;
}

.wa-card-title {
  margin-bottom: 25px; font-size: 1.3rem; color: #8c7b60;
  position: relative; display: inline-block; padding-bottom: 10px;
}

.wa-card-title::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 30px; height: 1px; background-color: #e0e0e0;
}

.wa-card p, .wa-card li {
  color: #555; font-family: 'Zen Kaku Gothic New', sans-serif; letter-spacing: 0.05em;
}

.wa-card.border-gold { border: 1px solid #e0e0e0; border-top: 2px solid #8c7b60; }
.wa-card.border-gold:hover { border-color: #8c7b60; }

/* ==========================================================================
   5. Footer & Page Top
   ========================================================================== */
#globalFooter {
  background-color: #fff; padding-top: 80px; padding-bottom: 30px;
  position: relative; border-top: 1px solid #eaeaea;
}

#globalFooter .container { max-width: 1280px !important; width: 95%; }
.footer-logo img { height: auto; display: block; }
.footer-address { font-size: 14px; line-height: 1.8; color: #333; }

.contact-nums span {
  font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; letter-spacing: 0.05em;
}

.footer-sub-links li { margin-right: 20px; margin-bottom: 10px; }
.footer-sub-links li a { font-size: 12px; color: #666; text-decoration: none; transition: color 0.3s; }
.footer-sub-links li a:hover { color: #8c7b60; }

/* Footer Nav Links */
.footer-cool-link {
  display: flex; align-items: center; justify-content: space-between; padding: 15px 10px;
  border-bottom: 1px solid #eaeaea; color: #333; text-decoration: none;
  position: relative; overflow: hidden; transition: all 0.4s ease; font-size: 14px;
}

.footer-cool-link .en { font-size: 16px; letter-spacing: 0.05em; }
.footer-cool-link .jp { font-size: 13px; }
.footer-nav-area li:first-child .footer-cool-link { border-top: 1px solid #eaeaea; }

.footer-cool-link::before {
  content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background-color: #f9f9f7; transition: left 0.4s cubic-bezier(0.2, 1, 0.3, 1); z-index: 0;
}

.footer-cool-link span { position: relative; z-index: 1; transition: color 0.3s; }

.footer-cool-link::after {
  content: ""; width: 6px; height: 6px; border-top: 1px solid #ccc; border-right: 1px solid #ccc;
  background: transparent; transform: rotate(45deg); margin-right: 5px;
  position: relative; z-index: 1; transition: all 0.4s;
}

.footer-cool-link:hover { text-decoration: none; padding-left: 20px; }
.footer-cool-link:hover::before { left: 0; }
.footer-cool-link:hover span { color: #8c7b60; }
.footer-cool-link:hover::after { border-color: #8c7b60; transform: rotate(45deg) scale(1.1); }

.copyright { margin-top: 60px; color: #999; font-size: 14px; letter-spacing: 0.1em; font-family: "Zen Kaku Gothic New", sans-serif; }

@media (max-width: 991px) {
  #globalFooter .container { max-width: 100% !important; width: 100%; padding-left: 20px; padding-right: 20px; }
  #globalFooter { padding-top: 50px; }
  .footer-sub-links { margin-bottom: 40px; }
  .page-top-btn { bottom: 20px; right: 20px; }
}

/* Page Top Button */
.page-top-btn {
  position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
  background-color: #3e3a39; border-radius: 50%; z-index: 9999;
  display: flex; justify-content: center; align-items: center;
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all 0.5s ease; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-top-btn .arrow {
  display: block; width: 10px; height: 10px; border-top: 2px solid #fff;
  border-left: 2px solid #fff; transform: rotate(45deg); margin-top: 3px;
}

.page-top-btn:hover { background-color: #8c7b60; transform: translateY(-5px); }
.page-top-btn.is-show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ==========================================================================
   6. Page Templates (Common)
   ========================================================================== */
.page-header-wrapper {
  padding: 60px 0 40px; background-color: #f9f9f7; border-bottom: 1px solid #eaeaea;
  margin-bottom: 0; text-align: center;
}
@media (min-width: 992px) { .page-header-wrapper { padding: 80px 0 50px; } }

.page-title { font-size: 2rem; font-weight: 500; letter-spacing: 0.15em; color: #3e3a39; margin-bottom: 0; line-height: 1.4; }
@media (min-width: 992px) { .page-title { font-size: 2.4rem; } }

.page-title .small-caption {
  font-size: 0.9rem; color: #8c7b60; font-family: 'Zen Kaku Gothic New', sans-serif;
  letter-spacing: 0.05em; opacity: 0.9;
}

.content-body { padding-top: 50px; padding-bottom: 80px; }
@media (min-width: 992px) { .content-body { padding-left: 4vw; padding-right: 4vw; } }

/* Breadcrumbs */
.breadcrumb.custom-breadcrumb, .english-breadcrumb {
  background-color: transparent; padding: 0; margin-bottom: 10px; justify-content: center;
}

.english-breadcrumb {
  margin-bottom: 0; font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
}

.breadcrumb.custom-breadcrumb .breadcrumb-item a, .english-breadcrumb .breadcrumb-item a { color: #999; text-decoration: none; transition: color 0.3s; }
.breadcrumb.custom-breadcrumb .breadcrumb-item a:hover, .english-breadcrumb .breadcrumb-item a:hover { color: #8c7b60; }
.breadcrumb.custom-breadcrumb .breadcrumb-item.active, .english-breadcrumb .breadcrumb-item.active { color: #8c7b60; }

.breadcrumb.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before, 
.english-breadcrumb .breadcrumb-item + .breadcrumb-item::before { content: "›"; color: #ccc; }
.english-breadcrumb .breadcrumb-item + .breadcrumb-item::before { content: ">"; color: #ddd; }

/* In-Page Navigation */
.in-page-nav ul { border-color: #eaeaea !important; }
.in-page-nav li { margin: 0 2vw; }
.in-page-nav a { display: block; text-decoration: none; color: #333; transition: all 0.3s ease; padding: 5px 10px; position: relative; }
.in-page-nav a .jp { display: block; font-size: 1rem; margin-bottom: 2px; }
.in-page-nav a .en {
  display: block; font-size: 0.65rem; color: #999; letter-spacing: 0.1em;
  font-family: 'Zen Kaku Gothic New', sans-serif; transition: color 0.3s;
}
.in-page-nav a:hover .jp, .in-page-nav a:hover .en { color: #8c7b60; }

.in-page-nav a::after {
  content: ''; position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background-color: #8c7b60; transition: width 0.3s ease;
}
.in-page-nav a:hover::after { width: 100%; }

/* ==========================================================================
   7. Section Styles (Company, Access, Floating Images)
   ========================================================================== */
.section-wa { padding: 60px 0; position: relative; }
.bg-wa-beige { background-color: #f9f9f7; }

/* Greeting & Philosophy Backgrounds */
.company-greeting-section { position: relative; padding-bottom: 70px; background-color: #fff; overflow: hidden; }
.philosophy-bg-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.philosophy-bg-layer .bg-right-beige { position: absolute; top: 0; right: 0; width: 45%; height: 100%; background-color: #F8F7F5; }
.philosophy-bg-layer .bg-left-top-gray { position: absolute; top: 0; left: 0; width: 55%; height: 115px; background-color: #FCFCFC; }
.philosophy-bg-layer .bg-left-main-white { position: absolute; top: 115px; left: 0; width: 55%; height: 100%; background-color: #ffffff; }

.greeting-text-area { padding: 20px; }
.concept-title { font-size: 28px; letter-spacing: 0.1em; font-weight: 500; color: #5a4e40; line-height: 1.6; }
.concept-body { font-family: 'Zen Kaku Gothic New', sans-serif; line-height: 2.2; color: #444; }
.concept-body p { letter-spacing: 0.02em; font-size: 15px; margin-bottom: 30px; text-align: justify; text-justify: inter-ideograph; }
.greeting-image-area img { width: 100%; height: auto; display: block; box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.05); }

@media (min-width: 992px) {
  .vertical-text-pc { writing-mode: vertical-rl; text-orientation: upright; }
  .wa-heading-vertical {
    font-family: 'Noto Serif JP', serif; font-size: 2.2rem; font-weight: 500; color: #333; line-height: 1.8;
    letter-spacing: 0.1em; writing-mode: vertical-rl; text-orientation: upright;
    margin-right: 40px; float: left; height: 300px; border-left: 1px solid #8c7b60; padding-left: 20px;
  }
  .greeting-image-box { margin-top: 80px; margin-left: 30px; position: relative; z-index: 10; }
}

@media (max-width: 991px) {
  .wa-heading-horizontal { font-family: 'Noto Serif JP', serif; font-size: 1.8rem; color: #333; border-bottom: 1px solid #8c7b60; padding-bottom: 15px; display: inline-block; }
  .company-greeting-section { padding-top: 20px; padding-bottom: 50px; }
  .philosophy-bg-layer .bg-right-beige { width: 30%; }
  .philosophy-bg-layer .bg-left-top-gray { width: 70%; height: 140px; }
  .philosophy-bg-layer .bg-left-main-white { width: 70%; top: 140px; }
  .greeting-text-area { margin-bottom: 40px; padding-left: 0; padding-right: 0; }
  .greeting-image-area { margin-left: -15px; margin-right: -15px; width: calc(100% + 30px); max-width: none; }
  .greeting-image-area img { border-radius: 0 !important; box-shadow: none; }
}

/* Profile & Lists */
.profile-list dt { font-weight: bold; font-family: 'Noto Serif JP', serif; color: #5a4e40; padding-top: 5px; }
.profile-list dd { font-family: 'Zen Kaku Gothic New', sans-serif; color: #333; line-height: 1.8; }
.philosophy-label { font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.15em; color: #8c7b60; background-color: #fff; border: 1px solid #dcdcdc; padding: 0.4em 1.5em; margin-bottom: 1rem; display: inline-block; }
.vertical-motto { writing-mode: vertical-rl; text-orientation: upright; letter-spacing: 0.6em; height: auto; min-height: 200px; margin: 0 auto; color: #333; }

/* Business & Access Sections */
#anc-business { position: relative; overflow: hidden; background-color: #fff; }
.business-bg-left { position: absolute; top: 35%; left: 0; bottom: 15%; width: 80%; background-color: #fbfbf9; z-index: 0; }
.business-text-wrap p { font-family: 'Zen Kaku Gothic New', sans-serif; color: #444; line-height: 1.9; letter-spacing: 0.05em; text-align: justify; text-justify: inter-ideograph; }
#anc-access .border-gold { border-top: 3px solid #8c7b60 !important; }

.profile-card { padding: 60px 80px; max-width: 960px; }
@media (max-width: 991px) { .profile-card { padding: 40px 20px; } }

.profile-table th { width: 20%; white-space: nowrap; color: #8c7b60; font-family: 'Noto Serif JP', serif; font-weight: 500; padding: 25px 0; border-top: none; border-bottom: 1px solid #eaeaea; vertical-align: top; }
.profile-table td { padding: 25px 0 25px 50px; border-top: none; border-bottom: 1px solid #eaeaea; color: #444; font-family: 'Zen Kaku Gothic New', sans-serif; line-height: 1.8; }
.profile-table tr:last-child th, .profile-table tr:last-child td { border-bottom: none; }

@media (max-width: 767px) {
  .profile-table th, .profile-table td { display: block; width: 100%; padding: 10px 0; border: none; }
  .profile-table th { padding-top: 20px; padding-bottom: 5px; font-size: 1.1em; }
  .profile-table td { padding-top: 0; padding-left: 0; padding-bottom: 20px; border-bottom: 1px solid #eaeaea; }
}

#anc-access { position: relative; overflow: hidden; background-color: #fff; }
.access-bg-right { position: absolute; top: 15%; right: 0; bottom: 15%; width: 80%; background-color: #fbfbf9; z-index: 0; }
.access-map-frame { width: calc(100% - 60px); margin-left: auto; height: 600px; position: relative; z-index: 1; border-radius: 4px; }

.kyoto-card-light {
  position: absolute; top: 50%; left: -30px; transform: translateY(-50%); background: rgba(252, 250, 242, 0.9);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.2);
  border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.6); padding: 30px 20px;
  max-width: 340px; width: 90%; text-align: center; color: #3e3a39; z-index: 10;
}

.kyoto-card-light h3 { font-family: "Noto Serif JP", serif; font-size: 1.2rem; font-weight: 700; margin: 0; letter-spacing: 0.1em; }
.kyoto-card-light .zip { font-family: "Noto Serif JP", serif; font-size: 0.9rem; margin-bottom: 2px; letter-spacing: 0.05em; }
.kyoto-card-light .address { font-family: "Noto Serif JP", serif; font-size: 1rem; line-height: 1.6; margin-bottom: 0; }
.kyoto-card-light .tel { font-family: "Times New Roman", serif; font-size: 1.5rem; color: #7a463b; letter-spacing: 0.05em; display: inline-block; width: 100%; margin-top: 12px; padding-top: 12px; border-top: none; position: relative; margin-bottom: 0; }

@media (max-width: 991.98px) { .access-map-frame { width: 100%; margin-left: 0; height: 550px; } .kyoto-card-light { display: none; } }

/* Floating Image Animations */
.history-floating-images { position: relative; width: 100%; height: 500px; }
.floating-item { position: absolute; border-radius: 50%; overflow: hidden; box-shadow: 0 20px 40px rgba(140, 123, 96, 0.3) !important; }
.floating-item.item-1 { width: 320px; height: 320px; top: 50px; left: 20px; z-index: 2; animation: floatY 3s ease-in-out infinite alternate; }
.floating-item.item-2 { width: 260px; height: 260px; bottom: 30px; right: 30px; z-index: 1; opacity: 0.9; animation: floatY 4s ease-in-out -1s infinite alternate; }
.floating-item img { width: 100%; height: 100%; object-fit: cover; }

@keyframes floatY { 0% { transform: translateY(0); } 100% { transform: translateY(-20px); } }

@media (max-width: 991.98px) {
  .history-floating-images { height: 380px; margin-bottom: 40px; }
  .floating-item.item-1 { width: 240px; height: 240px; top: 20px; left: 50%; margin-left: -140px; }
  .floating-item.item-2 { width: 200px; height: 200px; bottom: 20px; right: 50%; margin-right: -120px; }
}

.factory-floating-images { position: relative; width: 100%; height: 600px; }
.factory-floating-images .item-1 { width: 260px; height: 260px; top: 0; right: 0; z-index: 2; animation: floatY 3s ease-in-out infinite alternate; }
.factory-floating-images .item-2 { width: 220px; height: 220px; bottom: 20px; left: 0; z-index: 3; animation: floatY 4.5s ease-in-out -1s infinite alternate; }
.factory-floating-images .item-3 { width: 140px; height: 140px; top: 45%; right: 25%; z-index: 1; opacity: 0.9; animation: floatY 4s ease-in-out -2s infinite alternate; }

@media (max-width: 991.98px) {
  .factory-floating-images { height: 450px; margin-bottom: 50px; }
  .factory-floating-images .item-1 { width: 200px; height: 200px; top: 0; right: 10px; }
  .factory-floating-images .item-2 { width: 170px; height: 170px; bottom: 0; left: 10px; }
  .factory-floating-images .item-3 { width: 110px; height: 110px; top: 180px; left: 50%; margin-left: -55px; }
}

/* Factory Text Styling */
.design-border-left { font-weight: bold; color: #555; border-left: 5px solid #efebe6; padding-left: 15px; margin-bottom: 24px; }
.wa-message-card { position: relative; background-color: #fdfbf7; padding: 10px; box-shadow: 0 10px 30px rgba(140, 123, 96, 0.1); border-radius: 4px; }
.wa-message-card .inner-frame { border: 1px solid #cbbfa8; padding: 30px 25px; background-color: #fff; position: relative; }
.wa-message-card .card-title-gold { color: #8c7b60; letter-spacing: 0.1em; position: relative; display: inline-block; }

@media (max-width: 576px) { .wa-message-card .inner-frame { padding: 25px 15px; } .wa-message-card .card-title-gold::before, .wa-message-card .card-title-gold::after { display: none; } }

/* ==========================================================================
   8. Contact Form (.MailForm) & Validation
   ========================================================================== */
.MailForm .form-control.border-brown {
  border: 1px solid #e0d8cc; background-color: #fcfcfc; padding: 8px 12px;
  font-size: 1rem; line-height: 1.5; border-radius: 4px; transition: all 0.3s ease;
  margin-bottom: 0 !important;
}

.MailForm .form-control.border-brown:focus { border-color: #8c7b60; background-color: #fff; box-shadow: 0 0 0 0.2rem rgba(140, 123, 96, 0.15); outline: none; }
.MailForm .form-group { margin-bottom: 15px !important; }

.MailForm .col-form-label { color: #333; padding-top: 8px; padding-bottom: 8px; margin-bottom: 0; font-size: 0.95rem; }

.MailForm .btn-brown {
  background-color: #8c7b60; border-color: #8c7b60; color: #fff; font-weight: bold;
  font-family: "Yu Mincho", "YuMincho", serif; letter-spacing: 0.1em; min-width: 240px;
  padding: 12px 30px !important; transition: all 0.3s ease; display: block;
  margin-left: auto !important; margin-right: auto !important;
}

.MailForm .btn-brown:hover { background-color: #6e5f48; border-color: #6e5f48; color: #fff; transform: translateY(-2px); }

@media (max-width: 576px) { .MailForm .form-group { margin-bottom: 20px !important; } .MailForm .col-form-label { padding-bottom: 4px; font-size: 0.9rem; } }

/* Form Spinner & Tooltips */
.MailForm .form-group.text-center { position: relative; }
.MailForm .wpcf7-spinner { position: absolute; left: 50%; margin-left: 140px; bottom: 20px; margin-top: 0; }
.MailForm .wpcf7-not-valid-tip { font-size: 0.75rem; color: #c06c55; margin-top: 6px; font-weight: normal; letter-spacing: 0.05em; line-height: 1.4; display: block; }