/* 株式会社UT コーポレートサイト（STUDIO版からの移植） */

:root {
  --c-text: #444;
  --c-sub: #6c6c6c;
  --c-light: #f4f4f4;
  --c-dark: #444;
  --c-line: #e3e3e3;
  --f-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --f-en: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --w-container: 1200px;
  --pad-x: clamp(20px, 5vw, 60px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-jp);
  font-weight: 400;
  color: var(--c-text);
  background: #fff;
  line-height: 1.9;
  letter-spacing: 0.04em;
  font-size: 15px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container { width: min(100% - var(--pad-x) * 2, var(--w-container)); margin-inline: auto; }
.label { font-family: var(--f-en); font-weight: 500; font-size: 11px; letter-spacing: 0.14em; color: var(--c-sub); margin-bottom: 14px; }
.heading { font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; line-height: 1.7; letter-spacing: 0.06em; }

/* 出現アニメーション */
.appear { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.appear.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .appear { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ヘッダー */
.site-header { position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 50; transition: background .3s, box-shadow .3s; }
.site-header.is-scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(6px); box-shadow: 0 1px 0 rgba(0,0,0,.05); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; padding-inline: clamp(20px, 3vw, 40px); }
.brand { display: flex; align-items: center; gap: 22px; }
.brand__mark { width: 49px; height: 32px; object-fit: contain; }
.brand__name { font-size: 15px; font-weight: 500; letter-spacing: 0.08em; }
.gnav ul { display: flex; gap: 28px; }
.gnav a { font-family: var(--f-en); font-weight: 500; font-size: 11px; letter-spacing: 0.1em; position: relative; padding: 6px 0; }
.gnav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s; }
.gnav a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 7px; }
.menu-btn span { display: block; width: 24px; height: 1.5px; background: var(--c-text); }

