@charset "utf-8";

/* ==========================================================
   コンテナ合同会社 — 画像制作
   ========================================================== */

:root {
  --ink:      #141619;
  --ink-soft: #5a5f66;
  --line:     #e0e2e5;
  --paper:    #ffffff;
  --paper-2:  #f5f6f7;
  --deep:     #171b21;
  --accent:   #b8531f;   /* 差し色 */
  --gutter:   clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  font-size: 15px; line-height: 1.9; font-weight: 400;
  line-break: strict; overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 840px; }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 66px; }
.brand { text-decoration: none; line-height: 1.2; }
.brand b { display: block; font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.brand span { display: block; font-size: 9.5px; letter-spacing: .24em; color: var(--ink-soft); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 12.5px; text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.nav a[aria-current="page"] { border-bottom-color: currentColor; }
.nav .cta { border: 1px solid var(--ink); padding: 7px 16px; border-bottom-color: var(--ink); }
.nav .cta:hover { background: var(--ink); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; }
.nav-toggle span { display: block; width: 21px; height: 1px; background: currentColor; margin: 5px 0; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start; gap: 0;
         background: #fff; border-top: 1px solid var(--line); padding: 6px var(--gutter) 20px; display: none; }
  .site-header[data-nav="open"] .nav { display: flex; }
  .nav a { padding: 11px 0; font-size: 15px; }
  .nav .cta { margin-top: 8px; }
}

/* ---------- ヒーロー ---------- */
.hero { position: relative; background: var(--deep); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero-inner { position: relative; padding: clamp(72px, 13vw, 168px) 0 clamp(56px, 10vw, 128px); }
.hero h1 { margin: 0 0 20px; font-size: clamp(25px, 4.4vw, 50px); font-weight: 700; line-height: 1.5; letter-spacing: .01em; }
.hero p { margin: 0; max-width: 52ch; font-size: clamp(13px, 1.5vw, 16px); color: #d5d8dc; }
.hero .eyebrow { display: block; font-size: 10.5px; letter-spacing: .28em; color: #9aa1a9; margin-bottom: 20px; }

/* ---------- セクション ---------- */
.section { padding: clamp(52px, 8vw, 104px) 0; }
.section--tint { background: var(--paper-2); }
.section--deep { background: var(--deep); color: #fff; }

.sec-head { margin-bottom: clamp(28px, 4vw, 46px); }
.sec-head .eyebrow { display: block; font-size: 10.5px; letter-spacing: .24em; color: var(--accent); margin-bottom: 10px; }
.sec-head h2 { margin: 0; font-size: clamp(21px, 3vw, 31px); font-weight: 700; line-height: 1.5; }
.sec-head p { margin: 14px 0 0; max-width: 58ch; font-size: 13.5px; color: var(--ink-soft); }
.section--deep .sec-head p { color: #b3b8bf; }

/* ---------- 事業 ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
@media (max-width: 800px) { .trio { grid-template-columns: 1fr; } }
.trio > div { border-top: 2px solid var(--ink); padding-top: 16px; }
.section--deep .trio > div { border-top-color: #fff; }
.trio b { display: block; font-size: 10.5px; letter-spacing: .2em; color: var(--accent); }
.trio h3 { margin: 6px 0 10px; font-size: 17px; font-weight: 700; }
.trio p { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 2; }
.section--deep .trio p { color: #b3b8bf; }
.trio ul { margin: 10px 0 0; padding-left: 1.2em; font-size: 12.5px; color: var(--ink-soft); }

/* ---------- 実績 ---------- */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.6vw, 18px); }
@media (max-width: 760px) { .works { grid-template-columns: repeat(2, 1fr); } }
.works figure { margin: 0; }
.works img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.works figcaption { margin-top: 8px; font-size: 11.5px; color: var(--ink-soft); }

/* ---------- 関連事業 ---------- */
.related { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(26px, 5vw, 60px); align-items: center; }
@media (max-width: 800px) { .related { grid-template-columns: 1fr; } }
.related-media { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.related-media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.related-media img:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
.related h3 { margin: 0 0 6px; font-size: clamp(19px, 2.6vw, 27px); font-weight: 700; }
.related .sub { margin: 0 0 16px; font-size: 11.5px; letter-spacing: .12em; color: var(--accent); }
.related p { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-soft); line-height: 2; }

/* ---------- 会社概要の表 ---------- */
table.legal { width: 100%; border-collapse: collapse; font-size: 13px; }
table.legal th, table.legal td { border-bottom: 1px solid var(--line); padding: 14px 8px; vertical-align: top; text-align: left; }
table.legal th { width: 30%; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
@media (max-width: 620px) {
  table.legal th, table.legal td { display: block; width: 100%; border-bottom: 0; padding: 4px 0; }
  table.legal th { padding-top: 14px; }
  table.legal tr { display: block; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
}
.purpose { margin: 0; padding-left: 1.4em; line-height: 2.05; }

/* ---------- 沿革 ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 13.5px; }
.timeline li:first-child { border-top: 1px solid rgba(255,255,255,.14); }
.timeline b { font-weight: 700; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block; background: var(--ink); color: #fff; border: 1px solid var(--ink);
  font: inherit; font-size: 13px; padding: 11px 28px; text-decoration: none; cursor: pointer;
}
.btn:hover { background: #000; }
.btn--ghost { background: none; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: currentColor; color: var(--deep); }

/* ---------- フォーム ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 11.5px; color: var(--ink-soft); margin-bottom: 5px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 13.5px; padding: 11px 13px;
  background: #fff; border: 1px solid var(--line); border-radius: 3px; color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- フッター ---------- */
.site-footer { background: var(--deep); color: #fff; padding: clamp(36px, 5vw, 58px) 0 42px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(22px, 4vw, 48px); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer address, .site-footer p, .site-footer li { font-style: normal; font-size: 12px; line-height: 2; color: #c9ced4; }
.site-footer h3 { margin: 0 0 10px; font-size: 12px; font-weight: 500; letter-spacing: .1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.footer-brand b { display: block; font-size: 16px; font-weight: 700; }
.footer-brand span { display: block; font-size: 9.5px; letter-spacing: .24em; color: #9aa1a9; margin-bottom: 12px; }
.copyright { margin-top: 30px; font-size: 10.5px; color: #8f959c; }
