/* SIRM corporate site. White base, monochrome. */
:root {
  --bg: #fff;
  --surface: #f6f6f4;
  --line: #e3e3e0;
  --muted: #6b6b6b;
  --text: #1a1a1a;
  --ink: #000;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(1.25rem, 5vw, 4rem);
  --gap-section: clamp(4.5rem, 10vw, 8rem);
  --f-en: "Outfit", "Noto Sans JP", sans-serif;
}

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

html { background: var(--bg); color-scheme: light; scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.9 "Noto Sans JP", "Hiragino Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: var(--bg); }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 0.5rem 1rem; z-index: 400; }
.skip:focus { left: 0; }

.label { font: 500 0.75rem/1.6 var(--f-en); letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.wrap { max-width: 80rem; margin: 0 auto; padding: 0 var(--pad); }

/* header: translucent layer, content scrolls under it */
.site {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: 4rem; padding: 0 var(--pad);
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; min-height: 44px; font: 600 1.5rem/1 var(--f-en); letter-spacing: 0.08em; color: var(--ink); }
.gnav { display: none; align-items: center; gap: 0.25rem; }
.gnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; font-size: 0.875rem; font-weight: 500; color: var(--muted); transition: color 0.3s var(--ease); }
.gnav a:hover, .gnav a[aria-current] { color: var(--ink); }
.gnav a[aria-current] { box-shadow: inset 0 -2px 0 var(--ink); }
.gnav a.cta { margin-left: 0.75rem; background: var(--ink); color: var(--bg); box-shadow: none; transition: background 0.3s var(--ease); }
.gnav a.cta:hover { background: var(--text); color: var(--bg); }
.menu-btn { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 44px; padding: 0 0.25rem; font: 500 0.75rem/1 var(--f-en); letter-spacing: 0.3em; }
.menu-btn span { display: block; width: 1.5rem; height: 7px; border-block: 1px solid var(--ink); }
@media (min-width: 900px) { .gnav { display: flex; } .menu-btn { display: none; } }

/* menu dialog (mobile) */
.menu { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; padding: 0; background: var(--bg); color: var(--text); overflow-y: auto; }
.menu[open] { animation: fade 0.4s var(--ease); }
.menu-close { position: absolute; top: 0.75rem; right: var(--pad); min-height: 44px; padding: 0 0.25rem; font: 500 0.75rem/1 var(--f-en); letter-spacing: 0.3em; }
.menu nav { display: flex; min-height: 100%; align-items: center; padding: 6rem var(--pad) 4rem; }
.menu li { border-bottom: 1px solid var(--line); }
.menu ul { width: 100%; max-width: 40rem; border-top: 1px solid var(--line); }
.menu a { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; min-height: 44px; padding: 1rem 0; font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 500; color: var(--ink); transition: padding-left 0.5s var(--ease); }
.menu a small { font: 500 0.6875rem/1 var(--f-en); letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.menu a:hover { padding-left: 0.75rem; }
.menu .sub a { font-size: 0.9375rem; font-weight: 400; }

/* hero (top page): text + slideshow */
.hero { display: grid; border-bottom: 1px solid var(--line); }
.hero-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 2.5rem var(--pad) 3.5rem; }
.hero h1 { font: 600 clamp(4.5rem, 12vw, 9.5rem)/0.9 var(--f-en); letter-spacing: -0.02em; color: var(--ink); }
.hero .lead { margin-top: clamp(1.25rem, 3vw, 2rem); font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 500; letter-spacing: 0.06em; }
.hero .label { margin-top: 2rem; }
.hero-media { position: relative; order: -1; margin-top: 4rem; }
.slides { position: relative; aspect-ratio: 4 / 3; background: var(--surface); overflow: hidden; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 0s linear 1.2s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.2s var(--ease); }
.slide > a, .slide > span { display: block; height: 100%; }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.slide figcaption { position: absolute; left: 0; bottom: 0; padding: 0.75rem 1.25rem; background: var(--bg); font-size: 0.9375rem; font-weight: 700; color: var(--ink); }
.slide figcaption span { margin-right: 0.75rem; font: 500 0.75rem/1 var(--f-en); letter-spacing: 0.2em; color: var(--muted); }
.slide-ctl { display: none; position: absolute; right: 0; bottom: 0; align-items: center; gap: 0.25rem; padding: 0 0.5rem 0 0.75rem; background: var(--bg); }
.js .slide-ctl { display: flex; }
@media (max-width: 899.98px) { .slide-ctl { position: static; justify-content: flex-end; padding: 0 0.5rem; } }
.pause { min-height: 44px; padding: 0 0.5rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; color: var(--muted); }
.pause:hover { color: var(--ink); }
.dots { display: flex; }
.dots button { position: relative; width: 28px; min-height: 44px; }
.dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border: 1px solid var(--ink); border-radius: 50%; transition: background 0.3s var(--ease); }
.dots button[aria-current="true"]::before { background: var(--ink); }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: min(46rem, 90svh); }
  .hero-text { padding: 8rem 3rem 4rem var(--pad); }
  .hero-media { order: 0; margin-top: 0; }
  .slides { aspect-ratio: auto; height: 100%; min-height: 30rem; }
}

