/* =========================================================
   株式会社muutous コーポレートサイト
   色・文字・余白はすべてここの変数で決める（:root）
   ========================================================= */
:root {
  /* 色 */
  --navy: #0b1f33;        /* 基調の濃紺 */
  --navy-soft: #16324f;   /* 濃紺の上の線・ホバー */
  --brass: #b08d57;       /* 真鍮色（大きな文字・線・飾り用） */
  --brass-ink: #7d6136;   /* 真鍮色（白地の小さな文字用・読みやすさ確保） */
  --paper: #ffffff;
  --mist: #eef2f5;        /* 薄い青灰の面 */
  --text: #1c2a38;
  --muted: #55657a;
  --rule: #d6dee6;
  --on-navy: #e9eef3;
  --on-navy-muted: #a9b7c6;

  /* 文字 */
  --font-serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;

  /* 余白・幅 */
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1120px;
  --measure: 38em;
  --section-y: clamp(64px, 9vw, 120px);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  font-feature-settings: "palt" 0;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 8px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- 見出し・本文 ---------- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  letter-spacing: .06em;
  margin: 0;
}
h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); }

p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lead { font-size: 1.0625rem; color: var(--text); }
.muted { color: var(--muted); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--navy);
}
.brand img { width: 30px; height: 30px; }
.brand-name {
  font-family: var(--font-serif); font-weight: 700;
  font-size: 1.3rem; letter-spacing: .08em;
}

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a {
  text-decoration: none; font-size: .9375rem; color: var(--text);
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--brass); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--brass); }
.nav .nav-contact {
  border: 1px solid var(--navy); padding: 8px 18px; color: var(--navy);
}
.nav .nav-contact:hover,
.nav .nav-contact[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }

.menu-toggle {
  display: none;
  background: none; border: 0; padding: 10px; margin-right: -10px;
  cursor: pointer; color: var(--navy);
}
.menu-toggle span {
  display: block; width: 24px; height: 1.5px; background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}
.menu-toggle span + span { margin-top: 7px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--rule); }
  .nav a[aria-current="page"] { color: var(--brass-ink); }
  .nav .nav-contact { margin-top: 16px; text-align: center; border: 1px solid var(--navy); }
}

/* ---------- トップのヒーロー（縦書き） ---------- */
.hero {
  background: var(--navy);
  color: var(--on-navy);
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  min-height: min(78vh, 720px);
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.hero-copy {
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.4rem);
  line-height: 1.75;
  letter-spacing: .14em;
  color: #fff;
  margin: 0;
  justify-self: end;
  position: relative;
  padding-right: .6em;
  border-right: 1px solid var(--brass);
}
.hero-copy .line { display: block; }
.hero-copy .line:nth-child(2) { padding-top: 2.2em; }

.hero-body { max-width: 30em; }
.hero-name {
  font-family: var(--font-serif);
  font-size: 1.0625rem; letter-spacing: .12em;
  color: var(--brass); margin: 0 0 1.4em;
}
.hero-body p { color: var(--on-navy); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 2.2em; }

@media (max-width: 760px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 40px;
  }
  .hero-copy { order: -1; justify-self: start; font-size: clamp(2rem, 8.4vw, 2.6rem); }
}

/* 読み込み時の1回だけの演出：縦の線が下りて、文字が順に現れる */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { border-right-color: transparent; }
  .hero-copy::after {
    content: ""; position: absolute; top: 0; right: -1px; width: 1px; height: 100%;
    background: var(--brass); transform-origin: top; transform: scaleY(0);
    animation: draw-line 1.1s .1s cubic-bezier(.6,.05,.2,1) forwards;
  }
  .hero-copy .line {
    opacity: 0; transform: translateY(-.4em);
    animation: line-in 1s cubic-bezier(.2,.6,.2,1) forwards;
  }
  .hero-copy .line:nth-child(1) { animation-delay: .5s; }
  .hero-copy .line:nth-child(2) { animation-delay: .95s; }
  .hero-body { opacity: 0; animation: fade-in .9s 1.5s ease forwards; }
}
@keyframes draw-line { to { transform: scaleY(1); } }
@keyframes line-in { to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }

