@charset "utf-8";
/* ==========================================================================
   TETSUDAI corporate site v2 — shared stylesheet
   palette : bg #F3EDE1 / ink #26201A / gold #C9A24B / sub #6B5D4A
   type    : headings = mincho stack / body = gothic stack (2 families only)
   motion  : hero H1 shuffle (JS) + quiet fade-in + one-shot line draw. nothing else.
   assets  : no external requests. no images. no webfonts.
   ========================================================================== */

/* ---------- tokens ---------- */
:root{
  --bg:#F3EDE1;
  --bg-soft:#F8F3E9;          /* tint of --bg */
  --ink:#26201A;
  --gold:#C9A24B;
  --sub:#6B5D4A;

  --line:rgba(107,93,74,.20);      /* --sub at low alpha */
  --line-soft:rgba(107,93,74,.11);
  --line-gold:rgba(201,162,75,.42);
  --ink-faint:rgba(107,93,74,.62);

  --sans:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic Medium","Yu Gothic",YuGothic,Meiryo,sans-serif;
  --serif:"Hiragino Mincho ProN","Hiragino Mincho Pro","Yu Mincho",YuMincho,"Noto Serif JP",serif;

  --maxw:1080px;
  --pad:28px;
}

/* ---------- reset ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.95;
  letter-spacing:.02em;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
h1,h2,h3{margin:0;font-weight:600;line-height:1.4;letter-spacing:.05em}
p{margin:0}
ul{margin:0;padding:0;list-style:none}
a{color:inherit}
svg{display:block}

.wrap{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 var(--pad)}

/* ==========================================================================
   header (shared shell)
   ========================================================================== */
.site-header{
  position:sticky;top:0;z-index:60;
  background:rgba(243,237,225,.92);
  -webkit-backdrop-filter:saturate(1.1) blur(8px);
  backdrop-filter:saturate(1.1) blur(8px);
  border-bottom:1px solid var(--line-gold);
}
.site-header__in{
  width:100%;max-width:var(--maxw);margin:0 auto;padding:0 var(--pad);
  height:66px;display:flex;align-items:center;gap:24px;
}
.logo{display:flex;align-items:baseline;gap:9px;text-decoration:none;flex:0 0 auto}
.logo__mark{
  font-family:var(--serif);font-size:20px;font-weight:600;
  letter-spacing:.16em;line-height:1;white-space:nowrap;
}
.logo__mark i{font-style:normal;color:var(--gold)}
.logo__yomi{font-size:10px;letter-spacing:.24em;color:var(--sub);line-height:1;white-space:nowrap}

.site-nav{margin-left:auto}
.site-nav ul{display:flex;align-items:center;gap:26px;flex-wrap:wrap}
.site-nav a{
  position:relative;display:inline-block;
  text-decoration:none;color:var(--sub);
  font-size:12.5px;letter-spacing:.14em;line-height:1;
  padding:8px 1px 9px;
  transition:color .28s ease;
}
.site-nav a::after{
  content:"";position:absolute;left:0;bottom:2px;height:1px;width:0;
  background:var(--gold);transition:width .3s ease;
}
.site-nav a:hover{color:var(--ink)}
.site-nav a:hover::after{width:100%}
.site-nav a[aria-current="page"]{color:var(--ink)}
.site-nav a[aria-current="page"]::after{width:100%}

/* ==========================================================================
   section rhythm — every section opens with a hairline. identical on all pages.
   ========================================================================== */
.section{padding:76px 0;border-top:1px solid var(--line)}
.section__head{margin-bottom:40px}
.section__head--row{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap}

.rule{width:40px;height:1px;background:var(--gold);margin-bottom:18px}

.h2{font-family:var(--serif);font-size:clamp(22px,2.8vw,30px);letter-spacing:.08em}
.lead{margin-top:20px;color:var(--sub);font-size:15px;line-height:2.15;max-width:42em}

/* ==========================================================================
   hero (index) / page head (sub pages) — symmetric top blocks
   ========================================================================== */
