/* Re-Arise Inc. — "富士市の一日" design. Public pages only; admin.php keeps styles.css. */

:root {
  --bg: #F4F1EA;
  --fg: #13223B;
  --mu: #546074;
  --accent: #D8612A;
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1200px;
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-num: Inter, "Zen Kaku Gothic New", system-ui, sans-serif;
  color-scheme: light;
}

body, [data-theme] { --line: color-mix(in srgb, var(--fg) 15%, transparent); --soft: color-mix(in srgb, var(--fg) 5%, var(--bg)); }
[data-theme="dawn"] { --bg: #DEE6EF; --fg: #13223B; --mu: #4E5D74; }
[data-theme="day"] { --bg: #F4F1EA; --fg: #13223B; --mu: #546074; }
[data-theme="dusk"] { --bg: #F0DCC9; --fg: #2C1D14; --mu: #6B4F3F; --accent: #B9481A; }
[data-theme="night"] { --bg: #0D1830; --fg: #ECF0F7; --mu: #A8B2C6; --accent: #F09A62; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-sans); font-size: 16px; line-height: 1.9; overflow-x: hidden; transition: color .3s ease; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { word-break: auto-phrase; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--radius); background: var(--fg); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); height: var(--header-h); padding: 0 var(--gutter); background: color-mix(in srgb, var(--bg) 88%, transparent); color: var(--fg); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
.site-header.is-over-media { background: transparent; color: #fff; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand { flex: none; display: inline-flex; }
.brand img { width: auto; height: 40px; transition: filter .3s ease; }
.site-header.is-light-text .brand img { filter: brightness(0) invert(1); }
.global-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); margin-left: auto; font-size: 14px; font-weight: 500; }
.global-nav a { text-decoration: none; text-underline-offset: 6px; }
.global-nav a:hover, .global-nav a[aria-current="page"] { text-decoration: underline; }
.global-nav .nav-sub { display: none; }
.header-tel { font-family: var(--font-num); font-size: 15px; font-weight: 600; letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
.header-cta { padding: 9px 18px; border: 1px solid currentColor; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-cta:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.site-header.is-over-media .header-cta:hover { background: #fff; color: #0b1220; border-color: #fff; }
.lang-switch { display: flex; gap: 2px; padding: 2px; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: 999px; }
.lang-switch button { min-width: 34px; padding: 3px 8px; border: 0; border-radius: 999px; background: transparent; color: inherit; font: 600 11px/1.4 var(--font-num); letter-spacing: .06em; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: currentColor; }
.lang-switch button[aria-pressed="true"] span { color: var(--bg); }
.site-header.is-over-media .lang-switch button[aria-pressed="true"] span { color: #0b1220; }
.nav-toggle { display: none; flex: none; width: 44px; height: 44px; margin-left: auto; border: 0; background: transparent; color: inherit; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; transition: transform .25s ease, opacity .25s ease; }
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- top hero film ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #0b1220; color: #fff; isolation: isolate; }
.hero-media, .hero-media > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-poster { object-fit: cover; object-position: 50% 52%; }
.hero-canvas { opacity: 0; transition: opacity .6s ease; }
.hero.is-live .hero-canvas { opacity: 1; }
.hero-shade { background: linear-gradient(180deg, rgba(5, 10, 20, .55) 0%, rgba(5, 10, 20, 0) 22%), linear-gradient(0deg, rgba(5, 10, 20, .8) 0%, rgba(5, 10, 20, .46) 36%, rgba(5, 10, 20, .12) 58%, rgba(5, 10, 20, 0) 72%), linear-gradient(90deg, rgba(5, 10, 20, .32) 0%, rgba(5, 10, 20, 0) 55%); }
.hero-clock { position: absolute; top: calc(var(--header-h) + 18px); right: var(--gutter); z-index: 2; margin: 0; font-family: var(--font-num); font-weight: 600; font-size: clamp(28px, 4.4vw, 56px); line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums; text-shadow: 0 1px 18px rgba(0, 0, 0, .25); }
.hero-copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(96px, 13vh, 136px); z-index: 2; max-width: 880px; }
.hero-caps { position: relative; height: 3.6em; margin-bottom: 10px; }
.hero-cap { position: absolute; left: 0; bottom: 0; margin: 0; }
.hero-cap .row { display: block; overflow: hidden; white-space: nowrap; text-shadow: 0 1px 14px rgba(0, 0, 0, .45); }
.hero-cap .meta { font-size: clamp(12px, 1.1vw, 14px); font-weight: 500; letter-spacing: .14em; opacity: .88; }
.hero-cap .num { font-family: var(--font-num); }
.hero-cap .line { font-family: var(--font-serif); font-weight: 600; font-size: clamp(17px, 1.9vw, 24px); line-height: 1.5; }
.k { display: inline-block; visibility: hidden; will-change: transform; }
.hero h1 { margin: 0; font-family: var(--font-serif); font-weight: 700; font-size: clamp(34px, 5.6vw, 76px); line-height: 1.28; letter-spacing: .02em; text-shadow: 0 2px 24px rgba(0, 0, 0, .28); }
.hero-lead { max-width: 40em; margin: 18px 0 0; font-size: clamp(13px, 1.15vw, 15.5px); line-height: 1.9; opacity: .92; }
.hero-ui { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; z-index: 3; display: flex; align-items: flex-end; gap: 18px; }
.hero-steps { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hero-steps button { position: relative; display: grid; gap: 2px; min-width: 76px; padding: 8px 10px 10px; border: 0; background: transparent; color: rgba(255, 255, 255, .64); font: inherit; font-size: 13px; line-height: 1.3; text-align: left; cursor: pointer; }
.hero-steps button small { font-size: 11px; letter-spacing: .06em; }
.hero-steps button::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: rgba(255, 255, 255, .28); }
.hero-steps button::before { content: ""; position: absolute; left: 10px; bottom: 2px; z-index: 1; width: calc((100% - 20px) * var(--p, 0)); height: 2px; background: #fff; }
.hero-steps button[aria-current="true"] { color: #fff; }
.hero-pause { display: grid; place-items: center; width: 40px; height: 40px; margin-left: auto; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; background: rgba(5, 10, 20, .25); color: #fff; cursor: pointer; }
.hero-pause svg { width: 13px; height: 13px; fill: currentColor; }
.hero-pause[data-state="playing"] .i-play, .hero-pause[data-state="paused"] .i-pause { display: none; }
.img-note { position: absolute; right: var(--gutter); bottom: 78px; z-index: 2; margin: 0; font-size: 11px; letter-spacing: .08em; opacity: .75; }

/* ---------- page heroes ---------- */
.page-hero { position: relative; display: grid; align-items: end; min-height: min(80svh, 780px); overflow: hidden; background: #0b1220; color: #fff; isolation: isolate; }
.page-hero > picture img, .page-hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; animation: hero-settle 2.6s var(--ease) both; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 10, 20, .5) 0%, rgba(5, 10, 20, 0) 26%), linear-gradient(0deg, rgba(5, 10, 20, .82) 0%, rgba(5, 10, 20, .4) 40%, rgba(5, 10, 20, 0) 70%); }
.page-hero-inner { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: calc(var(--header-h) + 48px) var(--gutter) clamp(48px, 7vw, 96px); }
.page-time { margin: 0; font-family: var(--font-num); font-weight: 600; font-size: clamp(56px, 9vw, 128px); line-height: .9; letter-spacing: -.02em; font-variant-numeric: tabular-nums; opacity: .92; }
.page-cat { display: inline-block; margin: 18px 0 14px; padding: 2px 14px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: .08em; }
.page-hero h1 { max-width: 16em; margin: 0; font-family: var(--font-serif); font-weight: 700; font-size: clamp(32px, 5vw, 64px); line-height: 1.32; letter-spacing: .02em; text-shadow: 0 2px 24px rgba(0, 0, 0, .3); }
.page-hero .lead { max-width: 38em; margin: 20px 0 0; font-size: clamp(14px, 1.2vw, 16px); opacity: .92; }
.page-hero .img-note { bottom: 18px; }
@keyframes hero-settle { from { transform: scale(1.07); } to { transform: scale(1); } }

.plain-hero { padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) var(--gutter) clamp(32px, 5vw, 64px); }
.plain-hero > div { max-width: var(--max); margin: 0 auto; }
.plain-hero h1 { margin: 0; font-family: var(--font-serif); font-weight: 700; font-size: clamp(34px, 5vw, 64px); line-height: 1.3; }
.plain-hero p:not(.kicker) { max-width: 38em; margin: 18px 0 0; color: var(--mu); }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 7vw, 104px) var(--gutter); }
.section.tight { padding-top: clamp(24px, 4vw, 48px); }
.container { max-width: var(--max); margin: 0 auto; }
.section-head { max-width: var(--max); margin: 0 auto clamp(32px, 4.5vw, 56px); }
.section-head.split-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.kicker { margin: 0 0 14px; font-family: var(--font-num); font-size: 12px; font-weight: 600; letter-spacing: .22em; color: var(--mu); }
.title { margin: 0; font-family: var(--font-serif); font-weight: 700; font-size: clamp(28px, 3.8vw, 48px); line-height: 1.42; }
.section-head p:not(.kicker) { max-width: 40em; margin: 18px 0 0; color: var(--mu); }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-weight: 700; text-decoration: none; }
.text-link span[aria-hidden] { flex: none; }
.text-link span[aria-hidden] { transition: transform .2s ease; }
.text-link:hover span[aria-hidden] { transform: translateX(4px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 30px; border: 1px solid var(--fg); border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s ease, background-color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--fg); }

/* top: time slots */
.slot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; max-width: var(--max); margin: 0 auto clamp(72px, 10vw, 136px); }
.slot:last-of-type { margin-bottom: 0; }
.slot:nth-of-type(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.slot:nth-of-type(even) .slot-media { order: 2; }
.slot-media { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; background: color-mix(in srgb, var(--fg) 10%, transparent); }
.slot-media img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; transform: translate3d(0, var(--py, 0%), 0) scale(1.02); will-change: transform; }
.slot-time { margin: 0; font-family: var(--font-num); font-weight: 600; font-size: clamp(56px, 8vw, 112px); line-height: .95; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--fg) 22%, transparent); }
.slot-cat, .pill { display: inline-block; padding: 2px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--mu); }
.slot-cat { margin: 18px 0 12px; }
.slot h3 { margin: 0 0 16px; font-family: var(--font-serif); font-weight: 700; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.45; }
.slot-body > p:not([class]) { margin: 0 0 22px; color: var(--mu); }