/* sections */
.sec { padding: var(--gap-section) 0; border-bottom: 1px solid var(--line); }
.sec .wrap { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .sec .wrap { grid-template-columns: minmax(12rem, 1fr) minmax(0, 3fr); gap: 4rem; } }
.sec h2 { margin-top: 1rem; font: 700 clamp(1.5rem, 2.8vw, 2.5rem)/1.35 "Noto Sans JP", sans-serif; letter-spacing: -0.01em; color: var(--ink); }
.sec h2.en { font: 600 clamp(3rem, 8vw, 6rem)/0.9 var(--f-en); letter-spacing: -0.02em; }

/* business rows (top page) */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 3rem 1fr; gap: 0.5rem 1rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.row > * { grid-column: 2; }
.row .n { grid-column: 1; grid-row: 1; font: 500 0.75rem/2.6 var(--f-en); letter-spacing: 0.2em; color: var(--muted); }
.row .th { grid-row: 1; margin-bottom: 0.75rem; }
.row .th img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: var(--pos, 50% 50%); background: var(--surface); }
.row .t { font-size: 1.25rem; font-weight: 700; line-height: 1.5; color: var(--ink); }
.row .t small { display: block; margin-top: 0.25rem; font: 500 0.6875rem/1.6 var(--f-en); letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.row .d { font-size: 0.9375rem; }
.row .go { font-size: 0.8125rem; letter-spacing: 0.1em; color: var(--muted); transition: color 0.4s var(--ease), transform 0.6s var(--ease); }
a.row:hover { background: var(--surface); }
a.row:hover .go { color: var(--ink); transform: translateX(0.375rem); }
a.row:active { opacity: 0.7; transition: opacity 0.1s; }
@media (min-width: 900px) {
  .row { grid-template-columns: 3rem 9rem 1fr 1.4fr 4.5rem; align-items: center; padding-inline: 0.75rem; }
  .row > * { grid-column: auto; grid-row: auto; }
  .row .th { margin-bottom: 0; }
  .row .th img { aspect-ratio: 4 / 3; }
  .row .go { text-align: right; }
}

/* buttons */
.links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 56px; padding: 0.75rem 1.75rem; border: 1px solid var(--ink); font-size: 0.9375rem; font-weight: 700; transition: background 0.4s var(--ease), color 0.4s var(--ease); }
a.btn:hover { background: var(--ink); color: var(--bg); }
a.btn.primary { background: var(--ink); color: var(--bg); }
a.btn.primary:hover { background: var(--text); }
a.btn:active { opacity: 0.7; transition: opacity 0.1s; }

/* spec table */
.spec { border-top: 1px solid var(--line); }
.spec > div { display: grid; gap: 0.25rem 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: 0.75rem; letter-spacing: 0.2em; color: var(--muted); }
.spec dd { font-size: 0.9375rem; }
.spec dd li + li { margin-top: 0.25rem; }
.spec dd a { display: inline-flex; align-items: center; min-height: 44px; margin: -0.5rem 0; }
@media (min-width: 700px) { .spec > div { grid-template-columns: 10rem 1fr; } }
.more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2rem; font-size: 0.875rem; letter-spacing: 0.1em; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--muted); transition: border-color 0.4s var(--ease); }
.more:hover { border-color: var(--ink); }