.hero,.pagehead{padding:88px 0 72px}
.hero__in{
  width:100%;max-width:var(--maxw);margin:0 auto;padding:0 var(--pad);
  display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
  gap:48px;align-items:center;
}
.hero__copy{max-width:34em}
.hero h1{
  font-family:var(--serif);
  font-size:clamp(38px,5.6vw,62px);
  letter-spacing:.1em;line-height:1.28;
  margin:0 0 24px;
}
.hero h1 .ch{display:inline-block;white-space:pre}
.hero__sub{
  font-family:var(--serif);
  font-size:clamp(16px,1.9vw,20px);letter-spacing:.14em;color:var(--sub);
  margin-bottom:18px;
}
.hero__text{font-size:15px;line-height:2.1;color:var(--sub);margin-bottom:36px}

.pagehead h1{font-family:var(--serif);font-size:clamp(28px,4.2vw,44px);letter-spacing:.1em}
.pagehead .lead{margin-top:22px}

/* ---------- hero motif : thin gold rays ("a thousand hands") ---------- */
.hero__fan{justify-self:end;width:100%;max-width:352px}
.fan{width:100%;height:auto;overflow:visible}
.fan__ray{stroke:var(--gold);stroke-width:.6;opacity:.17;fill:none}
.fan__ray--m{stroke-width:.75;opacity:.30}
.fan__ray--k{stroke-width:.95;opacity:.46}
.fan__arc{stroke:var(--gold);stroke-width:.6;fill:none;opacity:.12}
.fan__dot{fill:var(--gold);opacity:.7}

/* ==========================================================================
   buttons & inline links
   ========================================================================== */
.btns{display:flex;flex-wrap:wrap;gap:12px}
.btn{
  display:inline-flex;align-items:center;gap:10px;
  min-height:46px;padding:0 22px;border-radius:2px;
  border:1px solid var(--line-gold);background:transparent;color:var(--ink);
  font-size:13.5px;letter-spacing:.1em;text-decoration:none;
  transition:border-color .28s ease,background-color .28s ease;
}
.btn::after{content:"→";font-size:12px;color:var(--gold);line-height:1}
.btn:hover{border-color:var(--gold);background:rgba(201,162,75,.10)}
.btn--sm{min-height:40px;padding:0 17px;font-size:12.5px}

.tlink{
  display:inline-flex;align-items:baseline;gap:8px;
  text-decoration:none;color:var(--sub);
  font-size:13px;letter-spacing:.12em;
  border-bottom:1px solid var(--line-gold);padding-bottom:3px;
  transition:color .28s ease,border-color .28s ease;
}
.tlink::after{content:"→";font-size:11px;color:var(--gold)}
.tlink:hover{color:var(--ink);border-color:var(--gold)}

.inline-link{color:var(--ink);text-decoration:none;border-bottom:1px solid var(--line-gold);transition:border-color .28s ease}
.inline-link:hover{border-color:var(--gold)}

/* ==========================================================================
   badges
   ========================================================================== */
.badge{
  font-size:10.5px;letter-spacing:.16em;line-height:1;
  padding:6px 10px 6px 11px;border-radius:2px;white-space:nowrap;
  transform:translateY(-2px);
}
.badge--gold{background:var(--gold);color:var(--ink)}
.badge--quiet{border:1px solid var(--line);color:var(--sub)}

/* ==========================================================================
   cards (index products overview)
   ========================================================================== */
