/* 株式会社MUSEUM コーポレートサイト
 * 値の正本は docs/01（色・書体）と docs/05（レイアウト。LayerX の実測を写した）。
 * 色は墨 #111111 のみ。書体は Zen Kaku Gothic New（400 / 500 / 700）。
 * レイアウトの寸法は LayerX 1440px 幅の実測: 本文の左右余白 154px・見出し 60/44/24/14・面は角 16px・内側 20px・行は 192px。 */

:root {
  --bg: #FFFFFF; --panel: #F6F6F7; --ink: #111111; --text: #111111; --muted: #6B6B6B; --hair: #E5E5E2; --system: #B8B8B3;
  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --side: clamp(20px, 10.7vw, 154px);        /* LayerX: x=154 */
  --gap: clamp(84px, 8.3vw, 120px);          /* セクションの間: mt-84 / sm:mt-120 */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.9; letter-spacing: 0.02em; font-weight: 400; font-feature-settings: "palt"; overflow-x: hidden; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; } ul, ol { padding: 0; list-style: none; } a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
img { max-width: 100%; height: auto; display: block; }
small { font-size: 0.4em; font-weight: 500; }
.container { padding-inline: var(--side); }
.skip { position: absolute; left: 16px; top: -48px; padding: 8px 12px; background: var(--ink); color: #fff; z-index: 100; } .skip:focus { top: 16px; }

/* ---------- 見出しの階層（LayerX 実測） ---------- */
.h-en { font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: 0; }                 /* What We Do */
.h-en--l { font-size: 32px; }                                                                       /* Contact */
.h-label { font-size: 14px; font-weight: 500; letter-spacing: 0.02em; margin-top: 68px; padding-bottom: 12px; border-bottom: 1px solid var(--hair); } /* Business */
.statement { margin-top: clamp(40px, 5vw, 60px); font-size: clamp(26px, 3.05vw, 44px); font-weight: 700; line-height: 1.4; letter-spacing: 0.04em; max-width: 26em; }
.panel__lead { margin-top: clamp(20px, 2.5vw, 28px); font-size: clamp(16px, 1.4vw, 20px); line-height: 1.9; letter-spacing: 0.02em; max-width: 42em; }

/* ---------- 円とピル ---------- */
.circle { display: inline-block; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--hair); position: relative; flex: none; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.circle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-top: 1.4px solid currentColor; border-right: 1.4px solid currentColor; transform: translate(-60%, -50%) rotate(45deg); }
.circle--sm { width: 36px; height: 36px; } .circle--sm::after { width: 8px; height: 8px; }
.circle-link { display: inline-flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 500; }
.circle-link:hover .circle { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill { display: inline-flex; align-items: center; height: 52px; padding: 0 28px; border-radius: 9999px; font-size: 14px; font-weight: 700; border: 1px solid var(--ink); transition: opacity .25s var(--ease); }
.pill--fill { background: var(--ink); color: #fff; } .pill:hover { opacity: .75; }

/* ---------- ヘッダー（浮く・罫線なし。ロゴの右にナビ。半透明＋ぼかしで下を薄く透かす） ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
.site-header__inner { display: flex; align-items: center; gap: 40px; padding: 22px var(--side) 18px; padding-left: clamp(20px, 2.2vw, 31px); padding-right: clamp(20px, 2.2vw, 31px); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__word { height: 15px; width: auto; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 500; margin-left: auto; }
.nav-toggle { display: none; width: 32px; height: 32px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; margin-left: auto; flex: none; }
.nav-toggle span { display: block; width: 22px; height: 1.4px; background: var(--ink); transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-top: 1px solid var(--hair);
    padding: 4px clamp(20px, 2.2vw, 31px) 12px;
  }
  .nav.is-open { display: flex; }
  .nav > *:not(:last-child) { border-bottom: 1px solid var(--hair); }
  .nav a, .nav .nav__btn { padding: 14px 0; }
}

/* ---------- HERO（100vh。左に狭い段の一文、右にオブジェクト画像。ROUTE06 実測 docs/08 に合わせる） ---------- */
.hero { position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 48%) minmax(0, 52%); padding-left: var(--side); }
.hero__copy { grid-column: 1; grid-row: 1; align-self: center; max-width: 41rem; padding: 18vh 24px 14vh 0; }
.hero__title { width: 100%; font-size: clamp(36px, 5.6vw, 80px); font-weight: 300; line-height: 1.25; letter-spacing: -0.02em; }
.hero__sub { margin-top: 1.4em; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.9; color: var(--muted); letter-spacing: 0.02em; }
.hero__object { grid-column: 2; grid-row: 1; margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 6vh 40px 6vh 0; }
.hero__object img { width: 100%; height: 100%; max-height: 88vh; object-fit: contain; object-position: center; }
.hero__scroll { position: absolute; left: clamp(20px, 2.2vw, 31px); bottom: 40px; font-size: 12px; letter-spacing: 0.1em; color: var(--muted); writing-mode: vertical-rl; }
.hero__scroll::before { content: ""; display: block; width: 1px; height: 48px; background: var(--ink); margin: 0 auto 10px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-left: 0; }
  .hero__object { grid-column: 1; grid-row: 1; min-height: 0; justify-content: flex-start; padding: 96px var(--side) 0; }
  .hero__copy { grid-column: 1; grid-row: 2; max-width: none; padding: 32px var(--side) 48px; }
  .hero__title { letter-spacing: -0.01em; }
  /* width:100%+height:100%+max-height の組み合わせだと object-fit:contain が箱の中で
     絵を縮小して左右に隙間ができ、テキストの余白と揃わなくなるため、幅基準の自然な高さに切り替える */
  .hero__object img { width: 100%; height: auto; max-height: none; }
  .hero__scroll { display: none; }
}
/* スマホでは --side（画面幅の10.7vw）が効きすぎて余白が空きすぎるため、幅なりに詰める */
@media (max-width: 720px) { :root { --side: clamp(20px, 6vw, 32px); } }