/* cases with real photos */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); max-width: var(--max); margin: 0 auto; }
.case { display: grid; align-content: start; gap: 12px; margin: 0; }
.case-media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--soft); }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.case:hover .case-media img { transform: scale(1.04); }
.case-badge { position: absolute; left: 10px; top: 10px; padding: 2px 10px; border-radius: 999px; background: rgba(5, 10, 20, .62); color: #fff; font-size: 11px; letter-spacing: .08em; }
.case-label { margin: 6px 0 0; font-family: var(--font-num); font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--mu); }
.case h3 { margin: 0; font-family: var(--font-serif); font-size: 21px; line-height: 1.5; }
.case p { margin: 0; color: var(--mu); font-size: 15px; line-height: 1.8; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.tags li { padding: 1px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--mu); }
.photo-note { max-width: var(--max); margin: 18px auto 0; font-size: 13px; color: var(--mu); }
.more-row { display: flex; justify-content: flex-end; max-width: var(--max); margin: 36px auto 0; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); max-width: var(--max); margin: 0 auto; align-items: start; }
.about-body p:not(.kicker) { color: var(--mu); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); }
.facts > div { padding: 20px 22px; background: var(--bg); }
.facts dt { font-size: 12px; letter-spacing: .1em; color: var(--mu); }
.facts dd { margin: 4px 0 0; font-family: var(--font-serif); font-size: 19px; font-weight: 700; line-height: 1.5; }
.partner-note { margin-top: 28px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; }
.partner-note p { margin: 0 0 10px; color: var(--mu); }

