@charset "UTF-8";

/* =========================================================
   株式会社ユトリノ コーポレートサイト
   Navy #0B2B51 / Orange #E87A18 / Noto Sans JP
   白を主役（60）、Navyは構造、Orangeは要所のみ
   ========================================================= */

:root {
  --navy: #0b2b51;
  --navy-2: #1c4b7d;
  --orange: #e87a18;
  --ink: #1b3350;
  --body: #33475e;
  --muted: #6b7f96;
  --rule: rgba(11, 43, 81, 0.14);
  --rule-soft: rgba(11, 43, 81, 0.08);
  --tint: #f4f7fa;
  --white: #ffffff;

  --container: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 8.5vw, 116px);
  --radius: 4px;
  --header-h: 72px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, li, dl, dt, dd, figure, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.95;
  color: var(--body);
  background: var(--white);
  letter-spacing: 0.02em;
  /* 日本語組版：語割れ防止・禁則厳格化 */
  word-break: auto-phrase;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
}

p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.5; font-weight: 700; color: var(--navy); }
.nb { white-space: nowrap; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--tint { background: var(--tint); }
.section--rule { border-top: 1px solid var(--rule-soft); }

/* セクション見出しまわり */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.s-title {
  font-size: clamp(21px, 2.7vw, 30px);
  letter-spacing: 0.015em;
  line-height: 1.6;
}
/* ABOUT の見出しは長いため文字を少し抑える。
   改行位置（読点）はPC・スマホとも揃える＝プレーンな <br> を使う */
.s-title--about { font-size: clamp(19px, 2.5vw, 27px); }

.s-lead {
  margin-top: 20px;
  max-width: 40em;
  font-size: clamp(15px, 1.4vw, 16.5px);
  color: var(--body);
}

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.header.is-scrolled {
  border-bottom-color: var(--rule-soft);
  box-shadow: 0 10px 24px -22px rgba(11, 43, 81, 0.5);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header__logo img { height: 42px; width: auto; }

.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.9vw, 24px);
}
.nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover { color: var(--orange); border-bottom-color: var(--orange); }
.nav .nav__cta {
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  padding: 9px 16px;
  color: var(--navy);
  font-weight: 700;
}
.nav .nav__cta:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.navtoggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.navtoggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.28s, opacity 0.2s;
}
.navtoggle span:nth-child(1) { top: 16px; }
.navtoggle span:nth-child(2) { top: 22px; }
.navtoggle span:nth-child(3) { top: 28px; }
.navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; background: #fbfcfd; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(96deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.88) 34%,
    rgba(255, 255, 255, 0.45) 56%,
    rgba(255, 255, 255, 0) 74%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  min-height: min(78vh, 660px);
  display: flex;
  align-items: center;
  padding-block: clamp(56px, 9vw, 96px);
}
.hero__body { max-width: 760px; }
.hero h1 {
  font-size: clamp(23px, 4vw, 43px);
  line-height: 1.62;
  letter-spacing: 0.01em;
}
.sp-br { display: none; }
@media (max-width: 430px) { .sp-br { display: inline; } }
.hero__sub {
  margin-top: 24px;
  font-size: clamp(14.5px, 1.5vw, 17px);
  line-height: 2;
  color: var(--ink);
  max-width: 30em;
}
.hero__actions { margin-top: 36px; }

/* ---------- button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--navy);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); transform: translateY(-1px); }
.btn__arrow { font-size: 13px; opacity: 0.85; }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: rgba(255, 255, 255, 0.86); color: var(--navy); border-color: transparent; }

/* ---------- about ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
/* 見出しが長いブロック用：左右カラムを均等にして見出しの折り返しを2行に収める
   （※ このルールは .about__grid より後に置くこと。順序が逆だと上書きされる） */
.about__grid--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.about__body p + p { margin-top: 1.7em; }

/* ---------- promise ---------- */
.promise__list {
  margin-top: clamp(36px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 48px);
}
.promise__item { padding-top: 20px; border-top: 2px solid var(--navy); }
.promise__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--orange);
}
.promise__ttl {
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.6;
}
.promise__catch {
  margin-top: 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy-2);
  line-height: 1.85;
}
.promise__txt { margin-top: 12px; font-size: 14.5px; line-height: 2; }

