/* =========================================================
   Saijitsu Inc. / Static Corporate Site
   - No JS / No external libs
   - Fonts:
     - Headings (EN): Source Serif 4
     - Body (JP): Noto Sans JP
     - UI: Inter
   ========================================================= */

:root{
  /* Base */
  --bg:#ffffff;
  --surface:#fbfbfb;
  --surface2:#f7f7f7;
  --line:#e9e9e9;

  /* Type */
  --text:#0b0b0b;
  --muted:#6b7280;

  /* Brand */
  --primary:#0f172a;   /* deep navy */
  --accent:#88a999;    /* sage green */
  --accent2:#4a725f;

  /* Layout */
  --max:1120px;
  --radius:18px;
  --radius-lg:28px;

  /* Motion */
  --shadow-min:0 10px 24px rgba(0,0,0,.06);

  /* Typography */
  --fs-body:16px;
  --lh-body:1.95;
}

/* ---------- Reset ---------- */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-size:var(--fs-body);
  line-height:var(--lh-body);
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  text-rendering:geometricPrecision;
}

/* Body / Paragraphs (JP sans-serif) */
body,
p,
.lead,
.hero-lead,
.philosophy-body p,
.card p,
.kv .v,
.tl-item .text{
  font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",system-ui,sans-serif;
  letter-spacing:0.02em;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }
img{ max-width:100%; height:auto; display:block; }

.container{
  width:min(var(--max), calc(100% - 40px));
  margin:0 auto;
}

/* ---------- Accessibility ---------- */
.skip{
  position:absolute;
  left:-999px;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip:focus{
  position:static;
  width:auto;
  height:auto;
  padding:12px 0;
}

/* ---------- Header ---------- */
header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}

.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:18px;
}

.brand{
  display:flex;
  align-items:baseline;
  gap:10px;
}
.brand .name{
  font-family:"Source Serif 4","Noto Serif JP",serif;
  font-weight:600;
  letter-spacing:.02em;
  color:var(--primary);
}
.brand .en{
  font-family:"Inter",system-ui,-apple-system,sans-serif;
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
}

nav ul{
  list-style:none;
  display:flex;
  gap:6px;
  margin:0;
  padding:0;
  flex-wrap:wrap;
  justify-content:flex-end;
}
nav a{
  font-family:"Inter",system-ui,-apple-system,sans-serif;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid transparent;
  color:var(--primary);
  letter-spacing:.06em;
}
nav a:hover{
  text-decoration:none;
  background:var(--surface);
  border-color:var(--line);
}
nav a[aria-current="page"]{
  border-color:var(--line);
  background:#fff;
}
/* =========================================================
   Mobile Hamburger Nav (CSS only)
   ========================================================= */

.nav-toggle{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  clip-path:inset(50%);
}

/* hamburger button */
.nav-btn{
  display:none; /* desktop hidden */
  width:44px;
  height:44px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  align-items:center;
  justify-content:center;
  gap:5px;
  cursor:pointer;
}

.nav-btn span{
  display:block;
  width:18px;
  height:2px;
  background:var(--primary);
  border-radius:2px;
  transition:transform .18s ease, opacity .18s ease;
}

/* mobile layout */
@media (max-width:900px){
  .nav-btn{ display:inline-flex; 
  flex-direction: column;}

  /* hide nav by default on mobile */
  .navbar{
    position:relative;
  }

  .nav{
    position:absolute;
    top:calc(100% + 10px);
    right:0;
    left:0;
    display:none;
    padding:12px;
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(10px);
    border:1px solid var(--line);
    border-radius:var(--radius);
    box-shadow:var(--shadow-min);
  }

  nav ul{
    flex-direction:column;
    align-items:stretch;
    gap:6px;
  }

  nav a{
    display:block;
    padding:12px 14px;
    border-radius:12px;
    background:var(--surface);
    border:1px solid var(--line);
  }

  /* open state */
  .nav-toggle:checked ~ .nav{
    display:block;
  }

  /* animate hamburger -> X */
  .nav-toggle:checked + .nav-btn span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
  }
  .nav-toggle:checked + .nav-btn span:nth-child(2){
    opacity:0;
  }
  .nav-toggle:checked + .nav-btn span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
  }
}

/* ---------- Main ---------- */
main{ padding-bottom:96px; }

/* ---------- UI Label ---------- */
.ui-label{
  font-family:"Inter", system-ui, sans-serif;
  font-size:12px;
  letter-spacing:.18em;
  color:var(--muted);
  text-transform:uppercase;
  margin:0 0 12px;
}

/* ---------- Typography ---------- */
.kicker{
  font-family:"Inter",system-ui,-apple-system,sans-serif;
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
  margin:50px 0 10px;
}

/* Page H1 (not hero) */
.page-title{
  font-family:"Source Serif 4","Noto Serif JP",serif;
  font-size:28px;
  line-height:1.3;
  margin:12px 0 18px;
  letter-spacing:.02em;
  color:var(--primary);
}