/* ---------- ミッションの 1 画面（中央の狭い段） ---------- */
.mission { min-height: 100vh; display: grid; place-items: center; padding: var(--gap) var(--side); }
.mission__inner { max-width: 720px; display: grid; gap: 28px; }
.mission__label { font-size: 14px; font-weight: 500; letter-spacing: 0.1em; color: var(--muted); }
.mission__title { font-size: clamp(30px, 3.05vw, 44px); font-weight: 700; line-height: 1.4; letter-spacing: 0.04em; }
.mission__text { font-size: clamp(16px, 1.4vw, 20px); line-height: 2; letter-spacing: 0.04em; font-weight: 400; }
.mission__text b { font-weight: 700; }
.mission__text .phrase { display: inline-block; }
.mission__ctas { display: flex; flex-wrap: wrap; gap: 24px 48px; }

/* ---------- 面（角 16px・画面端から 20px 内側） ---------- */
.panel { margin: 0 20px; border-radius: 16px; background: var(--panel); }
.panel + .section, .section + .panel, .panel + .panel, .section + .section { margin-top: var(--gap); }
.panel__inner { padding: clamp(64px, 8vw, 120px) max(20px, calc(var(--side) - 20px)) clamp(64px, 6vw, 88px); }
.panel--ink { background: var(--ink); color: #fff; --hair: rgba(255,255,255,.18); --muted: rgba(255,255,255,.62); --system: rgba(255,255,255,.4); }
.panel__more { display: flex; justify-content: flex-end; margin-top: 40px; }
.panel__note { margin-top: 64px; font-size: clamp(20px, 2vw, 28px); font-weight: 700; letter-spacing: 0.04em; }
.section { padding-block: clamp(24px, 3vw, 40px) 0; }

/* ---------- 行（LayerX の Business: 192px・タイル 120×84・タイトル 24・説明 12・円 36） ---------- */
.rows { margin-top: clamp(32px, 4vw, 56px); }
.rows__item { border-bottom: 1px solid var(--hair); }
.rows__item > .rows__link, .rows__item:not(:has(.rows__link)) { display: grid; grid-template-columns: clamp(120px, 18vw, 260px) 1fr auto; gap: 28px; align-items: center; padding: 28px 0; min-height: 192px; }
.rows__link { transition: opacity .25s var(--ease); } .rows__link:hover { opacity: .7; }
.rows__link:hover .circle { background: currentColor; }
.tile { width: clamp(120px, 18vw, 260px); aspect-ratio: 120 / 84; border-radius: 4px; background: #fff; border: 1px solid var(--hair); overflow: hidden; display: grid; place-items: center; }
.tile svg { width: 100%; height: 100%; display: block; }
.tile--shot { background: #fff; border-color: rgba(255,255,255,.25); }
.tile--shot img, .tile--shot video { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.tile--phone img { object-position: center top; }
.rows__num { font-size: 12px; letter-spacing: 0.12em; color: var(--muted); font-weight: 500; }
.rows__title { font-size: clamp(18px, 1.67vw, 24px); font-weight: 700; line-height: 1.4; margin-top: 2px; letter-spacing: 0.02em; }
.rows__desc { font-size: 13px; line-height: 1.7; color: var(--muted); margin-top: 6px; max-width: 42em; }
.rows__desc b { color: #fff; }
@media (max-width: 640px) { .rows__item > .rows__link, .rows__item:not(:has(.rows__link)) { grid-template-columns: 1fr; gap: 14px; } .tile { width: 100%; height: auto; aspect-ratio: 120 / 84; max-width: 240px; } }

/* 章（Story）: 左に文、右に図。行の型は使わない */
.chapters { margin-top: clamp(56px, 6vw, 88px); }
.chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(56px, 6vw, 88px); border-top: 1px solid var(--hair); }
.chapter__num { font-size: 12px; letter-spacing: 0.12em; color: var(--muted); font-weight: 500; }
.chapter__title { font-size: clamp(22px, 2vw, 28px); font-weight: 700; line-height: 1.4; letter-spacing: 0.03em; margin: 6px 0 20px; }
.chapter__text p + p { margin-top: 1em; }
.chapter__source { font-size: 12px; color: var(--muted); }
.chapter__fig { margin: 0; }
@media (max-width: 800px) { .chapter { grid-template-columns: 1fr; } }
/* Story はセクション内で Bold なしに統一する（h-en / statement は他セクションと共有クラスのためここだけ上書き） */
#story .h-en, #story .statement, #story .chapter__title { font-weight: 500; }

/* 働く人の写真 */
.people { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(120px, 14vw, 220px); gap: 12px; margin: clamp(56px, 6vw, 88px) 20px 0; }
.people img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.people img:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.people img:nth-child(2) { grid-column: span 2; }
.people img:nth-child(3) { grid-column: span 2; grid-row: span 2; }
.people img:nth-child(4) { grid-column: span 1; }
.people img:nth-child(5) { grid-column: span 1; }
@media (max-width: 720px) { .people { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; } .people img:nth-child(n) { grid-column: span 1; grid-row: span 1; } .people img:nth-child(1) { grid-column: span 2; } }
.company__join { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--hair); display: grid; gap: 12px; font-size: 14px; }
.company__join-h { font-size: 18px; font-weight: 700; }

/* Company */
.company__grid { display: grid; gap: 40px; margin-top: 68px; }
@media (min-width: 900px) { .company__grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.company__tag { margin-top: 6px; font-weight: 500; }
.company__origin { margin-top: 8px; font-size: 13px; color: var(--muted); }
.company__table { border-top: 1px solid var(--hair); }
.company__table > div { display: grid; grid-template-columns: 6em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.company__table dt { color: var(--muted); } .company__table dd { margin: 0; }

/* Contact */
.contact { padding-block: var(--gap) 0; }
.contact__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-block: 48px; border-top: 1px solid var(--hair); }
.contact__l { display: flex; align-items: baseline; gap: 40px; flex-wrap: wrap; }
.contact__text { font-size: 16px; }

/* Footer */
.site-footer { margin-top: 64px; }
.site-footer__inner { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding-block: 64px 32px; border-top: 1px solid var(--hair); }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font-size: 13px; }
.site-footer__cols a, .site-footer__cols button { display: block; width: 100%; color: var(--muted); padding: 3px 0; }
.site-footer__h { font-weight: 700; margin-bottom: 8px; }
.site-footer__copy { grid-column: 1 / -1; font-size: 11px; color: var(--muted); margin-top: 24px; }
@media (max-width: 720px) { .site-footer__inner { grid-template-columns: 1fr; } .site-footer__cols { grid-template-columns: 1fr; } }

/* ---------- 現れる（JS があるときだけ） ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js [data-reveal] { transition: none !important; opacity: 1 !important; transform: none !important; } }

/* ---------- ヘッダーナビのボタン（お問い合わせ。<a>と同じ見え方に） ---------- */
.nav__btn { font: inherit; }

/* ---------- お問い合わせモーダル ---------- */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, .5); backdrop-filter: blur(4px); animation: modal-fade .2s var(--ease); }
.modal__panel { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 48px); overflow-y: auto; background: #fff; color: var(--text); border-radius: 16px; padding: 40px clamp(24px, 4vw, 48px); animation: modal-pop .25s var(--ease); }
.modal__close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--hair); display: grid; place-items: center; font-size: 20px; line-height: 1; transition: background-color .2s var(--ease), color .2s var(--ease); }
.modal__close:hover { background: var(--ink); color: #fff; }
.modal__title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: 0.03em; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal__backdrop, .modal__panel { animation: none; } }

