:root {
  --ink: #1a1a1a;
  --ink-2: #4a4a4a;
  --paper: #faf7f2;
  --white: #ffffff;
  --line: #e3ddd4;
  --accent: #b3452b;
  --sumi: #2b2b2b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Noto Sans JP", sans-serif; font-size: 15px; line-height: 1.9; }
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
/* width/height 属性があると aspect-ratio が効かないので高さを自動にする */
.hero-photo, .service-card img, .about-image { height: auto; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 86px; }
.brand { display: inline-flex; flex-direction: column; line-height: 1.25; }
.brand-main, h1, h2, h3, .footer-logo { font-family: "Noto Serif JP", serif; }
.brand-main { font-size: 22px; font-weight: 700; }
.brand-main small { margin-left: 8px; font-family: Inter, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .2em; }
.brand-tagline { margin-top: 5px; font-size: 12px; }
nav { display: flex; gap: 26px; font-family: Inter, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .08em; }
nav a:hover { color: var(--ink-2); text-decoration: underline; }
.hero { display: flex; min-height: 92vh; flex-direction: column; background: var(--paper); overflow: hidden; }
.hero-grid { display: grid; flex: 1; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.hero-content { grid-column: 1 / span 5; }
.hero-rule { display: block; width: 40px; height: 2px; margin: 22px 0 18px; background: var(--accent); }
.hero-collage { position: relative; grid-column: 6 / span 7; min-height: 560px; }
.hero-collage-decoration { position: absolute; z-index: 0; top: 8%; left: 10%; width: 60%; height: 70%; background: rgba(179,69,43,.10); }
.hero-photo { position: absolute; border-radius: 4px; object-fit: cover; }
.hero-photo-a { z-index: 1; top: 0; right: 0; width: 78%; aspect-ratio: 3 / 2; }
.hero-photo-b { z-index: 2; bottom: 8%; left: 0; width: 46%; aspect-ratio: 4 / 3; border: 6px solid var(--white); box-shadow: 0 20px 40px rgba(0,0,0,.18); }
.hero-photo-c { z-index: 3; right: 6%; bottom: -6%; width: 30%; aspect-ratio: 1; border: 6px solid var(--white); box-shadow: 0 20px 40px rgba(0,0,0,.18); }
.hero-vertical-tagline { position: absolute; top: 0; left: -36px; margin: 0; color: var(--ink-2); font-family: "Noto Serif JP", serif; font-size: 13px; font-weight: 500; letter-spacing: .3em; line-height: 1.5; writing-mode: vertical-rl; }
.eyebrow { margin: 0 0 14px; color: var(--ink-2); font-family: Inter, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .12em; line-height: 1.4; }
h1, h2, h3 { margin: 0; line-height: 1.45; font-weight: 600; }
h1 { font-size: 56px; line-height: 1.3; }
h2 { font-size: 34px; }
.hero-lead { max-width: 440px; margin: 24px 0 30px; font-size: 16px; line-height: 2; }
.button { display: inline-block; border-radius: 2px; background: var(--accent); padding: 13px 25px; color: var(--white); font-weight: 700; line-height: 1.5; }
.button:hover { background: #913820; }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.hero-company-link { color: var(--ink-2); font-size: 13px; font-weight: 400; text-decoration: underline; text-underline-offset: 4px; }
.hero-keywords { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.hero-keywords li { border: 1px solid var(--line); border-radius: 999px; background: var(--white); padding: 4px 10px; color: var(--ink-2); font-size: 12px; line-height: 1.5; }
.hero-stats { width: 100%; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.hero-stats-inner { display: grid; grid-template-columns: 48px repeat(3, minmax(0, 1fr)) minmax(150px, .7fr); gap: 24px; align-items: center; min-height: 108px; }
.hero-scroll { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-family: Inter, sans-serif; font-size: 10px; letter-spacing: .2em; writing-mode: vertical-rl; }
.hero-scroll i { display: block; width: 1px; height: 32px; background: var(--line); }
.hero-stat p { margin: 0; line-height: 1.3; }
.hero-stat strong { color: var(--accent); font-family: Inter, sans-serif; font-size: 28px; font-weight: 600; }
.hero-stat > span { display: block; margin-top: 4px; color: var(--ink-2); font-size: 12px; line-height: 1.5; }
.hero-stats-note { margin: 0; color: var(--ink-2); font-size: 11px; line-height: 1.6; }
.section { padding: 96px 0; }
.about, .message { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.prose { max-width: 720px; }
.prose p { margin: 22px 0 0; }
.about-image { align-self: center; width: 100%; max-height: 420px; aspect-ratio: 4 / 3; border-radius: 4px; object-fit: cover; }
.section-lead { margin: 14px 0 40px; color: var(--ink-2); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 52px 40px; }
.service-card img { width: 100%; margin-bottom: 20px; aspect-ratio: 3 / 2; border-radius: 4px; object-fit: cover; object-position: center; }
.service-number { margin: 0 0 4px; color: var(--accent); font-family: Inter, sans-serif; font-weight: 600; letter-spacing: .08em; }
.service-card h3 { font-size: 22px; }
.service-card > p:not(.service-number) { margin: 12px 0; color: var(--ink-2); line-height: 1.8; }
.service-card ul { margin: 14px 0 0; padding: 0; color: var(--ink-2); font-size: 13px; line-height: 2; list-style: none; }
.service-card li::before { content: "•"; margin-right: 8px; color: var(--accent); }
.achievements { background: var(--sumi); color: var(--white); }
.achievements .eyebrow { color: var(--accent); }
.achievement-note { margin: 16px 0 42px; color: rgba(255,255,255,.72); font-size: 13px; }
.achievement-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.25); }
.achievement-grid article { min-height: 205px; padding: 26px 28px; border-right: 1px solid rgba(255,255,255,.25); }
.achievement-grid article:first-child { border-left: 1px solid rgba(255,255,255,.25); }
.stat { margin: 0; color: var(--accent); font-family: Inter, sans-serif; font-size: 56px; font-weight: 600; line-height: 1.1; }
.stat span { font-family: "Noto Sans JP", sans-serif; font-size: 15px; }
.achievement-grid h3 { margin-top: 14px; font-family: "Noto Sans JP", sans-serif; font-size: 15px; font-weight: 700; }
.achievement-grid article > p:last-child { margin: 8px 0 0; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.75; }
.message-content { max-width: 1120px; }
.signature { margin: 36px 0 0; text-align: right; line-height: 1.9; }
.signature strong { font-family: "Noto Serif JP", serif; font-size: 20px; font-weight: 600; }
table { width: 100%; margin-top: 34px; border-collapse: collapse; }
th, td { padding: 18px 24px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { width: 200px; background: var(--paper); font-weight: 700; }
td { line-height: 1.9; }
.site-footer { background: var(--sumi); color: var(--white); font-size: 12px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 0; }
.footer-inner p { margin: 0; }
.footer-logo { margin-bottom: 5px !important; font-size: 18px; font-weight: 600; }

@media (min-width: 641px) and (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding-top: 64px; padding-bottom: 72px; }
  .hero-content, .hero-collage { grid-column: 1; }
  .hero-collage { min-height: 420px; }
  .hero-photo-a { width: 72%; }
  .hero-photo-b { width: 38%; }
  .hero-photo-c { width: 24%; }
  .hero-stats-inner { grid-template-columns: 36px repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 20px; padding-bottom: 20px; }
  .hero-stats-note { grid-column: 2 / -1; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 48px, 1120px); }
  .header-inner { min-height: 76px; }
  nav { display: none; }
  .section { padding: 64px 0; }
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  .hero { min-height: 92vh; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 52px; padding-bottom: 56px; }
  .hero-content, .hero-collage { grid-column: 1; }
  .hero-lead { font-size: 14px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .hero-collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-height: 0; }
  .hero-collage-decoration, .hero-vertical-tagline { display: none; }
  .hero-photo { position: static; width: 100%; border: 0; box-shadow: none; }
  .hero-photo-a { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .hero-photo-b, .hero-photo-c { aspect-ratio: 1; }
  .hero-stats-inner { position: relative; grid-template-columns: 1fr; gap: 22px; padding-top: 28px; padding-bottom: 28px; padding-left: 34px; }
  .hero-scroll { position: absolute; top: 28px; left: 0; }
  .hero-stat { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .hero-stats-note { margin-top: -4px; }
  .about-grid, .service-grid, .achievement-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 32px; }
  .achievement-grid article, .achievement-grid article:first-child { min-height: 0; border-right: 1px solid rgba(255,255,255,.25); border-left: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); }
  .stat { font-size: 48px; }
  th, td { display: block; width: 100%; padding: 13px 16px; }
  th { border-bottom: 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media print {
  body { color: #000; background: #fff; }
  .hero { height: auto; min-height: 0; }
  .hero-grid { grid-template-columns: repeat(12, 1fr); padding-top: 48px; padding-bottom: 48px; }
  .hero-collage { min-height: 0; }
  .hero-photo { box-shadow: none; }
  .hero-photo-a { position: static; width: 100%; }
  .hero-photo-b, .hero-photo-c, .hero-collage-decoration, .hero-vertical-tagline, .hero-scroll { display: none; }
  .hero-stats-inner { grid-template-columns: repeat(3, 1fr) minmax(150px, .7fr); }
  .achievements, .site-footer { background: #fff; color: #000; }
  .achievement-note, .achievement-grid article > p:last-child { color: #000; }
  .achievement-grid, .achievement-grid article, .achievement-grid article:first-child { border-color: #999; }
  .button { border: 1px solid #000; background: #fff; color: #000; }
  .stat, .eyebrow, .service-number, .service-card li::before { color: #000; }
  body, .service-card ul { color: #000; }
}

/* 代表メッセージ: 左に写真・右に本文 */
.message-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: start; }
.message-photo { margin: 0; }
.message-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 4px; }
.message-photo figcaption { margin-top: 10px; color: var(--ink-2); font-size: 12px; }
.prose a, .achievement-grid a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover, .achievement-grid a:hover { color: var(--accent); }
@media (max-width: 640px) {
  .message-grid { grid-template-columns: 1fr; gap: 28px; }
  .message-photo { max-width: 240px; }
}