.lead{
  color:var(--muted);
  max-width:72ch;
}

/* ---------- Section spacing ---------- */
.section-space{ margin-top:120px; }

/* ---------- Section title ---------- */
.section-title{
  font-family:"Source Serif 4","Noto Serif JP",serif;
  font-size:22px;
  line-height:1.35;
  letter-spacing:.02em;
  margin:0 0 18px;
  position:relative;
  padding-bottom:10px;
  color:var(--primary);
}
.section-title::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:76px;
  height:2px;
  background:linear-gradient(90deg,var(--accent),transparent);
}

/* =========================================================
   HERO : Full image + overlay text (white)
   ========================================================= */
.hero-full{
  position:relative;
  width:100%;
  height:min(100vh,800px);
  overflow:hidden;
}

.hero-full img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* black gradient overlay (top/bottom) */
.hero-full::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(0,0,0,.35) 0%,
    rgba(0,0,0,.15) 40%,
    rgba(0,0,0,.35) 100%
  );
  z-index:1;
}

.hero-overlay{
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  padding:16vh 8vw 10vh;
  max-width:980px;
}

/* left scrim for readability */
.hero-overlay::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(
    90deg,
    rgba(15,23,42,.62) 0%,
    rgba(15,23,42,.38) 42%,
    rgba(15,23,42,0) 78%
  );
}

.hero-overlay .kicker{
  color:rgba(255,255,255,.72);
}

/* Hero H1 */
.hero-title{
  font-family:"Source Serif 4","Noto Serif JP",serif;
  font-size:clamp(42px,5vw,56px);
  line-height:1.12;
  margin:12px 0 18px;
  letter-spacing:.02em;
  color:#fff;
}

.hero-lead{
  font-size:16px;
  line-height:1.95;
  color:rgba(255,255,255,.88);
  max-width:70ch;
  letter-spacing:0.05em;
}

/* =========================================================
   Philosophy (TOP) - No frame
   ========================================================= */
.philosophy{
  border:none;
  padding:0;
  background:transparent;
}

.philosophy-title{
  font-family:"Source Serif 4","Noto Serif JP",serif;
  font-size:24px;
  line-height:1.4;
  margin:0 0 32px;
  color:var(--primary);
  letter-spacing:.02em;
}

.philosophy-body p{
  margin:0 0 18px;
  color:var(--muted);
  max-width:72ch;
  line-height:2.0;
}
.philosophy-body p:last-child{ margin-bottom:0; }

/* =========================================================
   Company Overview (kv table UI)
   ========================================================= */
.kv{
  margin-top:28px;
  border-top:1px solid var(--line);
}

.kv .row{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:22px;
  padding:18px 0;
  border-bottom:1px solid var(--line);
}

.kv .k{
  font-family:"Inter",system-ui,sans-serif;
  font-size:14px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
  padding-top:2px;
}

.kv .v{
  font-size:16px;
  line-height:1.9;
  color:var(--primary);
}

.kv .v a{
  color:var(--primary);
  text-decoration:underline;
  text-decoration-color:rgba(136,169,153,.55);
  text-underline-offset:3px;
}

/* =========================================================
   Grid / Cards
   ========================================================= */
.grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:18px;
}

.card{
  grid-column:span 6;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  padding:28px; /* 24-32 */

}


.card h2{
  font-family:"Source Serif 4","Noto Serif JP",serif;
  margin:0 0 10px;
  font-size:18px;
  letter-spacing:.02em;
  color:var(--primary);
}
.card p{
  margin:0 0 16px;
  color:var(--muted);
}

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* ---------- Buttons ---------- */
.btn{
  font-family:"Inter",system-ui,-apple-system,sans-serif;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--primary);
  transition:transform .16s ease, box-shadow .16s ease;
}
.btn:hover{
  transform:translateY(-1px);
  box-shadow:var(--shadow-min);
  text-decoration:none;
}
.btn.primary{
  background:var(--accent2);
  color:#fff;
  border-color:var(--accent2);
}

/* =========================================================
   History Timeline (Year-focused, no box)
   - Use 2026 as anchor now, extend later
   ========================================================= */
.timeline{
  position:relative;
  margin-top:32px;
}

/* year block */
.tl-year{
  position:relative;
  padding-left:56px;
}

/* vertical line */
.tl-year::before{
  content:"";
  position:absolute;
  top:24px;
  left:20px;
  width:1px;
  height:100%;
  background:linear-gradient(to bottom, var(--primary), var(--line));
}

/* year label */
.tl-year .year{
  display:block;
  font-family:"Source Serif 4","Noto Serif JP",serif;
  font-size:28px;
  letter-spacing:.06em;
  color:var(--primary);
  margin-bottom:24px;
  position:relative;
}

