/* Important content is displayed by default */
.fadein,
.fadein.show,
.reveal {
  opacity: 1;
  transform: none;
}

.fadein {
  transition: none;
}

/* Unify top menu */
.site-header {
  background: #fff;
}

.global-nav {
  gap: 26px;
}

.global-nav a {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.global-nav a:hover,
.global-nav a:focus-visible,
.global-nav a.nav-current {
  color: var(--solid-red);
}

.global-nav a.nav-current::after,
.global-nav a:focus-visible::after {
  width: 100%;
}

.global-nav .nav-mobile-contact {
  font-size: 12px;
  letter-spacing: 0;
  white-space: normal;
}

.global-nav .nav-mobile-contact::after {
  display: none;
}

.logo {
  gap: 14px;
  height: auto;
}

.logo-crop {
  position: relative;
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
}

.logo .logo-crop img {
  position: absolute;
  width: var(--logo-source-width);
  height: auto;
  max-width: none;
  max-height: none;
  left: var(--logo-source-left);
  top: var(--logo-source-top);
}

.logo-mark {
  width: 62px;
  height: 36px;
  --logo-source-width: 128px;
  --logo-source-left: -33px;
  --logo-source-top: -4px;
}

.logo-word {
  width: 194px;
  height: 44px;
  --logo-source-width: 222px;
  --logo-source-left: -13px;
  --logo-source-top: -81px;
}

@media (max-width: 1024px) {
  .header-contact-bar {
    display: none;
  }

  main,
  .recruit-page,
  .contact-page,
  .legal-page {
    padding-top: 76px;
  }

  section[id] {
    scroll-margin-top: 76px;
  }

  .menu-toggle {
    display: block;
  }

  .global-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(82vw, 340px);
    height: 100vh;
    height: 100dvh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 110px 30px 34px;
    overflow-y: auto;
    transition: right 0.35s ease;
    box-shadow: -8px 0 20px rgba(0, 0, 0, 0.12);
  }

  .global-nav.open {
    right: 0;
  }

  .global-nav .nav-mobile-contact {
    display: block;
  }

  .logo {
    gap: 10px;
  }

  .logo-mark {
    width: 48px;
    height: 28px;
    --logo-source-width: 100px;
    --logo-source-left: -26px;
    --logo-source-top: -3px;
  }

  .logo-word {
    width: 155px;
    height: 35px;
    --logo-source-width: 178px;
    --logo-source-left: -10px;
    --logo-source-top: -65px;
  }
}

