@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+JP:wght@300;400;500;700;900&display=swap");

:root {
  --bg: #050505;
  --bg2: #101010;
  --panel: #15120e;
  --gold: #d8a24a;
  --gold2: #ffd27a;
  --amber: #ff9d2f;
  --red: #b54a32;
  --cream: #fff4df;
  --text: #fff8ec;
  --sub: #d4c2a5;
  --muted: #8f7d61;
  --line: rgba(255, 210, 122, .16);
  --card: rgba(255, 244, 223, .065);
  --shadow: 0 38px 110px rgba(0, 0, 0, .58);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(216, 162, 74, .12), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(255, 157, 47, .09), transparent 30%),
    linear-gradient(180deg, #050505, #0b0805 45%, #050505);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .12;
  background-image:
    linear-gradient(0deg, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

.cursor-glow {
  position: fixed;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216,162,74,.22), rgba(255,157,47,.08) 36%, transparent 68%);
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(5,5,5,.72);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1280px;
  height: 76px;
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.03em;
}

.logo span { color: var(--gold); }

.global-nav {
  display: flex;
  gap: 20px;
  color: var(--sub);
  font-size: 13px;
  font-weight: 800;
}

.global-nav a { transition: .25s; }
.global-nav a:hover { color: var(--gold2); }

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.premium-hero {
  position: relative;
  min-height: 100vh;
  padding: 150px 8% 90px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.42) contrast(1.18) saturate(.95);
  transform: scale(1.05);
  animation: slowZoom 24s ease-in-out infinite alternate;
}

.premium-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 70% 48%, rgba(255,157,47,.18), transparent 34%),
    radial-gradient(circle at 20% 28%, rgba(216,162,74,.26), transparent 32%),
    linear-gradient(90deg, rgba(5,5,5,.97), rgba(5,5,5,.62), rgba(5,5,5,.78));
}

.hero-shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(110deg, transparent 18%, rgba(255,255,255,.08) 28%, transparent 38%);
  transform: translateX(-120%);
  animation: shine 7s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 1040px;
}

.eyebrow,
.section-label {
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.premium-hero h1 {
  margin-top: 26px;
  margin-bottom: 34px;
  font-size: clamp(52px, 8.5vw, 118px);
  line-height: .92;
  letter-spacing: -.08em;
  font-weight: 900;
}

.hero-copy {
  max-width: 760px;
  color: var(--sub);
  font-size: 18px;
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 42px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 900;
  transition: .35s;
}

.btn.primary {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1b1208;
  box-shadow: 0 22px 55px rgba(216, 162, 74, .24);
}

.btn.primary:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, var(--amber), var(--gold));
}

.btn.secondary {
  border: 1px solid rgba(216,162,74,.45);
  color: var(--gold2);
  background: rgba(255,255,255,.035);
}

.btn.text-link {
  color: var(--gold2);
  background: transparent;
  border: none;
  padding-left: 8px;
}

.btn.secondary:hover,
.btn.text-link:hover {
  transform: translateY(-4px);
}

.spec-panel {
  position: absolute;
  right: 8%;
  bottom: 54px;
  z-index: 4;
  width: min(420px, 84vw);
  padding: 26px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255,244,223,.075);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.spec-panel p {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.spec-panel strong {
  display: block;
  margin-top: 12px;
  font-size: 28px;
  letter-spacing: -.04em;
}

.spec-panel span {
  display: block;
  margin-top: 8px;
  color: var(--sub);
}

.section {
  position: relative;
  z-index: 3;
  padding: 120px 28px;
}

.container {
  max-width: 1240px;
  margin: auto;
}

.intro-grid,
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

.section-heading {
  max-width: 920px;
  margin-bottom: 64px;
}

.section-heading h2,
.section-text h2,
.contact-section h2 {
  margin-top: 16px;
  font-size: clamp(34px, 5.4vw, 76px);
  line-height: 1.08;
  letter-spacing: -.06em;
}

.section-heading p,
.section-text p,
.contact-section p {
  margin-top: 24px;
  color: var(--sub);
  line-height: 2;
}

.gallery-stack {
  position: relative;
  min-height: 560px;
}

.gallery-stack img {
  position: absolute;
  width: 72%;
  height: 390px;
  object-fit: cover;
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  filter: brightness(.88) saturate(.96);
  transition: .6s;
}

.gallery-stack img:first-child {
  right: 0;
  top: 0;
}

.gallery-stack img:nth-child(2) {
  left: 0;
  bottom: 0;
}

.gallery-stack:hover img:first-child {
  transform: translateY(-14px) rotate(-1deg);
}

.gallery-stack:hover img:nth-child(2) {
  transform: translateY(14px) rotate(1deg);
}

.service-detail {
  margin-top: 34px;
}

.service-list {
  padding: 34px;
  border-radius: 34px;
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  margin-bottom: 44px;
}

.service-list ul,
.mark-list {
  display: grid;
  gap: 13px;
  list-style: none;
  color: var(--sub);
}

.service-list li,
.mark-list li {
  position: relative;
  padding-left: 32px;
  line-height: 1.8;
}

.service-list li::before,
.mark-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  box-shadow: 0 0 20px rgba(216,162,74,.35);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  min-height: 510px;
  border-radius: 34px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: .45s ease;
}