/* flush left with the section heading: the rhythm of the page is the ruler */
.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.card{padding:0 44px 0 0;display:flex;flex-direction:column}
.card + .card{padding:0 0 0 44px;border-left:1px solid var(--line)}
.card__top{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.card__name{font-family:var(--serif);font-size:19px;letter-spacing:.08em}
.card__desc{font-size:14px;line-height:2.05;color:var(--sub);flex:1}
.card__act{margin-top:24px}

/* ==========================================================================
   entries (products / lab detail rows)
   ========================================================================== */
.entries{border-top:1px solid var(--line)}
/* a section already opens with a hairline; a list that opens a section must not
   draw a second one right under it */
.wrap > .entries:first-child,
.wrap > .news:first-child{border-top:0}
.wrap > .entries:first-child > .entry:first-child{padding-top:0}
.entry{padding:44px 0;border-bottom:1px solid var(--line)}
.entry__top{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.entry__name{font-family:var(--serif);font-size:clamp(20px,2.4vw,26px);letter-spacing:.09em}
.entry__desc{font-size:15px;line-height:2.15;color:var(--sub);max-width:42em}
.entry__act{margin-top:26px}
.entry__note{margin-top:22px;font-size:12.5px;letter-spacing:.1em;color:var(--ink-faint)}
.after-note{margin-top:40px;font-size:14px;line-height:2.15;color:var(--sub);max-width:42em}

/* ==========================================================================
   news list
   ========================================================================== */
.news{border-top:1px solid var(--line)}
.news li{
  display:flex;gap:32px;align-items:baseline;
  padding:22px 2px;border-bottom:1px solid var(--line);
}
.news time{
  flex:0 0 auto;width:7.4em;
  font-size:12.5px;letter-spacing:.12em;color:var(--gold);
  font-variant-numeric:tabular-nums;
}
.news p{font-size:15px;line-height:1.9}
.news__after{margin-top:38px;font-size:14px;color:var(--sub)}

/* ==========================================================================
   company table
   ========================================================================== */
.table{width:100%;border-collapse:collapse;text-align:left;border-top:1px solid var(--line)}
.table th,.table td{
  padding:20px 4px;border-bottom:1px solid var(--line);
  font-size:14.5px;line-height:1.95;vertical-align:top;
}
.table th{width:12em;font-weight:600;letter-spacing:.08em;color:var(--sub);white-space:nowrap}
.table td{font-weight:400}

/* ==========================================================================
   prose blocks (about)
   ========================================================================== */
.prose{font-size:16px;line-height:2.3;max-width:38em}
.block + .block{margin-top:64px}
.block__label{
  font-size:11px;letter-spacing:.22em;color:var(--sub);
  margin-bottom:14px;
}

/* ==========================================================================
   quiet band (index → about)
   ========================================================================== */
.quiet{display:flex;align-items:baseline;justify-content:space-between;gap:24px;flex-wrap:wrap}
.quiet p{font-size:14.5px;color:var(--sub);line-height:2.1}

/* ==========================================================================
   lab / index lab names
   ========================================================================== */
.names{display:flex;flex-wrap:wrap;gap:10px 44px;margin-top:30px}
.names li{
  display:flex;align-items:center;gap:14px;
  font-family:var(--serif);font-size:17px;letter-spacing:.12em;color:var(--ink);
}
.names li::before{content:"";width:16px;height:1px;background:var(--gold);flex:0 0 auto}

/* ==========================================================================
   contact
   ========================================================================== */
.contact__body{font-size:15.5px;line-height:2.2;color:var(--sub);max-width:46em}
.contact__body + .btns{margin-top:40px}

/* ==========================================================================
   footer (high density, 3 columns) — identical on every page
   ========================================================================== */
.site-footer{border-top:1px solid var(--line);padding:64px 0 56px;background:var(--bg-soft)}
.site-footer__in{
  width:100%;max-width:var(--maxw);margin:0 auto;padding:0 var(--pad);
  display:grid;grid-template-columns:1.5fr 1fr 1.3fr;gap:44px;
}
.foot__mark{
  font-family:var(--serif);font-size:17px;font-weight:600;letter-spacing:.16em;
  line-height:1;display:block;margin-bottom:18px;
}
.foot__mark i{font-style:normal;color:var(--gold)}
.foot__about{font-size:13px;line-height:2.05;color:var(--sub);max-width:26em}
.foot__copy{margin-top:22px;font-size:11.5px;letter-spacing:.12em;color:var(--sub)}
.foot__label{
  font-size:10.5px;letter-spacing:.22em;color:var(--sub);
  padding-bottom:12px;margin-bottom:14px;border-bottom:1px solid var(--line);
}
.foot__list li + li{margin-top:11px}
.foot__list a{
  font-size:12.5px;letter-spacing:.08em;color:var(--sub);text-decoration:none;
  transition:color .25s ease;
}
.foot__list a:hover{color:var(--gold)}
.foot__group + .foot__group{margin-top:30px}

/* ==========================================================================
   reveal (quiet fade-in)
   ========================================================================== */
.reveal{opacity:0;transform:translateY(14px);transition:opacity .8s ease,transform .8s cubic-bezier(.2,.7,.3,1)}
.reveal.is-in{opacity:1;transform:none}

/* ==========================================================================
   one-shot line draw for the hero motif.
   declared only where motion is welcome, so the default state is "fully drawn".
   ========================================================================== */
@media (prefers-reduced-motion:no-preference){
  .fan__ray,.fan__arc{
    stroke-dasharray:var(--len);
    stroke-dashoffset:var(--len);
    animation:fanDraw .9s cubic-bezier(.22,.7,.25,1) both;
    animation-delay:calc(var(--i,0) * 15ms + 140ms);
  }
  .fan__arc{animation-duration:1.5s;animation-delay:.5s}
  .fan__dot{animation:fanDot .8s ease both;animation-delay:.1s}
}
@keyframes fanDraw{to{stroke-dashoffset:0}}
@keyframes fanDot{from{opacity:0}to{opacity:.75}}

/* ==========================================================================
   responsive
   ========================================================================== */
@media (max-width:940px){
  .hero__in{grid-template-columns:1fr;gap:44px}
  .hero__fan{justify-self:end;max-width:280px}
  .cards{grid-template-columns:1fr}
  .card{padding:0 0 36px}
  .card + .card{padding:36px 0 0;border-left:0;border-top:1px solid var(--line)}
  .site-footer__in{grid-template-columns:1fr 1fr;gap:40px 32px}
  .foot__col--1{grid-column:1 / -1}
}
@media (max-width:700px){
  .site-header__in{
    height:auto;flex-direction:column;align-items:flex-start;
    gap:9px;padding-top:13px;padding-bottom:12px;
  }
  .site-nav{margin-left:0;width:100%}
  .site-nav ul{gap:6px 20px}
  .site-nav a{font-size:11.5px;letter-spacing:.1em;padding:2px 1px 4px}
}
@media (max-width:640px){
  :root{--pad:20px}
  body{font-size:15px}
  .section{padding:52px 0}
  .hero,.pagehead{padding:56px 0 48px}
  .hero__text{margin-bottom:30px}
  .hero__fan{justify-self:end;max-width:210px}
  .card{padding:0 0 30px}
  .card + .card{padding:30px 0 0}
  .entry{padding:34px 0}
  .news li{flex-direction:column;gap:5px;padding:18px 2px}
  .news time{width:auto}
  .table th,.table td{display:block;width:auto;border-bottom:none;padding:0}
  .table th{padding-top:18px;font-size:12px}
  .table td{padding-bottom:18px;border-bottom:1px solid var(--line)}
  .block + .block{margin-top:48px}
  .prose{line-height:2.15}
  .site-footer{padding:48px 0 44px}
  .site-footer__in{grid-template-columns:1fr;gap:34px}
  .quiet{gap:18px}
}

/* ==========================================================================
   motion opt-out
   ========================================================================== */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
  .reveal{opacity:1;transform:none}
  .fan__ray,.fan__arc{stroke-dasharray:none;stroke-dashoffset:0}
}
/* set by script where no rendering loop runs (headless capture, print) */
html.no-motion{scroll-behavior:auto}
html.no-motion *,html.no-motion *::before,html.no-motion *::after{animation:none!important;transition:none!important}
html.no-motion .reveal{opacity:1;transform:none}
html.no-motion .fan__ray,html.no-motion .fan__arc{stroke-dasharray:none;stroke-dashoffset:0}
