:root{
    --cream: #FAF6EF;
    --cream-2: #F2EBDD;
    --ink: #2B2620;
    --ink-sub: #7C7365;
    --coral: #FF6B4A;
    --coral-deep: #E5502F;
    --coral-tint: #FFEAE3;
    --teal: #1F4B43;
    --teal-tint: #E8EFEA;
    --line: #E6DFD0;
    --ff-head: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
    --ff-body: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
    --maxw: 1120px;
  }

  *{ box-sizing: border-box; }
  html{ scroll-behavior: smooth; }
  body{
    margin:0; font-family: var(--ff-body); color: var(--ink); background: var(--cream);
    line-height:1.9; -webkit-font-smoothing: antialiased; overflow-x:hidden;
  }
  img,svg{ max-width:100%; display:block; }
  a{ color:inherit; text-decoration:none; }
  ul{ margin:0; padding:0; list-style:none; }
  h1,h2,h3,h4{ font-family: var(--ff-head); margin:0; color: var(--ink); font-weight:600; }
  p{ margin:0; }
  .container{ max-width: var(--maxw); margin:0 auto; padding:0 32px; position:relative; }
  :focus-visible{ outline: 2px solid var(--coral); outline-offset:3px; }

  @media (prefers-reduced-motion: reduce){
    *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
  }

  .reveal{ opacity:0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
  .reveal.in-view{ opacity:1; transform:none; }
  .reveal-d1.in-view{ transition-delay:.1s; }
  .reveal-d2.in-view{ transition-delay:.2s; }
  .reveal-d3.in-view{ transition-delay:.3s; }
  .reveal-d4.in-view{ transition-delay:.4s; }

  @keyframes lineUp{ from{ opacity:0; transform: translateY(28px); } to{ opacity:1; transform:none; } }
  @keyframes driftGlow{
    0%{ transform: translate(0,0) scale(1); }
    50%{ transform: translate(4%,-6%) scale(1.08); }
    100%{ transform: translate(0,0) scale(1); }
  }
  @keyframes driftGlow2{
    0%{ transform: translate(0,0) scale(1); }
    50%{ transform: translate(-5%,5%) scale(1.05); }
    100%{ transform: translate(0,0) scale(1); }
  }

  /* ---------- Header ---------- */
  .site-header{
    position: sticky; top:0; z-index:200;
    background: rgba(250,246,239,0.88);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease, box-shadow .3s ease;
  }
  .site-header.scrolled{ border-color: var(--line); box-shadow: 0 6px 24px rgba(43,38,32,0.05); }
  .site-header .container{ display:flex; align-items:center; justify-content:space-between; height:80px; }
  .logo{ font-family: var(--ff-head); font-weight:700; font-size:21px; letter-spacing:.02em; display:flex; align-items:baseline; gap:10px; }
  .logo .dot{ color: var(--coral); }
  .logo span{ font-size:11px; font-weight:500; color: var(--ink-sub); font-family: var(--ff-body); }
  .main-nav{ display:flex; align-items:center; gap:36px; }
  .main-nav ul{ display:flex; gap:30px; }
  .main-nav a{ font-size:14.5px; font-weight:500; color: var(--ink); position:relative; padding:4px 0; }
  .main-nav a::after{ content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px; background: var(--coral); transform:scaleX(0); transform-origin:left; transition:transform .25s ease; }
  .main-nav a:hover::after{ transform:scaleX(1); }
  .nav-cta{ background: var(--ink); color: var(--cream); font-size:14px; font-weight:500; padding:11px 24px; border-radius:999px; white-space:nowrap; transition: background .2s ease, transform .2s ease; }
  .nav-cta:hover{ background: var(--coral-deep); transform: translateY(-2px); }
  .nav-toggle{ display:none; width:40px; height:40px; border:none; background:none; cursor:pointer; flex-direction:column; justify-content:center; align-items:center; gap:5px; }
  .nav-toggle span{ width:22px; height:2px; background:var(--ink); border-radius:2px; transition:all .3s ease; }
  .nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2){ opacity:0; }
  .nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

  /* ---------- Hero ---------- */
  .hero{ padding:110px 0 96px; position:relative; overflow:hidden; min-height:78vh; display:flex; align-items:center; }
  .hero-glow{ position:absolute; border-radius:50%; filter: blur(70px); pointer-events:none; z-index:0; }
  .hero-glow.c1{ width:520px; height:520px; top:-160px; left:-120px; background: radial-gradient(circle, rgba(255,107,74,0.30), transparent 70%); animation: driftGlow 14s ease-in-out infinite; }
  .hero-glow.c2{ width:460px; height:460px; bottom:-180px; right:-100px; background: radial-gradient(circle, rgba(31,75,67,0.22), transparent 70%); animation: driftGlow2 16s ease-in-out infinite; }
  .hero .container{ z-index:1; }
  .hero-eyebrow{
    font-size:13px; color: var(--coral-deep); font-weight:700; letter-spacing:.04em; margin-bottom:28px;
    opacity:0; animation: lineUp .8s ease forwards; animation-delay:.05s;
  }
  .hero-statement{
    font-size: clamp(30px, 5.4vw, 64px); font-weight:700; line-height:1.42; letter-spacing:.01em;
    max-width: 18ch;
  }
  .hero-statement .ln{ display:block; overflow:hidden; }
  .hero-statement .ln span{ display:block; opacity:0; transform: translateY(100%); animation: lineUp .9s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero-statement .ln:nth-child(1) span{ animation-delay:.15s; }
  .hero-statement .ln:nth-child(2) span{ animation-delay:.32s; }
  .hero-statement .ln:nth-child(3) span{ animation-delay:.49s; }
  .hero-statement .accent{ color: var(--coral); }

  .hero-sub{
    margin-top:36px; font-size:15px; color: var(--ink-sub); max-width:52ch;
    opacity:0; animation: lineUp .8s ease forwards; animation-delay:.75s;
  }
  .hero-sub .en{ display:block; margin-top:10px; font-size:13px; letter-spacing:.02em; color: #A79E8E; }
  .hero-actions{
    display:flex; gap:16px; flex-wrap:wrap; margin-top:44px;
    opacity:0; animation: lineUp .8s ease forwards; animation-delay:.9s;
  }
  .btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:16px 32px; font-size:14.5px; font-weight:500; border-radius:999px; transition: all .25s ease; border:1px solid transparent; }
  .btn-primary{ background: var(--ink); color: var(--cream); }
  .btn-primary:hover{ background: var(--coral-deep); transform: translateY(-2px); }
  .btn-ghost{ border-color: var(--ink); color: var(--ink); }
  .btn-ghost:hover{ background: var(--ink); color: var(--cream); transform: translateY(-2px); }

  /* ---------- Section basics ---------- */
  section{ padding:100px 0; position:relative; }
  .section-alt{ background: var(--cream-2); }
  .section-head{ margin-bottom:56px; max-width:640px; }
  .section-head .sub{ font-size:13px; color: var(--coral-deep); font-weight:700; margin-bottom:12px; letter-spacing:.03em; }
  .section-head h2{ font-size: clamp(24px,3vw,36px); line-height:1.6; margin-bottom:18px; }
  .section-head p{ color: var(--ink-sub); font-size:15px; }

  /* ---------- About ---------- */
  .about-grid{ display:grid; grid-template-columns: .85fr 1.15fr; gap:60px; align-items:center; }
  .about-grid .lead-num{ font-size:14px; color: var(--ink-sub); border-left:2px solid var(--coral); padding-left:16px; margin-bottom:24px; letter-spacing:.02em; }
  .about-grid h2{ font-size: clamp(24px,3vw,34px); line-height:1.75; margin-bottom:22px; }
  .about-body p{ color: var(--ink-sub); font-size:15.5px; margin-bottom:20px; }
  .about-body p:last-child{ margin-bottom:0; }
  .about-body strong{ color: var(--ink); font-weight:500; }

  /* ---------- Pickup carousel ---------- */
  .pickup-head{ display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:40px; gap:24px; flex-wrap:wrap; }
  .pickup-arrows{ display:flex; gap:12px; }
  .arrow-btn{
    width:46px; height:46px; border-radius:50%; border:1px solid var(--line); background: var(--cream);
    display:flex; align-items:center; justify-content:center; cursor:pointer; transition: all .25s ease;
  }
  .arrow-btn:hover{ background: var(--ink); border-color: var(--ink); }
  .arrow-btn:hover svg path{ stroke:#fff; }
  .arrow-btn svg path{ stroke: var(--ink); transition: stroke .25s ease; }
  .pickup-viewport{ overflow:hidden; border-radius:24px; }
  .pickup-track{ display:flex; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
  .pickup-card{
    min-width:100%; display:grid; grid-template-columns: 1fr 1fr; align-items:center; gap:0;
    background: var(--ink); border-radius:24px; overflow:hidden;
  }
  .pickup-visual{ position:relative; aspect-ratio: 4/3; overflow:hidden; }
  .pickup-body{ padding: 52px 56px; color: var(--cream); }
  .pickup-tag{ display:inline-block; font-size:12px; font-weight:700; letter-spacing:.03em; color: var(--coral); border:1px solid rgba(255,107,74,0.5); border-radius:999px; padding:5px 14px; margin-bottom:20px; }
  .pickup-body h3{ color:#fff; font-size: clamp(20px,2.2vw,27px); line-height:1.6; margin-bottom:14px; }
  .pickup-body p{ color: rgba(250,246,239,0.62); font-size:14.5px; margin-bottom:26px; }
  .pickup-body a{ font-size:14px; color: var(--coral); border-bottom:1px solid var(--coral); padding-bottom:3px; }
  .pickup-dots{ display:flex; gap:8px; margin-top:24px; }
  .pickup-dots button{ width:8px; height:8px; border-radius:50%; background: var(--line); border:none; cursor:pointer; padding:0; transition: all .25s ease; }
  .pickup-dots button.active{ background: var(--coral); width:22px; border-radius:5px; }

  /* ---------- Works gallery ---------- */
  .works-scroll{ display:flex; gap:22px; overflow-x:auto; padding-bottom:12px; scroll-snap-type: x proximity; margin:0 -32px; padding-left:32px; padding-right:32px; }
  .works-scroll::-webkit-scrollbar{ height:6px; }
  .works-scroll::-webkit-scrollbar-thumb{ background: var(--line); border-radius:3px; }
  .work-card{ min-width:280px; max-width:280px; scroll-snap-align:start; cursor:default; }
  .work-visual{
    aspect-ratio: 4/3; border-radius:18px; overflow:hidden; position:relative; margin-bottom:18px;
    transition: transform .35s ease;
  }
  .work-card:hover .work-visual{ transform: translateY(-6px); }
  .work-visual svg{ width:100%; height:100%; display:block; }
  .work-tags{ display:flex; gap:8px; margin-bottom:10px; flex-wrap:wrap; }
  .work-tags span{ font-size:11px; color: var(--ink-sub); border:1px solid var(--line); border-radius:999px; padding:3px 10px; }
  .work-card h4{ font-size:15.5px; line-height:1.6; margin-bottom:4px; }
  .work-card .client{ font-size:12.5px; color: var(--ink-sub); }
  .works-foot{ margin-top:36px; }
  .works-foot a{ font-size:14px; color: var(--ink); border-bottom:1px solid var(--ink); padding-bottom:2px; }
  .works-foot a:hover{ color: var(--coral-deep); border-color: var(--coral-deep); }

  /* ---------- Services (3-circle tabs) ---------- */
  .tab-nav{ display:flex; gap:14px; margin-bottom:52px; flex-wrap:wrap; }
  .tab-btn{
    display:flex; align-items:center; gap:12px; padding:10px 22px 10px 10px; border-radius:999px;
    border:1px solid var(--line); background: var(--cream); cursor:pointer; transition: all .3s ease;
  }
  .tab-btn .circle{
    width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center;
    background: var(--cream-2); font-family: var(--ff-head); font-weight:700; font-size:14px; color: var(--ink-sub);
    transition: all .3s ease;
  }
  .tab-btn .label{ font-size:14.5px; font-weight:500; color: var(--ink-sub); transition: color .3s ease; }
  .tab-btn.active{ border-color: var(--ink); background: var(--ink); }
  .tab-btn.active .circle{ background: var(--coral); color:#fff; }
  .tab-btn.active .label{ color: var(--cream); }
  .tab-btn:hover:not(.active){ border-color: var(--coral); }

  .tab-panels{ position:relative; }
  .tab-panel{
    display:none; grid-template-columns: 1fr 1fr; gap:56px; align-items:center;
    animation: lineUp .6s ease forwards;
  }
  .tab-panel.active{ display:grid; }
  .tab-panel .idx-big{ font-family: var(--ff-head); font-size:13px; color: var(--coral-deep); font-weight:700; margin-bottom:18px; letter-spacing:.03em; }
  .tab-panel h3{ font-size: clamp(22px,2.6vw,30px); line-height:1.6; margin-bottom:18px; }
  .tab-panel p{ color: var(--ink-sub); font-size:15px; margin-bottom:26px; }
  .tab-chips{ display:flex; gap:10px; flex-wrap:wrap; }
  .tab-chips span{ font-size:13px; color: var(--ink); background: var(--cream-2); border:1px solid var(--line); border-radius:999px; padding:8px 16px; }
  .tab-visual{ position:relative; aspect-ratio:1/1; max-width:380px; justify-self:center; }
  .tab-visual .bg-circle{ position:absolute; inset:0; border-radius:50%; transition: background 1s ease; }

  /* ---------- Services ---------- */
  .service-list{ border-top: 1px solid var(--line); }
  .service-row{ border-bottom:1px solid var(--line); padding:38px 0; display:grid; grid-template-columns:260px 1fr; gap:40px; transition: background .25s ease; }
  .service-row:hover{ background: rgba(255,107,74,0.04); }
  .service-row .s-name{ font-family: var(--ff-head); font-weight:600; font-size:21px; color: var(--ink); display:flex; align-items:baseline; gap:14px; }
  .service-row .s-name .idx{ font-family: var(--ff-body); font-size:12.5px; color: var(--coral-deep); font-weight:700; }
  .service-row .s-desc{ color: var(--ink-sub); font-size:14.5px; max-width:62ch; }
  .service-row .s-desc strong{ color: var(--ink); font-weight:500; }

  /* ---------- Process ---------- */
  .process-list{ position:relative; }
  .process-item{ display:grid; grid-template-columns:88px 1fr; gap:28px; padding:0 0 48px; position:relative; }
  .process-item:last-child{ padding-bottom:0; }
  .process-item .line{ position:absolute; left:43px; top:88px; bottom:-2px; width:2px; background: var(--line); overflow:hidden; }
  .process-item .line::after{ content:""; position:absolute; inset:0; background: var(--coral); transform: scaleY(0); transform-origin:top; transition: transform .8s ease; }
  .process-item.in-view .line::after{ transform: scaleY(1); }
  .process-item:last-child .line{ display:none; }
  .p-num{ font-family: var(--ff-head); font-weight:700; font-size:24px; color: var(--coral-deep); width:88px; height:88px; border:1px solid var(--line); border-radius:50%; display:flex; align-items:center; justify-content:center; background: var(--cream); z-index:1; transition: background .3s ease, color .3s ease, border-color .3s ease; }
  .process-item.in-view .p-num{ background: var(--coral); color:#fff; border-color: var(--coral); }
  .p-body h3{ font-size:19px; margin-bottom:9px; padding-top:22px; }
  .p-body p{ color: var(--ink-sub); font-size:14.5px; max-width:58ch; }

  /* ---------- Stats ---------- */
  .stats{ background: var(--teal); color:#fff; }
  .stats .section-head h2, .stats .section-head p{ color:#fff; }
  .stats .section-head p{ color: rgba(255,255,255,0.65); }
  .stat-grid{ display:grid; grid-template-columns: repeat(4,1fr); }
  .stat-item{ padding:0 28px; border-left:1px solid rgba(255,255,255,0.18); }
  .stat-item:first-child{ padding-left:0; border-left:none; }
  .stat-num{ font-family: var(--ff-head); font-weight:700; font-size: clamp(28px,3.2vw,42px); line-height:1; color: var(--coral); }
  .stat-num .unit{ font-size:.42em; font-weight:400; margin-left:4px; color:#fff; font-family: var(--ff-body); }
  .stat-label{ margin-top:16px; font-size:13.5px; color: rgba(255,255,255,0.7); }

  /* ---------- News ---------- */
  .news-list{ border-top:1px solid var(--line); }
  .news-row{ display:grid; grid-template-columns:130px 130px 1fr; gap:24px; align-items:baseline; padding:24px 0; border-bottom:1px solid var(--line); transition: background .2s ease; }
  .news-row:hover{ background: rgba(255,107,74,0.04); }
  .news-row time{ font-size:13.5px; color: var(--ink-sub); }
  .news-tag{ font-size:12px; color: var(--coral-deep); font-weight:700; align-self:center; border:1px solid var(--coral); border-radius:999px; padding:3px 12px; width:fit-content; }
  .news-row a{ font-size:15.5px; }
  .news-row a:hover{ color: var(--coral-deep); }
  .news-foot{ margin-top:32px; }
  .news-foot a{ font-size:14px; color: var(--ink); border-bottom:1px solid var(--ink); padding-bottom:2px; }
  .news-foot a:hover{ color: var(--coral-deep); border-color: var(--coral-deep); }

  /* ---------- Recruit ---------- */
  .recruit{ background: var(--coral-tint); overflow:hidden; }
  .recruit .container{ display:flex; justify-content:space-between; align-items:center; gap:40px; flex-wrap:wrap; }
  .recruit h2{ font-size: clamp(24px,3vw,32px); line-height:1.7; max-width:34ch; }
  .recruit p{ color: var(--ink-sub); margin-top:14px; font-size:14.5px; }

  /* ---------- Footer ---------- */
  footer{ background: var(--ink); color: rgba(250,246,239,0.72); padding:64px 0 32px; }
  .footer-top{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:40px; border-bottom:1px solid rgba(250,246,239,0.14); }
  .footer-logo{ font-family: var(--ff-head); font-weight:700; font-size:19px; color: var(--cream); margin-bottom:14px; }
  .footer-logo .dot{ color: var(--coral); }
  .footer-top address{ font-style:normal; font-size:13.5px; line-height:1.9; color: rgba(250,246,239,0.55); }
  .footer-col h4{ color: var(--cream); font-size:13.5px; font-weight:500; margin-bottom:16px; }
  .footer-col ul li{ margin-bottom:10px; }
  .footer-col a{ font-size:13.5px; color: rgba(250,246,239,0.6); transition: color .2s ease; }
  .footer-col a:hover{ color: var(--coral); }
  .footer-bottom{ padding-top:28px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
  .footer-bottom small{ font-size:12.5px; color: rgba(250,246,239,0.4); }

  @media (max-width:900px){
    .about-grid{ grid-template-columns:1fr; gap:32px; }
    .service-row{ grid-template-columns:1fr; gap:14px; }
    .stat-grid{ grid-template-columns: repeat(2,1fr); row-gap:32px; }
    .stat-item:nth-child(3){ border-left:none; padding-left:0; }
    .footer-top{ grid-template-columns:1fr 1fr; row-gap:32px; }
    .hero{ min-height:auto; padding:88px 0 72px; }
  }
  @media (max-width:720px){
    .nav-toggle{ display:flex; }
    .main-nav{ position:fixed; inset:80px 0 auto 0; background: var(--cream); flex-direction:column; align-items:stretch; padding:8px 32px 24px; border-bottom:1px solid var(--line); transform: translateY(-12px); opacity:0; pointer-events:none; transition: opacity .25s ease, transform .25s ease; }
    .main-nav.open{ transform:none; opacity:1; pointer-events:auto; }
    .main-nav ul{ flex-direction:column; gap:0; }
    .main-nav ul li{ border-bottom:1px solid var(--line); }
    .main-nav ul li a{ display:block; padding:16px 0; }
    .nav-cta{ margin-top:16px; text-align:center; }
    section{ padding:64px 0; }
    .news-row{ grid-template-columns:1fr; gap:6px; }
    .recruit .container{ text-align:center; justify-content:center; }
  }
