/* ============================================================
   ID-INST web prototype — custom styles
   ============================================================ */

/* ─── Design tokens ─── */
:root {
  --ink:        #0f0f0f;
  --ink-soft:   #5c5c5c;
  --brand:      #1a1a1a;
  --accent:     #A3843D;
  --off-white:  #f9f9f9;
  --gray-soft:  #f2f2f2;
  --sky-soft:   #F2EADA;
  --cream:      #FAF6EC;
  --line:       #dcdcdc;
  --white:      #ffffff;

  --font-sans:  'Noto Sans JP', sans-serif;
  --font-eng:   'DM Sans', 'Noto Sans JP', sans-serif;
  --font-serif: 'Cormorant Garamond', 'Zen Old Mincho', serif;
}

html {
  font-family: 'Noto Sans JP', sans-serif;
  color: #0f0f0f;
  scroll-behavior: smooth;
}
/* SP専用の改行（md以上では非表示） */
@media (min-width: 768px) {
  br.br-sp { display: none; }
}
/* PC専用の改行（md未満では非表示） */
@media (max-width: 767px) {
  br.br-pc { display: none; }
}
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #0f0f0f;
}

/* Focus visible — keyboard navigation indicator */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid #A3843D;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Section headings use Cormorant Garamond */
h2 {
  font-family: 'Cormorant Garamond', 'Zen Old Mincho', serif;
  letter-spacing: 0.08em;
  font-size: clamp(22px, 2.8vw, 34px) !important;
  font-weight: 300 !important;
  color: #A3843D;
}

/* Header — padding narrowed by 10px per side */
header > .shell {
  padding-top:    calc(0.75rem - 10px);   /* py-3 12px → 2px */
  padding-bottom: calc(0.75rem - 10px);
}
@media (min-width: 768px) {
  header > .shell {
    padding-top:    calc(1rem - 10px);    /* md:py-4 16px → 6px */
    padding-bottom: calc(1rem - 10px);
  }
}

/* Hero h1 */
#hero h1 {
  font-family: 'Cormorant Garamond', 'Zen Old Mincho', serif;
  font-weight: 400;
  font-size: 2rem;
}
@media (min-width: 768px) {
  #hero h1 { font-size: 2.4rem; }
}
@media (min-width: 1024px) {
  #hero h1 { font-size: 3.25rem; }
}

/* Header logo text — justify all lines to full container width */
.logo-text p {
  font-family: 'Cormorant Garamond', 'Zen Old Mincho', serif;
  font-weight: 400;
  text-align: justify;
  text-align-last: justify;
  margin: 0;
}

/* Global nav uses Cormorant Garamond */
header nav a,
#mobile-nav a,
.logo-link {
  transition: opacity 0.2s;
}
.logo-link {
  text-decoration: none;
  color: inherit;
}
header nav a:hover,
#mobile-nav a:hover,
.logo-link:hover {
  opacity: 0.6;
}

header nav a,
#mobile-nav a {
  font-family: 'Cormorant Garamond', 'Zen Old Mincho', serif;
  letter-spacing: 0.1em;
  font-weight: 400;
  line-height: 1.4;
  color: #A3843D;
  text-decoration: none;
}
header nav a   { font-size: clamp(14px, 1.3vw, 17px); }
#mobile-nav a  { font-size: clamp(16px, 1.7vw, 21px); }

/* Sticky header offset — keeps section headings visible after anchor jump */
#hero, #service, #price, #about, #company, #works, #recruit, #contact {
  scroll-margin-top: 90px;
}
@media (min-width: 768px) {
  #hero, #service, #price, #about, #company, #works, #recruit, #contact {
    scroll-margin-top: 140px;
  }
}
@media (min-width: 1024px) {
  #hero, #service, #price, #about, #company, #works, #recruit, #contact {
    scroll-margin-top: 172px;
  }
}

.shell {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 768px) {
  .shell { padding-left: 40px; padding-right: 40px; }
}
@media (min-width: 1024px) {
  .shell { padding-left: 80px; padding-right: 80px; }
}

/* Mobile-friendly nav: allow horizontal scroll if there's not enough room */
.nav-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-scroll::-webkit-scrollbar { display: none; }

/* Larger tap target for the (open by default) accordion summaries */
details > summary { padding: 2px 0; }

