/* ==========================================================================
   株式会社Nestia コーポレートサイト
   ========================================================================== */

:root {
  --navy: #151c30;
  --title: #22152f;
  --red: #bb2727;
  --text: #222;
  --muted: #666;
  --line: #c8c8c8;
  --container: 1120px; /* 本文の最大幅 */
  --indent: 34px; /* 見出し・本文の左インデント（全ページ共通） */
  --section-gap: clamp(64px, 9vw, 120px); /* セクション間の余白（全ページ共通） */
  --edge: clamp(16px, 3vw, 48px); /* ヘッダーUIと画面端の余白 */
  --u: min(1.2px, calc(100vw / 1440)); /* トップページの比率維持用の単位（幅1440px基準、大画面では最大1.2倍） */
  --font-en: "Libre Caslon Text", "Times New Roman", serif;
  --font-jp: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --font-logo: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sp-only { display: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px var(--edge) 0;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
}

.logo img {
  width: 72px;
  height: 72px;
}

.logo span {
  margin-top: 4px;
  font-family: var(--font-logo);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
}

.site-header--light .logo span { color: #fff; }
.site-header--dark .logo span { color: #111; }

.menu-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 4px 8px;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.25em;
}

.menu-button__bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 68px;
}

.menu-button__bars span {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: currentColor;
}

.menu-button__bars span:last-child { width: 72%; }

.site-header--light .menu-button { color: #fff; }
.site-header--dark .menu-button { color: #111; }

/* --------------------------------------------------------------------------
   Global navigation overlay
   -------------------------------------------------------------------------- */
.global-nav {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 20, 20, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.global-nav.is-open {
  opacity: 1;
  visibility: visible;
}

.global-nav__inner {
  position: relative;
  padding: 120px var(--edge) 0;
  display: flex;
  justify-content: flex-end;
}

.global-nav__close {
  position: absolute;
  top: 26px;
  right: calc(var(--edge) + 4px);
  width: 60px;
  height: 60px;
  border: 0;
  background: none;
  cursor: pointer;
}

.global-nav__close::before,
.global-nav__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 8px;
  width: 44px;
  height: 7px;
  border-radius: 4px;
  background: #fff;
}

.global-nav__close::before { transform: rotate(45deg); }
.global-nav__close::after { transform: rotate(-45deg); }

.global-nav ul {
  width: 160px;
}

.global-nav li + li { margin-top: 22px; }

.global-nav a {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  transition: color 0.2s;
}

.global-nav a:hover,
.global-nav a[aria-current="page"] {
  color: #aaa;
}

body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Common parts
   -------------------------------------------------------------------------- */
/* Learn More */
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 15px;
  color: #222;
}

.btn-more__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #333;
  transition: transform 0.25s;
}

.btn-more--red .btn-more__icon { background: var(--red); }

.btn-more__icon::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: -4px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}

.btn-more:hover .btn-more__icon { transform: translateX(4px); }

/* Section title (English + Japanese) */
.section-title {
  display: inline-block;
  font-family: var(--font-en);
  color: var(--title);
  line-height: 1.1;
}

.section-title__en {
  display: block;
  font-size: 56px;
  font-weight: 400;
}

.section-title__jp {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.section-title__jp::before {
  content: "";
  width: 72px;
  height: 1px;
  background: var(--navy);
}

/* Heading with gray line and red accent */
.heading-line {
  position: relative;
  padding: 0 0 18px var(--indent);
  border-bottom: 1px solid #bbb;
  font-size: 34px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

.heading-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 180px;
  height: 2px;
  background: var(--red);
}

.heading-line--fit::after { width: var(--accent, 180px); }

/* Return to top */
.to-top {
  display: flex;
  justify-content: flex-end;
  margin-top: 60px;
}

.to-top a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

.to-top a::after {
  content: "";
  width: 30px;
  height: 30px;
  border: 1px solid #333;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M15 8 9.5 13.5M15 8l5.5 5.5M15 8v14' fill='none' stroke='%23333' stroke-width='1.2'/%3E%3C/svg%3E") center / 100% no-repeat;
  transition: transform 0.25s;
}

.to-top a:hover::after { transform: translateY(-4px); }

/* Anchor links with red down-arrow */
.anchor-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 36px;
}

