/* ==========================================================================
   Base / Variables
   ========================================================================== */
:root{
  --bg: #FAF6EF;
  --bg-alt: #F1E8DA;
  --ink: #263A34;
  --ink-soft: #5B6C64;
  --ink-faint: #8C9990;
  --accent: #C97B4A;
  --accent-dark: #B4633A;
  --accent-soft: #EAC9A8;
  --accent-pale: #F5E4D3;
  --contact-bg: #3A2A21;
  --white: #FFFFFF;
  --shadow-sm: 0 4px 16px rgba(38, 58, 52, 0.06);
  --shadow-md: 0 14px 40px rgba(38, 58, 52, 0.10);
  --shadow-lg: 0 24px 60px rgba(38, 58, 52, 0.16);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font-heading: "Shippori Mincho", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --header-h: 76px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{
  max-width: 100%;
  display: block;
}

a{
  color: inherit;
  text-decoration: none;
}

ul, ol{
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4{
  font-family: var(--font-heading);
  color: var(--ink);
  margin: 0;
  line-height: 1.5;
}

p{ margin: 0; overflow-wrap: break-word; }

p, li{
  text-wrap: pretty;
}

.nowrap{
  white-space: nowrap;
}

h1, h2, h3, h4{
  text-wrap: balance;
}

.wrap{
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.accent-text{ color: var(--accent-dark); }

.highlight{
  background: linear-gradient(to top, var(--accent-pale) 45%, transparent 45%);
  padding: 0 2px;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 200;
  background: rgba(250, 246, 239, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(38, 58, 52, 0.08);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand{
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.nav{
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.nav a{
  color: var(--ink-soft);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav a:hover{ color: var(--accent-dark); }

.nav-cta{
  background: var(--ink);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
}

.nav-cta:hover{ background: var(--accent-dark) !important; }

.menu-btn{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 210;
}

.menu-btn span{
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-btn.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2){ opacity: 0; }
.menu-btn.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position: relative;
  padding: calc(var(--header-h) + 96px) 0 120px;
  overflow: hidden;
  background: linear-gradient(180deg, #FDFBF7 0%, var(--bg) 60%);
}

.hero-deco{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.deco-circle{
  position: absolute;
  border-radius: 50%;
}

.deco-circle.c1{
  width: 480px; height: 480px;
  top: -180px; right: -140px;
  background: radial-gradient(circle at 30% 30%, var(--accent-pale), var(--accent-soft) 70%);
  opacity: 0.7;
}

.deco-circle.c2{
  width: 220px; height: 220px;
  bottom: -80px; left: -60px;
  background: radial-gradient(circle at 30% 30%, var(--ink), var(--ink) 100%);
  opacity: 0.06;
}

.deco-circle.c3{
  width: 420px; height: 420px;
  top: -160px; right: -120px;
  background: radial-gradient(circle at 30% 30%, var(--accent-dark), transparent 70%);
  opacity: 0.35;
}

.deco-ring{
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--accent-soft);
}

.deco-ring.r1{
  width: 140px; height: 140px;
  top: 120px; left: 6%;
  opacity: 0.8;
}

.deco-ring.r2{
  width: 180px; height: 180px;
  bottom: 40px; left: 8%;
  border-color: rgba(245, 228, 211, 0.35);
}

.deco-dot{
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.deco-dot.d1{ top: 210px; left: 12%; }
.deco-dot.d2{ bottom: 160px; right: 8%; background: var(--ink); opacity: 0.25; }

.hero-inner{
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view{
  opacity: 1;
  transform: none;
}

.value-grid .reveal:nth-child(2){ transition-delay: 0.12s; }
.value-grid .reveal:nth-child(3){ transition-delay: 0.24s; }

.steps .reveal:nth-child(2){ transition-delay: 0.08s; }
.steps .reveal:nth-child(3){ transition-delay: 0.16s; }
.steps .reveal:nth-child(4){ transition-delay: 0.24s; }
.steps .reveal:nth-child(5){ transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce){
  .reveal{ transition: none; opacity: 1; transform: none; }
}

.eyebrow{
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent-dark);
  background: var(--accent-pale);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero-title{
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 36px;
}

.hero-lead{
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 20px;
}

.hero-sub{
  font-size: 15px;
  color: var(--ink-faint);
  margin-bottom: 44px;
}

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

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary{
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover{
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-outline{
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-outline:hover{
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}

/* ==========================================================================
   Sections (generic)
   ========================================================================== */
.section{
  position: relative;
  padding: 120px 0;
}

.section-alt{
  background: var(--bg-alt);
}

.section-tag{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-dark);
  margin-bottom: 18px;
}

.section-tag.on-dark{ color: var(--accent-soft); }

.section-title{
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  margin-bottom: 48px;
}

.section-title.small{ font-size: clamp(24px, 3vw, 32px); margin-bottom: 32px; }

.section-title.on-dark{ color: var(--white); }

.section-lead{
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 720px;
  margin-top: -20px;
  margin-bottom: 56px;
}

.sub-title{
  font-size: 20px;
  font-weight: 700;
  margin: 64px 0 32px;
}

/* ==========================================================================
   About
   ========================================================================== */
.about-lead{
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 16px;
}

.about-lead p{ margin-bottom: 22px; }

.check-list{
  margin: 24px 0 22px;
  display: grid;
  gap: 12px;
}

.check-list li{
  position: relative;
  padding-left: 30px;
  color: var(--ink);
}

.check-list li::before{
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent-pale);
  border: 1.5px solid var(--accent);
}

.check-list li::after{
  content: "";
  position: absolute;
  left: 5px; top: 10.5px;
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--accent-dark);
  border-bottom: 1.5px solid var(--accent-dark);
  transform: rotate(-45deg);
}

.value-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.value-card{
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.value-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.value-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--accent-dark);
  background: var(--accent-pale);
  margin-bottom: 24px;
}

.value-icon svg{
  width: 28px;
  height: 28px;
}

.value-card h4{
  font-size: 18px;
  margin-bottom: 14px;
}

.value-card p{
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.85;
}

/* ==========================================================================
   Service
   ========================================================================== */
.service-block{
  padding: 36px 0;
  border-bottom: 1px solid rgba(38, 58, 52, 0.1);
}

.service-block:last-child{ border-bottom: none; }

.service-heading{
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 21px;
  margin-bottom: 22px;
}

.service-emoji{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--accent-dark);
  flex-shrink: 0;
}

.service-emoji svg{
  width: 22px;
  height: 22px;
}

.service-list{
  display: grid;
  gap: 14px;
  max-width: 800px;
}

.service-list li{
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 15px;
}

.service-list li::before{
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.service-list li strong{ color: var(--ink); }

.lb-desktop{ display: none; }

@media (min-width: 700px){
  .lb-desktop{ display: block; content: ""; }
}

.service-list.plain li::before{ background: var(--ink-faint); }

.service-text{
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 760px;
  margin-top: 10px;
}

.service-note{
  margin-top: 18px;
  color: var(--ink);
  font-size: 15px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Works
   ========================================================================== */
.works-list{
  display: flex;
  flex-direction: column;
  gap: 84px;
}

.work-card{
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 52px;
  align-items: center;
}

.work-card.reverse .work-media{ order: 2; }
.work-card.reverse .work-body{ order: 1; }

.work-card.case-study{
  display: block;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 44px;
}

.case-study .work-case{ margin-bottom: 14px; }
.case-study .work-title{ margin-bottom: 16px; }
.case-study .work-desc{ margin-bottom: 32px; max-width: 900px; }
.case-study .work-role{ margin-top: 32px; margin-bottom: 20px; }

.compare-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 620px;
}

.compare-col{
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 20px;
}

.compare-label{
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.compare-label.is-before{
  background: var(--white);
  color: var(--ink-faint);
}

.compare-label.is-after{
  background: var(--accent);
  color: var(--white);
}

.compare-images{
  display: grid;
  gap: 10px;
}

.compare-images img{
  width: 100%;
  display: block;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.compare-sub-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.case-row{
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.case-thumb{
  position: relative;
  flex-shrink: 0;
  width: 280px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(38, 58, 52, 0.08);
}

.case-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.case-thumb-tag{
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  background: rgba(38, 58, 52, 0.78);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: 6px;
}

.case-text{
  flex: 1;
  min-width: 0;
}

.case-study .case-text .work-title{ margin-bottom: 16px; }
.case-study .case-text .work-desc{ margin-bottom: 20px; max-width: none; }
.case-study .case-text .work-role{ margin-top: 0; margin-bottom: 8px; }

.work-media{
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white);
  border: 1px solid rgba(38, 58, 52, 0.08);
}

.work-media img{
  width: 100%;
  height: auto;
  display: block;
}

.work-media svg{
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
}

.work-media-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background: var(--accent-pale);
}

.work-media-grid img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.works-note{
  margin-top: 56px;
  padding: 24px 28px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  color: var(--ink-soft);
}

.works-note strong{
  color: var(--ink);
}

.work-case{
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.work-title{
  font-size: 22px;
  margin-bottom: 18px;
}

.work-desc{
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 20px;
}

.work-role{
  font-size: 13.5px;
  color: var(--ink);
  background: var(--white);
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.work-role span{
  color: var(--accent-dark);
  font-weight: 700;
  margin-right: 10px;
}

.work-annotation{
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* ==========================================================================
   Steps (How I Work)
   ========================================================================== */
.steps{
  position: relative;
  max-width: 760px;
}

.step{
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  position: relative;
  padding-bottom: 48px;
}

.step:last-child{ padding-bottom: 0; }

.step::before{
  content: "";
  position: absolute;
  left: 31px;
  top: 64px;
  bottom: 0;
  width: 1.5px;
  background: repeating-linear-gradient(to bottom, var(--accent-soft) 0, var(--accent-soft) 6px, transparent 6px, transparent 12px);
}

.step:last-child::before{ display: none; }

.step-num{
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--white);
  color: var(--accent-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--accent-soft);
  z-index: 1;
}

.step-body h3{
  font-size: 19px;
  margin-bottom: 10px;
  padding-top: 12px;
}

.step-body p{
  color: var(--ink-soft);
  font-size: 15px;
}

/* ==========================================================================
   About Me
   ========================================================================== */
.about-me-inner{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 72px;
  align-items: center;
}

.about-me-image{
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
}

.about-me-image::before{
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1.5px dashed var(--accent-soft);
}

.about-me-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}

.profile-name{
  text-align: center;
  margin-top: 22px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.about-me-text p{
  color: var(--ink-soft);
  font-size: 15.5px;
  margin-bottom: 20px;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact{
  background: var(--contact-bg);
  color: var(--white);
  overflow: hidden;
}

.contact .section-title{ margin-bottom: 20px; }

.contact-intro{
  color: rgba(255,255,255,0.65);
  font-size: 14.5px;
  margin-bottom: 32px;
}

.contact-list{
  display: grid;
  gap: 16px;
  max-width: 620px;
  margin-bottom: 48px;
}

.contact-list li{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  color: rgba(255,255,255,0.9);
}

.contact-lead{
  color: rgba(255,255,255,0.75);
  font-size: 15.5px;
  margin-bottom: 52px;
  max-width: 600px;
}

.contact-box{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-lg);
  padding: 44px;
  text-align: center;
  max-width: 480px;
  backdrop-filter: blur(6px);
}

.contact-box-title{
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--accent-soft);
  margin-bottom: 14px;
}

.contact-box-sub{
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 14px;
}

.contact-box-channels{
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.btn-mail{
  display: inline-flex;
  margin-top: 8px;
  background: var(--accent);
  color: var(--white);
}

.btn-mail:hover{
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{
  background: var(--contact-bg);
  color: rgba(255,255,255,0.5);
  padding: 28px 0;
  font-size: 12.5px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px){
  .value-grid{ grid-template-columns: 1fr; }
  .compare-grid{ grid-template-columns: 1fr; }
  .work-card.case-study{ padding: 28px; }
  .case-row{ flex-direction: column; }
  .case-thumb{ width: 220px; }
  .work-card{ grid-template-columns: 1fr; gap: 28px; }
  .work-card.reverse .work-media{ order: 1; }
  .work-card.reverse .work-body{ order: 2; }
  .about-me-inner{ grid-template-columns: 1fr; text-align: center; }
  .about-me-text p{ text-align: left; }
}

@media (max-width: 780px){
  .wrap{ padding: 0 22px; }

  .nav{
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 22px 24px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border-bottom: 1px solid rgba(38,58,52,0.08);
  }

  .nav.open{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a{
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(38,58,52,0.06);
    font-size: 14px;
  }

  .nav-cta{
    text-align: center;
    margin-top: 12px;
    border-bottom: none !important;
  }

  .menu-btn{ display: flex; }

  .hero{ padding: calc(var(--header-h) + 56px) 0 80px; }
  .section{ padding: 80px 0; }
  .section-lead{ margin-top: 0; }
  .sub-title{ margin: 48px 0 24px; }

  .hero-actions{ flex-direction: column; }
  .btn{ width: 100%; }

  .about-me-image{ width: 200px; height: 200px; }
}

@media (max-width: 420px){
  .hero-title{ font-size: 30px; }
  .deco-circle.c1{ width: 320px; height: 320px; top: -140px; right: -120px; }
}