.wide-tracking { letter-spacing: 0.25em; }
.lh-jp         { line-height: 2; }

/* Hero dot screen overlay */
.hero-dots {
  background-color: rgba(0, 0, 0, 0.25);
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.75) 1px, transparent 1px);
  background-size: 5px 5px;
}

/* Hero text-shadow — improves legibility over photo backgrounds */
.hero-text {
  text-shadow:
    0 1px 2px  rgba(0, 0, 0, 0.55),
    0 2px 10px rgba(0, 0, 0, 0.40);
}
.hero-text-strong {
  text-shadow:
    0 2px 4px  rgba(0, 0, 0, 0.65),
    0 4px 18px rgba(0, 0, 0, 0.50);
}

/* Accordion (details / summary) */
details > summary                       { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .acc-icon                 { transform: rotate(45deg); }
.acc-icon                               { transition: transform 0.2s ease; }

/* ─── Works article heading + client badge ─── */
.works-h3 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.client-badge {
  font-size: 11px;
  font-weight: 400;
  color: #ffffff;
  background: #9a9a9a;
  padding: 2px 8px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  margin-left: auto;
}

/* ─── Works deliverables: JS masonry layout ───
   JSが適用前はCSS columnsでフォールバック表示 */
.deliverables {
  columns: 240px;
  column-gap: 12px;
}
/* JSがis-masonryを付与後: 絶対配置に切り替え */
.deliverables.is-masonry {
  position: relative;
  display: block;
  column-count: 1;
  column-width: auto;
}
.deliverables figure {
  break-inside: avoid;
  margin: 0 0 12px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  overflow: hidden;
  background: #f2f2f2;
  display: block;
  padding: 6px 6px 0;
}
.deliverables.is-masonry > figure {
  position: absolute;
  margin: 0;
  break-inside: unset;
}
.deliverables figure img {
  width: 100%;
  height: 200px;
  display: block;
  object-fit: contain;
  margin-bottom: 6px;
}
.deliverables figcaption {
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  background: #f2f2f2;
  border-top: 1px solid #dcdcdc;
}


/* For sections with very few items, keep them at a sensible size */
.deliverables.single {
  columns: 1;
  max-width: 420px;
}

/* ─── Hamburger menu (mobile) ─── */
.hamburger {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
}
.hamburger-lines {
  position: relative;
  width: 22px;
  height: 16px;
}
.hamburger-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #0f0f0f;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.15s ease, top 0.25s ease;
}
.hamburger-lines span:nth-child(1) { top: 0; }
.hamburger-lines span:nth-child(2) { top: 7px; }
.hamburger-lines span:nth-child(3) { top: 14px; }
/* Open state → "X" */
body.nav-open .hamburger-lines span:nth-child(1) { top: 7px; transform: rotate(45deg); }
body.nav-open .hamburger-lines span:nth-child(2) { opacity: 0; }
body.nav-open .hamburger-lines span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* SP時はハンバーガーを右上に配置 */
@media (max-width: 1023px) {
  .hamburger { align-self: flex-start; }
}
/* lg以上では強制非表示（style.css の display 指定が Tailwind の lg:hidden を上書きするのを防ぐ） */
@media (min-width: 1024px) {
  .hamburger,
  .mobile-nav { display: none !important; }
}

/* Mobile nav panel — full screen overlay above the header */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  z-index: 60;            /* above the sticky header (z-50) */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 80px 32px 40px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.2s ease, transform 0.25s ease;
}

/* Explicit close button inside the panel */
.mobile-nav-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.mobile-nav-close::before,
.mobile-nav-close::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background: #0f0f0f;
  border-radius: 1px;
}
.mobile-nav-close::before { transform: rotate(45deg); }
.mobile-nav-close::after  { transform: rotate(-45deg); }
.mobile-nav-close-label {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #5c5c5c;
}
body.nav-open .mobile-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-nav a {
  display: block;
  padding: 16px 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.25em;
  border-bottom: 1px solid #e6e6e6;
  color: #0f0f0f;
  text-decoration: none;
}
.mobile-nav a:last-child {
  border-bottom: 0;
}
/* Lock body scroll when nav is open */
body.nav-open { overflow: hidden; }