/* dot at year start */
.tl-year .year::before{
  content:"";
  position:absolute;
  left:-40px;
  top:50%;
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--primary);
  transform:translateY(-50%);
}

/* item */
.tl-item{
  position:relative;
  display:flex;
  gap:20px;
  padding:0 0 28px;
}

.tl-item::before{
  content:"";
  position:absolute;
  left:-40px;
  top:6px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--primary);
}

/* date */
.tl-item .date{
  font-family:"Inter",system-ui,sans-serif;
  font-size:12px;
  letter-spacing:.12em;
  color:var(--muted);
  min-width:52px;
}

/* text */
.tl-item .text{
  margin:0;
  line-height:1.9;
  color:var(--primary);
}

/* future */
.tl-item.future .text{
  color:var(--muted);
  font-style:italic;
}

/* =========================================================
   Business page tweaks
   ========================================================= */

/* hr separator */
.sep{
  border:0;
  border-top:1px solid var(--line);
  margin:56px 0;
}

/* Sub hero (for pages without full hero) */
.hero-sub{
  margin-top:34px;
  padding:34px 34px 28px;
}

/* reduce the default kicker top margin inside hero-sub */
.hero-sub .kicker{
  margin:0 0 10px;
}

/* Service section (Hoshokuya) */
.service{
  margin-top:28px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:22px;
  align-items:center;

  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:var(--surface);
  padding:22px;
}

.service-visual{
  border-radius:calc(var(--radius-lg) - 8px);
  overflow:hidden;
}

.service-visual img{
  width:100%;
  height:100%;
  object-fit:cover;
  aspect-ratio: 4 / 3;
}

.service-text .lead{
  margin-top:10px;
}

.service-text .actions{
  margin-top:18px;
}
/* =========================================================
   Recruit Hero tweaks
   ========================================================= */

.hero-recruit::after{
  /* TOPより少し柔らかい黒グラデ */
  background:linear-gradient(
    180deg,
    rgba(0,0,0,.30) 0%,
    rgba(0,0,0,.12) 40%,
    rgba(0,0,0,.32) 100%
  );
}

.hero-recruit .hero-overlay::before{
  /* 左の暗幕をやや弱める（人が主役なので） */
  background:linear-gradient(
    90deg,
    rgba(15,23,42,.55) 0%,
    rgba(15,23,42,.32) 42%,
    rgba(15,23,42,0) 78%
  );
}

.hero-recruit .hero-lead{
  max-width:68ch;
}
.recruit-message{
  margin-top:120px;
}

.recruit-message-inner{
  display:grid;
  grid-template-columns: 1fr 0.9fr;
  gap:48px;
  align-items:center;
}

.recruit-message-text p{
  margin:0 0 18px;
  color:var(--muted);
  line-height:2.0;
  max-width:52ch;
}

.recruit-message-image{
  border-radius:var(--radius-lg);
  overflow:hidden;
}

.recruit-message-image img{
  width:100%;
  height:auto;
  display:block;
}

/* Responsive */
@media (max-width:900px){
  .hero-full{
  height: 600px;
  }
}
@media (max-width:900px){
  .recruit-message-inner{
    grid-template-columns:1fr;
    gap:28px;
  }

  .recruit-message-text p{
    max-width:none;
  }
}
/* Responsive */
@media (max-width:900px){
  .hero-sub{
    padding:26px 22px 22px;
  }

  .service{
    grid-template-columns:1fr;
    padding:18px;
  }

  .sep{
    margin:44px 0;
  }
}


/* =========================================================
   Footer
   ========================================================= */
footer{
  border-top:1px solid var(--line);
  padding:28px 0 36px;
  font-size:13px;
  color:var(--muted);
}
.footer-grid{
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.footer-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion:no-preference){
  .hero-overlay{ animation:fadeUp .9s ease-out both; }
  .section-title::after{ animation:lineIn .7s ease-out both; }
}
@keyframes fadeUp{
  from{ opacity:0; transform:translateY(10px); }
  to{ opacity:1; transform:translateY(0); }
}
@keyframes lineIn{
  from{ transform:scaleX(.55); opacity:.35; transform-origin:left; }
  to{ transform:scaleX(1); opacity:1; transform-origin:left; }
}

/* ---------- Responsive ---------- */
@media (max-width:900px){
  .hero-overlay{ padding:10vh 24px 8vh; }
  .hero-title{ font-size:36px; }
  .section-space{ margin-top:96px; }

  .card{ grid-column:span 12; }

  /* Company KV: stack */
  .kv .row{
    grid-template-columns:1fr;
    gap:6px;
    padding:16px 0;
  }
  .kv .k{
    text-transform:none;
    letter-spacing:.06em;
  }

  /* Timeline: tighter */
  .tl-year{ padding-left:40px; }
  .tl-year::before{ left:15px; }
  .tl-item::before,
  .tl-year .year::before{ left:-30px; }
}
