/* =========================================================
   Hayai & Mobile
   デザイン見本A（余白と文字組み）をベースにしたスタイル
   ========================================================= */

:root {
  --brand: #2a305c;
  --brand-deep: #1f2448;
  --text: #23263a;
  --muted: #5d6175;
  --line: #e2e4ec;
  --bg: #ffffff;
  --bg-alt: #f6f7fa;
  --container: 1080px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .03em;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  padding: 8px 16px; background: var(--brand); color: #fff; text-decoration: none; font-size: 14px;
}
.skip-link:focus { top: 16px; }

/* 文節で改行させるための指定 */
h1, h2, .philosophy-lead { word-break: keep-all; overflow-wrap: anywhere; }
.phrase { display: inline-block; }
.line { display: block; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; min-height: 72px; }
.logo { display: block; width: 168px; flex-shrink: 0; }
.logo img { width: 100%; height: auto; }
.nav ul { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }
.nav .nav-contact { color: var(--brand); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding: 128px 0 120px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); font-weight: 600;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--brand); }
.hero h1 {
  font-size: clamp(32px, 5.4vw, 60px); line-height: 1.45; letter-spacing: .02em;
  font-weight: 700; color: var(--brand-deep); font-feature-settings: "palt";
}
.hero .lead { max-width: 640px; margin-top: 40px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 112px 0; border-top: 1px solid var(--line); }
.section > .container { display: grid; grid-template-columns: 240px 1fr; gap: 48px; }
.section-label { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.section-head h2 { margin-top: 8px; font-size: 24px; line-height: 1.5; color: var(--brand-deep); }
.section-body { min-width: 0; }
.prose p + p { margin-top: 1.6em; }

/* 考え方 */
.philosophy { max-width: 680px; }
.philosophy-lead {
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.6; font-weight: 700;
  color: var(--brand-deep); font-feature-settings: "palt";
}
.philosophy-close { font-weight: 600; color: var(--brand-deep); }

/* 仕事のこと */
.work-intro { max-width: 680px; }
.tier + .tier { margin-top: 64px; }
.tier-title { display: flex; align-items: center; gap: 16px; font-size: 15px; color: var(--brand); margin: 48px 0 28px; }
.tier-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 40px; }
.area h4 { font-size: 17px; color: var(--brand-deep); padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--brand); }
.area p { font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags li { font-size: 12px; line-height: 1; padding: 7px 10px; background: var(--bg-alt); color: var(--muted); border-radius: 2px; letter-spacing: .02em; }

/* 実績 */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.works a { display: block; text-decoration: none; }
.works img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); transition: opacity .2s; }
.works a:hover img { opacity: .8; }
.work-type { font-size: 12px; color: var(--muted); margin-top: 16px; letter-spacing: .06em; }
.work h3 { font-size: 16px; line-height: 1.6; margin-top: 4px; color: var(--brand-deep); }
.works-sub { margin-top: 64px; }
.sub-heading { font-size: 17px; color: var(--brand-deep); margin-bottom: 16px; }
.other-works > div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.other-works > div:first-child { border-top: 1px solid var(--line); }
.other-works dt { font-weight: 600; color: var(--brand-deep); }

/* プロフィール */
.profile-id { display: flex; align-items: center; gap: 24px; margin-bottom: 32px; }
.avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.profile-name { font-weight: 700; font-size: 18px; color: var(--brand-deep); }
.profile-title { font-size: 13px; color: var(--muted); letter-spacing: .08em; }
.profile-text { max-width: 680px; }
.profile-text p + p { margin-top: 1.2em; }

/* 連絡先 */
.section-contact { background: var(--bg-alt); }
.contact-text { max-width: 640px; color: var(--muted); }
.link-arrow { display: inline-block; margin-top: 32px; font-weight: 600; color: var(--brand); text-decoration: none; }
.link-arrow::after { content: " →"; white-space: pre; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Sub pages (お問い合わせ・プライバシーポリシー・404) ---------- */
.page-head { padding: 96px 0 56px; }
.page-head h1 { margin-top: 8px; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.5; color: var(--brand-deep); }
.page-body { padding-bottom: 112px; }
.page-body > .container { max-width: 760px; }
.page-lead { color: var(--muted); }

.form-wrap { margin-top: 48px; min-height: 480px; padding: 40px; border: 1px solid #eceef3; border-radius: 4px; }
.policy a, .not-found a { color: var(--brand); text-underline-offset: 3px; }
.business-info { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.business-info h2 { font-size: 17px; color: var(--brand-deep); margin-bottom: 12px; }
.business-info p { font-size: 15px; }

.policy .updated { font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.policy p { margin-top: 1em; }
.policy h2 { margin-top: 56px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 19px; line-height: 1.6; color: var(--brand-deep); }
.policy h3 { margin-top: 28px; font-size: 16px; color: var(--brand-deep); }
.policy ul { margin-top: .8em; padding-left: 1.4em; list-style: disc; }
.policy ul ul { margin-top: .2em; list-style: circle; }
.policy li { margin-top: .2em; }
.policy a { overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0; border-top: 1px solid var(--line); }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-footer .logo { width: 140px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; }
.footer-links a, .footer-links button { color: var(--muted); text-decoration: none; }
.footer-links button { padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; cursor: pointer; }
.footer-links a:hover, .footer-links button:hover { color: var(--brand); }
.copyright { font-size: 12px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .works { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .site-header .container { flex-direction: column; align-items: flex-start; padding: 18px 0 14px; }
  .nav ul { gap: 4px 14px; font-size: 12px; letter-spacing: .02em; }
  .hero { padding: 72px 0 80px; }
  .hero .lead { margin-top: 28px; }
  .section { padding: 72px 0; }
  .section > .container { grid-template-columns: 1fr; gap: 28px; }
  .areas { grid-template-columns: 1fr; gap: 36px; }
  .page-head { padding: 64px 0 40px; }
  .page-body { padding-bottom: 80px; }
  .form-wrap { padding: 24px 20px; }
}
@media (max-width: 560px) {
  .works { grid-template-columns: 1fr; }
  .other-works > div { grid-template-columns: 1fr; gap: 2px; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}