/* ─── Scroll fade-in ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Optional stagger for child reveals */
.reveal-child {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal-child.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-child {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Mobile: bypass reveal animations entirely.
   iOS Safari has known bugs with IntersectionObserver + transform compositing
   that cause sections to remain invisible. Show content immediately on touch devices. */
@media (max-width: 1023px) {
  .reveal,
  .reveal-child {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  h2 .char {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ─── Privacy policy modal ─── */
.privacy-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 100;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.privacy-modal-overlay.is-open {
  display: flex;
}
.privacy-modal-box {
  position: relative;
  background: #fff;
  max-width: 800px;
  width: 100%;
  border-radius: 4px;
  padding: 52px 40px 40px;
  margin: auto;
}
@media (max-width: 767px) {
  .privacy-modal-box { padding: 52px 24px 32px; }
}
.privacy-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 26px;
  color: #5c5c5c;
  line-height: 1;
  transition: color 0.15s;
}
.privacy-modal-close:hover { color: #0f0f0f; }

/* ─── Image gallery modal ─── */
.gallery-modal-box {
  max-width: 960px;
}
.gallery-modal-box .privacy-modal-close {
  width: 28px;
  height: 28px;
  font-size: 18px;
}
.gallery-modal-images {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.gallery-modal-images figure {
  flex: 1 1 260px;
  max-width: 440px;
  text-align: center;
  position: relative;
}
.gallery-modal-images img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}
.gallery-modal-images figcaption {
  font-size: 12px;
  color: #5c5c5c;
  margin-top: 6px;
}
.gallery-modal-images figure.fig-modal-narrow {
  flex-basis: 130px;
  max-width: 220px;
}
.gallery-modal-images figure.fig-modal-wide {
  flex: 1 1 880px;
  max-width: 880px;
}

/* ─── Website link figures ─── */
.deliverables figure a img,
.deliverables.single figure a img {
  transition: opacity 0.2s;
}
.deliverables figure a:hover img,
.deliverables.single figure a:hover img {
  opacity: 0.75;
}

/* ─── Clickable figure trigger ─── */
.gallery-trigger {
  cursor: pointer;
  position: relative;
}
.gallery-trigger img {
  transition: opacity 0.2s;
}
.gallery-trigger:hover img {
  opacity: 0.8;
}
.gallery-trigger::after {
  content: '拡大';
  position: absolute;
  bottom: 28px;
  right: 6px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.gallery-trigger:hover::after {
  opacity: 1;
}

/* ─── Floating CONTACT banner (desktop only) ─── */
.float-contact {
  display: none;
}
@media (min-width: 1024px) {
  .float-contact {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #A3843D;
    color: #ffffff;
    text-decoration: none;
    writing-mode: vertical-rl;
    padding: 24px 10px;
    font-family: 'Cormorant Garamond', 'Zen Old Mincho', serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.25em;
    border-radius: 3px 0 0 3px;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, padding 0.2s ease;
  }
  .float-contact:hover {
    background: #0f0f0f;
    padding: 24px 13px;
  }
}

/* ─── SP header CONTACT button ─── */
/* CONTACT 固定帯（SP のみ、フッター固定） */
.hero-contact-band {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
  background: #A3843D;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s ease;
}
.hero-contact-band:hover { background: #0f0f0f; }

@media (max-width: 767px) {
  body { padding-bottom: 50px; }
}
@media (min-width: 768px) {
  .hero-contact-band { display: none !important; }
}


/* ─── Confirm buttons ─── */
.confirm-btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}
@media (min-width: 640px) {
  .confirm-btns { flex-direction: row; }
}

/* ─── Contact form box ─── */
.contact-form-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 768px) { .contact-form-box { padding: 2.5rem; } }
.form-row { display: flex; flex-direction: column; }

/* ─── Contact form ─── */
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f0f0f;
  margin-bottom: 8px;
}
.form-required {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  background: #0f0f0f;
  padding: 2px 8px;
  margin-left: 8px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  vertical-align: middle;
}
.form-optional {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #5c5c5c;
  background: #efefef;
  padding: 2px 8px;
  margin-left: 8px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  vertical-align: middle;
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #0f0f0f;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 2px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-input:focus {
  outline: none;
  border-color: #0f0f0f;
  box-shadow: 0 0 0 3px rgba(15, 15, 15, 0.08);
}
.form-input::placeholder {
  color: #b5b5b5;
}
textarea.form-input {
  resize: vertical;
  min-height: 160px;
  line-height: 1.8;
}
.form-help {
  font-size: 11px;
  color: #5c5c5c;
  line-height: 1.8;
  margin-top: 8px;
}
.form-file {
  display: block;
  width: 100%;
  padding: 8px;
  font-size: 13px;
  border: 1px dashed #dcdcdc;
  border-radius: 2px;
  background: #fafafa;
  cursor: pointer;
}
.form-file::file-selector-button {
  margin-right: 12px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  background: #0f0f0f;
  color: #ffffff;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  font-family: inherit;
}
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 14px 40px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #ffffff;
  background: #0f0f0f;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.form-submit:hover {
  background: #A3843D;            /* mark gold on hover */
}
.form-submit:active {
  transform: translateY(1px);
}
.form-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #0f0f0f;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.form-back:hover {
  background: #f5f5f5;
  border-color: #b5b5b5;
}

/* ─── Scroll progress bar ─── */
#scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 6px;
  width: 0%;
  background: #A3843D;
  z-index: 200;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ─── Custom cursor (pointer devices only) ─── */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, summary, label, input, textarea, select,
  [data-open-gallery], [data-open-privacy],
  .gallery-trigger, .hamburger, .float-contact,
  .mobile-nav-close, .form-file { cursor: none; }
}
#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: #A3843D;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.18s ease, height 0.18s ease,
              background 0.18s ease, border 0.18s ease,
              opacity 0.25s ease;
  will-change: left, top;
}
#cursor.visible  { opacity: 1; }
#cursor.hovering {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1.5px solid #A3843D;
}
@media (hover: none), (pointer: coarse) {
  #cursor { display: none; }
}

