:root {
  --font-heading: 'Noto Serif JP', serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --color-text: #222e3a;
  --color-bg: #ffffff;
  --color-alt-bg: #f5f8fc;
  --color-blue: #007acc;
  --color-gold: #d4af37;
  --color-footer: #eaeaea;
  --transition: 0.6s cubic-bezier(.4,0,.2,1);
  --color-accent: #007acc;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
}

.br-desktop {
  display: block;
}
.br-mobile {
  display: none;
}
@media (max-width: 768px) {
  .br-desktop {
    display: none;
  }
}
@media (max-width: 390px) {
  .br-mobile {
    display: block;
  }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--color-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  z-index: 100;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
}
.navbar-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.075rem;
  letter-spacing: 2px;
  color: #000000;
  text-decoration: none;
  transition: opacity var(--transition);
}
.navbar-logo:hover {
  opacity: 0.8;
}
.navbar-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.navbar-links a {
  font-family: var(--font-heading);
  text-decoration: none;
  color: var(--color-blue);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition), border var(--transition);
  border: none;
  white-space: nowrap;
}
.navbar-links a.contact-btn {
  background: var(--color-blue);
  color: #fff;
  padding: 10px 24px !important;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: background var(--transition), transform var(--transition);
  border: none;
}
.navbar-links a.contact-btn:hover {
  background: var(--blue-deep);
  color: #fff;
  transform: translateY(-2px);
}
/* Hamburger */
.navbar-hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.navbar-hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: all 0.3s;
}
@media (max-width: 900px) {
  .navbar {
    padding: 0 16px;
    height: 64px;
  }
  .navbar-links {
    gap: 14px;
  }
}
@media (max-width: 700px) {
  .navbar-links {
    position: fixed;
    top: 64px; right: 0;
    background: var(--color-bg);
    flex-direction: column;
    gap: 0;
    width: 70vw;
    box-shadow: -2px 0 8px rgba(0,0,0,0.04);
    transform: translateX(100%);
    transition: transform 0.3s;
    height: calc(100vh - 90px);
    padding-top: 32px;
    z-index: 99;
  }
  .navbar-links.open {
    transform: translateX(0);
  }
  .navbar-hamburger {
    display: flex;
  }
  .navbar-links a {
    padding: 16px 24px;
    border-radius: 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
  }
  .navbar-links a:last-child {
    border-bottom: none;
  }
  .navbar-links a.contact-btn {
    margin: 16px 24px;
    padding: 12px 24px !important;
    border-radius: 6px;
    border: none !important;
    text-align: center;
    background: var(--color-blue);
    color: #fff;
    font-weight: 700;
  }
}
/* HERO */
.hero {
  height: 80vh;
  min-height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background-image: url('img/hero4.jpeg');
  background-size: auto 100%;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  color: #fff;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  transform: translateY(100px);
  gap: 0;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 500;
  letter-spacing: 2px;
  margin: 0;
  line-height: 1;
  text-shadow: 0 2px 16px rgba(0,0,0,0.2);
}
.hero-title .company-type {
  font-size: 0.7em;
}
.hero-subtitle {
  font-size: 1.6rem;
  font-family: var(--font-body);
  font-weight: 200;
  letter-spacing: 0.1em;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.hero-contact-btn {
  display: inline-block;
  background: var(--color-gold);
  color: #fff;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin: 0;
  transition: background var(--transition), transform var(--transition);
  text-shadow: none;
}
.hero-contact-btn:hover {
  background: var(--color-blue);
  transform: translateY(-2px);
}
/* Section base */
section {
  padding: 80px 0;
  width: 100%;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition), transform var(--transition);
}
section.fade-in {
  opacity: 1;
  transform: translateY(0);
}
.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 48px;
  color: var(--color-blue);
  letter-spacing: 1px;
  position: relative;
  display: flex;
  flex-direction: column;
  margin-left: auto;
  margin-right: auto;
}
.section-title-en {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--gold-main), var(--gold-highlight));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-title-jp {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--blue-deep);
  transform: translateY(-10px);
}
/* ABOUT */
.about-wrap {
  display: flex;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.about-wrap .about-text {
  text-align: center;
  max-width: 800px;
}
.about-text {
  flex: 1.2;
  font-size: 1rem;
  min-width: 260px;
}
.about-img {
  flex: 1;
  min-width: 220px;
  max-width: 400px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.about-img img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 100%;
}
/* FEATURE */
.feature-blocks {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.feature-block {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.feature-block:nth-child(even) {
  flex-direction: row-reverse;
}
 .feature-num {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 900;
  color: var(--gold-main);
  /* flex: 0 0 100px; */
  text-align: center;
  line-height: 1;
  margin-bottom: 8px;
}
/* Align bottoms in feature section (number vs subheading) */
/* #feature .feature-num {
  line-height: 1;
  margin-top: calc(1.9rem - 3rem);
} */
.feature-content {
  flex: 1;
  min-width: 220px;
}
.feature-content h3.subheading-accent { margin-top: 0; line-height: 1; }
.feature-img {
  flex: 1;
  min-width: 220px;
  max-width: 400px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.feature-img img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 100%;
}
/* SERVICE */
.service-intro {
  text-align: center;
  margin-bottom: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.service-intro p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
}
.service-categories {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.service-category {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid #eee;
}
.service-category:last-child {
  border-bottom: none;
}
.service-category:nth-child(even) {
  flex-direction: row-reverse;
}
.service-category img {
  width: 600px;
  height: 320px;
  object-fit: cover;
  border-radius: 0;
  flex-shrink: 0;
  cursor: zoom-in;
}
.service-category img.service-img--square {
  object-position: center top;
}
/* Individual service image sizes */
.service-category img.service-img-1 {
  width: 665px;
  height: 360px;
}
.service-slideshow {
  position: relative;
  width: 665px;
  height: auto;
  min-height: 360px;
  overflow: visible;
}

.service-slideshow .service-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.service-slideshow .service-slide.active {
  opacity: 1;
}

.service-category img.service-img-2 {
  width: 665px;
  height: 360px;
}
.service-category img.service-img-3 {
  width: 500px;
  height: 500px;
}
.service-category img.service-img-4 {
  width: 600px;
  height: 320px;
}
.service-category-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service-category-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-blue-main);
  margin-bottom: 8px;
  line-height: 1.3;
}
.service-category-desc {
  font-size: 16px;
  color: #333;
  line-height: 1.7;
  margin-bottom: 16px;
}
.service-link {
  display: inline-block;
  background: var(--gold-highlight);
  color: white !important;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  align-self: flex-start;
  margin-top: auto;
}
.service-link:hover {
  background: var(--gold-main);
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(164, 136, 80, 0.3);
}
.service-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* スマホ版でボタンを中央揃えに配置 */
@media (max-width: 800px) {
  .service-links {
    justify-content: center;
  }
}
/* CG Gallery Manual Slider */
.cg-gallery {
  margin-top: 24px;
  overflow: hidden;
  width: 100%;
  border-radius: 0;
  position: relative;
  cursor: grab;
  user-select: none;
}

.cg-gallery:active {
  cursor: grabbing;
}

.cg-gallery-track {
  display: flex;
  gap: 16px;
  transition: transform 0.3s ease;
  will-change: transform;
}

.cg-gallery-img {
  height: 200px;
  width: auto;
  object-fit: cover;
  border-radius: 0;
  flex-shrink: 0;
  pointer-events: none;
}

/* Auto-scroll animation when not interacting */
.cg-gallery.auto-scroll .cg-gallery-track {
  animation: scroll-horizontal 20s linear infinite;
}

@keyframes scroll-horizontal {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* SOFTWARE */
.software-blocks {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.software-block {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.software-block:nth-child(even) {
  flex-direction: row-reverse;
}
.software-img {
  flex: 1;
  min-width: 220px;
  max-width: 400px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.software-img img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 100%;
}
.software-content {
  flex: 1.2;
  min-width: 220px;
}
/* FLOW */
.flow-steps {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.flow-step {
  background: var(--color-alt-bg);
  border-radius: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  width: 100%;
  max-width: 1000px;
  min-width: 30vw;
  min-height: 64px;
  padding: 18px 32px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  text-align: left;
  position: relative;
}
.flow-step-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-gold);
  margin-bottom: 0;
  margin-right: 18px;
}
/* COMPANY */
.company-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.company-table {
  flex: 1.2;
  min-width: 260px;
  padding: 24px;
  font-size: 0.95rem;
}
.company-table table {
  width: 100%;
  border-collapse: collapse;
}
.company-table th, .company-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-weight: 400;
}
.company-table th {
  font-weight: 700;
  color: var(--color-gold);
  width: 120px;
}
.company-map {
  flex: 1;
  min-width: 220px;
  max-width: 400px;
  height: 340px;
  background: linear-gradient(135deg,#eaeaea 60%,#ccc 100%);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 1.2rem;
  font-family: var(--font-heading);
  letter-spacing: 2px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  overflow: hidden;
}

.company-map iframe {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* CONTACT */
.contact-form-wrap {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  padding: 24px 24px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form > div {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.contact-form label {
  margin-bottom: 6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  display: block;
}
.contact-form label {
  font-weight: 700;
  margin-bottom: 4px;
  color: #222;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fafafa;
  transition: border 0.2s;
  resize: vertical;
  color: #222;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--color-accent);
  outline: none;
}
.contact-form textarea {
  min-height: 60px;
  max-height: 150px;
}
.contact-form button {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--color-gold);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 0;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  margin-top: 8px;
}
.contact-form button:hover {
  background: var(--color-blue);
  color: #fff;
}
.contact-form button:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}
/* Status messages */
#status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  text-align: center;
  transition: opacity 0.3s ease;
}
#status:empty {
  display: none;
}
#status.status-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}
#status.status-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}
/* FOOTER */
footer {
  background: var(--color-footer);
  padding: 40px 0 24px;
  text-align: center;
  font-size: 1rem;
  color: var(--color-text);
  margin-top: 0;
}
.footer-copyright {
  margin-top: 16px;
  font-size: 0.9rem;
  color: #666;
}
.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}
.footer-logo svg {
  width: 38px;
  height: 38px;
  margin-right: 10px;
  fill: var(--color-gold);
}
/* Fade-in animation */
.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
/* Responsive */
@media (max-width: 1100px) {
  .about-wrap, .feature-blocks, .software-blocks, .company-wrap {
    max-width: 98vw;
    gap: 32px;
  }
  .service-categories, .flow-steps {
    max-width: 98vw;
    gap: 32px;
  }
}
@media (max-width: 800px) {
  .hero {
    height: 60vh;
    min-height: 320px;
    background-size: cover;
    background-position: center;
  }
  .hero-content {
    padding: 0 24px;
  }
  .about-wrap, .feature-block, .software-block, .company-wrap {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
  .feature-block, .software-block {
    flex-direction: column !important;
  }
  /* モバイル版でfeature-blockをボックス化 */
  .feature-blocks {
    gap: 64px !important;
  }
  .feature-block {
    padding: 12px 20px;
    gap: 8px !important;
  }
  /* モバイル版でservice-categoryをボックス化 */
  .service-categories {
    gap: 48px !important;
  }
  .service-category {
    flex-direction: column !important;
    gap: 16px;
    padding: 24px 20px !important;
  }
  .service-category img,
  .service-category img.service-img-1,
  .service-slideshow {
    width: 100% !important;
    max-width: 400px;
    height: auto;
    aspect-ratio: 16/9;
    margin: 0 auto;
  }
  .service-slideshow {
    min-height: 0 !important;
  }
  
  .service-category img.service-img-2,
  .service-category img.service-img-3,
  .service-category img.service-img-4 {
    width: 100% !important;
    max-width: 400px;
    margin: 0 auto;
    height: auto !important;
  }
  .company-map {
    height: 160px;
  }
  .about-wrap .about-text {
    text-align: left !important;
  }
  .service-intro {
    text-align: left !important;
  }
  .feature-content p {
    text-align: left !important;
  }
  .service-category-desc {
    text-align: left !important;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  p {
    font-size: 16px;
  }
  .section-title {
    font-size: 1.8rem;
    margin-left: 10px;
    margin-bottom: 32px;
  }
  .hero-content {
    padding: 0 16px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 24px;
  }
  .hero-contact-btn {
    font-size: 1rem;
    padding: 14px 28px;
  }
  section {
    padding: 48px 16px;
  }
  .contact-form-wrap {
    padding: 24px 20px;
    margin: 0 8px;
  }
  .footer-logo svg {
    width: 28px;
    height: 28px;
  }
  .company-table {
    padding: 12px;
    font-size: 0.8rem;
  }
  .company-table th, .company-table td {
    padding: 6px 8px;
  }
  .company-table th {
    width: 80px;
    font-size: 0.8rem;
  }
  .company-table td {
    font-size: 0.8rem;
  }
  .about-wrap .about-text {
    text-align: left !important;
  }
  .service-intro {
    text-align: left !important;
  }
  .subheading-accent--md {
    text-align: center !important;
  }
  .feature-content p {
    text-align: left !important;
    margin: 4px;
  }
  .service-category-desc {
    text-align: left !important;
  }
} 
/* Utility modifiers extracted from inline styles */
.section--alt { background: var(--color-alt-bg); }

.subheading-accent { font-family: var(--font-heading); color: var(--color-accent); margin-bottom: 8px; }
.subheading-accent--md { font-size: 1.9rem; }
.subheading-accent--sm { font-size: 1.9rem; }

.flow-steps--column { flex-direction: column; align-items: center; gap: 0; }
.flow-step--narrow { max-width: 400px; width: 100%; }

.footer-brand { font-family: var(--font-heading); font-weight: 900; font-size: 2rem; color: var(--color-blue); text-decoration: none; transition: opacity var(--transition); }
.footer-brand:hover { opacity: 0.8; }

.contact-lead { text-align: center; font-size: 1rem; color: #222; margin-bottom: 20px; } 
/* Contact form placeholder styles */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #bbb;
  font-size: 1rem;
}

/* For broader browser support */
.contact-form input::-webkit-input-placeholder,
.contact-form textarea::-webkit-input-placeholder { color: #bbb; font-size: 1rem; }
.contact-form input::-moz-placeholder,
.contact-form textarea::-moz-placeholder { color: #bbb; font-size: 1rem; }
.contact-form input:-ms-input-placeholder,
.contact-form textarea:-ms-input-placeholder { color: #bbb; font-size: 1rem; }
.contact-form input::-ms-input-placeholder,
.contact-form textarea::-ms-input-placeholder { color: #bbb; font-size: 1rem; } 
/* Flow enhancements: icons and arrows */
.flow-step {
  position: relative;
  padding-left: 56px;
  margin: 18px 0; /* space replaced former gap */
}
.flow-step-icon {
  width: 28px;
  height: 28px;
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}
.flow-step-icon svg { width: 24px; height: 24px; }

.flow-step-label { width: 100%; text-align: center; }

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 68px;
  color: var(--color-gold);
  margin: -36px 0; /* stronger overlap onto cards */
  position: relative;
  z-index: 5;
  pointer-events: none;
}
.flow-arrow svg { width: 36px; height: 68px; }
.flow-arrow svg path { stroke-width: 3; }

@media (max-width: 600px) {
  .flow-step-icon { width: 24px; height: 24px; }
  .flow-step-icon svg { width: 20px; height: 20px; }
} 

/* Flow section typography reset (restore original size) */
.flow-original { font-size: 1.8rem; } 

/* About section enhancements */
.about-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 0;
  padding: 16px 16px 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  margin: 0px 0;
  position: relative;
}
.about-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-gold);
  border-radius: 0;
}
.about-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 8px;
  font-size: 1.2rem;
}
.about-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.about-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  column-gap: 8px;
}
.about-list li::before {
  content: '✓';
  color: var(--color-gold);
  font-weight: 900;
  line-height: 1;
  font-family: var(--font-heading);
} 

/* Luxury palette overrides and gold styling */
:root {
  /* Deep, layered palette */
  --blue-main: #344087;
  --blue-light: #50588F;
  --blue-deep: #233283;

  --gold-main: #A48850;
  --gold-highlight: #D7B651;
  --gold-shadow: #997A48;

  /* Map existing theme aliases to new palette */
  --color-blue: var(--blue-main);
  --color-gold: var(--gold-main);
  --color-accent: var(--blue-deep);
}

/* Company name styling */
.footer-brand {
  color: #000000;
}

.logo-gold {
  background: linear-gradient(135deg, var(--gold-highlight), var(--gold-main) 45%, var(--gold-shadow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Refined link and button treatments */
.navbar-links a { color: var(--color-blue); }
.navbar-links a:hover { color: var(--blue-light); }


.contact-form button {
  background: linear-gradient(135deg, var(--gold-highlight), var(--gold-main) 50%, var(--gold-shadow));
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.contact-form button:hover {
  background: linear-gradient(315deg, var(--gold-highlight), var(--gold-main) 50%, var(--gold-shadow));
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Accents and details */
.section-title { color: var(--color-blue); text-shadow: 0 1px 0 rgba(0,0,0,0.04); }
.service-title { color: var(--gold-main); }
.company-table th { color: var(--gold-main); }
.footer-logo svg { fill: var(--gold-main); } 

/* Typographic rendering quality */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Headings refinement for luxury feel */
.subheading-accent {
  letter-spacing: 0.01em;
  font-weight: 700;
} 

/* Feature intro (lead + KPI + checklist) */
.feature-intro {
  max-width: 1100px;
  margin: 0 auto 32px;
}
.feature-intro-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 0;
  padding: 20px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.feature-intro-lead {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.feature-intro-lead .tag {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--gold-highlight), var(--gold-main) 50%, var(--gold-shadow));
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
}
.feature-intro-lead .title {
  font-family: var(--font-heading);
  color: var(--color-blue);
  font-size: 1.2rem;
  font-weight: 700;
}

.kpi-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 8px 0 14px;
}
.kpi-stat {
  flex: 1 1 200px;
  min-width: 180px;
  background: linear-gradient(180deg, #fff, #fafafa);
  border: 1px solid #eee;
  border-radius: 0;
  padding: 14px 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.kpi-number {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--gold-highlight), var(--gold-main) 45%, var(--gold-shadow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kpi-label {
  font-size: 0.95rem;
  color: #333;
}

.feature-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.feature-checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  column-gap: 10px;
}
.feature-checklist li::before {
  content: '✓';
  font-family: var(--font-heading);
  color: var(--gold-main);
  font-weight: 900;
  line-height: 1;
}

@media (max-width: 600px) {
  .feature-intro-card { padding: 16px; }
  .kpi-number { font-size: 1.4rem; }
  .kpi-label { font-size: 0.9rem; }

  .about-card p {
    font-size: 12px;
  }
  .section-title-jp {
    font-size: 1.2rem;
  }
  .section-title-en {
    font-size: 1.7rem;
  }
  .subheading-accent--md {
    font-size: 1.4rem;
  }
  .service-intro p {
    font-size: 16px;
  }
  .service-category-title {
    margin: 0;
  }
  .service-category-desc {
    margin-top: 0;
  }
  .cg-gallery {
    margin-top: 0;
  }
  .footer-brand {
    font-size: 1.7rem;
  }
} 

/* Feature trust card (personal relationship strength) */
.feature-trust { max-width: 1100px; margin: 0 auto 32px; }
.trust-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  position: relative;
}
.trust-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, var(--gold-highlight), var(--gold-main) 50%, var(--gold-shadow));
  border-radius: 0;
}
.trust-title {
  font-family: var(--font-heading);
  color: var(--color-blue);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.trust-text { color: #333; font-size: 0.95rem; margin-bottom: 10px; }
.trust-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.trust-points li { display: grid; grid-template-columns: 22px 1fr; align-items: start; column-gap: 10px; }
.trust-points li::before { content: '✓'; font-family: var(--font-heading); color: var(--gold-main); font-weight: 900; line-height: 1; } 


/* Horizontal flow layout */
.flow-steps--horizontal { display: flex; flex-direction: row; align-items: stretch; gap: 16px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.flow-steps--horizontal .flow-step { margin: 0; }

/* Horizontal arrows between cards */
.flow-steps--horizontal .flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: auto;
  margin: 0 -24px; /* overlap onto cards */
  color: var(--gold-main);
  position: relative;
  z-index: 5;
  pointer-events: none;
}
.flow-steps--horizontal .flow-arrow svg { width: 85px; height: 45px; }
.flow-steps--horizontal .flow-arrow svg path { stroke-width: 3; }


/* Horizontal flow: vertical rectangular cards with vertical text */
.flow-steps--horizontal .flow-step {
  width: 138px;
  min-width: 138px;
  height: 400px;
  border-radius: 0;
  background: var(--color-alt-bg);
  border: 2px solid var(--gold-main);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  padding: 15px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}
.flow-steps--horizontal .flow-step-icon {
  position: static;
  left: auto;
  top: auto;
  transform: none;
  margin: 30px 0 8px 0;
}
.flow-steps--horizontal .flow-step-label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  writing-mode: vertical-rl;
  text-orientation: upright;
  line-height: 1.4;
  letter-spacing: 0.05em;
  font-size: 1.1em;
} 
.flow-step-icon img { display: block; width: 40px; height: 40px; object-fit: contain; }
.flow-steps--horizontal .flow-step-icon img { width: 70px; height: 70px; } 

/* Tablet sizing for horizontal flow */
@media (max-width: 1100px) {
  .flow-steps--horizontal .flow-step { width: 126px; min-width: 126px; height: 360px; padding: 14px 10px; }
  .flow-steps--horizontal .flow-step-icon img { width: 64px; height: 64px; }
  .flow-steps--horizontal .flow-step-label { font-size: 1.15em; }
  .flow-steps--horizontal .flow-arrow svg { width: 76px; height: 40px; }
  .flow-steps--horizontal .flow-arrow svg path { stroke-width: 3; }
}

/* Mobile: stack vertically, revert to horizontal text, rotate arrow downward */
@media (max-width: 800px) {
  .flow-steps--horizontal { flex-direction: column; gap: 0px; overflow-x: hidden; align-items: center; }
  .flow-steps--horizontal .flow-step { width: 80vw; max-width: 85vw; min-width: 0; height: auto; padding: 12px; margin: 0 auto; align-items: center; flex-direction: row; position: relative; min-height: 50px; }
  .flow-steps--horizontal .flow-step-label { writing-mode: horizontal-tb; text-orientation: initial; font-size: 0.95rem; text-align: left; width: 100%; }
  .flow-steps--horizontal .flow-step-icon { margin: 0 0 8px 0; }
  .flow-steps--horizontal .flow-step-icon img { width: 48px; height: 48px; }
  .flow-steps--horizontal .flow-arrow { width: auto; height: 28px; margin: 0; }
  .flow-steps--horizontal .flow-arrow svg { transform: rotate(90deg); width: 20px; height: 28px; }
  .flow-steps--horizontal .flow-arrow svg path { stroke-width: 2; }
} 
/* merged in block above */

@media (max-width: 800px) {
  .flow-steps--horizontal .flow-step { gap: 12px; }
  .flow-steps--horizontal .flow-step-icon { margin: 0; display: flex; align-items: center; }
}
@media (max-width: 800px) {
  .flow-steps--horizontal .flow-step-icon { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); }
  .flow-steps--horizontal .flow-step-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: calc(100% - 24px); text-align: center; }
}

/* Feature section: center text vertically to image height */
#feature .feature-block { align-items: center; }
#feature .feature-content { display: flex; flex-direction: column; justify-content: center; }

/* Service link under description */
.service-link {
  display: inline-block;
  margin-top: auto;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 200px;
  text-align: center;
  background: var(--gold-highlight);
  color: white !important;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 0;
  border-bottom: none;
  transition: all 0.3s;
}
.service-link:hover {
  background: var(--gold-main);
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(164, 136, 80, 0.3);
}
/* Small caption text for service descriptions */
.service-desc-caption {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 4px;
}
/* Image Lightbox */
.image-lightbox-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}
.image-lightbox-overlay.open { opacity: 1; pointer-events: auto; }
.image-lightbox-content {
  max-width: 92vw;
  max-height: 92vh;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  border-radius: 0;
  cursor: zoom-out;
}
.image-lightbox-caption {
  position: absolute;
  left: 0; right: 0; bottom: 24px;
  text-align: center;
  color: #fff;
  font-size: 0.95rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  padding: 0 12px;
}
/* Subtle wave background for origin section */
#origin { position: relative; overflow: hidden; }
#origin::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("img/wave.jpeg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  opacity: 0.12;
  z-index: 0;
}
#origin .about-card { position: relative; z-index: 1; }
/* Origin section layout fix */
.origin-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: center;
}
#origin .about-card {
  width: 100%;
  max-width: 900px;
  text-align: left;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
#origin .about-card::before {
  display: none;
}

/* スマホ版：ヒーローセクション背景を右側に */
@media (max-width: 390px) {
  .hero {
    background-position: 70% center;
  }
}