.anchor-links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.anchor-links a::after {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4v8M4.5 8.5 8 12l3.5-3.5' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.anchor-links a:hover { color: var(--red); }

/* --------------------------------------------------------------------------
   Page header (sub pages)
   -------------------------------------------------------------------------- */
.page-header {
  position: relative;
  height: 395px;
  background: #e9eaec url("../img/page-header.jpg") center / cover no-repeat;
}

.page-header__inner {
  position: relative;
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 145px 24px 0;
}

.page-header .section-title { margin-left: var(--indent); }

.page-header .section-title__en {
  font-size: 66px;
  font-weight: 700;
}

.page-header .section-title__jp {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 500;
  gap: 28px;
}

.page-header .section-title__jp::before {
  width: 110px;
  height: 2px;
}

.breadcrumb {
  position: absolute;
  right: 24px;
  bottom: 18px;
  display: flex;
  gap: 6px;
  font-family: var(--font-en);
  font-size: 15px;
  color: #222;
}

.breadcrumb a { color: #999; }
.breadcrumb a:hover { color: var(--red); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(115deg, #6a6a6a 0%, #8b8b8b 45%, #a7a7a7 100%);
  color: #fff;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px calc(24px + var(--indent)) 0;
}

.site-footer .logo span { color: #fff; }

.site-footer__company {
  font-family: var(--font-jp);
  font-size: 19px;
  line-height: 1.6;
}

.site-footer__company p {
  margin-top: 18px;
  font-size: 18px;
}

.site-footer__nav {
  padding-right: 60px;
  text-align: center;
}

.site-footer__nav li + li { margin-top: 2px; }

.site-footer__nav a {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-footer__nav a:hover { opacity: 0.7; }

.site-footer__copy {
  padding: 18px 24px 16px;
  font-family: var(--font-en);
  font-size: 12px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  max-height: 1000px;
  padding: 120px 24px 80px;
  color: #fff;
  text-align: center;
}

/* 背景はスクロールに合わせて main.js でフェードアウトさせる */
.hero__bg {
  position: absolute;
  inset: 0;
  background: #3b2f25 url("../img/hero-home.jpg") center / cover no-repeat;
  will-change: opacity;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
}

.hero__copy { position: relative; }

.hero h1 {
  font-family: var(--font-en);
  font-size: max(26px, calc(44 * var(--u)));
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
}

.hero p {
  margin-top: 10px;
  font-size: max(14px, calc(18 * var(--u)));
  font-weight: 700;
}

/*
  トップページの各セクションは、幅1440pxを基準に「--u」(=1440分の1の画面幅) で
  サイズ・位置を指定し、画面幅が狭くなっても画像と文字の配置バランスがそのまま縮小されるようにしている。
  （600px以下のスマホでは縦並びに切り替え）
*/

/* Business (home) */
.home-business {
  position: relative;
  padding: calc(60 * var(--u)) 0 calc(70 * var(--u));
  background: #f1f1f1 url("../img/bg-silver.jpg") center / cover no-repeat;
  overflow: hidden;
}

.home-business__head { text-align: center; }

.home-business .section-title { text-align: left; }

.home-business .section-title__en { font-size: max(30px, calc(56 * var(--u))); }

.home-business .section-title__jp {
  margin-top: 0;
  font-size: max(11px, calc(14 * var(--u)));
  gap: calc(14 * var(--u));
}

.home-business .section-title__jp::before { width: calc(84 * var(--u)); }

.business-row {
  display: grid;
  align-items: center;
  width: calc(1440 * var(--u));
  margin: calc(30 * var(--u)) auto 0;
}

.business-row > * { grid-row: 1; }

.business-row--field {
  grid-template-columns: calc(230 * var(--u)) calc(435 * var(--u)) calc(671 * var(--u)) 1fr;
}

.business-row--field .business-row__text { grid-column: 2 / 4; }
.business-row--field .business-row__image { grid-column: 3; }

.business-row--out {
  grid-template-columns: calc(105 * var(--u)) calc(673 * var(--u)) calc(429 * var(--u)) 1fr;
  margin-top: calc(50 * var(--u));
}

.business-row--out .business-row__image { grid-column: 2; }
.business-row--out .business-row__text {
  grid-column: 2 / 4;
  justify-self: end;
  text-align: right;
}

.business-row__text {
  position: relative;
  z-index: 1;
}

.business-row__label {
  font-family: var(--font-en);
  font-size: calc(66 * var(--u));
  font-weight: 700;
  color: #3d3d3d;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.business-row__title {
  position: relative;
  display: inline-block;
  margin-top: calc(6 * var(--u));
  padding-top: calc(4 * var(--u));
  font-size: max(12px, calc(20 * var(--u)));
  font-weight: 400;
  color: #333;
  text-align: left;
}

.business-row__title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: calc(120 * var(--u));
  height: 1px;
  background: #333;
}

.business-row--out .business-row__title::before {
  left: auto;
  right: calc(-24 * var(--u));
}

.business-row--out .business-row__desc { margin-left: auto; }

.business-row__desc {
  max-width: calc(400 * var(--u)); /* 画像に重ならない幅に収め、狭い画面では折り返す */
  margin: calc(34 * var(--u)) 0 calc(54 * var(--u));
  font-size: max(11px, calc(15 * var(--u)));
  font-weight: 700;
  color: #333;
}

.business-row__image img {
  width: 100%;
  aspect-ratio: 671 / 487;
  object-fit: cover;
}

.business-row--out .business-row__image img { aspect-ratio: 673 / 506; }

/* トップページ内の Learn More も比率を保って縮小 */
.home-business .btn-more,
.home-company .btn-more,
.home-recruit .btn-more {
  gap: calc(10 * var(--u));
  font-size: max(11px, calc(15 * var(--u)));
}

.home-business .btn-more__icon,
.home-company .btn-more__icon,
.home-recruit .btn-more__icon {
  width: max(22px, calc(32 * var(--u)));
  height: max(22px, calc(32 * var(--u)));
}

/* Company (home) */
.home-company {
  padding: calc(170 * var(--u)) 0 calc(120 * var(--u));
  background: #fff;
}

.home-company__inner {
  display: grid;
  grid-template-columns: calc(660 * var(--u)) calc(330 * var(--u));
  justify-content: center;
  align-items: center;
  gap: calc(30 * var(--u));
}

.company-collage {
  position: relative;
  height: calc(530 * var(--u));
}

.company-collage img {
  position: absolute;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.company-collage__sign {
  top: 0;
  left: calc(130 * var(--u));
  width: calc(440 * var(--u));
  height: calc(295 * var(--u));
}

.company-collage__saku {
  top: calc(262 * var(--u));
  left: calc(20 * var(--u));
  width: calc(268 * var(--u));
  height: calc(166 * var(--u));
}

.company-collage__building {
  top: calc(332 * var(--u));
  left: calc(330 * var(--u));
  width: calc(300 * var(--u));
  height: calc(190 * var(--u));
}

.home-company__text { padding-top: calc(60 * var(--u)); }

.home-company .section-title__en { font-size: max(28px, calc(50 * var(--u))); }
.home-company .section-title__jp {
  gap: calc(12 * var(--u));
  font-size: max(11px, calc(15 * var(--u)));
  font-weight: 400;
}
.home-company .section-title__jp::before { width: calc(62 * var(--u)); }

.home-company__desc {
  margin: calc(34 * var(--u)) 0 calc(120 * var(--u));
  font-size: max(11px, calc(15 * var(--u)));
  font-weight: 700;
  color: #333;
}

/* Recruit (home) */
.home-recruit {
  padding: calc(70 * var(--u)) 0;
  background: #f0f2f4 url("../img/bg-recruit.jpg") center / cover no-repeat;
}

.home-recruit__inner {
  display: grid;
  grid-template-columns: calc(520 * var(--u)) calc(463 * var(--u));
  justify-content: center;
  align-items: center;
  gap: calc(30 * var(--u));
}

.home-recruit__text { padding-left: calc(20 * var(--u)); }

.home-recruit .section-title { margin-left: calc(50 * var(--u)); }
.home-recruit .section-title__en { font-size: max(30px, calc(56 * var(--u))); font-weight: 700; }
.home-recruit .section-title__jp {
  gap: calc(12 * var(--u));
  margin-top: 2px;
  font-size: max(11px, calc(14 * var(--u)));
}
.home-recruit .section-title__jp::before { width: calc(72 * var(--u)); }

.home-recruit__desc {
  margin: calc(34 * var(--u)) 0 calc(50 * var(--u));
  font-size: max(11px, calc(15 * var(--u)));
  letter-spacing: 0.02em;
  font-weight: 700;
  line-height: 1.9;
}

.home-recruit .btn-more { margin-left: calc(22 * var(--u)); }

.home-recruit__image img {
  width: 100%;
  aspect-ratio: 463 / 299;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Entrance animations（Wix版の「表示」アニメーションを再現）
   data-anim="reveal-left|reveal-right|reveal-up|fade" を付けた要素が、
   画面に入ったときに一度だけ現れる。--anim-dur / --anim-delay で速さと遅延を調整。
   -------------------------------------------------------------------------- */
[data-anim="reveal-left"] { --clip-start: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%); }
[data-anim="reveal-right"] { --clip-start: polygon(100% 0%, 100% 0%, 100% 100%, 100% 100%); }
[data-anim="reveal-up"] { --clip-start: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%); }
[data-anim="fade"] {
  --anim-name: anim-fade;
  --anim-dur: 1000ms;
  --anim-ease: cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

@media (prefers-reduced-motion: no-preference) {
  .js-anim [data-anim] { opacity: 0; }

  .js-anim [data-anim].is-inview {
    opacity: 1;
    animation: var(--anim-name, anim-reveal) var(--anim-dur, 800ms) var(--anim-delay, 0ms)
      var(--anim-ease, cubic-bezier(0.645, 0.045, 0.355, 1)) backwards;
  }
}

@keyframes anim-reveal {
  0% { opacity: 0; animation-timing-function: step-end; }
  0.0001% { opacity: 1; clip-path: var(--clip-start); }
  100% { opacity: 1; clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); }
}

@keyframes anim-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Opening（トップ初回表示時の演出。Wix版のオープニングページを再現）
   0s ロゴ（ぼかし+フェード）→ 2.0s 白に切替 → 2.8s 英文が左から
   → 4.3s 日本語が下から → 5.3s 白くフェード → 5.8s 演出を閉じてトップへ
   -------------------------------------------------------------------------- */
.intro { display: none; }

html.intro-play { overflow: hidden; }

.intro-play .intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 200;
  cursor: pointer;
  background:
    radial-gradient(circle at 56.28% 1.53%, #f9f9f9 0%, 17.5%, rgba(249, 249, 249, 0) 35%),
    radial-gradient(circle at 94.35% 89.62%, #636363 0%, 20%, rgba(99, 99, 99, 0) 40%),
    radial-gradient(circle at 40.59% 88.02%, rgba(249, 249, 249, 0.99) 0%, 25%, rgba(249, 249, 249, 0) 50%),
    radial-gradient(circle at 11.76% 36.4%, #636363 0%, 42%, rgba(99, 99, 99, 0) 70%),
    radial-gradient(circle at 94.19% 18.77%, #fff 0%, 42%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(circle at 48.9% 49.52%, #fff 0%, 100%, rgba(255, 255, 255, 0) 100%),
    #f9f9f9;
  animation: intro-out 500ms 5800ms ease both;
}

.intro__logo {
  position: absolute;
  top: 46%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  animation:
    intro-fade 1050ms cubic-bezier(0.47, 0, 0.745, 0.715) both,
    intro-blur 1500ms linear both;
}

.intro__logo img {
  width: clamp(110px, 11vw, 157px);
  height: auto;
}

.intro__logo span {
  margin-top: 2px;
  font-family: var(--font-logo);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #fff;
  line-height: 1.1;
}

.intro__panel,
.intro__cover {
  position: absolute;
  inset: 0;
  background: #fff;
}

.intro__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px 8vh;
  text-align: center;
  color: #222;
  animation:
    intro-fade 560ms 2000ms cubic-bezier(0.47, 0, 0.745, 0.715) both,
    intro-blur 800ms 2000ms linear both;
}

.intro__copy {
  --clip-start: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
  font-family: var(--font-en);
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  animation: anim-reveal 1500ms 2800ms cubic-bezier(0.645, 0.045, 0.355, 1) both;
}

.intro__sub {
  margin-top: 0.5em;
  font-size: clamp(20px, 2.6vw, 35px);
  font-weight: 500;
  letter-spacing: 0.04em;
  animation: intro-slide-up 1000ms 4300ms cubic-bezier(0.645, 0.045, 0.355, 1) both;
}

.intro__cover {
  animation:
    intro-fade 350ms 5300ms cubic-bezier(0.47, 0, 0.745, 0.715) both,
    intro-blur 500ms 5300ms linear both;
}

@keyframes intro-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes intro-blur {
  from { filter: blur(6px); }
  to { filter: blur(0); }
}

@keyframes intro-slide-up {
  0% { opacity: 0; animation-timing-function: step-end; }
  0.0001% {
    opacity: 1;
    transform: translateY(100%);
    clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  }
  100% {
    opacity: 1;
    transform: none;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  }
}

@keyframes intro-out {
  to { opacity: 0; visibility: hidden; }
}

/* --------------------------------------------------------------------------
   Business page
   -------------------------------------------------------------------------- */
.page-section {
  padding: var(--section-gap) 0 0;
}

.page-section:last-of-type { padding-bottom: 50px; }

.lead {
  margin: 36px 0 0 var(--indent);
  font-size: 19px;
  line-height: 1.85;
}

.service-list { margin: clamp(48px, 7vw, 96px) 0 0 var(--indent); }

.service {
  display: grid;
  grid-template-columns: 22% 1fr;
}

.service + .service { margin-top: 70px; }

.service__title {
  position: relative;
  padding: 0 12px 0 24px;
  font-size: max(15px, calc(22 * var(--u)));
  font-weight: 700;
  color: var(--navy);
  line-height: 1.6;
}

.service__title::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 11px;
  height: 11px;
  background: var(--red);
}

.service__body {
  padding: 0 0 0 32px;
  border-left: 1px solid #aaa;
}

.service__body img {
  width: 100%;
  aspect-ratio: 680 / 343;
  object-fit: cover;
}

.service__body p {
  max-width: 680px;
  margin-top: 30px;
  font-size: 15px;
  line-height: 1.75;
}

.service__body p + p { margin-top: 24px; }

/* --------------------------------------------------------------------------
   Company page
   -------------------------------------------------------------------------- */
.company-anchors { padding: 50px 0 0; }
.company-anchors .anchor-links { padding-left: var(--indent); }

.philosophy-head {
  display: flex;
  align-items: flex-end;
  gap: 90px;
  border-bottom: 1px solid #bbb;
}

.philosophy-head .heading-line {
  flex-shrink: 0;
  border-bottom: 0;
}

.philosophy-head__statement {
  padding-bottom: 18px;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
}

.philosophy-head .heading-line { padding-top: 32px; }

.pillars-title {
  margin: 64px 0 0 var(--indent);
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
}

.pillars-title::before {
  content: "ー ";
  color: var(--red);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0 0 var(--indent);
}

.pillar {
  padding: 32px 28px 30px;
  border-top: 2px solid var(--navy);
  background: #f5f6f8;
}

.pillar h3 {
  position: relative;
  padding-left: 22px;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.pillar h3::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--red);
}

.pillar p {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.8;
}

.pillar p br { display: none; }

.identity {
  margin-top: 80px;
  text-align: center;
}

.identity__logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.identity__logo img { width: 125px; height: 125px; }

.identity__logo span {
  font-family: var(--font-logo);
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.identity-card {
  max-width: 930px;
  margin: 26px auto 0;
  padding: 18px 24px 22px;
  border-radius: 14px;
  background: radial-gradient(ellipse at center, #f7f7f7 0%, #e8e8e8 60%, #e0e0e0 100%);
  line-height: 1.7;
}

.identity-card + .identity-card { margin-top: 30px; }

.identity-card__label {
  display: inline-block;
  padding: 0 4px;
  background: #222;
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
}

.identity-card .identity-card__title {
  margin: 4px 0 6px;
  font-family: var(--font-en), var(--font-jp);
  font-size: 34px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.identity-card__title .plus {
  margin: 0 0.3em;
  color: #aaa;
  font-weight: 400;
}

.identity-card p {
  font-size: 17px;
}

.profile {
  margin-top: 30px;
  border-top: 0;
}

.profile__row {
  display: grid;
  grid-template-columns: 240px 1fr;
  padding: 26px 0 26px var(--indent);
  border-bottom: 1px solid #bbb;
}

.profile dt {
  font-weight: 700;
  color: var(--navy);
}

.profile dd {
  color: var(--navy);
  line-height: 1.65;
}

.profile .note {
  display: block;
  margin-top: 10px;
}

.profile .small { font-size: 0.85em; color: #555; }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-intro .container > * { margin-left: var(--indent); }

.contact-intro h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
}

.contact-intro p {
  margin-top: 6px;
  font-size: 18px;
}

.contact-intro .anchor-links { margin-top: 56px; }

.contact-form {
  max-width: 870px;
  margin: 60px auto 0;
  padding: 0 24px;
}

.form-field + .form-field { margin-top: 20px; }

.form-field label,
.form-field .label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.required {
  margin-left: 0.4em;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #999;
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23333' stroke-width='1.4'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(21, 28, 48, 0.25);
  border-color: var(--navy);
}

.form-agree {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-size: 16px;
}

.form-agree input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.form-agree a {
  color: #3f5aa8;
  text-decoration: underline;
}

.form-submit {
  display: block;
  width: 270px;
  max-width: 100%;
  margin: 26px auto 0;
  padding: 10px;
  border: 0;
  border-radius: 6px;
  background: #636b88;
  color: #fff;
  font: inherit;
  font-size: 17px;
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit:hover { background: var(--navy); }
.form-submit:disabled { opacity: 0.6; cursor: default; }

.form-status {
  margin-top: 18px;
  text-align: center;
  font-weight: 700;
}

.form-status.is-success { color: #1d6b3a; }
.form-status.is-error { color: var(--red); }

.hp-field { display: none !important; }

.phone-box { padding: 40px 0 0 var(--indent); }

.phone-box__number {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-en);
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
}

.phone-box__number img { width: 30px; height: 30px; }

.phone-box p { margin-top: 4px; font-size: 15px; }

/* --------------------------------------------------------------------------
   Recruit page
   -------------------------------------------------------------------------- */
.recruit-intro {
  padding: clamp(56px, 7vw, 90px) 0;
  background: #fff url("../img/bg-recruit-intro.jpg") right center / cover no-repeat;
}

.recruit-intro .container > * { margin-left: var(--indent); }

.recruit-intro h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
}

.recruit-intro p {
  margin-top: 30px;
  font-size: 25px;
  line-height: 1.6;
  color: var(--navy);
}

.recruit-appeal {
  display: grid;
  grid-template-columns: 45% 1fr;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  max-width: var(--container);
  margin: var(--section-gap) auto 0;
  padding: 0 24px 0 calc(24px + var(--indent));
}

.recruit-appeal img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.recruit-appeal h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
}

.recruit-appeal h3 {
  margin-top: 24px;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
}

.recruit-appeal h3 + p {
  margin-top: 4px;
  padding-left: 1em;
  font-size: 15px;
}

.recruitment__body {
  margin: 40px 0 0 var(--indent);
  font-size: 16px;
}

.recruitment__body a {
  color: var(--red);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Privacy policy page
   -------------------------------------------------------------------------- */
.policy { padding-top: var(--section-gap); }

.policy__intro {
  padding: 0 var(--indent);
  font-size: 15px;
}

.policy__list {
  margin-top: 60px;
}

.policy__item {
  padding: 26px var(--indent);
  border-bottom: 1px solid #bbb;
}

.policy__item:last-child { border-bottom: 0; }

.policy__item h2 {
  display: flex;
  gap: 18px;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

.policy__item h2 span {
  color: var(--red);
  font-family: var(--font-en);
}

.policy__item p,
.policy__item li { font-size: 15px; }

.policy__item ul { margin: 14px 0; }

.policy__item li {
  position: relative;
  padding-left: 14px;
}

.policy__item li + li { margin-top: 4px; }

.policy__item li::before {
  content: "・";
  position: absolute;
  left: -2px;
  color: var(--red);
}

.policy__item a {
  color: #3f5aa8;
  text-decoration: underline;
}

.policy__contact { margin-top: 16px; }

.policy__date { margin-top: 24px; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.notfound {
  padding: 140px 0 120px;
  text-align: center;
}

.notfound p { margin: 24px 0 40px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  :root { --indent: 8px; }
  body { font-size: 14px; }
  .sp-only { display: inline; }
  .container { padding: 0 16px; }

  .site-header__inner { padding-top: 14px; }
  .logo { width: 56px; }
  .logo img { width: 52px; height: 52px; }
  .logo span { font-size: 13px; }
  .menu-button { padding-top: 8px; font-size: 10px; }
  .menu-button__bars { width: 44px; gap: 5px; }
  .menu-button__bars span { height: 5px; }

  .global-nav__inner { justify-content: center; padding-top: 130px; }
  .global-nav ul { margin: 0; width: auto; text-align: center; }
  .global-nav__close { top: 10px; right: calc(var(--edge) - 8px); }
  .global-nav li + li { margin-top: 26px; }
  .global-nav a { font-size: 26px; }

  .section-title__en { font-size: 42px; }

  .page-header { height: 300px; }
  .page-header__inner { padding: 110px 16px 0; }
  .page-header .section-title { margin-left: 0; }
  .page-header .section-title__en { font-size: 44px; padding-left: 0; }
  .page-header .section-title__jp { font-size: 17px; gap: 16px; }
  .page-header .section-title__jp::before { width: 60px; }
  .breadcrumb { right: 16px; font-size: 13px; }

  .heading-line { font-size: 24px; }
  .heading-line::after { width: 110px; }

  .hero h1 { font-size: 28px; }
  .hero h1 br { display: none; }
  .hero p { font-size: 15px; }

  .site-footer__inner {
    grid-template-columns: auto 1fr;
    gap: 24px;
    padding: 36px 16px 0;
  }
  .site-footer__nav {
    grid-column: 1 / -1;
    padding: 0;
  }
  .site-footer__nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
  .site-footer__nav li + li { margin-top: 0; }
  .site-footer__company { font-size: 17px; }
  .site-footer__company p { margin-top: 10px; font-size: 15px; }

  .lead { margin-top: 24px; font-size: 16px; }
  .service + .service { margin-top: 50px; }
  .service__body p { margin-top: 18px; font-size: 14px; }
  .lead br,
  .service__body p br { display: none; }

  .philosophy-head { display: block; border-bottom: 0; }
  .philosophy-head .heading-line { padding-top: 0; border-bottom: 1px solid #bbb; }
  .philosophy-head__statement { margin: 24px 0 0; padding: 0; font-size: 20px; }
  .pillars-title { margin-top: 50px; font-size: 19px; }
  .pillars { grid-template-columns: 1fr; gap: 16px; }
  .pillar { padding: 24px 20px; }
  .pillar h3 { font-size: 18px; }
  .pillar p { margin-top: 12px; font-size: 14px; }
  .identity-card .identity-card__title { font-size: 22px; }
  .identity-card p { font-size: 14px; }
  .identity-card p br { display: none; }
  .profile__row { grid-template-columns: 1fr; gap: 6px; padding: 18px var(--indent); }

  .contact-intro h2 { font-size: 21px; }
  .contact-intro p { font-size: 15px; }
  .contact-intro .anchor-links { margin-top: 40px; }
  .contact-form { margin-top: 40px; padding: 0; }
  .form-agree { flex-wrap: wrap; font-size: 14px; }
  .phone-box { padding-top: 30px; }
  .phone-box__number { font-size: 26px; }

  .recruit-intro { background-position: 70% center; }
  .recruit-intro h2 { font-size: 21px; }
  .recruit-intro p { font-size: 17px; }
  .recruitment__body { margin-top: 30px; }

  .policy__item { padding-top: 22px; padding-bottom: 22px; }
  .policy__item h2 { font-size: 18px; gap: 10px; }
  .policy__item p br { display: none; }

  .to-top { margin-top: 40px; }
}

@media (max-width: 600px) {
  .home-business { padding: 50px 0; }
  .business-row,
  .business-row--field,
  .business-row--out {
    grid-template-columns: 1fr;
    width: auto;
    margin-top: 30px;
    padding: 0 16px;
  }
  .business-row > * { grid-row: auto; }
  .business-row--field .business-row__text,
  .business-row--out .business-row__text {
    grid-column: 1;
    order: 2;
    justify-self: stretch;
    padding-top: 20px;
    text-align: left;
  }
  .business-row--field .business-row__image,
  .business-row--out .business-row__image { grid-column: 1; order: 1; }
  .business-row__label { font-size: 38px; white-space: normal; }
  .business-row__title { font-size: 18px; }
  .business-row__title::before,
  .business-row--out .business-row__title::before { left: 0; right: auto; width: 120px; }
  .business-row__desc { max-width: none; margin: 18px 0 24px; font-size: 14px; }

  .home-business .btn-more,
  .home-company .btn-more,
  .home-recruit .btn-more { gap: 10px; font-size: 15px; }
  .home-business .btn-more__icon,
  .home-company .btn-more__icon,
  .home-recruit .btn-more__icon { width: 32px; height: 32px; }
  .home-business .section-title__jp,
  .home-company .section-title__jp,
  .home-recruit .section-title__jp { gap: 12px; font-size: 14px; }
  .home-business .section-title__jp::before,
  .home-company .section-title__jp::before,
  .home-recruit .section-title__jp::before { width: 72px; }

  .home-company { padding: 70px 0; }
  .home-company__inner { grid-template-columns: minmax(0, 1fr); gap: 30px; padding: 0 16px; }
  .company-collage { width: 100%; height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .company-collage img { position: static; width: 100% !important; height: auto !important; aspect-ratio: 3 / 2; }
  .company-collage__sign { grid-column: 1 / -1; }
  .home-company__text { padding: 0; }
  .home-company .section-title__en { font-size: 42px; }
  .home-company__desc { margin: 24px 0 30px; font-size: 14px; }

  .home-recruit { padding: 60px 0; }
  .home-recruit__inner { grid-template-columns: minmax(0, 1fr); gap: 30px; padding: 0 16px; }
  .home-recruit__text { padding: 0; }
  .home-recruit .section-title { margin-left: 0; }
  .home-recruit .section-title__en { font-size: 42px; }
  .home-recruit__desc { font-size: 15px; margin: 24px 0 30px; }
  .home-recruit .btn-more { margin-left: 0; }

  .service { grid-template-columns: 1fr; }
  .service__title { padding-left: 22px; margin-bottom: 14px; font-size: 19px; }
  .service__title::before { left: 0; top: 10px; }
  .service__title br { display: none; }
  .service__body { padding: 0; border-left: 0; }
  .recruit-appeal { grid-template-columns: 1fr; padding: 0 16px; }
}
