/* 結び屋 ホーム */

:root {
  --kinari: #F5F0E6;   /* 生成り：地 */
  --sumi: #201E1B;     /* 墨：文字 */
  --shu: #B33A2B;      /* 朱 */
  --ai: #2B3F5C;       /* 藍 */
  --paper: #FFFDF8;    /* 札の白 */
  --line: rgba(32, 30, 27, 0.14);
  --muted: rgba(32, 30, 27, 0.68);
  --wood-light: #C79A63;
  --wood-dark: #9A6B3C;

  --font-mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;

  --wrap: 1040px;
  --gutter: 20px;
}

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

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

body {
  margin: 0;
  background: var(--kinari);
  color: var(--sumi);
  font-family: var(--font-gothic);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

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

.sp-only { display: none; }

/* ---------- 判子 ---------- */

.seal-square {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--shu);
  color: var(--kinari);
  font-family: var(--font-mincho);
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 2px var(--shu), inset 0 0 0 4px rgba(245, 240, 230, 0.55);
}

.seal-round {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--shu);
  color: var(--shu);
  font-family: var(--font-mincho);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.08em;
  transform: rotate(-12deg);
  opacity: 0.88;
  animation: pon 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) 0.6s both;
}

.seal-round::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid var(--shu);
}

@keyframes pon {
  0%   { transform: rotate(-12deg) scale(1.5); opacity: 0; }
  60%  { transform: rotate(-12deg) scale(0.92); opacity: 0.95; }
  100% { transform: rotate(-12deg) scale(1); opacity: 0.88; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .seal-round { animation: none; }
}

/* ---------- 1. 上の帯 ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-mincho);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.12em;
}

.site-nav ul {
  display: flex;
  gap: 4px 24px;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-block;
  padding: 4px 0;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--shu);
  border-bottom-color: var(--shu);
}

/* ---------- 2. 一文 ---------- */

.lead {
  padding-top: 72px;
  padding-bottom: 56px;
}

.lead-title {
  font-family: var(--font-mincho);
  font-weight: 800;
  font-size: clamp(28px, 5.2vw, 48px);
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.lead-sub {
  margin-top: 20px;
  max-width: 36em;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- 見出し ---------- */

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-family: var(--font-mincho);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.1em;
}

.section-kicker {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 14px;
  letter-spacing: 0;
  opacity: 0.7;
}

section[id] { scroll-margin-top: 16px; }

/* ---------- 3. 名刺 ---------- */

.maker {
  padding-top: 32px;
  padding-bottom: 72px;
  overflow-x: clip; /* 判子が押される途中に横へはみ出さない */
}

.meishi {
  position: relative;
  max-width: 560px;
  padding: 32px 32px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(32, 30, 27, 0.05), 0 12px 28px -14px rgba(32, 30, 27, 0.35);
  transform: rotate(-1.5deg);
}

.meishi-role {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.2em;
}

.meishi-name {
  margin-top: 2px;
  font-family: var(--font-mincho);
  font-weight: 800;
  font-size: 36px;
  line-height: 1.3;
  letter-spacing: 0.2em;
}

.meishi-text {
  margin-top: 16px;
  padding-right: 8px;
  font-size: 15px;
}

.meishi-skills {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.meishi-skills-label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.2em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tags li {
  padding: 2px 12px;
  border: 1px solid var(--sumi);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
}

/* ---------- 4. 作ったもの（棚と札） ---------- */

.works {
  padding-top: 32px;
  padding-bottom: 80px;
}

.shelf {
  position: relative;
}

.fuda-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: end;
}

.fuda {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 28px 22px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 10px 22px -16px rgba(32, 30, 27, 0.5);
}

/* 札の上の紐穴 */
.fuda::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--kinari);
  box-shadow: inset 0 1px 2px rgba(32, 30, 27, 0.35);
}

.fuda-status {
  align-self: flex-start;
  padding: 0 8px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.9;
}

.fuda-status.is-open { background: var(--shu); color: var(--kinari); }
.fuda-status.is-wip  { border: 1px solid var(--muted); color: var(--muted); }

.fuda-name {
  margin-top: 14px;
  font-family: var(--font-mincho);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.45;
  letter-spacing: 0.06em;
}

.fuda-text {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.fuda-link {
  margin-top: auto;
  padding-top: 18px;
  align-self: flex-start;
  font-size: 15px;
  font-weight: 700;
  color: var(--ai);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  line-height: 1.6;
}

a.fuda-link:hover,
a.fuda-link:focus-visible { color: var(--shu); }

.fuda-link.is-disabled {
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px dashed currentColor;
}

/* 木の棚板 */
.shelf-board {
  max-width: calc(var(--wrap) - 8px);
  height: 18px;
  margin: 0 auto;
  border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 11px, rgba(0, 0, 0, 0.05) 11px 12px, transparent 12px 23px),
    linear-gradient(180deg, var(--wood-light), var(--wood-dark));
  box-shadow: 0 8px 14px -8px rgba(32, 30, 27, 0.55);
}

/* ---------- 5. 頼む ---------- */

.request {
  padding: 72px 0 80px;
  background: var(--ai);
  color: var(--kinari);
}

.request-lead {
  opacity: 0.85;
}

.request-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.request-list li {
  padding: 20px 22px;
  border: 1px solid rgba(245, 240, 230, 0.35);
  border-radius: 2px;
}

.request-list h3 {
  font-family: var(--font-mincho);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.request-list p {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.85;
}

.request-note {
  display: inline-block;
  margin-top: 32px;
  padding: 8px 16px;
  border-left: 3px solid var(--shu);
  background: rgba(245, 240, 230, 0.08);
  font-weight: 500;
}

/* ---------- 6. 下の帯 ---------- */

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.footer-note {
  max-width: 44em;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.8;
}

.footer-note a {
  white-space: nowrap;
}

/* ---------- スマホ ---------- */

@media (max-width: 760px) {
  :root { --gutter: 16px; }

  .pc-only { display: none; }
  .sp-only { display: inline; }

  .header-inner { padding-top: 14px; padding-bottom: 12px; }
  .site-nav { width: 100%; }
  .site-nav ul { gap: 4px 20px; }

  .lead { padding-top: 48px; padding-bottom: 40px; }

  .meishi { padding: 26px 22px 22px; transform: rotate(-1deg); }
  .meishi-name { font-size: 30px; }
  .seal-round { top: 16px; right: 16px; width: 56px; height: 56px; font-size: 16px; }

  /* 棚は段ごとに札と板を重ねる */
  .shelf-board { display: none; }
  .fuda-list { grid-template-columns: 1fr; gap: 0; }
  .fuda {
    min-height: 0;
    margin-bottom: 30px;
    border-bottom: none;
  }
  .fuda::after {
    content: "";
    position: absolute;
    left: -8px;
    right: -8px;
    bottom: -14px;
    height: 14px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--wood-light), var(--wood-dark));
    box-shadow: 0 6px 10px -6px rgba(32, 30, 27, 0.55);
  }
  .fuda-link { padding-top: 14px; }

  .request { padding: 56px 0 64px; }
  .request-list { grid-template-columns: 1fr; gap: 12px; }
}