/* service items */
.items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; max-width: var(--max); margin: 0 auto; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); }
.items.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.items > li { padding: clamp(24px, 3vw, 36px); background: var(--bg); }
.item-num { display: block; margin-bottom: 12px; font-family: var(--font-num); font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--accent); }
.items h3 { margin: 0 0 10px; font-family: var(--font-serif); font-size: 21px; line-height: 1.5; }
.items p { margin: 0; color: var(--mu); font-size: 15px; line-height: 1.85; }

.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; max-width: var(--max); margin: 0 auto; }
.split.reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media figcaption { position: absolute; right: 10px; bottom: 8px; color: #fff; font-size: 11px; letter-spacing: .06em; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.split-body p:not(.kicker) { color: var(--mu); }

/* flow */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; max-width: var(--max); margin: 0 auto; padding: 0; list-style: none; counter-reset: step; }
.flow li { position: relative; padding-top: 22px; border-top: 2px solid var(--fg); counter-increment: step; }
.flow li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 8px; font-family: var(--font-num); font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--accent); }
.flow h3 { margin: 0 0 6px; font-family: var(--font-serif); font-size: 18px; line-height: 1.5; }
.flow p { margin: 0; color: var(--mu); font-size: 14px; line-height: 1.8; }

/* list of works without photos */
.records { max-width: var(--max); margin: 0 auto; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.records li { display: grid; grid-template-columns: 9em minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.records time { font-family: var(--font-num); font-size: 14px; color: var(--mu); font-variant-numeric: tabular-nums; }
.records strong { font-family: var(--font-serif); font-size: 18px; }
.records span.desc { display: block; color: var(--mu); font-size: 14px; }

/* faq */
.faq { max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 22px 0; font-family: var(--font-serif); font-size: 18px; font-weight: 700; line-height: 1.5; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--font-num); font-weight: 400; font-size: 22px; color: var(--mu); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 22px; color: var(--mu); }
.faq details > div p:last-child { margin: 0; }

/* next page */
.next-time { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; max-width: var(--max); margin: 0 auto; padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.next-time small { display: block; font-size: 12px; letter-spacing: .18em; color: var(--mu); font-family: var(--font-num); }
.next-time strong { display: block; margin-top: 6px; font-family: var(--font-serif); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.4; }
.next-time .next-clock { font-family: var(--font-num); font-weight: 600; font-size: clamp(40px, 6vw, 80px); line-height: 1; color: color-mix(in srgb, var(--fg) 24%, transparent); transition: color .3s ease; }
.next-time:hover .next-clock { color: var(--fg); }

/* company */
.profile { display: grid; grid-template-columns: minmax(7em, 14em) minmax(0, 1fr); max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line); }
.profile > div { display: contents; }
.profile dt, .profile dd { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); }
.profile dt { padding-right: 16px; color: var(--mu); font-size: 14px; }
.timeline { max-width: var(--max); margin: 0 auto; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 30px 32px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: .65em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.timeline time { display: block; font-family: var(--font-num); font-size: 14px; font-weight: 600; color: var(--mu); }
.timeline p { margin: 2px 0 0; }
.access { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; max-width: var(--max); margin: 0 auto; padding: 28px 30px; border: 1px solid var(--line); border-radius: var(--radius); }
.access p { margin: 0; }

/* news */
.news-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 72px); max-width: var(--max); margin: 0 auto; }
.news-items { border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 7.5em auto minmax(0, 1fr); gap: 6px 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-item time { font-family: var(--font-num); font-size: 14px; color: var(--mu); font-variant-numeric: tabular-nums; }
.news-item p { margin: 0; }
.news-new { padding: 0 8px; border-radius: 999px; background: var(--accent); color: #fff; font-family: var(--font-num); font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.news-item:not(.is-latest) { grid-template-columns: 7.5em minmax(0, 1fr); }
.news-item.is-extra { display: none; }
.news-list.is-expanded .news-item.is-extra { display: grid; }
.news-more-button { margin-top: 20px; padding: 10px 22px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 14px; cursor: pointer; }
.news-empty { color: var(--mu); }

/* contact band */
.cta { padding: clamp(48px, 7vw, 96px) var(--gutter); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: end; max-width: var(--max); margin: 0 auto; padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.cta h2 { margin: 0 0 10px; font-family: var(--font-serif); font-size: clamp(26px, 3.2vw, 40px); line-height: 1.45; }
.cta p { margin: 0; color: var(--mu); }
.cta-actions { display: grid; justify-items: end; gap: 14px; }
.cta-tel { font-family: var(--font-num); font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: .02em; text-decoration: none; line-height: 1.2; }
.cta-hours { font-size: 13px; color: var(--mu); }

/* footer */
.site-footer { padding: clamp(48px, 6vw, 72px) var(--gutter) 40px; border-top: 1px solid var(--line); font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 3fr)); gap: 32px 48px; max-width: var(--max); margin: 0 auto; }
.footer-brand img { width: auto; height: 44px; margin-bottom: 18px; }
[data-theme="night"] .footer-brand img, .is-dark .footer-brand img { filter: brightness(0) invert(1); }
.footer-brand p { margin: 0; color: var(--mu); line-height: 1.8; }
.footer-brand a { text-decoration: none; }
.footer-col h2 { margin: 0 0 12px; font-family: var(--font-num); font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--mu); }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li + li { margin-top: 6px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; max-width: var(--max); margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mu); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.footer-bottom a { text-decoration: none; }

