/* ============================================================
   repos design — shared stylesheet
   ============================================================ */

:root {
  --bg: #FBFAF8;
  --bg-alt: #F2EFEA;
  --ink: #23211E;
  --muted: #6E6862;
  --line: #E3DED6;
  --accent: #47594F;
  --accent-ink: #2F3D36;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont,
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.95;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

section { padding: 88px 0; }
section.tight { padding: 64px 0; }
.bg-alt { background: var(--bg-alt); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 248, 0.88);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { font-weight: 700; font-size: 1.02rem; letter-spacing: .04em; }
.brand small {
  display: block; font-weight: 400; font-size: .62rem;
  letter-spacing: .22em; color: var(--muted); margin-top: 1px;
}
.nav { display: flex; gap: 28px; font-size: .86rem; letter-spacing: .06em; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer;
  font-size: 1.5rem; line-height: 1; color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 116px 0 96px; }
.hero .eyebrow {
  font-size: .74rem; letter-spacing: .28em; color: var(--muted);
  text-transform: uppercase; margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(1.7rem, 4.6vw, 2.9rem);
  font-weight: 700; line-height: 1.7; letter-spacing: .01em;
  margin-bottom: 28px;
}
.hero p.lead {
  font-size: 1.02rem; color: var(--muted); max-width: 40em;
  line-height: 2.1;
}
.hero .latin {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.08;
  margin-bottom: 30px; color: var(--ink);
}

/* ---------- typography blocks ---------- */
.kicker {
  font-size: .74rem; letter-spacing: .26em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 18px; font-weight: 500;
}
h2.section-title {
  font-size: clamp(1.35rem, 3.2vw, 1.8rem);
  font-weight: 700; line-height: 1.7; margin-bottom: 28px;
}
h3 { font-size: 1.06rem; font-weight: 700; margin-bottom: 10px; }
p + p { margin-top: 1.1em; }
.prose p { color: #3a3833; }
.prose { max-width: 40em; }

.lead-para { font-size: 1.05rem; line-height: 2.15; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 15px 30px; border-radius: 2px;
  font-size: .9rem; letter-spacing: .05em;
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent);
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- cards / grid ---------- */
.grid { display: grid; gap: 28px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 34px 30px;
}
.card.plain { background: transparent; border: 0; padding: 0; }

.feature-list { list-style: none; }
.feature-list li {
  padding: 16px 0; border-bottom: 1px solid var(--line);
  display: flex; gap: 14px;
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before { content: "—"; color: var(--accent); flex: none; }

/* ---------- plan blocks ---------- */
.plan {
  border: 1px solid var(--line); background: var(--bg);
  padding: 40px 36px;
}
.plan .photo {
  --ar: 16 / 9; max-height: 230px;
  margin: -40px -36px 30px; border: 0; border-bottom: 1px solid var(--line);
}
.plan .plan-name { font-size: 1.15rem; font-weight: 700; }
.plan .plan-sub { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.plan .plan-price {
  font-size: 1.9rem; font-weight: 700; margin: 22px 0 6px;
  letter-spacing: -0.01em;
}
.plan .plan-price span { font-size: .82rem; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; margin-top: 20px; }
.plan ul li {
  padding: 11px 0; border-bottom: 1px dashed var(--line);
  font-size: .92rem; color: #3a3833;
}
.plan ul li:last-child { border-bottom: 0; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 4px; }
.steps .step {
  display: grid; grid-template-columns: 54px 1fr; gap: 20px;
  padding: 24px 0; border-top: 1px solid var(--line);
}
.steps .step:last-child { border-bottom: 1px solid var(--line); }
.steps .step .num {
  counter-increment: step; font-size: .8rem; color: var(--accent);
  letter-spacing: .1em; padding-top: 4px;
}
.steps .step .num::before { content: "0" counter(step); }

/* ---------- contact form ---------- */
.form { max-width: 620px; margin-top: 12px; }
.field { margin-bottom: 24px; }
.field label {
  display: block; font-size: .85rem; margin-bottom: 8px; font-weight: 500;
}
.field label .req { color: var(--accent); margin-left: 4px; font-size: .78rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px;
  border: 1px solid var(--line); background: #fff;
  font-family: inherit; font-size: .95rem; color: var(--ink);
  border-radius: 2px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 8px; line-height: 1.9; }

.contact-direct {
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line);
}
.contact-direct dl { display: grid; grid-template-columns: 120px 1fr; gap: 12px 20px; font-size: .95rem; }
.contact-direct dt { color: var(--muted); font-size: .85rem; padding-top: 2px; }

/* ---------- misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.center { text-align: center; }
.mt-s { margin-top: 20px; } .mt-m { margin-top: 40px; } .mt-l { margin-top: 64px; }

.callout {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 22px; color: #3a3833; font-size: 1rem;
}

/* ---------- photo slots ---------- */
.photo {
  position: relative;
  aspect-ratio: var(--ar, 3 / 2);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  overflow: hidden;
}
.photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, center);
  opacity: 0; transition: opacity .4s;
}
.photo.is-loaded img { opacity: 1; }
.photo .ph-hint {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px; padding: 20px; text-align: center;
  font-size: .76rem; color: var(--muted); line-height: 1.85; letter-spacing: .03em;
}
.photo .ph-hint svg { width: 26px; height: 26px; opacity: .5; }
.photo .ph-hint code {
  font-size: .72rem; background: var(--bg);
  padding: 2px 7px; border: 1px solid var(--line); color: var(--ink);
}
.photo.is-loaded .ph-hint { display: none; }

.hero-photo { margin-top: 44px; --ar: 16 / 8; }

/* ---------- works ---------- */
.work { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* CSS site preview (browser-frame mock) */
.site-preview { border: 1px solid var(--line); background: #fff; overflow: hidden; }
.site-preview .sp-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--line);
}
.site-preview .sp-bar span {
  width: 9px; height: 9px; border-radius: 50%; background: #cfc8bd; flex: none;
}
.site-preview .sp-bar em {
  font-style: normal; font-size: .72rem; color: var(--muted);
  margin-left: 10px; letter-spacing: .02em;
}
.site-preview .sp-screen { background: #FBF8F1; padding: 40px 34px 44px; color: #4a3f2f; }
.site-preview .sp-eyebrow {
  font-size: .66rem; letter-spacing: .22em; color: #9c8f78; margin-bottom: 16px;
}
.site-preview .sp-h1 { font-size: 1.5rem; font-weight: 700; line-height: 1.6; }
.site-preview .sp-h1 mark {
  background: linear-gradient(transparent 55%, #EDDC97 55%); color: inherit; padding: 0 2px;
}
.site-preview .sp-lead { font-size: .82rem; color: #6f6350; margin: 14px 0 22px; }
.site-preview .sp-btn {
  display: inline-block; font-size: .78rem; color: #fff;
  background: #7b9a6b; padding: 10px 20px; border-radius: 999px;
}
.work-tags {
  font-size: .76rem; letter-spacing: .12em; color: var(--accent);
  margin-bottom: 14px;
}
.work-client { font-size: .92rem; color: var(--muted); }
.work-body h3 { margin-top: 22px; }
.work-body h3:first-child { margin-top: 0; }

@media (max-width: 820px) {
  .work { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- works teaser (home) ---------- */
.work-teaser {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  border: 1px solid var(--line); background: var(--bg); padding: 0;
  overflow: hidden;
}
.work-teaser > .site-preview { border: 0; border-right: 1px solid var(--line); }
.work-teaser .tt-body { padding: 36px 34px; }
.work-teaser .tt-body.only { grid-column: 1 / -1; }
@media (max-width: 820px) {
  .work-teaser { grid-template-columns: 1fr; }
  .work-teaser > .site-preview { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- sample works grid ---------- */
.sample-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.sample-card { border: 1px solid var(--line); background: var(--bg); }
.sample-card .site-preview { border: 0; border-bottom: 1px solid var(--line); }
.sample-card .sc-body { padding: 24px 26px 28px; }
.sample-card .sc-tag {
  display: inline-block; font-size: .68rem; letter-spacing: .12em;
  color: var(--muted); border: 1px solid var(--line);
  padding: 3px 9px; margin-bottom: 12px;
}
.sample-card h3 { font-size: 1rem; margin-bottom: 8px; }
.sample-card p { font-size: .88rem; color: #3a3833; }
.sample-note { font-size: .8rem; color: var(--muted); margin-top: 20px; }
@media (max-width: 680px) { .sample-grid { grid-template-columns: 1fr; } }

/* variant palettes for sample previews */
.sp--seitai .sp-screen { background: #F1F4EF; color: #3c4a3a; }
.sp--seitai .sp-h1 mark { background: linear-gradient(transparent 55%, #cfe0c2 55%); }
.sp--seitai .sp-btn { background: #6f8f68; }
.sp--koumuten .sp-screen { background: #F3F1EC; color: #2f2c27; }
.sp--koumuten .sp-h1 mark { background: linear-gradient(transparent 55%, #e2d4b8 55%); }
.sp--koumuten .sp-btn { background: #4a5d57; }

/* ---------- profile with photo ---------- */
.profile-row {
  display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start;
}
.profile-row .photo { --ar: 4 / 5; }
@media (max-width: 820px) {
  .profile-row { grid-template-columns: 1fr; gap: 28px; }
  .profile-row .photo { --ar: 3 / 2; max-width: 340px; }
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 48px; font-size: .84rem; color: var(--muted);
}
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.site-footer .brand { font-size: .95rem; color: var(--ink); }
.site-footer nav { display: flex; gap: 20px; }
.site-footer nav a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .contact-direct dl { grid-template-columns: 1fr; gap: 4px 0; }
  .contact-direct dt { padding-top: 12px; }
}

@media (max-width: 680px) {
  section { padding: 64px 0; }
  .hero { padding: 72px 0 60px; }
  .hero h1 { font-size: 1.5rem; line-height: 1.8; }
  h2.section-title { font-size: 1.3rem; }
  .nav {
    position: fixed; inset: 68px 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 24px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: block; }
  .steps .step { grid-template-columns: 40px 1fr; gap: 12px; }
}