/* contact band (top page) */
.band { padding: var(--gap-section) 0; background: var(--surface); }
.band .wrap { display: grid; gap: 2rem; }
.band h2 { margin-top: 1rem; font: 700 clamp(1.5rem, 2.8vw, 2.5rem)/1.35 "Noto Sans JP", sans-serif; color: var(--ink); }
.band p { max-width: 36rem; }
.direct { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
.direct a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 1.5rem; font: 500 1.125rem/1 var(--f-en); letter-spacing: 0.04em; color: var(--ink); }

/* form */
.form { display: grid; gap: 1.75rem; max-width: 40rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.875rem; font-weight: 700; color: var(--ink); }
.req { margin-left: 0.5rem; font-size: 0.6875rem; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 0.75rem 1rem; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg); border: 1px solid #b9b9b5; border-radius: 0; appearance: none; -webkit-appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 1.25rem) 55%, calc(100% - 0.9rem) 55%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.5rem; }
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.check { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.875rem; }
.check input { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.3rem; accent-color: var(--ink); }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit { min-height: 56px; padding: 0 2rem; background: var(--ink); color: var(--bg); font-size: 1rem; font-weight: 700; letter-spacing: 0.1em; transition: background 0.4s var(--ease), opacity 0.4s; }
.submit:hover { background: var(--text); }
.submit:disabled { opacity: 0.5; cursor: wait; }
.status { min-height: 1.9em; font-size: 0.875rem; font-weight: 500; color: var(--ink); }

/* sub pages */
.page-head { padding: 7.5rem 0 3.5rem; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-top: 1rem; font: 700 clamp(2rem, 5vw, 3.75rem)/1.25 "Noto Sans JP", sans-serif; letter-spacing: -0.02em; color: var(--ink); }
.page-head .lead { margin-top: 1.25rem; max-width: 40rem; }
.crumb { font-size: 0.75rem; color: var(--muted); }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.crumb a:hover { color: var(--ink); }
.page-body { padding: 3rem 0 var(--gap-section); }
.doc { max-width: 46rem; }
.doc section + section { margin-top: 2.5rem; }
.doc h2 { font-size: 1.0625rem; font-weight: 700; color: var(--ink); padding-bottom: 0.5rem; margin-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.doc p, .doc li { font-size: 0.9375rem; }
.doc ul { list-style: disc; padding-left: 1.4em; margin-top: 0.5rem; }
.philosophy { padding: 1rem 0 3rem; font: 700 clamp(1.5rem, 3.2vw, 2.5rem)/1.6 "Noto Sans JP", sans-serif; letter-spacing: 0.02em; color: var(--ink); }
.access { display: grid; gap: 2rem; margin-top: 1rem; }
@media (min-width: 700px) { .access { grid-template-columns: 1fr 1fr; } }
.access h3 { font-size: 1rem; font-weight: 700; color: var(--ink); }
.access p { margin-top: 0.5rem; font-size: 0.9375rem; }
.block-title { margin-top: 4rem; margin-bottom: 1rem; }

/* footer with sitemap */
footer.site-foot { padding: 4rem 0 2rem; background: var(--surface); font-size: 0.875rem; color: var(--muted); }
.foot-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-grid .brand .logo { font-size: 1.75rem; }
.foot-grid .brand p { margin-top: 0.75rem; }
.foot-grid h2 { margin-bottom: 0.5rem; font: 500 0.6875rem/1.6 var(--f-en); letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.foot-grid a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); }
.foot-grid li > span { display: inline-flex; align-items: center; min-height: 44px; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.copy { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.75rem; }

/* quiet entrance */
.in { opacity: 0; animation: in 1.2s var(--ease) var(--d, 0s) both; }
@keyframes in { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .in { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #3d3d3d; --line: #9a9a96; }
}