@font-face {
  font-family: "Solid Noto Sans JP";
  src: url("../fonts/NotoSansJP.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --site-font: "Solid Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
}

body {
  font-family: var(--site-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}

button,
input,
select,
textarea {
  font: inherit;
}

.global-nav a {
  font-family: var(--site-font);
}

.section {
  padding: 72px 0;
}

.section-title {
  font-size: 30px;
  line-height: 1.4;
}

.section-label {
  font-size: 13px;
}

.section-ribbon {
  min-height: 56px;
  padding: 10px 20px;
  margin-bottom: 32px;
  gap: 18px;
  border-left-width: 3px;
}

.section-ribbon h2 {
  font-size: 28px;
  line-height: 1.3;
}

.section-ribbon span {
  font-size: 13px;
}

.services-intro {
  margin-bottom: 48px;
}

.services-main-message {
  font-size: 20px !important;
  font-weight: 500;
}

.service-detail {
  padding: 48px 0;
}

.service-heading h3 {
  font-size: 26px;
  line-height: 1.5;
}

.service-en {
  font-size: 12px;
  font-weight: 400;
}

.service-gallery-title {
  font-size: 19px;
  line-height: 1.5;
  border-left-width: 3px;
}

.service-description h4 {
  color: #555;
  font-size: 15px;
}

.philosophy-body h3 {
  font-size: 26px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .section {
    padding: 48px 0;
  }

  .section-ribbon {
    min-height: 50px;
    padding: 10px 14px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .section-ribbon h2 {
    font-size: 24px;
  }

  .section-title {
    font-size: 26px;
  }

  .service-heading h3 {
    font-size: 22px;
  }

  .service-gallery-title {
    font-size: 18px;
  }

  .service-detail {
    padding: 36px 0;
  }

  .philosophy-body h3 {
    font-size: 23px;
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: center;
  height: auto;
  min-height: 490px;
  max-height: none;
  padding: 42px max(20px, calc((100vw - 1200px) / 2));
  background: #f7f7f7;
}

.hero-copy {
  position: static;
  grid-column: 1;
  grid-row: 1;
  width: auto;
  margin: 0;
  color: #171717;
}

.hero-copy-en {
  color: #666;
}

.hero-copy h1 {
  max-width: none;
  font-size: clamp(30px, 2.75vw, 40px);
  line-height: 1.5;
  text-shadow: none;
}

.hero-copy-line {
  width: 100px;
  height: 2px;
  margin-top: 24px;
}

.hero-visual {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f7f7f7;
}

.hero-slides {
  width: 100%;
  height: 100%;
}

.hero-slide {
  min-width: 0;
  height: 100%;
}

.hero-slide > img:not(.hero-watermark) {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-slide .hero-watermark {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.hero-arrow {
  bottom: 12px;
  width: 36px;
  height: 36px;
  font-size: 25px;
}

.hero-prev {
  right: 54px;
}

.hero-next {
  right: 12px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
    padding: 32px 20px;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .hero-visual {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (max-width: 600px) {
  .hero-copy h1 {
    font-size: 27px;
  }
}

/* Natural transition between white assets and the business area */
.services {
  background: #fff;
}

.service-gallery {
  align-items: start;
}

.service-gallery figure {
  border: 0;
  background: transparent;
}

.service-gallery figure > img,
.service-gallery .protected-photo {
  aspect-ratio: auto;
}

.service-gallery figure > img,
.service-gallery .protected-photo .base-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.service-gallery .protected-photo .watermark-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.service-gallery figcaption {
  padding: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
}

.idea-options-gallery {
  max-width: 1050px;
  margin-bottom: 20px;
}

/* 各案の説明文字を統一する */
.services .idea-options-gallery figcaption {
  padding: 10px 0 0;
  color: #444;
  font-size: 14px;
  line-height: 1.6;
}

/* 選定された画像を細い枠で示す */
.services .idea-options-gallery .idea-selected > img {
  outline: 2px solid var(--solid-red);
  outline-offset: -2px;
}

.services .idea-caption-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* 選定案のラベル */
.services .idea-selected-badge {
  padding: 2px 7px;
  border: 1px solid #f1c5c8;
  border-radius: 2px;
  background: #fff3f3;
  color: var(--solid-red);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

/* 選定理由の説明をC案の下に配置する */
.services .idea-options-gallery .idea-selection-note {
  margin: 8px 0 0;
  color: #666;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.services .idea-options-gallery .idea-selection-note::before {
  content: "›";
  margin-right: 6px;
}

.prototype-title {
  font-size: 19px;
  font-weight: 600;
}

.prototype-process {
  grid-template-columns:
    minmax(0, 1fr) auto
    minmax(0, 1fr) auto
    minmax(100px, 0.5fr);
}

.prototype-process figure {
  margin: 0;
  min-width: 0;
}

.prototype-process img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.prototype-process figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
}

.prototype-final {
  padding: 24px 16px;
  background: #f3f3f3;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}

.product-output-gallery {
  max-width: 1050px;
  margin: 32px 0;
}

.product-output-gallery h5 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.6;
}

.product-output-gallery p {
  margin: 0;
  font-size: 15px;
}

.catalog-reference {
  width: min(220px, 100%);
  margin: 0 0 40px;
}

.catalog-reference img {
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .prototype-process {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .prototype-process .process-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}

.jimny-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.modeling-cad-gallery,
.modeling-source-gallery {
  max-width: 1050px;
  margin-bottom: 36px;
}

.modeling-source-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.modeling-source-gallery > div {
  min-width: 0;
}

.modeling-source-gallery .service-gallery-title {
  font-size: 17px;
}

@media (max-width: 900px) {
  .modeling-source-gallery {
    grid-template-columns: 1fr;
  }
}

.plus-one,
.service-highlight {
  padding: 18px 20px;
  margin: 24px 0 32px;
  background: #f3f3f3;
  border-left: 0;
  color: #444;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
}

.plus-one strong {
  color: #171717;
  font-weight: 700;
}

/* 強調枠内の段落間隔を整える */
.services .plus-one > p {
  margin: 0;
}

.services .plus-one > p + p {
  margin-top: 12px;
}

.recruit-hero,
.contact-title-area {
  min-height: 0;
  padding: 40px 0;
  background: #f7f7f7;
  color: #171717;
  border-bottom: 1px solid #eee;
}

.recruit-hero::after {
  display: none;
}

.recruit-hero-copy {
  min-height: 0;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  color: #171717;
}

.recruit-en,
.contact-en {
  margin: 0 0 10px;
  color: var(--solid-red);
  font-size: 13px;
  font-weight: 500;
}

/* 採用情報とお問い合わせの見出しサイズを統一する */
.recruit-hero h1,
.contact-title-area h1 {
  margin: 0 0 18px;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.3;
}
.recruit-message,
.contact-intro {
  margin: 0;
  color: #555;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}

.contact-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 32px;
}

.contact-visual img {
  border: 0;
}

@media (max-width: 900px) {
  .contact-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-visual {
    max-width: 360px;
  }
}

@media (max-width: 600px) {
  .recruit-hero,
  .contact-title-area {
    padding: 30px 0;
  }

  .recruit-hero h1,
  .contact-title-area h1 {
    font-size: 32px;
  }
}

.recruit-gallery {
  width: min(860px, calc(100% - 40px));
  margin: 32px auto 0;
}

.recruit-gallery-viewport {
  overflow: hidden;
}

.recruit-gallery-track {
  display: flex;
  width: 100%;
  align-items: flex-start;
  transition: transform 0.45s ease;
}

.recruit-gallery-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
}

.recruit-gallery-slide img {
  width: 100%;
  height: auto;
}

.recruit-gallery-slide figcaption {
  padding: 12px 0;
  color: #555;
  font-size: 14px;
}

.recruit-gallery-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.recruit-gallery-controls button {
  width: 40px;
  height: 36px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}

.recruit-gallery-controls button:hover {
  border-color: var(--solid-red);
  color: var(--solid-red);
}

.recruit-gallery-count {
  min-width: 44px;
  text-align: center;
}

.recruit-section {
  padding: 56px 0;
}

.recruit-section-title h2 {
  font-size: 26px;
}

.recruit-section:not(.recruit-flow-section) .recruit-container {
  display: block;
}

@media (min-width: 1000px) {
  .recruit-section.recruit-career-section .recruit-container {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    column-gap: 32px;
    align-items: start;
  }

  .recruit-career-section .recruit-section-title {
    grid-column: 1 / -1;
  }

  .recruit-career-section .recruit-info {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
  }

  .recruit-career-section .recruit-section-photo {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    width: 100%;
    max-width: none;
    margin: 0;
  }
}

.submit-button:disabled,
.submit-button:disabled:hover {
  background: #bbb;
  border-color: #bbb;
  color: #fff;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  margin-top: 16px;
  text-align: center;
  color: #666;
  font-size: 13px;
}

.image-protected img {
  pointer-events: none;
  user-select: none;
}

/* HiAce：方案与成品展示 */
.hiace-case-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin: 24px 0 40px;
}

.hiace-case-ideas {
  min-width: 0;
}

.hiace-case-layout .idea-kicker {
  margin: 0 0 18px;
}

.hiace-case-layout .idea-options-gallery {
  max-width: none;
  margin: 0;
  gap: 16px;
}

.hiace-case-layout .idea-selection-note {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 500;
}

.hiace-completed-photo {
  min-width: 0;
  margin: 0;
}

.hiace-completed-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.hiace-completed-photo figcaption {
  margin-top: 12px;
  color: #666;
  font-size: 14px;
}

@media (max-width: 900px) {
  .hiace-case-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* 企业理念：文字与四张工作照片 */
.philosophy-inner {
  grid-template-columns:
    minmax(0, 0.65fr)
    minmax(0, 1.35fr)
    minmax(0, 1fr);
  gap: 40px;
}

.philosophy-head,
.philosophy-body,
.philosophy-gallery {
  min-width: 0;
}

.philosophy-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.philosophy-gallery figure {
  margin: 0;
  min-width: 0;
}

.philosophy-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #f4f4f4;
}

@media (max-width: 1099px) {
  .philosophy-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .philosophy-gallery {
    width: 100%;
    max-width: 420px;
  }
}