.service-card:hover {
  transform: translateY(-14px) scale(1.012);
  border-color: rgba(216,162,74,.56);
  box-shadow: 0 34px 100px rgba(0,0,0,.46), 0 0 48px rgba(216,162,74,.1);
}

.service-image {
  height: 235px;
  overflow: hidden;
  position: relative;
}

.service-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent, rgba(5,5,5,.48)),
    radial-gradient(circle at top left, rgba(216,162,74,.18), transparent 42%);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.88) saturate(.95);
  transition: .55s;
}

.service-card:hover .service-image img {
  transform: scale(1.08);
}

.service-body {
  padding: 28px;
}

.service-body span {
  color: rgba(216,162,74,.52);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.service-body h3 {
  margin-top: 18px;
  font-size: 23px;
  letter-spacing: -.04em;
}

.service-body p {
  margin-top: 16px;
  color: var(--sub);
  line-height: 1.9;
}

.visual-card {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(216,162,74,.17);
}

.visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(216,162,74,.16), transparent 46%),
    radial-gradient(circle at bottom right, rgba(255,157,47,.16), transparent 48%);
  pointer-events: none;
}

.visual-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  filter: brightness(.9) saturate(.95);
  transition: .7s;
}

.visual-card:hover img {
  transform: scale(1.06);
}

.section-text h3 {
  margin-top: 34px;
  color: var(--gold2);
  font-size: 24px;
}

.flow-section {
  background:
    linear-gradient(rgba(5,5,5,.88), rgba(5,5,5,.92)),
    url("../images/custom_7.jpg") center/cover fixed no-repeat;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.timeline-item {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255,244,223,.075);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: .35s;
}

.timeline-item:hover {
  transform: translateY(-8px);
  border-color: rgba(216,162,74,.5);
}

.timeline-item span {
  color: var(--gold);
  font-size: 34px;
  font-weight: 900;
}

.timeline-item h3 {
  margin-top: 18px;
  font-size: 21px;
}

.timeline-item h3 a {
  color: var(--gold2);
}

.timeline-item p {
  margin-top: 12px;
  color: var(--sub);
  line-height: 1.8;
}

.price-section,
.models-section,
.faq-section,
.warranty-section,
.contact-info-section,
.intro-section,
.symptoms-section {
  background:
    radial-gradient(circle at left top, rgba(216,162,74,.1), transparent 30%),
    rgba(255,255,255,.018);
}

.price-table-wrap {
  overflow-x: auto;
  border-radius: 30px;
  border: 1px solid rgba(216,162,74,.18);
  background: rgba(255,244,223,.06);
  backdrop-filter: blur(16px);
}

.price-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 22px 26px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.price-table th {
  color: var(--gold);
  background: rgba(216,162,74,.08);
}

.price-table td {
  color: var(--sub);
}