/* ---------- services ---------- */
.svc { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); }
.svc + .svc { margin-top: clamp(48px, 6vw, 84px); padding-top: clamp(48px, 6vw, 84px); border-top: 1px solid var(--rule); }
.svc__head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.svc__ttl { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.55; }
.svc__lead { margin-top: 16px; font-size: 14.5px; line-height: 1.95; color: var(--muted); }

.svc__sub { font-size: 15px; font-weight: 700; color: var(--navy); letter-spacing: 0.02em; }
.svc__group + .svc__group { margin-top: 34px; }

.list { display: grid; gap: 12px; }
.svc__sub + .list { margin-top: 16px; }
.list > li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.9; }
.list > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.92em;
  width: 7px;
  height: 1.5px;
  background: var(--navy);
  opacity: 0.55;
}
.list--sub { margin-top: 10px; gap: 8px; padding-left: 4px; }
.list--sub > li { font-size: 14px; color: var(--muted); padding-left: 16px; }
.list--sub > li::before { width: 4px; height: 4px; border-radius: 50%; top: 0.85em; background: var(--muted); opacity: 0.6; }

.price {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.price__label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--muted); }
.price__value {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.price__unit { font-size: 14px; font-weight: 500; color: var(--body); }

.note {
  margin-top: 22px;
  padding-left: 14px;
  border-left: 2px solid var(--rule);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
}

.training { display: grid; gap: 22px; }
.training > li { padding-left: 0; }
.training__ttl { font-size: 15.5px; font-weight: 700; color: var(--navy); }
.training__txt { margin-top: 4px; font-size: 14.5px; color: var(--body); }

/* ---------- dev band（開発中） ---------- */
.dev { background: var(--navy); color: rgba(255, 255, 255, 0.88); }
.dev h2, .dev h3 { color: #fff; }
.dev .eyebrow { color: rgba(255, 255, 255, 0.62); }
.dev__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.dev__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--orange);
  border: 1px solid rgba(232, 122, 24, 0.55);
  border-radius: 2px;
  padding: 4px 10px;
  margin-bottom: 18px;
}
.dev__body p + p { margin-top: 1.6em; }
.dev__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.dev__link:hover { color: var(--orange); border-bottom-color: var(--orange); }