/* ---------- ボタン・リンク ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  font-family: var(--font-sans); font-size: .9375rem; font-weight: 500;
  letter-spacing: .06em; text-decoration: none;
  border: 1px solid var(--navy); background: var(--navy); color: #fff;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--navy-soft); border-color: var(--navy-soft); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-brass { background: var(--brass); border-color: var(--brass); color: var(--navy); }
.btn-brass:hover { background: #c4a26b; border-color: #c4a26b; }
.btn-ghost-light { background: transparent; border-color: var(--on-navy-muted); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); border-color: #fff; }

.text-link {
  color: var(--brass-ink); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.text-link:hover { color: var(--navy); }

/* ---------- セクション ---------- */
.section { padding: var(--section-y) 0; }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy); color: var(--on-navy); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: var(--on-navy); }

.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 + p { margin-top: 1em; }

/* 見出しを左、本文を右に置く2段組 */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* ---------- 事業の一覧（罫線で区切る行） ---------- */
.biz-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy); }
.biz-item {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) auto;
  gap: 16px clamp(24px, 4vw, 56px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.biz-item h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }
.biz-item .biz-sub { display: block; margin-top: .3em; font-family: var(--font-sans); font-size: .875rem; font-weight: 400; letter-spacing: .04em; color: var(--brass-ink); }
.biz-item p { color: var(--muted); }
.biz-item .text-link { white-space: nowrap; justify-self: start; }
@media (max-width: 860px) {
  .biz-item { grid-template-columns: 1fr; }
}

/* ---------- 下層ページの見出し帯 ---------- */
.page-head {
  background: var(--navy); color: var(--on-navy);
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px);
}
.page-head h1 {
  color: #fff;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  letter-spacing: .1em;
}
.page-head p { margin-top: 1.2em; color: var(--on-navy); }
.page-head .crumb {
  font-size: .8125rem; color: var(--on-navy-muted); margin: 0 0 1.6em;
}
.page-head .crumb a { color: var(--on-navy-muted); text-decoration: none; }
.page-head .crumb a:hover { color: #fff; }

/* ---------- 下層ページの各事業ブロック ---------- */
.block + .block { margin-top: clamp(64px, 9vw, 112px); }
.block-title { display: flex; align-items: baseline; gap: 16px; margin-bottom: 1.4em; word-break: keep-all; overflow-wrap: anywhere; }
.block-title::before {
  content: ""; flex: none; width: 28px; height: 1px; background: var(--brass); align-self: center;
}

.checklist { list-style: none; margin: 1.5em 0 0; padding: 0; max-width: var(--measure); }
.checklist li {
  position: relative; padding: .7em 0 .7em 1.6em;
  border-bottom: 1px solid var(--rule);
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 1.55em;
  width: 8px; height: 8px; border: 1px solid var(--brass); transform: rotate(45deg);
}

/* 手順（本当に順番がある時だけ番号を使う） */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 3.2em 1fr; gap: 0 16px;
  padding: 1.2em 0; border-bottom: 1px solid var(--rule);
}
.steps li::before {
  content: counter(step);
  font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.3;
  color: var(--brass-ink);
  grid-row: span 2;
}
.steps strong { font-family: var(--font-serif); font-size: 1.0625rem; color: var(--navy); letter-spacing: .06em; }
.steps p { margin: .3em 0 0; color: var(--muted); font-size: .9375rem; }