.contact-form__note { margin-top: 10px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.contact-form__note a { text-decoration: underline; }
.contact-form[hidden], .contact-consent[hidden] { display: none; }
.contact-consent { margin-top: 28px; display: grid; gap: 16px; }
.contact-consent__h { font-size: 15px; font-weight: 700; }
.contact-consent__terms { font-size: 14px; line-height: 1.9; padding: 16px 18px; border: 1px solid var(--hair); border-radius: 8px; }
.contact-consent__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.contact-form { margin-top: 28px; display: grid; gap: 20px; }
.contact-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form__terms { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.contact-form__field { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.contact-form__req { color: #b3261e; font-weight: 400; margin-left: 2px; }
.contact-form__field input, .contact-form__field textarea { font: inherit; font-size: 15px; color: var(--text); padding: 12px 14px; border: 1px solid var(--hair); border-radius: 8px; background: #fff; transition: border-color .2s var(--ease); }
.contact-form__field input:focus, .contact-form__field textarea:focus { outline: none; border-color: var(--ink); }
.contact-form__field textarea { resize: vertical; min-height: 100px; }
.contact-form__submit { justify-self: start; margin-top: 4px; }
.contact-form__submit:disabled { opacity: .5; cursor: default; }
.contact-form__status { font-size: 13px; line-height: 1.7; min-height: 1.4em; }
.contact-form__status a { text-decoration: underline; }
.contact-form__status[data-state="error"] { color: #b3261e; }
.contact-form__status[data-state="success"] { color: #1a7f37; }

/* ---------- 規約・ポリシーのページ（site/privacy/） ---------- */
.legal { max-width: calc(760px + var(--side) * 2); padding-block: 140px 96px; font-size: 15px; overflow-wrap: anywhere; }
.legal__title { font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.4; margin-bottom: 32px; }
.legal h2 { font-size: 17px; font-weight: 700; margin: 40px 0 12px; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.4em; margin-top: 8px; }
.legal li + li { margin-top: 4px; }
.legal a { text-decoration: underline; }
.legal__date { margin-top: 48px; color: var(--muted); font-size: 13px; }