/* ---------- profile ---------- */
.profile__grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.profile__photo { width: 100%; max-width: 300px; }
.profile__photo img { width: 100%; border-radius: 50%; }
.profile__name { font-size: 19px; line-height: 1.6; }
.profile__role { margin-top: 6px; font-size: 13px; letter-spacing: 0.06em; color: var(--muted); }
.profile__body { margin-top: 26px; }
.profile__body p + p { margin-top: 1.6em; }
.profile__meta {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- company ---------- */
.company__grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.table th, .table td {
  text-align: left;
  vertical-align: top;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14.5px;
  line-height: 1.9;
}
.table tr:first-child th, .table tr:first-child td { border-top: 1px solid var(--rule); }
.table th { width: 128px; font-weight: 700; color: var(--navy); letter-spacing: 0.04em; }
.table ol { counter-reset: biz; display: grid; gap: 8px; }
.table ol > li { position: relative; padding-left: 26px; }
.table ol > li::before {
  counter-increment: biz;
  content: counter(biz) ".";
  position: absolute;
  left: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact__mail {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
  color: var(--muted);
}
.contact__mail a { color: var(--navy); font-weight: 500; border-bottom: 1px solid var(--rule); }
.contact__mail a:hover { color: var(--orange); border-bottom-color: var(--orange); }

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--navy); letter-spacing: 0.04em; }
.req { font-size: 11px; font-weight: 700; color: var(--orange); letter-spacing: 0.08em; margin-left: 8px; }
.opt { font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0.08em; margin-left: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 13px 14px;
  font-size: 15px;
  line-height: 1.7;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy-2);
  box-shadow: 0 0 0 3px rgba(28, 75, 125, 0.1);
}
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.8; }
.check input { width: 17px; height: 17px; margin-top: 5px; flex: none; accent-color: var(--navy); }
.check a { border-bottom: 1px solid var(--rule); }
.check a:hover { color: var(--orange); border-bottom-color: var(--orange); }
.form__submit { justify-self: start; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--rule); padding-block: clamp(48px, 6vw, 72px) 32px; }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer__logo img { width: 132px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 12px 32px; align-self: flex-start; }
.footer__nav a { font-size: 13.5px; color: var(--ink); }
.footer__nav a:hover { color: var(--orange); }
.footer__bottom {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* =========================================================
   下層ページ用
   ========================================================= */

/* ---------- ページ見出し ---------- */
.page-head { padding-top: clamp(44px, 5.5vw, 80px); }
.page-head__inner { padding-bottom: clamp(30px, 4vw, 48px); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(24px, 3vw, 34px); line-height: 1.55; letter-spacing: 0.015em; }
.page-head__lead { margin-top: 18px; max-width: 44em; font-size: clamp(14.5px, 1.4vw, 16px); }

/* ---------- ミッション表示 ---------- */
.mission__text {
  margin-top: 24px;
  font-size: clamp(19px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.75;
  color: var(--navy);
  letter-spacing: 0.015em;
}
.mission__tag {
  margin-top: 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ---------- 沿革 ---------- */
.history { display: grid; gap: 0; }
.history > li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.history > li:first-child { border-top: 1px solid var(--rule); }
.history time { font-weight: 700; color: var(--navy); letter-spacing: 0.03em; }

/* ---------- 本文（規約・記事） ---------- */
.prose { max-width: 43em; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 2.8em; font-size: 17px; line-height: 1.7; }
.prose h3 { margin-top: 1.8em; font-size: 15px; }
.prose p { margin-top: 1.1em; font-size: 15px; line-height: 2; }
.prose ul, .prose ol { margin-top: 1.1em; display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.9; }
.prose ul > li::before { content: ""; position: absolute; left: 2px; top: 0.92em; width: 7px; height: 1.5px; background: var(--navy); opacity: 0.55; }
.prose ol { counter-reset: pr; }
.prose ol > li::before { counter-increment: pr; content: counter(pr) "."; position: absolute; left: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.prose a { color: var(--navy); font-weight: 500; border-bottom: 1px solid var(--rule); }
.prose a:hover { color: var(--orange); border-bottom-color: var(--orange); }
.prose__meta { margin-top: clamp(40px, 5vw, 64px); padding-top: 20px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); line-height: 1.9; }

/* ---------- コラム一覧 ---------- */
.posts { display: grid; gap: 0; }
.posts > li { border-bottom: 1px solid var(--rule); }
.posts > li:first-child { border-top: 1px solid var(--rule); }
.posts a { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; padding: 26px 0; transition: opacity 0.2s; }
.posts a:hover { opacity: 0.62; }
.posts time { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.05em; padding-top: 3px; }
.posts h2 { font-size: 17px; line-height: 1.65; }
.posts p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.empty { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 15px; color: var(--muted); line-height: 2; }

/* ---------- 送信完了 ---------- */
.done { padding-block: clamp(72px, 12vw, 152px); }
.done h1 { font-size: clamp(24px, 3vw, 34px); line-height: 1.6; }
.done p { margin-top: 22px; max-width: 34em; }
.done .btn { margin-top: 38px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 1000px) {
  .navtoggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 28px;
    box-shadow: 0 24px 40px -30px rgba(11, 43, 81, 0.6);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid var(--rule-soft); }
  .nav a { display: block; font-size: 15px; padding: 15px 2px; }
  .nav li:last-child { border-bottom: 0; padding-top: 20px; }
  .nav .nav__cta { display: inline-flex; padding: 12px 24px; }

  .about__grid, .dev__grid, .contact__grid { grid-template-columns: 1fr; }
  .svc, .profile__grid, .company__grid { grid-template-columns: 1fr; }
  .history > li, .posts a { grid-template-columns: 1fr; gap: 6px; }
  .svc__head { position: static; }
  .promise__list { grid-template-columns: 1fr; gap: 28px; }
  .profile__photo { max-width: 220px; }
}

@media (max-width: 820px) {
  .hero { display: flex; flex-direction: column; }
  .hero__media { position: relative; order: 2; aspect-ratio: 16 / 10; }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 40%);
  }
  .hero__inner { order: 1; min-height: 0; padding-block: 52px 44px; }
  .hero__body { max-width: none; }
  .pc-br { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .table th, .table td { display: block; width: auto; padding: 0; border: 0; }
  .table th { padding-top: 16px; font-size: 12.5px; letter-spacing: 0.1em; color: var(--muted); }
  .table td { padding: 2px 0 16px; border-bottom: 1px solid var(--rule); }
  .table tr:first-child th { padding-top: 0; border-top: 0; }
  .table tr:first-child td { border-top: 0; }
  .footer__grid { flex-direction: column; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