/* 考え方（3つの柱）：番号ではなく見出しで区切る */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.pillars > div { border-top: 1px solid var(--brass); padding-top: 1.4em; }
.pillars h3 { margin-bottom: .8em; }
.pillars p { color: var(--muted); font-size: .9375rem; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- 会社概要の表 ---------- */
.profile { width: 100%; border-collapse: collapse; border-top: 1px solid var(--navy); }
.profile th, .profile td {
  text-align: left; vertical-align: top;
  padding: 1.25em 0; border-bottom: 1px solid var(--rule);
  font-weight: 400;
}
.profile th {
  width: 11em; padding-right: 1.5em;
  font-family: var(--font-serif); font-weight: 600; color: var(--navy); letter-spacing: .08em;
}
.profile td ul { margin: 0; padding-left: 1.2em; }
@media (max-width: 560px) {
  .profile th, .profile td { display: block; width: auto; }
  .profile th { padding-bottom: 0; border-bottom: 0; }
  .profile td { padding-top: .3em; }
}

/* ---------- 締めの案内（お問い合わせへ） ---------- */
.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 28px 48px;
}
.cta h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); }
.cta p { margin-top: .8em; }

/* ---------- お問い合わせフォーム ---------- */
.form { max-width: 720px; }
.field { margin-bottom: 1.6em; }
.field label, .field .label {
  display: block; font-weight: 500; margin-bottom: .45em; color: var(--navy);
}
.req {
  font-size: .75rem; font-weight: 500; color: var(--brass-ink);
  margin-left: .6em; letter-spacing: .08em;
}
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--text);
  background: #fff;
  border: 1px solid #b9c5d1; border-radius: 0;
  padding: 12px 14px;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
  padding-right: 40px;
}
.field textarea { min-height: 200px; resize: vertical; line-height: 1.8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(176,141,87,.35);
}
.field .hint { font-size: .8125rem; color: var(--muted); margin-top: .4em; }
.agree { display: flex; gap: .6em; align-items: flex-start; }
.agree input { width: 18px; height: 18px; margin-top: .35em; accent-color: var(--navy); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  border-left: 3px solid var(--brass);
  background: var(--mist);
  padding: 1.2em 1.4em; margin-bottom: 2em; max-width: 720px;
}
.notice[hidden] { display: none; }
.notice-error { border-left-color: #a33a3a; background: #f8eded; }
.notice-ok { border-left-color: #2f6b4f; background: #ecf4ef; }
.form-status:empty { display: none; }

/* ---------- 本文ページ（プライバシーポリシー） ---------- */
.prose { max-width: 46em; }
.prose h2 { font-size: 1.25rem; margin: 2.4em 0 .8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }

/* ---------- フッター ---------- */
.site-footer {
  background: #071523; color: var(--on-navy-muted);
  padding: 56px 0 32px; font-size: .875rem;
}
.footer-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px;
  padding-bottom: 32px; border-bottom: 1px solid var(--navy-soft);
}
.site-footer .brand { color: #fff; }
.site-footer .brand-name { font-size: 1.15rem; }
.footer-company { margin-top: 1em; line-height: 1.8; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { text-decoration: none; color: var(--on-navy); }
.footer-nav a:hover { color: var(--brass); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; }
.footer-bottom a { color: var(--on-navy-muted); }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound .code { font-family: var(--font-serif); font-size: clamp(3rem, 2rem + 5vw, 5.5rem); color: var(--brass); line-height: 1; margin-bottom: .3em; letter-spacing: .06em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 本文の中の小見出し */
.sub-title { margin: 2.4em 0 .6em; }
.hint-note { margin-top: 1.6em; font-size: .9375rem; color: var(--muted); }

/* 実績の数字（AI活用の作業量など）：1つだけ、本文の流れの中で少し大きく見せる */
.proof {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px;
  max-width: var(--measure);
  margin: 1.8em 0; padding: 1.1em 0 1.2em;
  border-top: 1px solid var(--brass); border-bottom: 1px solid var(--rule);
}
.proof-figure {
  margin: 0; white-space: nowrap;
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); line-height: 1.2;
  letter-spacing: .04em; color: var(--navy);
}
.proof-figure small { font-size: .5em; margin-right: .15em; letter-spacing: .08em; }
.proof-text { flex: 1 1 16em; margin: 0; font-size: .9375rem; color: var(--muted); }