/* works page */
.work-tabs { display: flex; flex-wrap: wrap; gap: 8px; max-width: var(--max); margin: 0 auto 36px; }
.work-tabs button { padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 14px; cursor: pointer; }
.work-tabs button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); max-width: var(--max); margin: 0 auto; }
.work-card[hidden] { display: none; }
.work-card.text-card { display: grid; align-content: start; gap: 10px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); }
.work-card.text-card .band { height: 4px; margin: -26px -26px 12px; border-radius: var(--radius) var(--radius) 0 0; background: var(--band, var(--accent)); }
.work-card.text-card[data-work-category="realestate"] { --band: #8EA6C3; }
.work-card.text-card[data-work-category="exterior"] { --band: #C9A55B; }
.work-card.text-card[data-work-category="food"] { --band: #D8612A; }
.work-card.text-card[data-work-category="it"] { --band: #24467E; }
.work-card.text-card .pill, .work-card.text-card .text-link { justify-self: start; }
.work-card h3 { margin: 0; font-family: var(--font-serif); font-size: 20px; line-height: 1.5; }
.work-card p { margin: 0; color: var(--mu); font-size: 15px; }
.work-card time { font-family: var(--font-num); font-size: 13px; color: var(--mu); }
.work-empty { max-width: var(--max); margin: 24px auto 0; color: var(--mu); }

/* contact page */
.contact-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); max-width: var(--max); margin: 0 auto; align-items: start; }
.contact-info h2 { margin: 0 0 12px; font-family: var(--font-serif); font-size: 24px; }
.contact-info p { color: var(--mu); }
.contact-info .cta-tel { display: inline-block; margin: 6px 0 4px; }
.notes { margin: 24px 0 0; border-top: 1px solid var(--line); font-size: 14px; }
.notes > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.notes dt { color: var(--mu); font-size: 12.5px; letter-spacing: .06em; }
.notes dd { margin: 4px 0 0; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.contact-form em { margin-left: 6px; padding: 0 7px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; vertical-align: 1px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form select, .contact-form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--fg) 26%, transparent); border-radius: var(--radius); background: #fff; color: #13223B; font: inherit; font-size: 16px; }
.contact-form textarea { resize: vertical; min-height: 180px; }
.contact-form :is(input, select, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form-wide { grid-column: 1 / -1; }
.privacy-check { display: flex !important; align-items: center; gap: 10px !important; }
.privacy-check input { width: 20px; height: 20px; accent-color: var(--fg); }
.form-hidden { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.recaptcha-status { min-height: 1.5em; margin: 8px 0 0; color: #B3261E; font-size: 14px; }
.form-note { margin: 0; color: var(--mu); font-size: 13.5px; }
.form-submit { justify-self: start; min-width: 200px; }

/* legal */
.legal-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 5vw, 64px); max-width: var(--max); margin: 0 auto; align-items: start; }
.legal-index { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; font-size: 14px; }
.legal-index a { padding: 6px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--mu); }
.legal-index a:hover { color: var(--fg); }
.legal-intro { margin-bottom: 32px; padding: 24px 26px; border-radius: var(--radius); background: var(--soft); }
.legal-intro span { display: block; margin-bottom: 8px; font-family: var(--font-num); font-size: 12px; font-weight: 600; letter-spacing: .18em; color: var(--mu); }
.legal-intro p { margin: 0; }
.legal-card { position: relative; padding: 28px 0 28px 64px; border-top: 1px solid var(--line); }
.legal-number { position: absolute; left: 0; top: 30px; font-family: var(--font-num); font-size: 14px; font-weight: 600; color: var(--accent); }
.legal-card h2 { margin: 0 0 12px; font-family: var(--font-serif); font-size: 21px; }
.legal-card p:last-child, .legal-card ul:last-child { margin-bottom: 0; }
.legal-card ul { padding-left: 1.2em; }
.legal-table { margin: 0; }
.legal-table > div { display: grid; grid-template-columns: minmax(8em, 14em) minmax(0, 1fr); gap: 4px 24px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.legal-table dt { color: var(--mu); font-size: 14px; }
.legal-table dd { margin: 0; }
.legal-updated { margin-top: 28px; color: var(--mu); font-size: 13px; }

/* form result (contact.php) */
.form-result { display: grid; place-items: center; min-height: 100svh; padding: 32px var(--gutter); }
.form-result > div { max-width: 560px; text-align: center; }
.form-result h1 { margin: 0 0 14px; font-family: var(--font-serif); font-size: clamp(26px, 4vw, 36px); }
.form-result p { color: var(--mu); }
.primary-button { display: inline-block; margin-top: 18px; padding: 14px 28px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 700; text-decoration: none; }

/* motion */
.reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .global-nav, .site-header .header-tel, .site-header .header-cta { display: none; }
  .nav-toggle { display: block; }
  .lang-switch { margin-left: auto; }
  .lang-switch + .nav-toggle { margin-left: 0; }
  .site-header.is-open { background: var(--bg); color: var(--fg); border-color: var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header.is-open .global-nav { position: absolute; top: var(--header-h); left: 0; right: 0; display: grid; gap: 0; max-height: calc(100svh - var(--header-h)); overflow-y: auto; margin: 0; padding: 8px var(--gutter) 28px; background: var(--bg); color: var(--fg); border-bottom: 1px solid var(--line); font-size: 16px; }
  .site-header.is-open .global-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-header.is-open .global-nav .nav-sub { display: block; padding-left: 1em; font-size: 15px; color: var(--mu); }
}
@media (max-width: 900px) {
  .slot, .slot:nth-of-type(even), .split, .split.reverse, .about, .news-wrap, .contact-layout, .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .slot:nth-of-type(even) .slot-media, .split.reverse .split-media { order: 0; }
  .cases, .work-grid, .items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .legal-index { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .cta-inner { grid-template-columns: minmax(0, 1fr); }
  .cta-actions { justify-items: start; }
}
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .brand img { height: 32px; }
  .hero-copy { bottom: 100px; }
  .hero-steps button { min-width: 0; padding: 8px 8px 10px; }
  .hero-steps button small { display: none; }
  .img-note { bottom: 76px; }
  .cases, .work-grid, .items, .items.cols-2, .flow, .facts { grid-template-columns: minmax(0, 1fr); }
  .records li { grid-template-columns: 1fr; gap: 2px; }
  .news-item, .news-item:not(.is-latest) { grid-template-columns: 1fr auto; }
  .news-item p { grid-column: 1 / -1; }
  .profile { grid-template-columns: 1fr; }
  .profile dt { padding-bottom: 0; border-bottom: 0; }
  .contact-form { grid-template-columns: 1fr; }
  .legal-card { padding-left: 0; }
  .legal-number { position: static; display: block; margin-bottom: 6px; }
  .legal-table > div { grid-template-columns: 1fr; }
  .access { grid-template-columns: 1fr; }
  .next-time { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .page-hero > picture img, .page-hero > img { animation: none; }
  .hero-canvas, .case-media img { transition: none; }
}