.note {
  margin-top: 22px;
  color: var(--muted);
  line-height: 1.8;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.brand-grid span {
  padding: 22px;
  border-radius: 22px;
  color: var(--cream);
  background: rgba(255,244,223,.07);
  border: 1px solid rgba(216,162,74,.18);
  text-align: center;
  font-weight: 800;
  transition: .3s;
}

.brand-grid span:hover {
  transform: translateY(-6px);
  border-color: rgba(216,162,74,.54);
  color: var(--gold2);
}

.model-highlight {
  margin-top: 42px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 34px;
  align-items: center;
  padding: 32px;
  border-radius: 34px;
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.model-highlight img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 26px;
}

.model-highlight h3 {
  margin-top: 14px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.18;
  letter-spacing: -.04em;
}

.model-highlight p:last-child {
  margin-top: 18px;
  color: var(--sub);
  line-height: 1.9;
}

.wide {
  max-width: 1050px;
}

.contact-card {
  margin-top: 34px;
  padding: 34px;
  border-radius: 28px;
  border: 1px solid rgba(216,162,74,.2);
  background: rgba(255,244,223,.07);
  backdrop-filter: blur(16px);
}

.contact-card p {
  margin-top: 0;
  color: var(--gold);
  font-weight: 900;
}

.contact-card a {
  display: inline-block;
  margin: 8px 0 24px;
  color: var(--gold2);
  font-size: 22px;
  font-weight: 900;
}

.contact-card span {
  color: var(--sub);
  line-height: 1.8;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,244,223,.06);
  border: 1px solid rgba(216,162,74,.16);
}

.faq-item button {
  width: 100%;
  padding: 22px 26px;
  color: var(--text);
  background: transparent;
  border: none;
  text-align: left;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: .35s ease;
}

.faq-answer p {
  padding: 0 26px 24px;
  color: var(--sub);
  line-height: 1.9;
}

.faq-item.open .faq-answer {
  max-height: 260px;
}

.contact-section {
  position: relative;
  z-index: 3;
  padding: 130px 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(216,162,74,.18), transparent 34%),
    linear-gradient(135deg, #050505, #1b1208);
}

.contact-section p {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.contact-section .btn {
  margin-top: 34px;
}

footer {
  position: relative;
  z-index: 3;
  padding: 34px 20px;
  text-align: center;
  color: var(--muted);
  background: #030303;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(46px);
  transition: opacity .85s ease, transform .85s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slowZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.14); }
}

@keyframes shine {
  0%, 64% { transform: translateX(-120%); opacity: 0; }
  72% { opacity: .9; }
  100% { transform: translateX(120%); opacity: 0; }
}

@media (max-width: 1120px) {
  .service-grid,
  .timeline,
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-grid,
  .split,
  .model-highlight {
    grid-template-columns: 1fr;
  }

  .gallery-stack {
    min-height: 500px;
  }
}

@media (max-width: 780px) {
  .cursor-glow { display: none; }

  .header-inner {
    height: 68px;
    padding: 0 18px;
  }

  .menu-button { display: block; }

  .global-nav {
    position: absolute;
    top: 68px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    border-radius: 20px;
    background: rgba(5,5,5,.96);
    border: 1px solid var(--line);
  }

  .global-nav.open { display: flex; }

  .global-nav a {
    padding: 12px 14px;
  }

  .premium-hero {
    padding: 130px 22px 210px;
  }

  .premium-hero h1 {
    font-size: clamp(44px, 14vw, 76px);
  }

  .spec-panel {
    left: 22px;
    right: 22px;
    bottom: 34px;
    width: auto;
  }

  .section {
    padding: 86px 22px;
  }

  .service-grid,
  .timeline,
  .brand-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .visual-card img,
  .gallery-stack img {
    height: 360px;
  }

  .gallery-stack {
    min-height: auto;
    display: grid;
    gap: 18px;
  }

  .gallery-stack img {
    position: static;
    width: 100%;
  }
}


/* merged contact section */
.merged-contact {
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(216, 162, 74, .16), transparent 34%),
    linear-gradient(135deg, #0b0705, var(--brown));
}

.contact-centered {
  max-width: 860px;
  margin: 0 auto;
}