/* ─── Text split: character animation on h2 ─── */
h2 .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}
.reveal.is-visible h2 .char {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  h2 .char { opacity: 1; transform: none; transition: none; }
}

/* ─── Works figure hover overlay ─── */
.deliverables figure { position: relative; }
.img-content-border {
  position: absolute;
  border: 1px solid #dcdcdc;
  pointer-events: none;
  box-sizing: border-box;
}
.fig-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 1;
  border-radius: 3px 3px 0 0;
  pointer-events: none;
}
.deliverables figure:hover .fig-overlay { opacity: 1; }
.fig-overlay-name {
  color: #ffffff;
  font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-align: center;
  line-height: 1.4;
}
.fig-overlay-type {
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}
/* suppress "拡大" badge when overlay is present */
.gallery-trigger:has(.fig-overlay):hover::after { opacity: 0; }

.modal-img-link { display: block; }
.modal-img-link img { cursor: pointer; }

/* ─── Image / video drag protection ─── */
img, video {
  -webkit-user-drag: none;
  user-drag: none;
}

/* ============================================================
   Vanilla CSS utilities (replaces dist/tailwind.css)
   ============================================================ */

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }
body {
  background: var(--off-white);
  color: var(--ink);
  margin: 0;
}

/* ─── Display ─── */
.hidden     { display: none !important; }
.block      { display: block; }
.inline-block { display: inline-block; }
.inline-flex  { display: inline-flex; }
.flex       { display: flex; }
.grid       { display: grid; }

