/* 株式会社G.L.B. — corporate LP */
:root {
  --orange: #e8892c;
  --orange-dark: #c96e1a;
  --orange-soft: rgba(232, 137, 44, 0.12);
  --text: #2b2b2b;
  --muted: #5c5c5c;
  --line: #e8e8e8;
  /* 参考: https://hikariseisakusyo.com/ （ヘッダー高・オフセットと整合） */
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  line-height: 1.75;
  opacity: 0;
  transition: opacity 0.9s ease;
}

body.is-ready {
  opacity: 1;
}

body.nav-open,
html.nav-open {
  overflow: hidden;
}

html.nav-open {
  height: 100%;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--orange-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.inner {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* ----- header ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, 92vw);
  margin-inline: auto;
  height: 100%;
  padding: 0 1rem 0 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  position: relative;
  z-index: 1003;
}

.logo-name {
  color: var(--orange);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.logo-main {
  display: inline-block;
  font-size: 1.2em;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.logo-dot {
  font-size: 0.78em;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.85;
}

.logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.logo-sub {
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.16em;
}

/* ----- global nav（光製作所サイト準拠） ----- */
#global-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

#global-nav a {
  text-decoration: none;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}

#global-nav a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

@media (min-width: 901px) {
  /* header の backdrop-filter が fixed 子の包含ブロックになるため、nav は header 外に置きここでヘッダー行に固定配置する */
  #global-nav {
    position: fixed;
    top: 0;
    right: calc((100vw - min(1120px, 92vw)) / 2 + 1rem);
    left: auto;
    bottom: auto;
    width: auto;
    max-width: min(70vw, 640px);
    height: var(--header-h);
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 1002;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    box-shadow: none;
    border: none;
  }

  .nav-toggle {
    display: none !important;
  }
}

@media (max-width: 900px) {
  #global-nav {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(252, 252, 252, 0.98);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.45s ease,
      visibility 0.45s;
  }

  #global-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  #global-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 2rem 1.5rem;
  }

  #global-nav a {
    display: block;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    padding: 0.85rem 1.5rem;
    border-bottom: none;
    position: relative;
    opacity: 0;
    transform: translateY(12px);
    transition: color 0.2s, opacity 0.4s ease, transform 0.4s ease;
    color: var(--muted);
  }

  #global-nav.is-open a {
    opacity: 1;
    transform: translateY(0);
  }

  #global-nav.is-open li:nth-child(1) a {
    transition-delay: 0.05s;
  }
  #global-nav.is-open li:nth-child(2) a {
    transition-delay: 0.1s;
  }
  #global-nav.is-open li:nth-child(3) a {
    transition-delay: 0.15s;
  }
  #global-nav.is-open li:nth-child(4) a {
    transition-delay: 0.2s;
  }
  #global-nav.is-open li:nth-child(5) a {
    transition-delay: 0.25s;
  }
  #global-nav.is-open li:nth-child(6) a {
    transition-delay: 0.3s;
  }
  #global-nav.is-open li:nth-child(7) a {
    transition-delay: 0.35s;
  }

  #global-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.5rem;
    width: 0;
    height: 1px;
    background: var(--text);
    transition: width 0.3s ease, left 0.3s ease;
  }

  #global-nav a:hover::after {
    left: 0;
    width: 100%;
  }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1003;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--orange);
  border-radius: 1px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease,
    top 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
  position: relative;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }
}

.doc-keywords {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text);
}

/* ----- MV ----- */
.mv {
  position: relative;
  height: min(88vh, 780px);
  margin-top: var(--header-h);
  overflow: hidden;
  background: #111;
}

.mv-slides {
  position: absolute;
  inset: 0;
}

.mv-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s ease, transform 7s linear;
}

.mv-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.mv-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(232, 137, 44, 0.55) 0%,
    rgba(44, 36, 22, 0.35) 45%,
    rgba(0, 0, 0, 0.55) 100%
  );
  mix-blend-mode: multiply;
}

.mv-noise {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
}

.mv-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.mv-en {
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0;
}

.mv-title {
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.35;
  opacity: 0;
}

.mv-lead {
  max-width: 36rem;
  font-size: 1rem;
  margin: 0;
  opacity: 0;
}

.mv-dots {
  position: absolute;
  z-index: 3;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.mv-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.65);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.mv-dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

/* ----- sections ----- */
main section {
  padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head .en {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
}

.lead-bar {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  margin: 1rem auto 0;
  border-radius: 2px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (max-width: 820px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.soft-panel {
  background: var(--orange-soft);
  border: 1px solid rgba(232, 137, 44, 0.22);
  border-radius: 16px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.photo-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.photo-frame img {
  width: 100%;
  display: block;
}

.point-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.point-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.65rem;
}

.point-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

/* service nav icons */
.service_nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
}

.service_nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 132px;
  padding: 1rem 0.5rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.service_nav a:hover {
  border-color: rgba(232, 137, 44, 0.55);
  box-shadow: 0 12px 28px rgba(232, 137, 44, 0.15);
  transform: translateY(-3px);
  text-decoration: none;
}

.service_nav .ico {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service_nav .ico svg {
  width: 28px;
  height: 28px;
}

/* business blocks */
.biz-feature {
  display: block;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.biz-feature.biz-feature--minor .biz-visual img {
  max-height: 220px;
  object-fit: cover;
}

.biz-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.biz-feature h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.biz-meta {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.biz-meta dt {
  font-weight: 700;
  color: var(--text);
  margin-top: 0.5rem;
}

.biz-meta dd {
  margin: 0.15rem 0 0;
}

.map-embed {
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.map-app-link {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
}

.map-app-link a {
  color: var(--orange-dark);
}

/* company table */
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.company-table th,
.company-table td {
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  vertical-align: top;
}

.company-table th {
  width: 26%;
  background: #fafafa;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    border-bottom: 0;
    padding-bottom: 0.25rem;
  }

  .company-table td {
    padding-top: 0.35rem;
    border-top: 0;
  }
}

/* recruit */
.recruit-spec {
  max-width: 800px;
  margin-inline: auto;
  opacity: 0.5;
}

.recruit-note {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 1.5rem;
}

.recruit-doc-title {
  font-size: 1.25rem;
  margin: 0 0 1.25rem;
  text-align: center;
}

.recruit-spec h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.35rem;
}

.recruit-spec p {
  margin: 0 0 0.35rem;
}

.biz-inline-visual {
  margin: 0 0 1rem;
}

@media (min-width: 901px) {
  .biz-body {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    column-gap: clamp(1.5rem, 3vw, 2.25rem);
    align-items: start;
  }

  .biz-body > .biz-inline-visual {
    grid-column: 1;
    grid-row: 1 / span 6;
    margin: 0;
  }

  .biz-body > :not(.biz-inline-visual):not(.map-embed):not(.map-app-link) {
    grid-column: 2;
  }

  .biz-body > .map-embed,
  .biz-body > .map-app-link {
    grid-column: 1 / -1;
  }
}

/* contact form (design only) */
.contact-lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--muted);
}

.contact-form {
  max-width: 640px;
  margin-inline: auto;
}

.form-row {
  margin-bottom: 1.15rem;
}

.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.form-row .req {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.68rem;
  color: #fff;
  background: var(--orange);
  border-radius: 4px;
  vertical-align: middle;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form .submit-row {
  text-align: center;
  margin-top: 1.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 1rem 2rem;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(232, 137, 44, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}

/* footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--orange-dark);
  background: var(--orange);
  text-align: center;
  font-size: 0.82rem;
  color: #fff;
}

.footer-photo-credit {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  line-height: 1.65;
}

/* scroll reveal helper */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
}