.contact-centered .contact-card {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.contact-main-btn {
  margin-top: 34px;
}


/* ===== Mobile safety / no horizontal scroll ===== */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  max-width: 100%;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

table {
  max-width: 100%;
}

.price-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Keep long emails/addresses from creating horizontal scroll */
.contact-card,
.contact-card a,
.contact-card span,
.company-table td,
.price-table td,
.price-table th,
.faq-answer p,
.section-text p,
.hero-copy {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Mobile layout refinements */
@media (max-width: 780px) {
  body {
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero,
  .premium-hero {
    width: 100%;
    min-width: 0;
  }

  .hero-content,
  .section-text,
  .section-heading,
  .contact-centered,
  .contact-card,
  .aws-panel,
  .service-card,
  .timeline-item,
  .metric,
  .visual-card {
    min-width: 0;
    width: 100%;
  }

  .hero-actions,
  .btns,
  .tag-list {
    width: 100%;
  }

  .hero-actions .btn,
  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .contact-card {
    padding: 26px 18px;
  }

  .contact-card a {
    font-size: clamp(16px, 4.6vw, 22px);
  }

  .price-table {
    min-width: 620px;
  }

  .global-nav {
    max-width: calc(100vw - 36px);
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero,
  .premium-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1,
  .premium-hero h1 {
    letter-spacing: -0.055em;
  }

  .eyebrow,
  .section-label {
    letter-spacing: 0.14em;
    font-size: 12px;
  }

  .contact-card a {
    font-size: 16px;
  }

  .price-table {
    min-width: 560px;
  }
}


/* ===== Final contact at page bottom ===== */
.final-contact {
  margin-top: 0;
  padding-top: 120px;
  padding-bottom: 120px;
}

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.final-contact .contact-card {
  margin-top: 34px;
}

@media (max-width: 780px) {
  .final-contact {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-actions .btn {
    width: 100%;
  }
}


/* Final fixes */
.contact-card a,
.contact-box a{
  font-size: clamp(14px,4vw,22px) !important;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.contact-card,
.contact-box{
  width:100%;
  max-width:100%;
}

@media (max-width:768px){
  .contact-card a,
  .contact-box a{
    font-size:15px !important;
    line-height:1.7;
  }
}


/* Contact Hero Background */
.final-contact{
background:
linear-gradient(rgba(8,6,4,.78),rgba(8,6,4,.78)),
url('../images/contact-bg.jpg') center center/cover no-repeat !important;
}

.final-contact .contact-card{
background:rgba(0,0,0,.45);
backdrop-filter:blur(6px);
}

.final-contact h2,
.final-contact p,
.final-contact a{
position:relative;
z-index:2;
}


/* ===== Final mobile/contact layout fix ===== */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

body {
  min-width: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

/* Fix contact email overflow on mobile */
.contact-card,
.contact-box,
.contact-centered,
.merged-contact .container,
.final-contact .container {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.contact-card {
  overflow: hidden;
}

.contact-card a,
.contact-box a,
a[href^="mailto:"] {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  white-space: normal !important;
  line-height: 1.45;
}

.final-contact .contact-card a,
.merged-contact .contact-card a {
  font-size: clamp(15px, 4vw, 22px) !important;
}

/* Contact section: background only, no foreground image */
.final-contact {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(5, 4, 3, .84), rgba(5, 4, 3, .86)),
    url('../images/contact-bg.jpg') center center / cover no-repeat !important;
}

.final-contact::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 20%, rgba(216,162,74,.16), transparent 36%),
    linear-gradient(180deg, transparent, rgba(0,0,0,.22));
}

.final-contact > * {
  position: relative;
  z-index: 2;
}

/* Service side images changed to background panels */
.service-bg-gallery {
  position: relative;
  min-height: 560px;
}

.service-bg-panel {
  position: absolute;
  width: 72%;
  height: 390px;
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background-size: cover;
  background-position: center center;
  filter: brightness(.88) saturate(.92) sepia(.12);
  transition: .6s;
}

.service-bg-01 {
  right: 0;
  top: 0;
  background-image:
    linear-gradient(rgba(5,5,5,.12), rgba(5,5,5,.2)),
    url('../images/custom_4.jpg');
}

.service-bg-02 {
  left: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(5,5,5,.12), rgba(5,5,5,.2)),
    url('../images/custom_5.jpg');
}

.service-bg-gallery:hover .service-bg-01 {
  transform: translateY(-14px) rotate(-1deg);
}

.service-bg-gallery:hover .service-bg-02 {
  transform: translateY(14px) rotate(1deg);
}

/* Avoid duplicated image feel: assign different images where possible */
.service-card:nth-child(1) .service-image img { object-position: center center; }
.service-card:nth-child(2) .service-image img { object-position: center center; }
.service-card:nth-child(3) .service-image img { object-position: center center; }
.service-card:nth-child(4) .service-image img { object-position: center center; }

@media (max-width: 780px) {
  .container {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .section,
  .final-contact,
  .merged-contact {
    padding-left: 18px;
    padding-right: 18px;
  }

  .final-contact .contact-card,
  .merged-contact .contact-card {
    padding: 24px 18px !important;
    border-radius: 26px;
  }

  .final-contact .contact-card a,
  .merged-contact .contact-card a {
    display: block;
    width: 100%;
    font-size: 15px !important;
    text-align: left;
  }

  .final-contact h2,
  .merged-contact h2 {
    font-size: clamp(28px, 8.4vw, 44px);
    line-height: 1.28;
  }

  .final-contact p,
  .merged-contact p {
    font-size: 15px;
    line-height: 1.9;
  }

  .service-bg-gallery {
    min-height: auto;
    display: grid;
    gap: 18px;
  }

  .service-bg-panel {
    position: static;
    width: 100%;
    height: 280px;
    border-radius: 24px;
  }

  .price-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .price-table {
    min-width: 560px;
  }
}

@media (max-width: 420px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section,
  .final-contact,
  .merged-contact {
    padding-left: 14px;
    padding-right: 14px;
  }

  .final-contact .contact-card a,
  .merged-contact .contact-card a {
    font-size: 14px !important;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-actions .btn {
    width: 100%;
  }
}


/* ===== Service section as hero-style background ===== */
.intro-section,
.service-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(5,4,3,.84), rgba(5,4,3,.88)),
    url('../images/service-bg.jpg') center center / cover no-repeat !important;
}

.intro-section::before,
.service-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 25% 20%, rgba(216,162,74,.16), transparent 34%),
    radial-gradient(circle at 78% 68%, rgba(255,157,47,.10), transparent 36%),
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.34));
  z-index: 0;
}