/* ─── Flex helpers ─── */
.flex-col        { flex-direction: column; }
.flex-1          { flex: 1 1 0%; }
.shrink-0        { flex-shrink: 0; }
.items-center    { align-items: center; }
.items-end       { align-items: flex-end; }
.items-baseline  { align-items: baseline; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.flex-wrap       { flex-wrap: wrap; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-5  { gap: 1.25rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

/* ─── Grid ─── */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ─── Position ─── */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky   { position: sticky; }
.fixed    { position: fixed; }
.inset-0  { inset: 0; }
.top-0    { top: 0; }
.z-40     { z-index: 40; }
.z-50     { z-index: 50; }

/* ─── Sizing ─── */
.w-auto   { width: auto; }
.w-full   { width: 100%; }
.w-6      { width: 1.5rem; }
.w-48     { width: 12rem; }
.w-64     { width: 16rem; }
.h-full   { height: 100%; }
.h-6      { height: 1.5rem; }
.h-14     { height: 3.5rem; }
.h-20     { height: 5rem; }
.h-28     { height: 7rem; }
.h-64     { height: 16rem; }
.h-80     { height: 20rem; }
.mx-auto  { margin-left: auto; margin-right: auto; }

/* ─── Overflow ─── */
.overflow-hidden { overflow: hidden; }

/* ─── Object fit ─── */
.object-cover   { object-fit: cover; }
.object-contain { object-fit: contain; }

/* ─── Background colors ─── */
.bg-white     { background-color: var(--white); }
.bg-off-white { background-color: var(--off-white); }
.bg-gray-soft { background-color: var(--gray-soft); }
.bg-cream     { background-color: var(--cream); }
.bg-accent    { background-color: var(--accent); }
.bg-ink       { background-color: var(--ink); }

/* ─── Text colors ─── */
.text-white    { color: var(--white); }
.text-ink      { color: var(--ink); }
.text-ink-soft { color: var(--ink-soft); }
.text-brand    { color: var(--brand); }
.text-accent   { color: var(--accent); }

/* ─── Border ─── */
.border        { border: 1px solid var(--line); }
.border-b      { border-bottom: 1px solid var(--line); }
.border-t      { border-top: 1px solid var(--line); }
.border-line   { border-color: var(--line); }
.rounded       { border-radius: 0.25rem; }
.rounded-sm    { border-radius: 0.125rem; }
.rounded-full  { border-radius: 9999px; }
.shadow-sm     { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }

/* ─── Spacing: margin ─── */
.mt-1  { margin-top: 0.25rem; }
.mt-2  { margin-top: 0.5rem; }
.mt-3  { margin-top: 0.75rem; }
.mt-4  { margin-top: 1rem; }
.mt-5  { margin-top: 1.25rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-14 { margin-top: 3.5rem; }
.mb-1  { margin-bottom: 0.25rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-5  { margin-bottom: 1.25rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.ml-4  { margin-left: 1rem; }
.ml-6  { margin-left: 1.5rem; }

/* ─── Spacing: padding ─── */
.p-6    { padding: 1.5rem; }
.p-8    { padding: 2rem; }
.p-10   { padding: 2.5rem; }
.px-4   { padding-left: 1rem;    padding-right: 1rem; }
.px-5   { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6   { padding-left: 1.5rem;  padding-right: 1.5rem; }
.px-8   { padding-left: 2rem;    padding-right: 2rem; }
.px-10  { padding-left: 2.5rem;  padding-right: 2.5rem; }
.py-2   { padding-top: 0.5rem;   padding-bottom: 0.5rem; }
.py-3   { padding-top: 0.75rem;  padding-bottom: 0.75rem; }
.py-4   { padding-top: 1rem;     padding-bottom: 1rem; }
.py-12  { padding-top: 3rem;     padding-bottom: 3rem; }
.py-14  { padding-top: 3.5rem;   padding-bottom: 3.5rem; }
.py-20  { padding-top: 5rem;     padding-bottom: 5rem; }
.py-24  { padding-top: 6rem;     padding-bottom: 6rem; }
.pt-3   { padding-top: 0.75rem; }
.pt-4   { padding-top: 1rem; }
.pt-6   { padding-top: 1.5rem; }
.pb-4   { padding-bottom: 1rem; }
.pb-5   { padding-bottom: 1.25rem; }
.pb-6   { padding-bottom: 1.5rem; }
.pb-10  { padding-bottom: 2.5rem; }
.pb-12  { padding-bottom: 3rem; }
.pl-5   { padding-left: 1.25rem; }

/* ─── Space-y (stack spacing) ─── */
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* ─── Typography ─── */
.font-bold   { font-weight: 700; }
.font-normal { font-weight: 400; }
.text-xs     { font-size: 0.75rem;  line-height: 1rem; }
.text-sm     { font-size: 0.875rem; line-height: 1.25rem; }
.text-base   { font-size: 1rem;     line-height: 1.5rem; }
.text-lg     { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl     { font-size: 1.25rem;  line-height: 1.75rem; }
.text-2xl    { font-size: 1.5rem;   line-height: 2rem; }
.text-3xl    { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl    { font-size: 2.25rem;  line-height: 2.5rem; }
.text-5xl    { font-size: 3rem;     line-height: 1; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.tracking-wide  { letter-spacing: 0.025em; }
.leading-none   { line-height: 1; }
.leading-tight  { line-height: 1.25; }
.whitespace-nowrap { white-space: nowrap; }
.break-all      { word-break: break-all; }
.underline      { text-decoration: underline; }
.list-disc      { list-style-type: disc; }
.opacity-75     { opacity: 0.75; }

.font-eng { font-family: var(--font-eng); }

/* ─── Transition / hover ─── */
.transition { transition: color 0.15s ease, opacity 0.15s ease, background 0.15s ease; }
.hover\:text-accent:hover  { color: var(--accent); }
.hover\:underline:hover    { text-decoration: underline; }
.hover\:bg-accent:hover    { background-color: var(--accent); }

/* ─── Responsive: md (768px) ─── */
@media (min-width: 768px) {
  .md\:hidden        { display: none !important; }
  .md\:flex          { display: flex; }
  .md\:grid          { display: grid; }
  .md\:block         { display: block; }
  .md\:flex-row      { flex-direction: row; }
  .md\:grid-cols-2   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-company { grid-template-columns: 180px 1fr; }
  .md\:items-center  { align-items: center; }
  .md\:gap-0         { gap: 0; }
  .md\:gap-10        { gap: 2.5rem; }
  .md\:gap-12        { gap: 3rem; }
  .md\:gap-16        { gap: 4rem; }
  .md\:gap-4         { gap: 1rem; }
  .md\:gap-6         { gap: 1.5rem; }
  .md\:gap-8         { gap: 2rem; }
  .md\:mx-0          { margin-left: 0; margin-right: 0; }
  .md\:mt-1          { margin-top: 0.25rem; }
  .md\:mb-6          { margin-bottom: 1.5rem; }
  .md\:mb-8          { margin-bottom: 2rem; }
  .md\:mb-12         { margin-bottom: 3rem; }
  .md\:mt-14         { margin-top: 3.5rem; }
  .md\:px-6          { padding-left: 1.5rem;  padding-right: 1.5rem; }
  .md\:px-8          { padding-left: 2rem;    padding-right: 2rem; }
  .md\:py-4          { padding-top: 1rem;     padding-bottom: 1rem; }
  .md\:py-20         { padding-top: 5rem;     padding-bottom: 5rem; }
  .md\:pb-6          { padding-bottom: 1.5rem; }
  .md\:p-8           { padding: 2rem; }
  .md\:p-10          { padding: 2.5rem; }
  .md\:pt-0          { padding-top: 0; }
  .md\:text-sm       { font-size: 0.875rem; line-height: 1.25rem; }
  .md\:text-base     { font-size: 1rem;     line-height: 1.5rem; }
  .md\:text-lg       { font-size: 1.125rem; line-height: 1.75rem; }
  .md\:text-xl       { font-size: 1.25rem;  line-height: 1.75rem; }
  .md\:text-2xl      { font-size: 1.5rem;   line-height: 2rem; }
  .md\:text-4xl      { font-size: 2.25rem;  line-height: 2.5rem; }
  .md\:w-64          { width: 16rem; }
  .md\:h-80          { height: 20rem; }
  .md\:h-20          { height: 5rem; }
  .sm\:flex-row      { flex-direction: row; }
}

/* ─── Responsive: lg (1024px) ─── */
@media (min-width: 1024px) {
  .lg\:hidden        { display: none !important; }
  .lg\:flex          { display: flex; }
  .lg\:items-center  { align-items: center; }
  .lg\:grid-cols-2   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:gap-16        { gap: 4rem; }
  .lg\:gap-5         { gap: 1.25rem; }
  .lg\:py-24         { padding-top: 6rem; padding-bottom: 6rem; }
  .lg\:text-xl       { font-size: 1.25rem; line-height: 1.75rem; }
  .lg\:text-lg       { font-size: 1.125rem; line-height: 1.75rem; }
  .lg\:text-5xl      { font-size: 3rem; line-height: 1; }
  .lg\:h-28          { height: 7rem; }
}

/* ─── Footer colors (semi-transparent on dark bg) ─── */
.text-white\/50 { color: rgba(255,255,255,0.5); }
.text-white\/70 { color: rgba(255,255,255,0.7); }
.border-white\/20 { border-color: rgba(255,255,255,0.2); }

/* ─── Gradient overlay (hero) ─── */
.hero-gradient {
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.30) 50%,
    rgba(0,0,0,0.60) 100%);
}

/* ─── Company table row alternating ─── */
.row-odd  { background-color: var(--gray-soft); }
.row-even { background-color: var(--white); }
.company-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
}
@media (min-width: 768px) {
  .company-row {
    grid-template-columns: 180px 1fr;
    gap: 0;
    padding: 1rem 1.5rem;
  }
}

/* ─── FLOW timeline ─── */
.flow-list {
  position: relative;
  border-left: 1px solid var(--line);
  margin-left: 1rem;
  padding: 0;
  list-style: none;
}
.flow-list > li {
  margin-left: 1.5rem;
  margin-bottom: 2rem;
}
.flow-step-num {
  position: absolute;
  left: -0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ─── Hero content padding ─── */
.hero-content {
  padding-top:    calc(3.5rem - 50px);
  padding-bottom: calc(3.5rem - 50px);
}
@media (min-width: 768px) {
  .hero-content { padding-top: calc(5rem - 50px); padding-bottom: calc(5rem - 50px); }
  .hero-content p { font-size: 22px; margin-bottom: 1.25rem; }
}
@media (min-width: 1024px) {
  .hero-content { padding-top: calc(6rem - 50px); padding-bottom: calc(6rem - 50px); }
}

/* ─── Intro grid ─── */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .intro-grid { gap: 2.5rem; }
  .intro-grid > div:first-child p:first-child { font-size: 1.125rem; margin-bottom: 1.5rem; }
}
@media (min-width: 1024px) {
  .intro-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
}

/* ─── Section padding (py-12 md:py-20) ─── */
.sec-pad { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 768px) {
  .sec-pad { padding-top: 5rem; padding-bottom: 5rem; }
}

/* ─── ABOUT profile layout ─── */
.about-profile {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .about-profile { flex-direction: row; gap: 2.5rem; }
}
.about-photo { flex-shrink: 0; margin: 0 auto; }
@media (min-width: 768px) { .about-photo { margin: 0; } }
.about-portrait {
  width: 12rem;
  height: 16rem;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
@media (min-width: 768px) {
  .about-portrait { width: 16rem; height: 20rem; }
}
.about-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ─── Accordion (shared for ABOUT/FAQ/RECRUIT) ─── */
.acc-box { background: var(--white); border-radius: 2px; }
.acc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
}
@media (min-width: 768px) { .acc-summary { padding: 0.75rem 2rem; } }
.acc-title { font-size: 1rem; font-weight: 700; }
@media (min-width: 768px) { .acc-title { font-size: 1.125rem; } }
.acc-body {
  padding: 0 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) { .acc-body { padding: 0 2rem 1.5rem; } }

/* ─── WORKS articles ─── */
.works-article {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
}
.works-article:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.works-h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.75rem;
}
.works-lead {
  font-size: 0.875rem;
  line-height: 2;
  margin-bottom: 1.5rem;
}

/* ─── Section subtitle (h2 直後の p) ─── */
.sec-subtitle { color: var(--ink-soft); margin-bottom: 2rem; }
@media (min-width: 768px) { .sec-subtitle { margin-bottom: 3rem; } }

/* ─── SERVICE grid ─── */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 4rem; }
}
.service-other { margin-top: 2.5rem; }
@media (min-width: 768px) { .service-other { margin-top: 3.5rem; } }
.service-other-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 768px) {
  .service-other-list { grid-template-columns: repeat(2, 1fr); }
}

/* ─── PRICE grid & card ─── */
.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
}
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.5rem;
}
@media (min-width: 768px) { .price-card { padding: 2rem; } }
.price-notes {
  color: var(--ink-soft);
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.price-notes li { display: flex; gap: 0.5rem; }
.price-notes li span:first-child { flex-shrink: 0; }

/* ─── Header responsive ─── */
@media (min-width: 768px) {
  .logo-mark           { height: 10rem; }
  .logo-name-main      { font-size: 1.35rem; }
  .logo-name-sub       { font-size: 1.2rem; }
}
/* デスクトップナビ：lg 未満では非表示 */
.desktop-nav { display: none; }
@media (min-width: 1024px) {
  .logo-mark      { height: 14rem; }
  .logo-name-main { font-size: 1.5rem; }
  .logo-name-sub  { font-size: 1.35rem; }
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    white-space: nowrap;
  }
}

/* ─── Inline badge (coming-soon) ─── */
.badge-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 0.25rem;
  opacity: 0.3;
}