.mobile-menu { position: fixed; inset: 0; z-index: 60; background: #fff; padding: 0 24px 40px; overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__head { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.menu-close { font-size: 30px; line-height: 1; width: 44px; height: 44px; }
.mobile-menu ul { margin-top: 32px; }
.mobile-menu li + li { border-top: 1px solid var(--c-line); }
.mobile-menu li a { display: block; padding: 18px 4px; font-family: var(--f-en); font-weight: 500; font-size: 14px; letter-spacing: 0.12em; }

/* ヒーロー */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.hero__visual { position: absolute; inset: 0; }
.hero__photo, .hero__mask { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__photo { animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
/* 縦書き2行。1行目（企業の成長を）を右・上、2行目を左・下げて配置する */
.hero__title {
  position: absolute; top: calc(var(--header-h) + 5vh); left: clamp(28px, 8vw, 130px);
  display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 10px;
  font-weight: 500; font-size: clamp(16px, 1.5vw, 20px); letter-spacing: 0.22em; line-height: 1;
}
.hero__title-line { writing-mode: vertical-rl; background: #fff; padding: 14px 10px 18px; display: block; }
.hero__title-line:nth-child(2) { margin-top: 56px; }

/* マーキー */
.marquee { overflow: hidden; margin-top: -80px; position: relative; z-index: 2; pointer-events: none; }
.marquee__track { display: flex; white-space: nowrap; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span { font-family: var(--f-en); font-weight: 600; font-size: clamp(64px, 11vw, 170px); line-height: 1; letter-spacing: 0.02em; color: #9a9a9a; opacity: .75; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ABOUT */
.about { padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 110px); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 60px; align-items: end; }
.about__body { padding-top: 60px; display: grid; gap: 22px; font-size: 14px; }
.about__photos { position: relative; margin-top: clamp(50px, 6vw, 90px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.about__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.about__photo--1 { max-width: 460px; margin-top: 110px; }
.about__photo--2 { max-width: 240px; justify-self: end; }

/* SERVICE */
.service { position: relative; background: var(--c-light); padding: clamp(80px, 9vw, 130px) 0 clamp(60px, 8vw, 100px); margin-top: 90px; }
.service::before, .contact-cta::before {
  content: ""; position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%);
  width: 180vw; height: 160px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: inherit;
}
.service__list { margin-top: 40px; border-top: 1px solid #d9d9d9; }
.service__item { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 60px; align-items: center; padding: 40px 0; border-bottom: 1px solid #d9d9d9; }
.service__text { padding-left: clamp(0px, 2vw, 24px); }
.service__num { font-family: var(--f-en); font-weight: 500; font-size: 11px; letter-spacing: .1em; color: var(--c-sub); display: block; }
.service__title { font-size: 18px; font-weight: 500; letter-spacing: .1em; margin: 10px 0 20px; }
.dash-list li { font-size: 12.5px; color: var(--c-sub); letter-spacing: .1em; padding-left: 26px; position: relative; line-height: 1.5; }
.dash-list li + li { margin-top: 8px; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: .75em; width: 12px; height: 1px; background: #999; }
.service__photo img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }

/* COMPANY */
.company { padding-bottom: clamp(80px, 10vw, 140px); }
.company__band { height: clamp(220px, 45vw, 520px); background: url("/assets/img/company-bg.webp") center / cover no-repeat; }
.company__grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; padding-top: clamp(50px, 6vw, 90px); }
.company__table > div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 18px 10px; border-bottom: 1px solid var(--c-line); font-size: 13.5px; }
.company__table > div:first-child { border-top: 1px solid var(--c-line); }
.company__table dt { font-weight: 500; }
.company__table dd { color: var(--c-sub); }

/* CONTACT CTA */
.contact-cta { position: relative; background: var(--c-dark); color: #fff; padding: clamp(40px, 5vw, 60px) 0 clamp(60px, 8vw, 100px); margin-top: 120px; }
.contact-cta__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px 60px; align-items: center; }
.contact-cta__text { text-align: center; display: grid; justify-items: center; gap: 30px; }
/* 縦書きの見出し。左に「お問い合わせ」、右上に小さく CONTACT */
.contact-cta__title-wrap { display: flex; align-items: flex-start; gap: 14px; }
.contact-cta__title { writing-mode: vertical-rl; font-size: 20px; font-weight: 500; letter-spacing: .2em; line-height: 1; }
.contact-cta__label { writing-mode: vertical-rl; font-family: var(--f-en); font-size: 11px; letter-spacing: .14em; }
.contact-cta p { font-size: 12.5px; letter-spacing: .1em; }
.btn-arrow { display: inline-flex; align-items: center; gap: 16px; font-size: 12.5px; font-weight: 500; letter-spacing: .1em; }
.btn-arrow__icon { display: inline-grid; place-items: center; width: 34px; height: 24px; border-radius: 999px; background: #fff; color: var(--c-dark); font-size: 13px; transition: transform .3s; }
.btn-arrow:hover .btn-arrow__icon { transform: translateX(6px); }
.contact-cta__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* フッター */
.site-footer { background: var(--c-dark); color: #fff; padding: 50px 0 30px; border-top: 1px solid rgba(255,255,255,.12); }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer__brand { font-size: 15px; font-weight: 500; letter-spacing: .08em; }
.site-footer__nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer__nav a { font-family: var(--f-en); font-weight: 500; font-size: 11px; letter-spacing: .12em; }
.site-footer__copy { text-align: center; font-family: var(--f-en); font-size: 10px; letter-spacing: .12em; opacity: .6; margin-top: 50px; }

/* お問い合わせページ */
.page-contact { padding: calc(var(--header-h) + clamp(40px, 7vw, 90px)) 0 clamp(80px, 10vw, 140px); }
.page-contact__head { max-width: 640px; }
.page-contact__lead { margin-top: 20px; font-size: 14px; }
.form { max-width: 640px; margin-top: 50px; display: grid; gap: 28px; }
.form__row { display: grid; gap: 10px; }
.form__label { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; }
.req { font-size: 10px; font-weight: 500; letter-spacing: .1em; color: #fff; background: #c0392b; border-radius: 3px; padding: 1px 6px; line-height: 1.6; }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; font: inherit; color: inherit; background: var(--c-light); border: 1px solid transparent; border-radius: 4px; padding: 12px 14px; outline: none; transition: border-color .2s, background .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--c-text); background: #fff; }
.form textarea { min-height: 180px; resize: vertical; }
.form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { justify-self: start; display: inline-flex; align-items: center; gap: 14px; background: var(--c-dark); color: #fff; padding: 14px 32px; border-radius: 999px; font-size: 13.5px; font-weight: 500; letter-spacing: .1em; transition: opacity .2s; }
.form__submit:hover { opacity: .85; }
.form__submit[disabled] { opacity: .5; cursor: default; }
.form__note { font-size: 12px; color: var(--c-sub); }
.form__msg { font-size: 14px; padding: 14px 16px; border-radius: 4px; }
.form__msg--ok { background: #eef6ee; color: #2d6a2d; }
.form__msg--ng { background: #fbeeee; color: #a33; }
.form__msg[hidden] { display: none; }
.form__done { max-width: 640px; margin-top: 50px; padding: 40px; background: var(--c-light); border-radius: 6px; }
.form__done h2 { font-size: 18px; font-weight: 500; margin-bottom: 14px; }
.form__done p { font-size: 14px; }
.form__done a { display: inline-block; margin-top: 22px; text-decoration: underline; }

/* レスポンシブ */
@media (max-width: 900px) {
  .about__grid, .service__item, .company__grid, .contact-cta__grid { grid-template-columns: 1fr; }
  .about__body { padding-top: 0; }
  .about__photos { grid-template-columns: 1fr 1fr; gap: 20px; }
  .about__photo--1 { margin-top: 40px; }
  .about__photo--2 { max-width: none; }
  .service__item { gap: 24px; padding: 34px 0; }
  .service__photo { order: -1; }
  .contact-cta__text { gap: 24px; }
  .contact-cta__photo { order: -1; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  body { font-size: 14px; }
  .gnav { display: none; }
  .menu-btn { display: flex; }
  .brand { gap: 14px; }
  .brand__mark { width: 40px; height: 26px; }
  .hero { min-height: 520px; }
  /* 縦長画面ではマスクSVGが崩れるので、楕円の clip-path で代替する */
  .hero__mask { display: none; }
  .hero__visual { top: var(--header-h); clip-path: ellipse(95% 72% at 55% 28%); }
  .hero__title { left: 20px; top: calc(var(--header-h) + 3vh); font-size: 15px; }
  .hero__title-line:nth-child(2) { margin-top: 40px; }
  .marquee { margin-top: -40px; }
  .about__photos { grid-template-columns: 1fr; }
  .about__photo--1, .about__photo--2 { max-width: none; margin-top: 0; }
  .company__table > div { grid-template-columns: 1fr; gap: 4px; }
  .contact-cta { margin-top: 90px; }
  .service::before, .contact-cta::before { height: 60px; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}