.intro-section > *,
.service-section > * {
  position: relative;
  z-index: 2;
}

.service-intro-only {
  display: block !important;
}

.service-intro-only .section-text {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.service-intro-only .section-text h2::after {
  content: "WM-D6C・WM-DD9・TC-D5Mなど";
  display: block;
  margin-top: 20px;
  color: var(--gold);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 14px;
  letter-spacing: .16em;
  font-weight: 900;
}

/* Hide any leftover service side-image panels */
.service-bg-gallery,
.gallery-stack {
  display: none !important;
}

/* Keep service cards readable over background */
.service-card {
  background: rgba(10,8,6,.64) !important;
}

.service-card:hover {
  background: rgba(16,12,8,.78) !important;
}

/* Mobile: avoid overflow */
@media (max-width: 780px) {
  .intro-section,
  .service-section {
    background-position: center center !important;
  }

  .service-intro-only .section-text {
    text-align: left;
  }

  .service-intro-only .section-text h2::after {
    font-size: 12px;
    letter-spacing: .1em;
    line-height: 1.7;
  }
}


/* ===== Final complete fixes ===== */

/* Email inserted as image to prevent mobile overflow */
.email-image-link {
  display: inline-flex !important;
  width: min(100%, 560px);
  max-width: 100%;
  justify-content: center;
  align-items: center;
  margin: 8px auto 24px;
  overflow: hidden;
}

.email-image {
  display: block;
  width: min(100%, 560px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Remove accidental oversized plain email styling impact */
.contact-card a:not(.email-image-link) {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Hero button layout: only two CTA buttons expected */
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-actions .btn {
  white-space: normal;
  text-align: center;
}

/* Contact area stronger overlay and centered readable layout */
.final-contact {
  background:
    linear-gradient(rgba(5,4,3,.88), rgba(5,4,3,.90)),
    url('../images/contact-bg.jpg') center center / cover no-repeat !important;
}

/* Mobile no horizontal scroll */
html,
body {
  max-width: 100%;
  overflow-x: hidden !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

@media (max-width: 780px) {
  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .email-image-link,
  .email-image {
    width: 100%;
    max-width: 100%;
  }

  .contact-card {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}


/* ===== Final email image + mobile safety fixes ===== */
.email-image-link {
  display: inline-flex !important;
  width: min(100%, 560px);
  max-width: 100%;
  justify-content: center;
  align-items: center;
  margin: 8px auto 24px;
  overflow: hidden;
}

.email-image {
  display: block;
  width: min(100%, 560px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

.contact-card,
.contact-box,
.contact-centered,
.final-contact .container {
  max-width: 100%;
  min-width: 0;
}

.contact-card a,
.contact-box a,
a[href^="mailto:"] {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.final-contact {
  background:
    linear-gradient(rgba(5,4,3,.88), rgba(5,4,3,.90)),
    url('../images/contact-bg.jpg') center center / cover no-repeat !important;
}

@media (max-width: 780px) {
  .email-image-link,
  .email-image {
    width: 100%;
    max-width: 100%;
  }

  .contact-card {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

.en-sub{
display:block;
margin-top:8px;
font-size:.45em;
letter-spacing:.18em;
font-family:Inter,sans-serif;
color:#d8a24a;
font-weight:700;
}
.en-text{
display:block;
margin-top:10px;
font-size:.9em;
line-height:1.8;
color:#d4c2a5;
font-family:Inter,sans-serif;
}


/* Navigation bilingual labels */
.global-nav a{
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
line-height:1.2;
text-align:center;
}

.nav-sub{
display:block;
margin-top:3px;
font-size:10px;
letter-spacing:.14em;
color:#d8a24a;
font-family:Inter,sans-serif;
font-weight:700;
line-height:1.2;
}

@media (max-width:780px){
.nav-sub{
font-size:9px;
}
}

.nav-sub{
font-size:11px !important;
letter-spacing:.12em;
font-weight:700;
line-height:1.25;
}


/* ===== Corrected bilingual navigation ===== */
.global-nav a {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  line-height: 1.15 !important;
  text-align: center !important;
  white-space: nowrap;
}

.global-nav .nav-sub {
  display: block !important;
  margin-top: 2px !important;
  color: var(--gold, #d8a24a) !important;
  font-family: Inter, "Noto Sans JP", sans-serif !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  letter-spacing: .11em !important;
  font-weight: 800 !important;
}

.global-nav a br,
.global-nav .en-title,
.global-nav .en-button {
  display: none !important;
}

@media (max-width: 780px) {
  .global-nav a {
    align-items: flex-start !important;
    white-space: normal;
  }

  .global-nav .nav-sub {
    font-size: 9px !important;
  }
}


/* Final menu fix */
.logo,
.site-logo,
.nav-logo{
  white-space: nowrap !important;
}

.global-nav a{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
}

.global-nav .nav-sub{
  display:block !important;
  font-size:8px !important;
  line-height:1.1 !important;
  letter-spacing:.08em !important;
  margin-top:2px !important;
}

@media (max-width:768px){
  .global-nav .nav-sub{
    font-size:6px !important;
  }
}


/* =========================================================
   FINAL PATCH ON USER-UPLOADED VERSION
   - clean bilingual menu
   - logo one line
   - mobile hero spacing
   - service background visible on mobile
   ========================================================= */

/* Logo must stay one line */
.logo {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex-shrink: 0 !important;
}

/* Clean nav bilingual layout */
.global-nav {
  align-items: center !important;
}

.global-nav a {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  line-height: 1.12 !important;
  text-align: center !important;
  white-space: nowrap !important;
  min-width: 0 !important;
}

.global-nav .nav-ja {
  display: block !important;
  color: var(--text, #fff8ec) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
}

.global-nav .nav-sub {
  display: block !important;
  color: var(--gold, #d8a24a) !important;
  font-family: Inter, "Noto Sans JP", sans-serif !important;
  font-size: 7px !important;
  line-height: 1.1 !important;
  letter-spacing: .08em !important;
  font-weight: 800 !important;
  margin-top: 0 !important;
}

.global-nav a br,
.global-nav .en-title,
.global-nav .en-button {
  display: none !important;
}

/* Hero English sentence */
.hero-en-text {
  display: block !important;
  margin-top: 12px !important;
  color: var(--sub, #d4c2a5) !important;
  font-family: Inter, "Noto Sans JP", sans-serif !important;
  font-size: clamp(15px, 1.25vw, 18px) !important;
  line-height: 1.85 !important;
  max-width: 760px !important;
}

/* Hero mobile: no overlap with featured panel */
@media (max-width: 780px) {
  .site-header .header-inner {
    min-width: 0 !important;
  }

  .logo {
    font-size: 20px !important;
    max-width: calc(100vw - 98px) !important;
  }

  .global-nav a {
    align-items: flex-start !important;
    white-space: normal !important;
    padding: 12px 14px !important;
  }

  .global-nav .nav-ja {
    font-size: 13px !important;
  }

  .global-nav .nav-sub {
    font-size: 9px !important;
    letter-spacing: .08em !important;
  }

  .premium-hero {
    display: block !important;
    min-height: auto !important;
    padding: 108px 22px 58px !important;
    overflow: hidden !important;
  }

  .premium-hero .hero-content {
    position: relative !important;
    z-index: 4 !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .premium-hero h1 {
    font-size: clamp(46px, 15vw, 72px) !important;
    line-height: .93 !important;
    margin-bottom: 28px !important;
  }

  .hero-copy {
    max-width: 100% !important;
    font-size: 15px !important;
    line-height: 1.9 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .hero-en-text {
    max-width: 100% !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
  }

  .desktop-break {
    display: none !important;
  }

  .hero-actions {
    position: relative !important;
    z-index: 5 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-top: 30px !important;
    margin-bottom: 24px !important;
  }

  .hero-actions .btn {
    width: auto !important;
    flex: 1 1 145px !important;
    min-width: 135px !important;
  }

  .premium-hero .spec-panel {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    margin: 22px 0 0 !important;
    padding: 24px 24px !important;
    z-index: 4 !important;
  }

  .premium-hero .spec-panel strong {
    font-size: clamp(26px, 8.4vw, 38px) !important;
    line-height: 1.32 !important;
    overflow-wrap: anywhere !important;
  }
}

/* Service section: make background visible on mobile and desktop */
#service.intro-section,
.intro-section#service,
section#service {
  position: relative !important;
  overflow: hidden !important;
  background-image:
    linear-gradient(rgba(5, 4, 3, .82), rgba(5, 4, 3, .88)),
    url("../images/service-bg.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
}

#service.intro-section::before,
.intro-section#service::before,
section#service::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 22% 18%, rgba(216,162,74,.18), transparent 36%),
    radial-gradient(circle at 80% 70%, rgba(255,157,47,.10), transparent 34%) !important;
  z-index: 0 !important;
}

#service.intro-section > *,
.intro-section#service > *,
section#service > * {
  position: relative !important;
  z-index: 2 !important;
}

.service-intro-only {
  display: block !important;
}

.service-intro-only .section-text {
  max-width: 900px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

/* Make cards readable on service background */
#service .service-list,
#service .service-card {
  background: rgba(10, 8, 6, .68) !important;
  border-color: rgba(216,162,74,.22) !important;
  backdrop-filter: blur(12px) !important;
}

@media (max-width: 780px) {
  #service.intro-section,
  .intro-section#service,
  section#service {
    background-image:
      linear-gradient(rgba(5, 4, 3, .78), rgba(5, 4, 3, .88)),
      url("../images/service-bg.jpg") !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
  }

  .service-intro-only .section-text {
    text-align: left !important;
  }
}

@media (max-width: 420px) {
  .premium-hero {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .premium-hero h1 {
    font-size: clamp(42px, 14vw, 60px) !important;
  }

  .hero-actions {
    flex-direction: column !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    flex: 1 1 auto !important;
  }
}

/* Global no-horizontal overflow safety */
html,
body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}


/* =========================================================
   RESTORE SERVICE ORIGINAL BACKGROUND STRUCTURE ONLY
   Background layer + dark overlay + content above it
   ========================================================= */

#service.intro-section {
  position: relative !important;
  overflow: hidden !important;
  background: none !important;
  isolation: isolate !important;
}

#service.intro-section::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -2 !important;
  background-image: url("../images/service-bg.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  transform: scale(1.02);
}

#service.intro-section::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  background:
    radial-gradient(circle at 25% 22%, rgba(216,162,74,.18), transparent 34%),
    radial-gradient(circle at 76% 70%, rgba(255,157,47,.10), transparent 34%),
    linear-gradient(rgba(5,4,3,.80), rgba(5,4,3,.88)) !important;
  pointer-events: none !important;
}

#service.intro-section > * {
  position: relative !important;
  z-index: 1 !important;
}

#service .service-list,
#service .service-card {
  background: rgba(10, 8, 6, .68) !important;
  border-color: rgba(216,162,74,.22) !important;
  backdrop-filter: blur(12px) !important;
}

@media (max-width: 780px) {
  #service.intro-section::before {
    background-size: cover !important;
    background-position: center top !important;
    background-attachment: scroll !important;
    transform: scale(1.04);
  }

  #service.intro-section::after {
    background:
      radial-gradient(circle at 20% 15%, rgba(216,162,74,.16), transparent 36%),
      linear-gradient(rgba(5,4,3,.76), rgba(5,4,3,.90)) !important;
  }
}
